A Precision-Optimized Fixed-Point Near-Memory Digital Processing Unit for Analog In-Memory Computing

Elena Ferro, Athanasios Vasilopoulos, Corey Lammie, Manuel Le Gallo, Luca Benini, Irem Boybat, Abu Sebastian · DOI

Abstract

Analog In-Memory Computing (AIMC) offers significant efficiency gains for neural network inference but requires digital post-processing to mitigate analog non-idealities. Traditional floating-point units (FP16) are area-intensive and create bottlenecks. We present a specialized fixed-point Near-Memory Processing Unit (NMPU) that achieves a 139× speedup and 7.8× area reduction with minimal accuracy loss (<0.4%) on ResNet benchmarks.

Introduction

Analog In-Memory Computing (AIMC) is a promising frontier for AI because it performs Matrix-Vector Multiplications (MVM) directly within memory arrays, such as Phase Change Memory (PCM). This approach bypasses the "von Neumann bottleneck" where data constantly shuffles between processor and memory. However, analog computing is inherently noisy due to circuit mismatches, temperature changes, and non-ideal Analog-to-Digital Converters (ADCs).

To maintain neural network accuracy, every analog output requires digital post-processing, including affine correction, Batch Normalization (BN), and activation functions like ReLU. Historically, designers utilized 16-bit Floating Point (FP16) units for this task. However, FP16 units are physically large and slow, forcing many analog columns to share a single digital unit, which creates a new serial bottleneck and negates the speed advantages of the analog core.

NMPU Architecture and Methodology

Researchers from IBM and ETH Zurich proposed a specialized fixed-point NMPU architecture small enough to be placed directly adjacent to memory columns. The design was synthesized in a 14nm CMOS process to provide realistic power, performance, and area (PPA) metrics.

Figure 1: (a) Integration of NMPUs within an AIMC tile and (b) the internal dual-branch architecture of the NMPU.

As shown in Figure 1, the NMPU features a dual-branch architecture that processes positive and negative currents from the ADCs separately before summing them. Precision was optimized by analyzing real-world ADC transfer curves from a physical 256×256 PCM-based AIMC chip. The team determined that 10-bit unsigned inputs and 8-bit signed outputs were sufficient, avoiding the overkill of FP16 dynamic range. Furthermore, the researchers explored 15 different "cut and round" strategies to manage bit discarding, ensuring that quantization errors do not accumulate.

Key Results and Accuracy

The most significant finding is that carefully tuned fixed-point logic can achieve nearly identical accuracy to floating-point units. Because the NMPU is compact (only 3.3 kGE), the researchers could fit 64 NMPUs in the space previously occupied by a few FP16 units. This massive parallelism allows the system to process all 256 outputs of an AIMC tile in just 4 ns, compared to 558 ns for the FP16 baseline—a 139× improvement.

Figure 5: Relative quantization error across different neural network layers for various NMPU architectural configurations compared to FP16.

Validation on standard benchmarks confirmed the robustness of the design. On CIFAR-10 using ResNet9, the NMPU achieved 86.65% accuracy (a 0.12% drop from FP16). On the more complex CIFAR-100 with ResNet32, the accuracy was 65.06% (a 0.4% drop). As illustrated in Figure 5, the relative quantization error remains low across various architectural iterations (ArchA-E), proving that the "rounding" strategy is more critical for accuracy than simply increasing bit-widths.

Conclusion

The proposed NMPU demonstrates that fixed-point logic is sufficient for AIMC post-processing, offering massive gains in speed and area efficiency. While this study focused on inference, future work may explore on-chip training requirements and the integration of more complex activation functions like those found in Transformer models. Additionally, scaling these units for multi-tile, wafer-scale AI accelerators remains a key area for future research.

Summary updated

BibTeX
@inproceedings{ferro2024precision,
  author = {Elena Ferro and Athanasios Vasilopoulos and Corey Lammie and Manuel Le Gallo and Luca Benini and Irem Boybat and Abu Sebastian},
  title = {{A Precision-Optimized Fixed-Point Near-Memory Digital Processing Unit for Analog In-Memory Computing}},
  booktitle = {ISCAS},
  year = {2024},
  doi = {10.1109/iscas58744.2024.10558286},
}
Figure