For decades, digital computing has maintained a strict division of labor: the processor computes, and the memory stores. This is the classic von Neumann architecture. To execute an instruction, a traditional CPU or GPU must fetch the instruction from memory, fetch the required data, perform the operation inside its logic units, and write the result back.
This setup works beautifully for control-heavy, sequential tasks. However, modern deep learning flips this dynamic entirely. A neural network inference pass does not require complex sequential logic; instead, it demands billions of simple matrix-vector multiplications. The actual arithmetic (multiplying two numbers) is computationally trivial and highly optimized. The real bottleneck is the physical act of hauling billions of weights across the narrow bus connecting the memory chip to the processor.
This structural limitation is known as the von Neumann bottleneck or the memory wall. As highlighted by Chaofei Yang et al. in Neuromorphic Computing Systems: From CMOS To Emerging Nonvolatile Memory and Abu Sebastian in 2022 roadmap on neuromorphic computing and engineering, the energy and time consumed by moving data back and forth across this bus dwarf the energy spent on the actual computation. To scale artificial intelligence efficiently, we must move away from moving data to the processor, and instead perform computation directly where the data resides: inside the memory itself.
The Intuition of Compute-in-Memory
To understand why Processing-in-Memory (PIM) or Compute-in-Memory (CIM) works, we can look at how a standard memory crossbar array can be repurposed to perform mathematical operations using basic laws of physics.
In a conventional memory chip, you read a single value at a time by activating a specific row and reading the charge on a specific column. In a CIM crossbar array, the memory cells are replaced with programmable resistive elements. Each element has a specific physical conductance ($G$), which represents the weight of a neural network.
Instead of reading cells one by one, we can activate all rows simultaneously by applying analog voltages ($V$) to them. These voltages represent the input vector. When an input voltage passes through a memory cell, Ohm’s Law ($I = V \times G$) dictates that the resulting electrical current ($I$) is exactly proportional to the product of the voltage and the conductance.
As these currents flow down the vertical column lines, they naturally merge. According to Kirchhoff’s Current Law, the total current leaving the bottom of a column is simply the sum of all individual currents flowing into it:
$$I_{\text{total}} = \sum_{i} V_i \cdot G_i$$
In a single physical instant, the crossbar array executes a complete vector-matrix multiplication. The data never moves; the weights stay fixed inside the memory cells, and the physics of the circuit performs the math.
Hardware Substrates: From Memristors to Photonics
Implementing this concept requires novel hardware materials that can reliably store analog or multi-bit states while acting as computational elements.
Memristors and Resistive RAM
Memristors are nanoscale devices that change their electrical resistance based on the history of voltage applied to them, effectively mimicking biological synapses. However, individual nanoscale devices suffer from inherent physical noise and manufacturing variations. To solve this, Irem Boybat et al. developed a multi-memristive synaptic architecture in Neuromorphic computing with multi-memristive synapses that uses a team of multiple memristors to represent a single weight, mitigating device-level noise.
Researchers have successfully deployed these devices across various scales. Ruibin Mao demonstrated a complete Memory-Augmented Neural Network on a memristive crossbar platform in Experimentally validated memristive memory augmented neural network with efficient hashing and similarity search, turning device stochasticity into an advantage for data hashing. For edge deployments, Zhekang Dong et al. built modular circuits using $\text{Ag/TiO}_x$ nanobelt memristors for real-time sentiment analysis in Design and Implementation of a Flexible Neuromorphic Computing System for Affective Communication via Memristive Circuits, while Wei He et al. engineered electrical spikes to implement dual-mode biological learning rules on a single iron-oxide memristor in Enabling an Integrated Rate-temporal Learning Scheme on Memristor.
Phase-Change Materials (PCM)
Phase-change materials switch between amorphous (high resistance) and crystalline (low resistance) states when heated. They offer excellent stability for large-scale models. An Chen et al. demonstrated this capability in Demonstration of transformer-based ALBERT model on a 14nm analog AI inference chip, running a large-scale Transformer model on a 14nm analog chip and proving that analog CIM can achieve near-software accuracy on complex language tasks.
Taking this concept to the optical domain, Carlos Rı́os et al. demonstrated an all-photonic in-memory computing system in All-Photonic in-Memory Computing Based on Phase-Change Materials. By integrating PCMs onto optical waveguides, the authors performed scalar multiplications using light pulses, bypassing electronic bottlenecks entirely.
Ferroelectrics and Flash
Ferroelectric Field-Effect Transistors (FeFETs) utilize spontaneous electrical polarization to store states with ultra-low power consumption. Mahdi Benkhelifa and Kai Ni designed a split-gate FeFET architecture in Dual-Bit FeFET for enhanced storage and endurance that doubles data storage density. In Ferroelectric compute-in-memory annealer for combinatorial optimization problems, Xunzhao Yin et al. leveraged multi-bit ferroelectric CIM arrays to accelerate complex combinatorial optimization tasks.
Even standard non-volatile storage can be re-engineered for computation: Sangwoo Hwang and Yongjoo Jang proposed re-architecting 3D NAND Flash arrays in Dissecting and Re-architecting 3D NAND Flash PIM Arrays for Efficient Single-Batch Token Generation in LLMs to offload the memory-heavy token generation phase of Large Language Models, bypassing the DRAM capacity wall.
Architectural and Spatial Alternatives
Breaking the memory wall does not always require analog crossbars. It can also be achieved by changing how digital memory is physically arranged or how data flows through a system.
3D Integration
Instead of spreading memory and logic chips across a flat, two-dimensional circuit board, 3D integration stacks memory directly on top of logic using vertical interconnects. Boxun Xu introduced a 3D-integrated hardware accelerator for Spiking Transformers in Spiking Transformer Hardware Accelerators in 3D Integration, utilizing face-to-face bonding to slash memory latency by up to 74%. To make these architectures manufacturable, Wenhui Wang et al. developed high-performance ZnO thin-film transistors in CMOS backend-of-line compatible memory array and logic circuitries enabled by high performance atomic layer deposited ZnO thin-film transistor that can be fabricated at low temperatures directly on top of standard CMOS back-end-of-line layers.
Distributed Local Memory and Dataflow
Another approach is to eliminate centralized memory entirely, distributing it as tiny local scratchpads across thousands of independent processing cores. Jan Finkbeiner et al. demonstrated the power of this paradigm in Harnessing Manycore Processors with Distributed Memory for Accelerated Training of Sparse and Recurrent Models, showing that Graphcore’s Intelligence Processing Unit (IPU)—which relies on massive fine-grained distributed local memory—can train Spiking Neural Networks up to 20 times faster than traditional GPUs.
Similarly, Huanchen Zhang discussed in The End of the x86 Dominance in Databases? how reconfigurable dataflow architectures like Intel's Configurable Spatial Accelerator (CSA) break away from sequential instruction fetching to optimize data-intensive database analytics.
Algorithmic Co-Design
To fully unlock the benefits of in-memory computing, the software and underlying logic must be redesigned to match the physical constraints of the hardware.
Instead of forcing hardware to perform high-precision floating-point math, networks can be adapted into hardware-native structures. Jingkai Hong et al. proposed treating neural networks as massive digital logic circuits rather than mathematical equations in Algorithms and Hardware for Efficient Processing of Logic-based Neural Networks, eliminating scratchpad memory bottlenecks.
Following a similar philosophy, Yaman Umuroglu et al. introduced LogicNets: Co-Designed Neural Networks and Circuits for Extreme-Throughput Applications, a methodology that maps highly quantized neurons directly onto FPGA truth tables. To eliminate arithmetic circuits entirely, Jie Ran et al. developed PECAN in PECAN: A Product-Quantized Content Addressable Memory Network, an architecture that replaces power-hungry multiplications with simple table lookups inside content-addressable memory.
By co-designing hardware substrates, spatial architectures, and network algorithms, this research direction bypasses the data-movement bottlenecks that have constrained computing for decades, paving the way for highly efficient, data-centric intelligent systems.