Enabling Retraining-Free Accurate Inference in Analog Compute in Memory Accelerators
George Karfakis, Puneet Gupta
Abstract
Analog compute-in-memory (CIM) accelerators compute matrix-vector products directly inside memory arrays, eliminating weight movement and promising order-of-magnitude gains in inference efficiency. However, converter and device errors make pretrained models unusable on these arrays, and hardware-aware retraining is costly. We enable retraining-free, accurate inference of pretrained models on simple analog arrays with low-cost, shared calibration. Our key observation is that analog error depends on how each layer is represented on the array, and that this representation can be changed offline without changing the computation. We center the inputs and apply Hadamard rotations designed for analog arrays, which keep shared reference errors spread and confine input mixing to each array. Across CNNs, vision transformers and LLMs up to 14B parameters on PCM and ReRAM, the method brings vision models and larger LLMs within a few points of floating-point accuracy and matches or approaches published hardware-aware training without training any weights. On ReRAM with 6-bit ADCs, it restores ViT-B/16 from 37.4% to 82.9% and Phi-4 from 27.0% to 72.2%, both within 2.2 points of floating-point accuracy.
Create a lesson
Related papers
Chimera: A Configurable LLM Decode Accelerator Architecture with Compute-Memory-Floorplan Co-Design for HBM-Equipped Multi-Die FPGAs
Shared title terminology · Zhiheng Chen, Yifan Zhang, Yu-An Chou et al.
CHARMING: Parallel Edge AI Acceleration Across Tensor Processing and In-Memory Computation
Shared title terminology · Md Omar Faruque, Jingang Jin, João Paulo C. de Lima et al.
Continuous Kinetic Model of Counterion-Mediated Redox Switching in 14-Bit Molecular Memristors for Analog In-Memory Computing
Shared title terminology · Logan Larsh, Dhiman Biswas, Nazmus Saadat As-Saquib et al.
SMART-AIMC: Sensitivity-Aware Mixed ADC Resolution with Fine-Grained Tunability for Analog In-Memory Computing
Shared title terminology · Yung-Chin Chen, Ourania Stouraiti, Naveen Verma
SLICE-CiM: Selective Layer-wise Inference Control Engine with Confidence-Based Early Exit for SRAM based Digital Compute-in-Memory
Shared title terminology · Pratham Sharma, Mohd Faisal Khan, Santosh Kumar Vishvakarma
Exploring the Potential of Ultra-Low-Bit Inference on LLM Accelerators
Shared title terminology · Hao Wang, Yang Shi, Jiageng Shi et al.