CRIMP:通过交叉开关对齐压缩和非理想性适配在内存处理上实现紧凑且可靠的深度神经网络推理
CRIMP: Compact & Reliable DNN Inference on In-Memory Processing via Crossbar-Aligned Compression and Non-ideality Adaptation
AI总结:
研究基于交叉开关的IMP加速器面临的浮点运算、参数冗余、非理想行为问题,提出通过重用移位单元、应用两种剪枝及运行时感知非理想性适配的方法,集成优化减少训练开销并提高精度,生成高精度整数模型。
摘要:
基于交叉开关的内存处理(IMP)加速器为深度神经网络(DNN)实现了高速、低功耗计算,但面临三个障碍。一是浮点运算与交叉开关不兼容,现有量化方案仍需浮点处理器处理缩放因子,带来硬件开销;二是冗余DNN参数占用过多交叉开关,当前IMP感知剪枝方法需跨交叉开关的数据对齐,引入大量内存和计算开销;三是非理想交叉开关行为如写入变化会降低部署模型的精度,现有补偿方法增加大量开销。本文在单个训练过程中解决这三个问题。通过在交叉开关中重用移位单元近似乘缩放因子,避免浮点处理器;应用内核组剪枝和交叉开关剪枝去除数据对齐所需硬件单元;采用运行时感知非理想性适配利用交叉开关特征减轻训练阶段设备非理想性的影响。将这三种优化集成到一个综合学习框架中可减少训练开销并提高精度。实验表明,我们的量化导致的精度下降可忽略不计,剪枝比现有方法实现更高的稀疏性和精度。我们的框架为IMP加速器上的CIFAR-10生成仅整数、剪枝且可靠的VGG-16和ResNet-56模型,精度下降分别仅为2.19%和1.26%,且无硬件开销。
英文摘要:
Crossbar-based In-Memory Processing (IMP) accelerators achieve high-speed, low-power computing for deep neural networks (DNNs), but face three obstacles. First, floating-point (FP) arithmetic is incompatible with crossbars, and existing quantization schemes still require FP processors for scaling factors, incurring hardware overhead. Second, redundant DNN parameters occupy too many crossbars, and current IMP-aware pruning methods require data aligning across crossbars, introducing significant memory and computing overhead. Third, non-ideal crossbar behaviors such as write variations degrade the accuracy of deployed models, and existing compensation methods add substantial overhead. In this paper, we address all three problems within a single training process. We reuse bit-shift units in crossbars to approximately multiply scaling factors, avoiding FP processors. We apply kernel-group pruning and crossbar pruning to remove the hardware units needed for data aligning. We adopt runtime-aware non-ideality adaptation to relieve the impact of device non-ideality from the training stage by exploiting crossbar features. Integrating these three optimizations into one comprehensive learning framework reduces training overhead and improves accuracy. Experiments show that our quantization incurs a negligible accuracy drop, and our pruning achieves higher sparsity and accuracy than state-of-the-art methods. Our framework produces integer-only, pruned, and reliable VGG-16 and ResNet-56 models for CIFAR-10 on IMP accelerators, with accuracy drops of only 2.19% and 1.26%, respectively, without hardware overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。