Neural-PIM: Efficient Processing-In-Memory With Neural Approximation of Peripherals

Weidong Cao, Yilong Zhao, Adith Boloor, Yinhe Han, Xuan Zhang, Li Jiang

Abstract

Processing-In-Memory (PIM) using Resistive Random-Access Memory (RRAM) crossbars offers a promising solution to the "memory wall" in AI acceleration. However, these systems are increasingly limited by a "peripheral wall," where Analog-to-Digital Converters (ADCs) and digital accumulation circuits dominate energy and area overhead. Neural-PIM addresses this by introducing a fully analog dataflow and "NeuralPeriph"—peripheral circuits approximated by neural networks. This architecture achieves up to a 5.36× improvement in energy efficiency and a 3.43× speedup over state-of-the-art designs while maintaining full inference accuracy.

The Challenge: The Peripheral Wall

Deep Learning accelerators are shifting toward PIM to minimize the energy cost of data movement. RRAM crossbars can perform Vector-Matrix Multiplication (VMM) in the analog domain, but the interface between these analog cores and digital systems is inefficient. In traditional architectures, ADCs can consume over 58% of total system energy and occupy up to 98% of the silicon area. Existing attempts to mitigate this often rely on early quantization or complex analog buffers that are highly sensitive to noise and environmental variations.

Methods: Analog Accumulation and NeuralPeriph

Neural-PIM introduces two primary innovations to overcome these bottlenecks:

1. Fully Analog Dataflow (Strategy C)

Most RRAM accelerators digitize partial sums immediately after VMM. Neural-PIM implements a novel "Shift and Add" (S+A) operation directly in the analog domain. This allows the system to accumulate results across multiple cycles and bitlines before performing a single, final quantization. By delaying the transition to the digital domain, Neural-PIM drastically reduces the number of required A/D conversions.

Comparison of accumulation strategies: Neural-PIM (Strategy C) moves accumulation into the analog domain to minimize ADC overhead.

2. Neural-Approximated Peripherals (NeuralPeriph)

To make analog accumulation robust and efficient, the authors replace traditional rigid circuits with neural approximators:

  • NNS+A: A 3-layer neural network implemented using RRAM and CMOS inverters that learns to perform the shift-and-add function.
  • NNADC: A neural-inspired quantization circuit designed for high-speed operation.
  • Hardware-Aware Training: These components are trained offline using a framework that incorporates hardware non-idealities, such as PVT (Pressure, Voltage, Temperature) variations and RRAM device noise. This ensures the peripherals are inherently robust to the imperfections of the analog substrate.

Experimental Evaluation

The architecture was evaluated against industry-standard benchmarks, including AlexNet, ResNet-50, VGG-16, and MobileNet, all trained on ImageNet with 8-bit quantization. Characterization was performed using SPICE simulations at a 32nm equivalent process node.

Key Results

Compared to state-of-the-art RRAM accelerators like ISAAC and CASCADE, Neural-PIM demonstrates significant performance gains:

  • Energy Efficiency: Neural-PIM is 5.36× more efficient than ISAAC and 1.73× more efficient than CASCADE.
  • Throughput: It achieves a 3.43× speedup over ISAAC, largely due to the reduced ADC bottleneck.
  • Accuracy: Across nine major benchmarks, Neural-PIM maintained the same inference accuracy as an ideal 8-bit software implementation, proving that neural approximation does not degrade model performance.
Performance metrics showing Neural-PIM's superior energy efficiency and accuracy robustness compared to traditional PIM architectures.

Conclusion and Future Work

Neural-PIM demonstrates that the ADC bottleneck is not an inherent limitation of PIM, but a result of premature digitization. By embracing the "Neural Paradox"—using neural networks to build the hardware that runs them—the architecture achieves unprecedented efficiency. Future work will focus on automating the mapping of these neural peripherals for diverse layer types and validating the design through physical tape-outs to account for large-scale parasitic effects.

Summary updated

BibTeX
@article{cao2022neural,
  author = {Weidong Cao and Yilong Zhao and Adith Boloor and Yinhe Han and Xuan Zhang and Li Jiang},
  title = {{Neural-PIM: Efficient Processing-In-Memory With Neural Approximation of Peripherals}},
  journal = {IEEE Trans. Computers},
  year = {2022},
  doi = {10.1109/tc.2021.3122905},
}
Figure