From Molecules to Minds
Chapter Fourteen

Computing inside memory

What if the memory did the maths itself? A grid of tiny programmable resistors can multiply a whole matrix in one step, and the race to make it practical is one of the most inventive stories in hardware.

26 min read6,069 words4 interactive figures

Picture a chef who must walk to a shop across town for every pinch of salt. The cooking takes seconds. The walking takes the whole day. That, in one sentence, is the energy problem of a modern AI chip.

Chapter 11 showed that the brain avoids this problem by keeping each weight where it is used: inside the synapse. Chapter 13 showed silicon chips that place memory right next to each little compute core. This chapter goes one step further and asks a wonderful question: what if the memory cells did the arithmetic themselves?

The answer turns out to be a few lines of school physics, a zoo of unusual materials, and one of the most inventive engineering races of the last twenty years.


The problem: fetching numbers costs more than using them

A large AI model is mostly matrix multiplicationmultiplying a grid of numbers (the weights) by a list of numbers (the inputs) to get a new list; the core arithmetic of every neural network (see chapter 12 of the other book). On a GPU, the weightsthe learned numbers inside a neural network, like the settings on millions of tiny dials sit in memory chips beside the processor. To use a weight, the chip has to fetch it, multiply with it, and then fetch the next one.

The fetching is the expensive part. Mark Horowitz of Stanford measured both on a 45-nanometre chip in 2014, and his numbers are still the classic reference.

Operation (45 nm chip, 2014)Energy (approximately)
Add two 8-bit whole numbers0.03 pJ
Multiply two 8-bit whole numbers0.2 pJ
Multiply two 32-bit decimal numbers3.7 pJ
Read 64 bits from off-chip DRAM1,300–2,600 pJ

A picojoulepJ: a millionth of a millionth of a joule (10⁻¹² J). A grain of sand falling a millimetre releases far more is tiny, but the ratios are what matter. One trip to DRAMdynamic random-access memory: the main working memory of computers, kept on separate chips from the processor costs as much as thousands of small multiplications. Chip designers call this the memory wallthe gap between how fast a processor can calculate and how fast memory can feed it data.

Engineers have answered it brilliantly so far: bigger on-chip memories, memory stacked millimetres from the processor, and fewer bits per weight. This chapter is about a more radical answer. Do the calculation inside the memory, so the weights never move at all. Engineers call this compute-in-memorydoing calculations inside the memory array itself, so data does not travel to a separate processor, or in-memory computing.


The crossbar: letting physics do the multiplication

This is the most important idea in the chapter, and it is beautifully simple. Take it one step at a time.

Step 1: a grid of wires

Lay horizontal wires (the rows) across vertical wires (the columns). At each crossing, place one small programmable resistor. Each of these is a memory cell. A grid of 256 rows and 256 columns holds 65,536 cells. Engineers call this grid a crossbara grid of row wires crossing column wires, with one memory cell at every crossing.

A small research memristor chip with a fine grid of cells in the middle
A research memristor chip from the US National Energy Technology Laboratory. The fine grid in the centre is an array of memory cells where row and column wires cross. Photo: U.S. Department of Energy, public domain, via Wikimedia Commons_(cropped).jpg).

Step 2: store each weight as a conductance

Conductancehow easily current flows through something; the opposite of resistance (G = 1/R), measured in siemens (S) is simply the flip side of resistance. A cell with low resistance has high conductance. We program the cell at row i and column j to a conductance that stands for one weight of the matrix.

Step 3: apply the inputs as voltages

Put a voltage on each row. Each voltage stands for one input number, for example one output of the previous layer of the network.

Step 4: Ohm's law does each multiply

Ohm's lawthe rule that current equals conductance times voltage (I = G × V) says the current through one cell is its conductance times its voltage:

 current through one cell = conductance × voltage

That is a multiplication. No transistor switched, and no number was fetched. The material simply obeyed physics.

Step 5: Kirchhoff's law does the sum

All the cells in one column send their currents into the same column wire. Kirchhoff's current lawthe rule that currents flowing into a junction add up; nothing is lost on the way says those currents add:

 column current = G₁×V₁ + G₂×V₂ + ... + Gₙ×Vₙ

That is a complete dot productmultiply two lists number by number, then add up the results; one row of a matrix multiplication.

Step 6: every column at once

Here is the magic. Every column makes its sum at the same moment. So a whole matrix-times-vector product happens in one step, in tens of nanoseconds. A 64 × 64 grid and a 1,024 × 1,024 grid take roughly the same time.

           V_1 ──►──┬───────────┬───────────┬──── row 1
                    │G11        │G12        │G13
           V_2 ──►──┼───────────┼───────────┼──── row 2
                    │G21        │G22        │G23
           V_3 ──►──┼───────────┼───────────┼──── row 3
                    │G31        │G32        │G33
                    ▼           ▼           ▼
                   I_1         I_2         I_3      column currents
                    │           │           │
                  [ADC]       [ADC]       [ADC]     convert to numbers
                    ▼           ▼           ▼
                   y_1         y_2         y_3      the output list

A software analogy helps. A normal processor is a loop: for each weight, load it, multiply, add. A crossbar is a single vectorised call where the hardware is the matrix. The weights never move; only the inputs and the answers do.

A worked example with real numbers

Here is a tiny two-by-two crossbar. A microsiemensµS: a millionth of a siemens, a small conductance is a convenient unit for these cells.

Column 1Column 2
Row 1 conductance10 µS20 µS
Row 2 conductance30 µS40 µS

Apply 0.1 V to row 1 and 0.2 V to row 2.

  • Column 1: (10 µS × 0.1 V) + (30 µS × 0.2 V) = 1 µA + 6 µA = 7 µA.
  • Column 2: (20 µS × 0.1 V) + (40 µS × 0.2 V) = 2 µA + 8 µA = 10 µA.

A digital chip would need four weight reads, four multiplies and two adds. The crossbar needs no weight reads at all.

Think of it like a field of garden taps. Each row is a water pipe at some pressure (the input). At each crossing, a tap lets a set amount of water through (the weight). Each column is a drain that collects the water from all its taps, and a meter on each drain reads the total. All the drains fill at once.

Three practical details

  1. Negative weights. A conductance cannot be negative. So each weight uses a pair of cells, one for the positive part and one for the negative part, and the circuit subtracts the two column currents.
  2. Inputs with many bits. The chip can send each input as a train of short pulses, one bit at a time, or vary how long each pulse lasts.
  3. Reading the answer. An ADCanalog-to-digital converter: a circuit that turns a measured voltage or current into a number on each column, or shared between several, turns the current back into a number. Ordinary digital logic then applies the next step of the network and passes the result to the next crossbar.

One researcher summed it up in a single line: the matrix is stored as conductance, and the input is applied as voltage.


What sits at each crossing

The crossbar needs a cell whose conductance you can set to many levels, and which then stays put. Remarkably, many different materials can do this, and each one is a little scientific story.

The memristor: a prediction from 1971

In 1971, Leon Chua of the University of California, Berkeley, looked at the three classic circuit elements and noticed a gap. The resistor links voltage and current. The capacitor links charge and voltage. The inductor links magnetic flux and current. Nothing linked charge and flux.

Chua predicted a fourth element to fill the gap and called it the memristora "memory resistor": a device whose resistance depends on how much charge has flowed through it in the past, so it remembers its history. Its resistance depends on the total charge that has passed through it, so it remembers. In 1976, Chua and Sung-Mo Kang widened the idea to a whole family of "memristive systems".

Portrait of Leon Chua
Leon Chua of UC Berkeley predicted the memristor in 1971, 37 years before HP Labs connected it to a real device. Photo: Leon Chua, CC BY 4.0, via Wikimedia Commons.

HP Labs, 2008: the missing memristor found

Thirty-seven years later, Dmitri Strukov, Gregory Snider, Duncan Stewart and R. Stanley Williams at HP Labs published "The missing memristor found" in Nature. Their device was a very thin film of titanium dioxide between platinum electrodes.

  1. Part of the film has oxygen vacanciesspots in a crystal where an oxygen atom is missing; they carry positive charge and help current flow, so that part conducts well.
  2. A voltage pushes the vacancies through the film.
  3. The border between the conducting and insulating parts moves.
  4. The resistance changes, and it stays at its new value when the voltage stops.

HP soon reported much smaller, faster devices, and planned a whole computer around memristor memory, called "The Machine". It never shipped as planned, but the 2008 paper launched a wave of research around the world.

There is a friendly scientific argument here too. Resistance changes in oxide films had been seen since the 1960s, and some physicists say that real devices are not "ideal" memristors in Chua's strict sense. Williams used a broad definition that covers several memory types. For an engineer the name matters less than the behaviour: a cell with many stable conductance levels.

RRAM: the practical memristor

RRAMresistive random-access memory (also ReRAM): memory that stores data as the resistance of a thin oxide layer is the industrial form of the memristor.

   top electrode (metal)
 ┌───────────────────────────┐
 │  oxide, e.g. HfO2         │   "forming": a high voltage makes a thin
 │       ║  <- filament of   │   conducting path (filament) of oxygen
 │       ║     oxygen        │   vacancies
 │       ║     vacancies     │
 └───────────────────────────┘
   bottom electrode (metal)

 SET pulse:   the filament grows  -> low resistance
 RESET pulse: the filament breaks -> high resistance
 partial pulses: thicker or thinner filament -> in-between levels
  • Materials: hafnium oxide, tantalum oxide or silicon oxide. Hafnium oxide is already in the gate of every modern transistor, so chip factories know it well.
  • A cousin: CBRAM, which grows a tiny bridge of silver or copper ions instead.
  • Speed: switching in nanoseconds.
  • Endurance: research devices have survived up to about 10¹⁰ write cycles; some products specify around 100,000.
  • Status: RRAM is already sold as embedded memory in some microcontrollers. Weebit Nano, for example, licenses its RRAM to chipmakers; in December 2025 it announced a licence with Texas Instruments.

Phase-change memory

Phase-change memoryPCM: memory that stores data by switching a tiny spot of special glass between a disordered and an ordered state uses a glassy alloy of germanium, antimony and tellurium. Rewritable DVDs used the same family of materials.

  • Heat a spot above about 600 °C and cool it fast, and the atoms freeze in disorder: the spot becomes amorphousdisordered, like glass; atoms have no regular pattern and has high resistance.
  • Warm it more gently for about 100 nanoseconds, and the atoms line up: it becomes crystallineordered, with atoms in a regular repeating pattern and has low resistance.
  • A partly crystalline spot gives in-between levels.

Its main weakness is drift: the resistance of the amorphous part creeps upward over time, roughly in proportion to time raised to the power 0.1. A weight written today reads a little differently next week. Endurance is around 10⁸ writes.

Intel and Micron used a phase-change material in their 3D XPoint memory (sold as Optane) from 2015, and Intel wound down Optane in 2022. But phase-change memory lives on as embedded memory: STMicroelectronics builds it into car microcontrollers on a 28-nanometre process, and IBM Research uses it for its analog AI chips.

Ferroelectric transistors

A ferroelectrica material whose internal electric charges can point "up" or "down" and stay that way without power material keeps its electric polarisation without power. Put a ferroelectric layer in the gate of a transistor and you get a FeFETferroelectric field-effect transistor: a transistor whose gate remembers a setting, so it conducts more or less easily.

Around 2011, researchers in Dresden found ferroelectric behaviour in doped hafnium oxide, which was exciting because factories already use that material. A voltage writes the cell with almost no current, so writes are cheap in energy. Endurance is still a challenge, with about 10⁵ cycles in 2017 test arrays. The Ferroelectric Memory Company in Dresden is working to bring it to market.

MRAM and spintronics

MRAMmagnetoresistive RAM: memory that stores a bit in the direction of a tiny magnet stores each bit in a magnetic tunnel junctiontwo tiny magnets separated by an insulating layer about a nanometre thick; current passes more easily when they point the same way. When the two magnets point the same way, resistance is low; when they point opposite ways, it is high.

MRAM is fast, very durable and already in production: Samsung began making embedded MRAM on 28 nanometres in 2019, and Everspin sells stand-alone MRAM chips. The catch for analog computing is that a magnet is mostly binary, and the high resistance is only a few times the low one. In January 2022, Samsung researchers published a clever answer in Nature: an MRAM crossbar that adds resistances in series rather than currents in parallel. Physicists such as Julie Grollier in France have also shown tiny magnetic oscillators that can act as neurons.

Flash memory as an analog weight

A flashthe memory in USB sticks and phones; each cell stores electrons on an isolated "floating" gate cell traps electrons on an isolated gate. The number of electrons sets how much current the transistor lets through, so a flash cell can hold an analog weight too.

The company Mythic drives each flash transistor at 256 levels to store 8-bit weights. Flash is mature, dense and cheap. Its writes are slow and need high voltage, endurance is low, and embedded flash does not shrink well below about 28 nanometres.

SRAM and capacitors: in-memory computing with ordinary transistors

Two designs use only standard chip parts, so they can use the newest factories and ship today.

  1. Digital in-memory computing. Extra transistors beside each SRAMstatic RAM: the fast on-chip memory made of ordinary transistors; it forgets when power is removed cell do small multiplies and adds inside the memory array. The answers are exact. d-Matrix and Axelera AI use this approach.
  2. Charge-domain analog computing. Tiny, precise metal capacitors replace the resistors. Each product becomes a small packet of charge, and the charges add when the capacitors share them. Capacitors are far more precise and stable than resistive cells. EnCharge AI, founded on Naveen Verma's research at Princeton University, uses this idea.

The devices side by side

DeviceWhat changes insideLevelsEndurance (approx.)Main weaknessStatus, 2026
RRAMfilament of oxygen vacanciesa few to thousands (research)10⁵ (products) to 10¹⁰ (research)noise, cell-to-cell spreadembedded memory sold; analog AI in research
Phase-changeglassy versus crystal volumemanyabout 10⁸drift, heatembedded car memory; IBM research chips
FeFETferroelectric polarisationseveralabout 10⁵ (2017)endurance, scalingin development
MRAMmagnet directionmostly 210⁸ or moresmall on/off ratioembedded memory sold
Flashcharge on a floating gate256 (Mythic)lowslow, high-voltage writesMythic products
SRAM (digital)ordinary SRAM plus logicexactunlimitedlower density, needs powerd-Matrix, Axelera
Capacitorschargehigh precisionunlimitedareaEnCharge EN100
Molecular filmarrangement of charge in molecules16,520still being establishednew material, not yet in a factoryresearch

A record for levels: the molecular memristor

The result

In September 2024, a team at the Indian Institute of Science, led by Sreetosh Goswami with Navakanta Bhat, published a striking paper in Nature: "Linear symmetric self-selecting 14-bit kinetic molecular memristors".

PropertyReported value
Distinct conductance levels16,520
Resolution14 bits
How the level moveslinear and symmetric, in equal steps up and down
Energy efficiencyabout 4.1 TOPS/W at 14-bit precision, as reported by the institute; the paper reports about 460 times less energy than a digital computer on its test tasks
Demonstrationa 64 × 64 crossbar with no separate selector transistors, working as an AI accelerator beside an ordinary digital system
Signal-to-noise ratioabove 73 dB, very clean for an analog cell

Why 16,520 levels matter

Most analog crossbars get about 3–8 useful bits per cell. In 2023, a team at the University of Southern California and the start-up TetraMem showed 2,048 levels (11 bits) in RRAM cells built on a standard chip. The molecular device reached 14 bits, about eight times as many levels.

The second exciting word is linear. To train a network on the chip, a weight must go up or down by the same small step every time. Most RRAM and phase-change cells jump at first and then saturate. This device moves in equal steps in both directions, which is exactly what learning on the chip needs.

How it works

The film is a few tens of nanometres of a ruthenium complexa molecule with one ruthenium metal atom at its centre, wrapped in organic groups called ligands. These molecules can hold electrons in several stable arrangements.

  1. A voltage pulse shifts ions and electrons between positions in the molecules.
  2. Each arrangement gives electrons a slightly different path, so a different conductance.
  3. The switching follows zeroth-order kineticsa process whose speed stays constant, no matter how far it has already gone: the rate of change is steady and predictable.
  4. So each pulse nudges the conductance by the same small step.

Most memristors behave like a door that slams open or shut. This one is like a dimmer switch that turns exactly one click with each pulse.

What comes next

The team has spoken publicly about turning the device into a product. That journey, from a beautiful array in a research lab to a chip from a factory, is the hardest part of any new memory, and it takes years.

The open questions are the ones every new device faces: how millions of cells behave on a real chip, how many of them work (the yield), independent tests by other laboratories, how a factory adds a new molecular material safely, and the cost of converters precise enough to read 14 bits. It is a lovely result, and the next few years will show how far it travels.


Why analog is hard

The crossbar idea fits on a napkin. Making millions of cells behave is another matter. Here are the main challenges, each with a team somewhere working on it.

1. Limited precision

IBM's 64-core phase-change chip, published in 2023, reached an effective precision of about 3–4 bits for a matrix-vector multiply. Most analog systems use 4–8-bit weights. The NeuRRAM chip, from Stanford, the University of California San Diego and Tsinghua University, matched software accuracy with 4-bit weights. That is plenty for many inference tasks. Training needs more, often 16 bits or more for the small adjustments called gradientsthe small corrections computed during training that say which way, and how much, to nudge each weight.

2. Noise

Each read of a cell gives a slightly different current. Atoms in a filament jiggle, electrons get trapped and released, and heat adds random noise. In a digital chip, a 1 is always a 1. In an analog chip, every answer carries a small error.

3. Drift

Weights change over time. Phase-change resistance creeps upward, RRAM filaments relax, and flash slowly leaks charge. IBM handles this with regular calibration and a global correction factor applied to all cells at once.

4. Differences between cells

Two "identical" cells given the same pulse land at different conductances. So chips use write-verify: write, read back, correct, and read again. It works, but it makes programming slow.

5. Updates that are not linear

For training on the chip, weights must move up and down by equal steps. Most devices jump at first and then flatten out. IBM researchers developed training methods that tolerate this lopsidedness; the molecular device above solves it in the material itself.

6. Wire resistance and stray currents

  • Voltage drop: the metal wires have some resistance, so along a long row the voltage sags and the far cells see a little less.
  • Sneak paths: in a bare grid, current can leak through cells you did not mean to use.
  • The fixes: add one transistor to each cell, a design called 1T1Rone transistor, one resistor: a memory cell with its own switch so unused cells stay isolated, and keep tiles small, for example 256 × 256.

7. The converters

ADCs and their opposites, DACsdigital-to-analog converters: circuits that turn a number into a voltage, are expensive in energy and chip area. In many analog designs they take a large share, often quoted as more than half. Each extra bit of converter precision costs much more energy. This is why some of the best analog designers in the world work on converters, not on the grid.

8. Endurance

Each write wears a device a little. Flash survives roughly 10⁴–10⁵ writes, phase-change about 10⁸. Inference writes the weights once, so that is fine. Training changes each weight millions to billions of times, which most devices cannot yet survive.

9. Fitting into a factory

New memory materials go into the back end of linethe layers of metal wiring built on top of the transistors, late in chip manufacturing, the wiring layers above the transistors. Processing there must stay below about 400 °C, the new material must not contaminate the factory, and every new material starts with low yield (see chapter 9 of the other book).

10. The rest of the model is digital

In a transformerthe neural-network design behind today's large language models, many steps stay digital: softmax, normalisation and the attention step that compares tokens with each other. Attention multiplies two sets of numbers that change for every token, so a crossbar holding fixed weights cannot help there. It helps with the fixed layers. By Amdahl's lawthe rule that speeding up part of a job can never speed up the whole job more than the remaining part allows, the digital part limits the overall gain.

11. Model size

Analog weights live in place, so a model needs at least one cell per weight, or two with the positive and negative pair. A model with 70 billion weights needs about 140 billion cells. IBM's 2023 speech chip held about 35 million phase-change devices.

Why most analog AI is still in the lab

Each problem above has a solution. The hard part is solving all of them at the same time: accuracy, yield, cost and software. Meanwhile digital chips keep improving. They moved from 16-bit to 8-bit and 4-bit numbers, and each step narrows analog's lead. It is a race between two excellent ideas, and both sides keep getting better.


Comparing energy claims fairly

The units

Energy claims in this field usually come in TOPS/Wtera-operations per second per watt: trillions of operations for each joule of energy. A handy conversion:

  • 1 TOPS/W means 1 picojoule per operation.
  • One MACmultiply-accumulate: one multiply followed by one add, counted as two operations counts as two operations.
  • So 10 TOPS/W is 100 femtojoules per operation.

The numbers

SystemEnergy per operation (approx.)Note
NVIDIA H100, 16-bit, denseabout 0.7 pJ989 trillion operations per second at 700 W (2022)
NVIDIA B200, 8-bit, denseabout 0.22 pJ4.5 thousand trillion per second at 1,000 W (2024)
Molecular memristor chip, 14-bitabout 240 fJ4.1 TOPS/W, as reported
Mythic M1108, 8-bitabout 110 fJ35 TOPS at about 4 W (2020)
EnCharge EN100, 8-bitabout 40 fJover 200 TOPS at 8.25 W, company figures (2025)
Brain, one synaptic eventabout 20–300 fJ (estimate)see chapter 11
Go deeper: turning TOPS/W into energy per operation

Energy per operation = power ÷ operations per second. For the H100: 700 W ÷ 0.989 × 10¹⁵ per second ≈ 0.71 pJ. For the EN100: 8.25 W ÷ 200 × 10¹² per second ≈ 41 fJ. For the molecular chip: 1 ÷ 4.1 × 10¹² per joule ≈ 244 fJ. A femtojoulefJ: a thousandth of a picojoule (10⁻¹⁵ J) is a thousandth of a picojoule. Note the GPU figures are for a whole chip doing large, useful models; most analog figures are for small arrays or edge chips.

Four questions for any energy claim

  1. What precision? A 4-bit operation is much cheaper than a 16-bit one.
  2. What is included? Just the memory array, the whole chip, or a full system with memory and cooling?
  3. Compared with what? A chip from the same factory generation, or an old one?
  4. Is data movement counted? Including the converters and the movement of inputs and outputs?

Different answers can change a claim by a factor of 100. None of this is a criticism of anyone; it is just how careful comparisons work.


Research chips that showed the way

Some of the most beautiful work in this field has come from university and industry labs, step by step.

YearResultLabWhat it showed
2015A small metal-oxide memristor crossbar classifies patterns (Nature)UC Santa Barbara (Dmitri Strukov)Crossbars can run neural networks in hardware
2018Training with phase-change memory at software accuracy (Nature)IBM (Stefano Ambrogio, Geoffrey Burr)Analog training is possible with clever circuit design
2020A full memristor image-recognition network in hardware (Nature)Tsinghua University (Huaqiang Wu, He Qian)Complete memristor systems can work
2022MRAM crossbar (Nature)SamsungEven binary magnetic cells can compute in memory
2022NeuRRAM chip (Nature)Stanford, UC San Diego, TsinghuaSoftware-level accuracy on image and speech tasks with 4-bit weights
20232,048 levels in memristors on a standard chip (Nature)University of Southern California and TetraMem11 bits in one RRAM cell
202364-core phase-change chip, 14 nm (Nature Electronics)IBM Research Zurich (Manuel Le Gallo, Abu Sebastian)64 cores of 256 × 256 cells; up to 63.1 TOPS; 92.8% on a standard image test (CIFAR-10)
2023Analog speech-recognition chip (Nature)IBM (Stefano Ambrogio and colleagues)35 million phase-change devices on one chip; up to 12.4 TOPS/W; a projected system about 14 times more efficient than the best published comparable systems
202414-bit molecular memristor (Nature)Indian Institute of Science (Sreetosh Goswami, Navakanta Bhat)16,520 levels with linear, symmetric updates

Computing with light

How a photonic chip multiplies

A photonicusing light instead of electric current to carry and process signals chip guides light through tiny channels called waveguidesnarrow strips of glass-like material on a chip that guide light, the way a wire guides current, built in an ordinary silicon factory. It is the same technology as the optical links inside data centres (see chapter 13 of the other book).

A 300 mm silicon photonics wafer that shows rainbow colours
A 300 mm silicon photonics wafer. Each rectangle is one chip with waveguides, made in a normal silicon fab. Photo: Ehsanshahoseini, CC BY-SA 4.0, via Wikimedia Commons.
  1. Lasers encode each input as the brightness or phase of light in one waveguide.
  2. The light passes through a mesh of Mach–Zehnder interferometerstiny devices that split light into two paths, shift one slightly, and recombine them; the shift sets how much light comes out. Each one's setting acts as a weight.
  3. The brightness in each output waveguide is one number of the matrix-vector product.
  4. Light detectors turn the light back into electric current.

The multiplication happens as the light passes through, and the optical part uses very little energy.

The MIT start

In 2017, Yichen Shen, Nicholas Harris, Dirk Englund, Marin Soljačić and colleagues at MIT published "Deep learning with coherent nanophotonic circuits" in Nature Photonics, and predicted big gains in speed and energy. The same year, Harris co-founded Lightmatter and Shen co-founded Lightelligence.

Why light is difficult

  • No easy non-linearity. Light beams pass through each other without interacting in ordinary materials. Neural networks need a non-linear step between layers, so the signal must return to electronics for each layer.
  • Conversion costs. Turning electrical signals into light and back takes a real share of the energy.
  • Memory is electronic. Weights and intermediate results still live in ordinary memory chips.
  • Precision and size. Temperature and noise shift the result, and an interferometer is large compared with a transistor.

2025: a milestone and a change of direction

In April 2025, Lightmatter reported in Nature a photonic processor that ran real models, including ResNet for images and BERT for language, at close to electronic precision. It was a genuine scientific milestone.

At the same time, the business moved somewhere wonderfully practical. AI clusters need to move enormous amounts of data between chips, and light is superb at that. So most photonics companies now lead with connections:

CompanyStarted withLeads with in 2026
Lightmatter (USA)photonic calculationoptical connections between chips, such as its Passage photonic interposer
Lightelligence (USA)optical calculationoptical connections for memory and an optical circuit switch
iPronics (Spain)programmable photonic chipsan optical circuit switch for AI data centres
Q.ANT (Germany)photonic calculationstill offers a photonic processor; its machines run beside conventional processors at the Leibniz Supercomputing Centre (first generation from July 2025, second from March 2026)

Light already earns its keep moving data. Light for calculation is still an exciting research frontier.


Superconductors: very fast, very cold

A Josephson junctiona very thin insulating layer between two superconductors; it can switch in trillionths of a second using tiny energy switches in picoseconds with almost no energy. The catch is temperature: it works only at about 4 kelvin, or −269 °C. The cooler uses far more power than the circuit saves, so superconducting logic makes sense mainly for very large systems.

Micrograph of a superconducting chip with long folded lines of junctions
A superconducting chip from the US National Bureau of Standards (now NIST). The folded lines hold 3,020 Josephson junctions in series. It operates only at approximately 4 K. Photo: NBS, public domain, via Wikimedia Commons.

At NIST in the United States, Jeff Shainline, Sonia Buckley, Adam McCaughan and colleagues explore a delightful idea: superconducting optoelectronic networks, where single particles of light carry spikes between artificial neurons, superconducting detectors catch them, and Josephson circuits add them up. It is long-term research with a bold vision of brain-scale hardware.


Who makes these devices

New memory devices are built in the same factories as ordinary chips (see chapter 6 and chapter 7 of the other book).

Factory or labRole
TSMCOffers embedded RRAM and MRAM on some specialty processes
GlobalFoundries22-nanometre process with embedded MRAM
Samsung FoundryEmbedded MRAM on 28 nanometres since 2019
STMicroelectronicsEmbedded phase-change memory on 28 nanometres for car microcontrollers
DB HiTek, Texas Instruments and othersRRAM licensed from Weebit Nano on mature processes
imec (Belgium) and CEA-Leti (France)Shared research lines for RRAM, FeFET, MRAM and photonics

One fact is easy to miss. Embedded RRAM, MRAM and phase-change memory are already commercial, as memory. They replace embedded flash in microcontrollers at nodes where flash stops shrinking. That steady business pays for learning about the materials, and analog AI can build on the same processes later.


The landscape in 2026

CompanyTechnologyWhere it stands
Mythic (USA)Analog compute in flashSold the M1108 (2020); came through a hard funding period in 2022–2023; raised USD 125 million in December 2025 for its next generation of chips
EnCharge AI (USA)Charge-domain analog with capacitorsRaised a USD 100 million Series B (2025); announced the EN100 for laptops and workstations
d-Matrix (USA)Digital in-memory compute in SRAMCorsair accelerator shipping to customers; raised USD 275 million at a USD 2 billion valuation (November 2025)
Sagence AI (USA)Analog in flash for generative AIDescribed its work publicly in late 2024
TetraMem (USA)Multi-level RRAMEvaluation kit used by other labs in published papers
Weebit Nano (Israel and Australia)Embedded RRAM licencesLicence with Texas Instruments (December 2025) and work with other foundries; early licence revenue
IBM ResearchPhase-change analog AIResearch, plus the open-source Analog Hardware Acceleration Kit for noise-aware training

What the picture shows:

  • The in-memory chips shipping at data-centre scale in 2026 are digital.
  • Analog work focuses on the edge: laptops, cameras, drones and other devices where every watt counts.
  • Embedded memory licences earn real, steady revenue today.
  • Photonics found a booming market in optical connections.

Open questions

This is one of the most open fields in hardware. Here are the questions I find most interesting.

  • Can one device have it all? Many stable levels, low noise, no drift, linear updates, high endurance and high factory yield, all at once. Nobody has that yet. Which material gets closest?
  • Can converters get cheap enough? If the ADCs and DACs take half the energy, a better grid only helps so much. Who will design the low-power, high-precision converters that the whole field needs?
  • Can analog chips train, not just infer? Linear devices like the molecular memristor point the way. Can on-chip learning become practical at scale?
  • What about the parts that must stay digital? Attention in transformers changes with every token. Could new model designs put more of the work into fixed weights, or could analog tricks help with attention too?
  • Will light ever do the arithmetic? Photonic processors now run real models. Can they solve the non-linearity and memory problems, or will light stay the world's best data courier?
  • Could software meet the hardware halfway? Networks trained to expect noise already tolerate analog errors well. How far can noise-aware training and better compilers carry imperfect devices?

What to remember

  • On today's chips, fetching a weight costs far more energy than multiplying with it, which is why computing inside memory is so attractive.
  • In a crossbar, each weight is a conductance and each input is a voltage. Ohm's law does the multiplies, Kirchhoff's law does the sums, and the weights never move.
  • Many materials can sit at each crossing (RRAM, phase-change, ferroelectric, magnetic, flash, capacitors, molecules), and each has its own strengths and weaknesses.
  • The hard parts are precision, noise, drift, converters and the digital parts of a model. Solving them all at once is the real challenge, and digital chips keep improving too.
  • Light is already superb at moving data between chips; light for calculation remains an exciting frontier.

Sources

  • Horowitz, M. (2014). "Computing's energy problem (and what we can do about it)." ISSCC 2014, pp. 10–14. 45 nm energy table (8-bit add 0.03 pJ, 8-bit multiply 0.2 pJ, 32-bit float multiply 3.7 pJ, DRAM 1.3–2.6 nJ per 64-bit access). https://doi.org/10.1109/ISSCC.2014.6757323
  • Chua, L. O. (1971). "Memristor—the missing circuit element." IEEE Trans. Circuit Theory 18(5):507–519. https://doi.org/10.1109/TCT.1971.1083337
  • Chua, L. O. & Kang, S. M. (1976). "Memristive devices and systems." Proc. IEEE 64(2):209–223. https://doi.org/10.1109/PROC.1976.10092
  • Strukov, D. B., Snider, G. S., Stewart, D. R. & Williams, R. S. (2008). "The missing memristor found." Nature 453:80–83. https://www.nature.com/articles/nature06932
  • Sharma, D., Rath, S. P., Kundu, B. et al., Goswami, S. (2024). "Linear symmetric self-selecting 14-bit kinetic molecular memristors." Nature 633:560–566. 16,520 levels, 64 × 64 selector-less crossbar, >73 dB SNR, ~460× less energy than digital on test tasks. https://www.nature.com/articles/s41586-024-07902-2 . The 4.1 TOPS/W figure is from the institute's press coverage at publication.
  • Rao, M., Yang, J. J. et al. (2023). "Thousands of conductance levels in memristors integrated on CMOS." Nature 615:823–829. 2,048 levels. https://pubmed.ncbi.nlm.nih.gov/36991190/
  • Le Gallo, M., Sebastian, A. et al. (2023). "A 64-core mixed-signal in-memory compute chip based on phase-change memory for deep neural network inference." Nature Electronics 6:680–693. Up to 63.1 TOPS (low-precision mode); 92.81% CIFAR-10. https://doi.org/10.1038/s41928-023-01010-1 ; summary: https://techxplore.com/news/2023-08-ibm-core-mixed-signal-in-memory-chip.html
  • Ambrogio, S. et al. (2023). "An analog-AI chip for energy-efficient speech recognition and transcription." Nature 620:768–775. 35 million PCM devices; up to 12.4 TOPS/W; projected system ~14× the best MLPerf submissions. https://doi.org/10.1038/s41586-023-06337-5
  • Wan, W., Wong, H.-S. P., Cauwenberghs, G. et al. (2022). "A compute-in-memory chip based on resistive random-access memory." Nature 608:504–512. https://doi.org/10.1038/s41586-022-04992-8
  • Yao, P., Wu, H., Gao, B. et al., Qian, H. (2020). "Fully hardware-implemented memristor convolutional neural network." Nature 577:641–646. https://doi.org/10.1038/s41586-020-1942-4
  • Jung, S. et al. (2022). "A crossbar array of magnetoresistive memory devices for in-memory computing." Nature 601:211–216. https://doi.org/10.1038/s41586-021-04196-6
  • Shen, Y., Harris, N. C. et al., Englund, D., Soljačić, M. (2017). "Deep learning with coherent nanophotonic circuits." Nature Photonics 11:441–446. https://doi.org/10.1038/nphoton.2017.93
  • Ahmed, S. R. et al. (2025). "Universal photonic artificial intelligence acceleration." Nature 640:368–374. https://doi.org/10.1038/s41586-025-08854-x
  • Lightmatter (16 October 2024). Series D, USD 400 million at USD 4.4 billion valuation (press release). https://lightmatter.co/
  • Q.ANT press releases: NPU 2 (18 November 2025); systems at the Leibniz Supercomputing Centre (July 2025; March 2026). https://qant.com/press-releases/
  • EnCharge AI press releases: Series B (13 February 2025) https://www.businesswire.com/news/home/20250213156276/en/ ; EN100 (29 May 2025) https://www.businesswire.com/news/home/20250529108055/en/
  • d-Matrix funding, USD 275 million at USD 2 billion (November 2025). https://www.datacenterdynamics.com/en/news/chip-startup-d-matrix-raises-275m-against-2bn-valuation/
  • Mythic, USD 125 million round led by DCVC (17 December 2025). https://siliconangle.com/?p=725484
  • Weebit Nano (29 December 2025). Licence agreement with Texas Instruments. https://www.weebit-nano.com/news/press-releases/weebit-nano-secures-a-license-agreement-with-texas-instruments/
  • NVIDIA H100 product page (989 TFLOPS dense BF16, up to 700 W). https://www.nvidia.com/en-us/data-center/h100/
  • NIST, Superconducting optoelectronic networks programme. https://www.nist.gov/programs-projects/superconducting-optoelectronic-networks

Not independently verified for this chapter (stated from widely reported values): Intel's 2022 Optane wind-down, STMicroelectronics' 28 nm embedded PCM (2018), Samsung's 28 nm embedded MRAM (2019), the phase-change drift exponent of about 0.1, device endurance ranges, Mythic M1108 specifications, and the claim that converters often take more than half of an analog chip's energy.


Previous: 13. Neuromorphic chips · Next: 15. Living computers