面向模拟CIM硬件的鲁棒神经网络直通估计扩展方法
Extending Straight-Through Estimation for Robust Neural Networks on Analog CIM Hardware
AI总结:
本文针对模拟CIM硬件的复杂噪声问题,提出基于直通估计器(STE)的扩展框架,将前向噪声模拟与反向梯度计算解耦,在保证训练稳定性的同时实现更精确的噪声感知训练,显著提升了模型精度并降低了训练开销。
摘要:
模拟存内计算(CIM)架构有望为神经网络推理带来显著的能效提升,但其复杂的硬件诱导噪声给实际部署带来了重大挑战。尽管已有噪声感知训练方法被提出以应对这一问题,但这些方法通常依赖理想化且可微的噪声模型,无法完整刻画模拟CIM硬件变化的复杂性。受量化领域中直通估计器(STE)框架的启发,我们将前向噪声模拟与反向梯度计算解耦,从而在模拟CIM系统中实现使用更精确但计算上难以直接处理的噪声模型进行噪声感知训练。我们提供了理论分析,证明该方法在保持计算可行性和优化稳定性的同时,保留了关键的梯度方向信息。大量实验表明,与标准噪声感知训练方法相比,我们扩展的STE框架在图像分类任务上实现了最高5.3%的准确率提升,在文本生成任务上将困惑度降低了0.72,训练时间加速2.2倍,峰值内存占用降低了37.9%。
英文摘要:
Analog Compute-In-Memory (CIM) architectures promise significant energy efficiency gains for neural network inference, but suffer from complex hardware-induced noise that poses major challenges for deployment. While noise-aware training methods have been proposed to address this issue, they typically rely on idealized and differentiable noise models that fail to capture the full complexity of analog CIM hardware variations. Motivated by the Straight-Through Estimator (STE) framework in quantization, we decouple forward noise simulation from backward gradient computation, enabling noise-aware training with more accurate but computationally intractable noise modeling in analog CIM systems. We provide theoretical analysis demonstrating that our approach preserves essential gradient directional information while maintaining computational tractability and optimization stability. Extensive experiments show that our extended STE framework achieves up to 5.3% accuracy improvement on image classification, 0.72 perplexity reduction on text generation, 2.2$\times$ speedup in training time, and 37.9% lower peak memory usage compared to standard noise-aware training methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。