In-memory computing (IMC) is a family of hardware architectures designed to relieve the defining weakness of conventional computers: the costly movement of data between memory and processor. Its two main branches differ fundamentally in how close computation sits to stored data. In near-memory computing, processing and memory are co-located on the same chip but remain distinct blocks; in true compute-in-memory, exemplified by crossbar architectures, the memory array itself performs the computation. Understanding that distinction—and why the Von Neumann bottleneck makes it matter—is essential to evaluating the hardware direction of AI systems.
Understanding the Von Neumann Bottleneck
The conventional computer follows the Von Neumann architecture, in which the processing unit and memory are physically separate. As IBM researchers explain, this architecture proved advantageous over alternative models at the time of its establishment, but its shortcomings have become increasingly visible with the rapid proliferation of artificial intelligence: shuttling data back and forth between memory and CPU comes at a high price in both energy and speed when performing AI computations.
That cost is structural, not incidental. A survey on compute-in-memory for large language model inference, published on arXiv, describes how data must be moved from its origin to processors, which severely limits performance, energy efficiency, scalability, and ultimately sustainability. This constant data movement between memory and processing units is what the literature calls the Von Neumann bottleneck—or "memory wall." Even with multiple levels of caches, GPUs and multi-core CPUs can lose the benefits of local cache due to the many transfers required to get data to compute structures, leading to significant time and energy costs.
In-Memory Computing: A Fundamental Solution
In-memory computing responds to this bottleneck by eliminating, or at least shortening, the data path between storage and computation. IBM's research program describes IMC as the most promising path for the efficient realization of deep neural networks, noting that DNNs are computationally inefficient and that insufficient compute power held back progress in the field for almost 30 years. Specialized hardware—graphics processing units and application-specific integrated circuits—has already helped unleash the recent AI revolution, and IMC extends that specialization to the memory system itself.
IMC has found application in scientific computing, database query, and machine learning, but its deepest relevance is for data-intensive AI workloads, where the cost of moving large amounts of data dominates the cost of computing on it. Because the AI boom has intensified this imbalance, per IBM's researchers, the field is now a central direction in alternative hardware architectures rather than a niche curiosity.
Near-Memory Computing: Bringing Compute Closer
Near-memory computing is the broader interpretation of IMC, often also called processing-in-memory (PIM). In these architectures, as GSI Technology—a memory-technology company working on compute-in-memory devices—explains, the compute and memory blocks are physically separate as standalone circuit blocks, even when they sit on the same chip or die. Modern AI accelerators fit this description: CPUs, GPUs, and AI ASICs integrate heterogeneous compute blocks with larger memory blocks, commonly called caches and register files.
The benefit is proximity. Compared with systems that separate compute and memory at the board level, placing them on one chip reduces the physical distance data must travel, lowering memory access latency and energy consumption. But the architectural pattern remains Von Neumann in character: data and instructions still move from memory to heterogeneous computational units, directed by a sequencer and pipelining mechanism. GSI Technology notes that in data-centric applications such as AI and machine learning, this data movement—whether at board level or chip level—remains costly in time and energy, and the problem is aggravated by the large amounts of data these applications move.
True Compute-in-Memory: Computation Within Memory
True compute-in-memory (CIM) takes the more radical step: the memory itself becomes capable of performing efficient computing operations. Rather than shortening the data path, it removes the shuttle entirely—computation happens directly within the memory array, obviating the movement of operands to a separate processing unit.
The most prominent form of true IMC, according to the Next Generation Computing overview, is crossbar computation. In a crossbar, memory devices are arranged in rows and columns, an arrangement well suited to parallelizing multiply-accumulate (MAC) operations—the arithmetic primitive underlying vector-matrix and matrix-matrix multiplications that dominate neural network inference and training. Because MAC operations can execute across the crossbar array in parallel, the approach targets significant energy efficiency gains by shifting the work from a sequential data path into the memory fabric itself.
This advantage is why CIM research concentrates on deep neural network acceleration: the network's dominant operation is exactly the one crossbars parallelize best. The approach is conceptually distinct from near-memory designs, which retain the processor-memory division and simply tighten it.
Comparative Overview of In-Memory Computing Architectures
The table below classifies the three architectural categories by their physical integration of processing and memory, and contrasts the resulting performance trade-offs for data-intensive workloads. The comparison draws its classification from GSI Technology's architectural definitions, the Next Generation Computing overview of IMC approaches, and the arXiv survey of compute-in-memory for LLM inference.
| Dimension | Von Neumann Architecture | Near-Memory Computing (PIM) | True In-Memory Computing (Crossbar CIM) |
|---|---|---|---|
| Architectural principle | Processing unit and memory are physically separated. | Compute and memory are on the same chip but remain separate standalone blocks. | The memory itself performs the computation directly within the array. |
| Proximity of compute to memory | Compute and memory are distinct, requiring data shuttling between chips. | Reduced distance versus board-level systems, but data still moves between separate on-chip blocks. | Computation occurs inside the memory array, removing the data shuttle. |
| Primary benefit | Advantageous for general-purpose computing in its era of establishment. | Lower memory access latency and energy than board-level separation. | Parallelized MAC operations within memory, targeting major energy-efficiency gains. |
| Impact on AI workloads | Cause of the memory wall: processors waste up to more than 60% of time waiting for data; AI data movement aggravates the cost. | Alleviates, but does not eliminate, the movement cost for data-heavy AI/ML workloads. | Matches the core operation of neural networks (matrix multiplication) to the hardware, aiding efficient DNN realization. |
| Key challenges | Data movement severely limits performance, energy efficiency, scalability, and sustainability. | Sequencer- and pipeline-directed data movement remains costly in time and energy as AI data volumes grow. | Depends on memory devices organized in crossbar rows and columns; integration and adoption are more radical than near-memory designs. |
The classification turns on one question: does the memory perform the computation, or does it merely sit beside it? Near-memory designs—including today's AI ASICs with their caches and register files—stay within the Von Neumann tradition and reduce the cost of moving data. Crossbar CIM abandons that tradition, achieving its parallelism by embedding the multiply-accumulate step into the memory array itself. For latency-critical workloads, near-memory integration already helps; for energy-bound matrix workloads, true CIM is the more ambitious direction.
Choosing the Right In-Memory Computing Approach for AI
For AI and data-intensive workloads, adopting an in-memory computing architecture is a response to the measured costs of the Von Neumann bottleneck—the energy and speed penalty of shuttling data between memory and processor, and the documented share of time processors lose waiting for data. The decision between the two branches rests on the desired level of integration: near-memory computing keeps processing and memory as separate on-chip blocks and reduces latency and access energy relative to traditional systems, while true compute-in-memory places the computation inside the memory array itself—exemplified by crossbar architectures that parallelize the multiply-accumulate operations neural networks depend on.
The practical indicator to watch is reduced data transfer overheads and improved energy efficiency in AI hardware benchmarks. This article has covered architectural principles only; it does not assess commercial products, market positioning, or the device-level physics of specific memory technologies beyond their computational role. When evaluating a claimed "in-memory" system, the reader can now apply the decisive test: is the compute simply on the same chip as memory, or does the memory itself do the math?
Sources
- In-memory computing could upend how computers process — IBM Research
- Compute-in-Memory Computational Devices - GSI Technology
- In-memory — NEXT Generation Computing
- Memory Is All You Need: An Overview of Compute-in-Memory Architectures for Accelerating Large Language Model Inference — ARXIV
- In-memory computing — IBM Research




