Introduction
Deep Neural Network (DNN) accelerators increasingly leverage Processing-in-Memory (PIM) with ReRAM crossbars to overcome the "memory wall." By performing computations directly within memory, these mixed-signal designs offer significant speed and energy efficiency. However, they are highly susceptible to hardware imperfections, such as process variations, thermal noise, and programming errors in analog components. These variations can cause model accuracy to plummet—for instance, from 95% in software to as low as 10% on real hardware.
Previous attempts to mitigate this, such as Individual Weight Selection (IWS), moved sensitive weights to digital units. However, these methods were often "hardware-blind," resulting in irregular sparsity that required costly input data replication across analog and digital units, leading to excessive data movement and area overhead.
The HybridAC Framework
To address these challenges, we present HybridAC, an end-to-end co-design framework that harmonizes a novel selection algorithm with a specialized hardware architecture.
Input Channel-wise Weight Selection
Unlike prior methods that select individual weights, HybridAC identifies entire input channels sensitive to noise using Hessian-based sensitivity analysis. By moving complete channels to a digital unit, the framework eliminates the need for input activation replication, significantly reducing data movement overhead.
Hybrid Quantization
HybridAC employs a mixed-precision strategy within individual layers. Sensitive channels mapped to the digital unit maintain higher precision (e.g., 8-bit), while less-sensitive channels remaining in the analog PIM units are quantized to lower precision (e.g., 6-bit). This selective precision protects accuracy while optimizing hardware resources.
Hardware Co-design
The hardware architecture is specifically tailored to support the HybridAC algorithm:
- Heterogeneous Tiles: Each analog tile is paired with a "tiny" digital unit to handle sensitive computations.
- Distributed SRAM: Large global buffers are replaced with small, distributed SRAMs located adjacent to Multiply-Accumulate (MAC) units, maximizing data reuse.
- ADC Optimization: By removing the most noise-sensitive rows from the analog crossbar, the remaining signal becomes more stable. This allows for the use of 6-bit ADCs instead of 8-bit, saving substantial power and area.
Experimental Results
HybridAC was evaluated using standard benchmarks (CIFAR-10, CIFAR-100, ImageNet) across various architectures (VGG16, ResNet, DenseNet, EfficientNet).
Key findings include:
- Robustness: Under 50% hardware variation, HybridAC maintains accuracy within 1-2% of the software baseline, whereas unprotected accelerators experience drops of 60-90%.
- Efficiency: The framework achieves a 52% reduction in energy consumption, a 28% reduction in area, and a 26% improvement in execution time compared to state-of-the-art architectures like ISAAC.
- No Retraining Required: HybridAC is applicable to pre-trained models without the need for expensive retraining or fine-tuning.
Conclusion
HybridAC demonstrates that an algorithm-hardware co-design approach can effectively rescue mixed-signal DNN accelerators from the detrimental effects of hardware noise. By shifting the granularity of protection to the channel level and optimizing the hardware to match, HybridAC achieves high robustness with superior energy and area efficiency. Future work will focus on refining load-balancing between analog and digital units to further enhance performance.
Summary updated