Introduction
The current era of artificial intelligence is defined by "Neural Scaling Laws," where model performance scales predictably with parameter count and training data. As Large Language Models (LLMs) grow from millions to hundreds of billions of parameters, they place unprecedented demands on hardware infrastructure.
Traditional computing architectures, based on the von Neumann model, are hitting a "memory wall." The physical separation between the processor (GPU/CPU) and memory (DRAM) creates a bottleneck where data movement consumes significantly more time and energy than the actual computation. In LLM inference, processors can spend up to 60% of their cycles waiting for data. To sustain the AI revolution, a paradigm shift is required: moving computation directly into the memory.
Compute-in-Memory (CIM) Architectures
Compute-in-Memory (CIM) represents a fundamental architectural shift. Instead of shuttling data to a central logic unit, CIM performs Matrix-Vector Multiplications (MVM)—the core operation of neural networks—directly within the memory array. By leveraging physical principles like Ohm’s Law and Kirchhoff’s Current Law, CIM can execute these operations in a single step, effectively achieving O(1) time complexity for operations that are traditionally O(n²).
The survey explores several key memory technologies:
- Volatile Memory (SRAM): Offers high speed and manufacturing maturity but suffers from low density and significant leakage power.
- Non-Volatile Memory (NVM): Emerging technologies such as Resistive RAM (ReRAM), Phase Change Memory (PCM), and Ferroelectric FETs (FeFETs) allow for high-density, "instant-on" AI chips by storing weights as physical conductance levels.
Challenges in Transformer Acceleration
While CIM is highly effective for static weights, Transformers introduce unique challenges. Unlike simple classifiers, Transformers rely on dynamic workloads, specifically the Multi-Head Attention (MHA) mechanism.
As shown in the figure above, the computational profile of a Transformer shifts as the sequence length grows. While feedforward layers are significant for shorter sequences, MHA becomes the primary bottleneck for longer contexts. This necessitates heterogeneous CIM architectures that can handle both the massive, static weights of the model and the fast-changing Query, Key, and Value vectors of the attention mechanism.
Key Insights and Performance Gains
A critical challenge in analog CIM is the "ADC Tax." Analog-to-Digital Converters (ADCs) can account for over 80% of chip area and nearly 60% of energy consumption. Research is currently focused on reducing ADC precision requirements, leveraging the inherent noise tolerance of LLMs. We don't need perfect 32-bit floating-point precision; 4-bit or even 2-bit weights are often sufficient if the software is designed to handle hardware imperfections.
The performance benefits of CIM are substantial. Synthesized results from cutting-edge projects indicate:
- Throughput: Accelerators like IMCAT and ATT have demonstrated up to 200x speedups over traditional GPUs for BERT inference.
- Efficiency: The HARDSEA architecture achieved energy efficiency gains of up to 1894x compared to high-end consumer GPUs like the NVIDIA RTX 3090.
Future Outlook
Despite its potential, several hurdles remain before CIM sees widespread commercial adoption. Scaling these architectures to support models with 175B+ parameters requires advanced multi-chip networking. Furthermore, analog non-idealities such as resistance drift and thermal noise require robust hardware-software co-design and specialized Electronic Design Automation (EDA) tools. As manufacturing processes for NVMs mature, CIM is poised to become the cornerstone of next-generation AI hardware, finally breaking the memory wall.
Summary updated