2D memory for AI attention

A language model generating the last word of a long answer still has to consult its earlier tokens. Each new token adds information that the next one can use. If the arithmetic is quick but the processor spends its time retrieving those records, speeding up the arithmetic alone buys little. What would change if some of that memory sat directly above the circuits that use it?

Researchers at the University of Hong Kong, the Hong Kong University of Science and Technology, Fudan University and the National University of Singapore built a chip to investigate that question. They integrated two kinds of memory above conventional silicon logic. One holds relatively stable numbers. The other accepts frequent updates in a layer of molybdenum disulfide (MoS₂), a semiconductor that can form sheets only a few atoms thick. Their experiment connects the physics of a memory cell to a particular task in AI: deciding how much weight to give each earlier token. [1] [2]

Front-facing cross-section. A pale vertical contact links a thin green memory layer to the blue silicon circuitry below.
Schematic cross-section of memory above silicon logic. Follow the pale central contact from the green layer to the blue circuitry below. Its short vertical path illustrates how the two can exchange data. Colours, thicknesses and contact shapes are illustrative. © 2026 Juan Antonio Lloret Egea · ITVIA · The Bible of AI (BAI) · CC BY-NC-ND 4.0.

Follow one token through attention

Consider the sentence “The violin was in its case because it was fragile.” For the word “it”, an attention head forms a query. It scores the query against a key for each available token, then combines their associated values according to those scores. As a small numerical example, suppose two tokens receive weights of 0.75 and 0.25 and one component of their values is 8 and 4 respectively. The resulting component is 0.75 × 8 + 0.25 × 4 = 7. A real head combines many components. The example illustrates the arithmetic without attributing these weights to a trained model. [2]

During generation, the learned coefficients used to form the queries, keys and values stay fixed. The record of earlier keys and values grows. Keeping that record, often called the KV cache, saves the work of reconstructing it at every step. Reading it repeatedly still costs time and energy. In the prototype, resistive memory made with tantalum oxide supports computation with stable coefficients. The MoS₂ layer provides embedded dynamic memory for changing data. Short vertical connections link the layers with the silicon circuitry below. Computing where some of the numbers are held reduces the distance they must travel. [1]

What the researchers measured on the chip

The dynamic cell uses two transistors. One writes charge onto a storage node and the other allows that state to be read. The node’s own capacitance holds the charge, so the cell needs no separate storage capacitor. Charge gradually leaks away. Under the reported test conditions, the team measured a write latency below one nanosecond and retention above 100 seconds. The former describes how quickly a cell accepts a write. The latter describes how long the state remains distinguishable. Neither measurement times the generation of a token. [1]

The researchers then used their measurements to calibrate a simulation of a larger architecture. It predicted a 500-fold speedup relative to the GPU used in their comparison. It also predicted an 85% reduction in memory area relative to a planar compute-in-memory design. The second figure compares two layouts. It says nothing directly about electricity or total chip area. A complete server running a language model has yet to establish how much of the projected speedup reaches the reader waiting for an answer. [1]

What CDimension supplies, and what WUJI ran

Adding a layer after the silicon circuits are built poses a manufacturing problem. Too much heat for too long can alter devices or wiring that already work. In a 200 mm process, an MIT team grew a MoS₂ monolayer below 300 °C in at most 60 minutes. It measured less than 0.5% change in the current of the underlying silicon transistors and less than 20 millivolts of threshold-voltage shift. Those measurements test what survived the process. They also explain why the temperature and duration of deposition matter together. [3]

CDimension now lists deposition on customer substrates at 200 °C for n-type MoS₂ and 450 °C for p-type tungsten diselenide. These are manufacturing temperatures. A coated wafer gives a chip designer material on which to form contacts, gates and circuits. The company attributes an efficiency improvement of up to 1,000-fold to internal transistor tests and describes a 100-fold efficiency goal for a future architecture. Its public specifications provide no matched inference test in joules per token. As of 30 November 2026, we could verify the materials offering. We found no public product data sheet for a commercial CDimension microcontroller. [4] [5]

Fudan’s RV32-WUJI answers a different question: can a program execute on logic made from a 2D semiconductor? Its 32-bit RISC-V processor used about 5,900 MoS₂ transistors. The team demonstrated 37 instructions at a clock frequency of 1 kHz, with a serial data path. That frequency counts clock cycles per second. An instruction may require several cycles. WUJI supplies physical evidence of programmable logic. The Hong Kong-led chip supplies physical evidence of stacked memory for attention. Each result stands on its own. [1] [6]

Would a language model spend fewer joules per token?

The best case is a workload that spends much of its time moving keys and values, with enough of the active context fitting in the stack. Longer contexts put more pressure on capacity. If the missing data must still come from off-chip memory, some long journeys return. Analogue arrays also need circuits to drive the rows, sense the outputs and convert signals. Refresh, conversion accuracy and heat in the upper layers all affect what a larger chip can deliver.

The decisive experiment would run the same model at the same context length, batch size, numerical precision and output quality, and measure joules per generated token and time between successive tokens, including the memory and control circuitry. The physical result already matters: rapidly changing data can occupy a working layer above silicon, beside a different memory suited to stable weights. The open question is how often a whole inference system can keep its data on that short path.

Sources and scope

Evidence reviewed through 30 November 2026. The attention chip, MIT deposition experiment and WUJI processor are distinct demonstrations. CDimension’s catalogue describes its commercial offering.

  1. University of Hong Kong, HKUST, Fudan University and National University of Singapore (2025). Monolithic 3D Integration of MoS₂ eDRAM and RRAM for Analog In-Memory Attention Computing. IEEE International Electron Devices Meeting, contribution 5-6. The conference abstract identifies the cell measurements and both simulation baselines.
  2. Attention Is All You Need (2017), section 3.2. Definition of scaled dot-product attention, including queries, keys and values.
  3. MIT and collaborators (2023). Low-thermal-budget synthesis of monolayer molybdenum disulfide for silicon back-end-of-line integration on a 200 mm platform. Nature Nanotechnology. Process temperature, duration and electrical measurements on underlying devices.
  4. CDimension. Materials and deposition specifications. The catalogue distinguishes substrates, deposition temperatures and materials.
  5. CDimension (2025). Commercial 2D materials launch and proposed 3D AI architecture. The company’s account of its transistor tests and system targets.
  6. Fudan University and collaborators (2025). A RISC-V 32-bit microprocessor based on two-dimensional semiconductors. Nature. See also Fudan’s account of WUJI for the serial execution and test clock.

Related reading: How high-bandwidth memory feeds an AI accelerator and how resistive memory computes where data lives.

Explore the Horizons of Electronics collection.

Liked this post? Follow this blog to get more.