arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.11698cs.LGcs.AIcs.CVcs.NE
收藏

NITRO-D:深度卷积神经网络的原生整数训练

NITRO-D: Native Integer-only Training of Deep Convolutional Neural Networks

Department of Electronics, Information and Bioengineering(电子、信息与生物工程系)

Alberto Pirillo, Luca Colombo, Manuel Roveri

AI总结:

NITRO-D提出了一种整数-only训练框架,用于训练深度卷积神经网络,显著提升了模型性能并降低了资源消耗

摘要:

量化是管理深度神经网络(DNNs)日益增长的计算和内存需求的关键技术。通过减少用于表示权重和激活的位数(通常从32位浮点(FP)降至16位或8位整数),量化可以减少DNNs的内存足迹、能耗和执行时间。然而,大多数现有方法通常针对DNN推理,而训练仍依赖于FP操作,限制了在FP算术不可用的环境中的应用。迄今为止,只有前人工作解决了整数-only训练,且仅针对多层感知机(MLP)架构。本文介绍NITRO-D,一种新的框架,用于训练深度整数-only卷积神经网络(CNNs),在训练和推理中均完全在整数域中运行。NITRO-D允许在不需单独量化方案的情况下训练整数CNNs。具体来说,它引入了一种新的架构,整合了多个局部损失块,其中包括所提出的NITRO-Scaling层和NITRO-ReLU激活函数。所提出的框架还具有新的学习算法,利用局部误差信号,并利用IntegerSGD,一种专门设计用于整数计算的优化器。NITRO-D作为开源Python库实现。在最先进的图像识别数据集上的广泛评估显示了其有效性。对于整数-only MLPs,NITRO-D在状态-of-the-art基础上将测试准确率提高高达+5.96%。它还成功地训练了整数-only CNNs,将内存需求和能耗分别减少高达76.14%和32.42%,与传统FP反向传播算法相比。

英文摘要:

Quantization is a pivotal technique for managing the growing computational and memory demands of Deep Neural Networks (DNNs). By reducing the number of bits used to represent weights and activations (typically from 32-bit Floating-Point (FP) to 16-bit or 8-bit integers), quantization reduces memory footprint, energy consumption, and execution time of DNNs. However, most existing methods typically target DNN inference, while training still relies on FP operations, limiting applicability in environments where FP arithmetic is unavailable. To date, only one prior work has addressed integer-only training, and only for Multi-Layer Perceptron (MLP) architectures. This paper introduces NITRO-D, a novel framework for training deep integer-only Convolutional Neural Networks (CNNs) that operate entirely in the integer domain for both training and inference. NITRO-D enables training of integer CNNs without requiring a separate quantization scheme. Specifically, it introduces a novel architecture that integrates multiple local-loss blocks, which include the proposed NITRO-Scaling layer and NITRO-ReLU activation function. The proposed framework also features a novel learning algorithm that employs local error signals and leverages IntegerSGD, an optimizer specifically designed for integer computations. NITRO-D is implemented as an open-source Python library. Extensive evaluations on state-of-the-art image recognition datasets demonstrate its effectiveness. For integer-only MLPs, NITRO-D improves test accuracy by up to +5.96% over the state-of-the-art. It also successfully trains integer-only CNNs, reducing memory requirements and energy consumption by up to 76.14% and 32.42%, respectively, compared to the traditional FP backpropagation algorithm.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑