A Hybrid-Domain Floating-Point Compute-in-Memory Architecture for Efficient Acceleration of High-Precision Deep Neural Networks

Zhiqiang Yi, Yiwen Liang, Weidong CaoarXiv 2025

TL;DR

This paper introduces a novel hybrid-domain Compute-in-Memory (CIM) architecture that cleverly combines analog and digital circuits within the same memory cell to accelerate high-precision deep neural networks (DNNs). By strategically offloading the computationally intensive, yet less critical, part of floating-point multiplication to analog circuits and keeping the more critical addition part digital, the design achieves significant energy efficiency gains without sacrificing accuracy.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are becoming increasingly complex, demanding high computational power and memory bandwidth. Traditional architectures, like the von Neumann model, suffer from the "memory wall" – the bottleneck caused by moving data between processing units and memory. Compute-in-Memory (CIM) aims to solve this by performing computations directly within memory cells. While CIM has shown great promise for quantized (lower precision) DNNs, accelerating high-precision, floating-point (FP) DNNs, especially for training, remains a challenge. Current FP CIM solutions often rely heavily on digital circuits, leading to substantial power consumption. This paper addresses the need for an energy-efficient and accurate FP CIM architecture that can handle the demands of high-precision DNNs.

Methods

The core innovation lies in a "hybrid-domain" approach. The authors' key insight is that in floating-point arithmetic, the mantissa multiplication (sub-MUL) is computationally intensive but contributes less to the overall error, while the mantissa addition (sub-ADD) is less intensive but more critical for accuracy.

Leveraging this, they propose:

  • Hybrid-Domain CIM Macro: Integrates analog and digital CIM within the same SRAM memory cell.
  • Analog CIM for Sub-MUL: The computationally intensive mantissa sub-multiplication is handled by analog circuits. This is achieved by using a pseudo-AND gate (repurposed from digital logic) to perform the multiplication and then accumulating the results using a switched-capacitor array. This analog approach significantly reduces power consumption compared to digital multipliers.
  • Digital CIM for Sub-ADD: The more critical mantissa sub-addition is performed using digital logic (pseudo-XOR and pseudo-AND gates forming a half-adder). This ensures the accuracy of the addition operation.
  • Energy-Efficient Analog-to-Digital Conversion (ADC): A 3-bit Flash ADC is used to convert the analog results. The authors argue that selective encoding of the most significant bits (MSBs) is sufficient to maintain lossless accuracy for inference and training, minimizing the overhead of ADCs.
  • Area-Efficient Circuits: The local computing cells (LCCs) are designed to be compact, using minimal transistors, and the overall layout is optimized for symmetry and space efficiency.

Datasets

The paper evaluates the proposed architecture using the MLPerf Edge Inference Benchmark Suite v4.0. This suite encompasses a diverse range of deep learning tasks. Specific models mentioned include ResNet50, BERT-base, and RetinaNet.

Key Insights and Ideas

  • Decomposition of FP Arithmetic is Key: The critical insight that FP mantissa multiplication can be decomposed into a less critical sub-MUL and a more critical sub-ADD is the foundation of the hybrid approach.
  • Analog for the Heavy Lifting: Offloading the computationally intensive sub-MUL to analog circuits is a smart way to achieve significant power savings, as analog operations are generally more energy-efficient for certain tasks.
  • Digital for Precision: Keeping the sub-ADD in the digital domain ensures that the overall accuracy of the FP operations is maintained, mitigating the inherent noise and variability of analog circuits.
  • Selective ADC is Sufficient: The finding that a 3-bit ADC is enough to achieve lossless accuracy for inference/training is crucial. It highlights that not all parts of the computation need the full precision of a high-bit ADC, further saving power and area.
  • "Addition is More Important": This guiding principle emphasizes the strategic allocation of resources, prioritizing digital precision for addition while leveraging analog efficiency for multiplication.

Key Results

  • Energy Efficiency: The proposed hybrid-domain CIM macro achieves a 1.53x energy efficiency improvement compared to a fully digital baseline, as estimated by the energy breakdown per MAC operation.
  • Accuracy: The architecture effectively maintains inference accuracy, with only approximately 1% variation observed for ResNet and BERT models, and virtually no accuracy loss for RetinaNet. This demonstrates the "lossless accuracy" claim for inference/training.
  • Computation Error: Circuit-level simulations show minimal computation error, within a 1.51% range for the mantissa MAC operations.
  • Area Overhead: The hybrid-domain CIM mantissa unit incurs a 42.8% area overhead compared to a standard 6T SRAM cell, which is considered compact and efficient.

Limitations and Future Work

  • FP8 Focus: The proposed architecture is demonstrated using the FP8 format (specifically E4M3). While FP8 is gaining traction, future work could explore its applicability to other FP formats (e.g., FP16, BF16).
  • Circuit-Level Simulations: The results are based on circuit-level simulations. While comprehensive, real-world silicon validation would be the next step to confirm these findings.
  • Training vs. Inference: While the paper claims lossless accuracy for inference/training, the primary focus of the evaluation seems to be on inference accuracy. Further detailed analysis of training performance with the proposed architecture would be beneficial.
  • Analog Variability: The paper acknowledges the resilience of DNNs to minor errors, but the long-term impact of analog circuit variability and aging on sustained high-precision DNN performance could be a subject for future investigation.

Summary updated

Abstract

Compute-in-memory (CIM) has shown significant potential in efficiently accelerating deep neural networks (DNNs) at the edge, particularly in speeding up quantized models for inference applications. Recently, there has been growing interest in developing floating-point-based CIM macros to improve the accuracy of high-precision DNN models, including both inference and training tasks. Yet, current implementations rely primarily on digital methods, leading to substantial power consumption. This paper introduces a hybrid domain CIM architecture that integrates analog and digital CIM within the same memory cell to efficiently accelerate high-precision DNNs. Specifically, we develop area-efficient circuits and energy-efficient analog-to-digital conversion techniques to realize this architecture. Comprehensive circuit-level simulations reveal the notable energy efficiency and lossless accuracy of the proposed design on benchmarks.
BibTeX
@misc{yi2025hybrid,
  author = {Zhiqiang Yi and Yiwen Liang and Weidong Cao},
  title = {{A Hybrid-Domain Floating-Point Compute-in-Memory Architecture for Efficient Acceleration of High-Precision Deep Neural Networks}},
  year = {2025},
  eprint = {2502.07212},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.07212},
}
Figure