arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2110.08271cs.LGcs.CV
收藏

使用联合Quantization训练深度神经网络并修剪权重和激活

Training Deep Neural Networks with Joint Quantization and Pruning of Weights and Activations

University of California, San Diego(加州大学圣地亚哥分校)

Xinyu Zhang, Ian Colbert, Ken Kreutz-Delgado, Srinjoy Das

摘要:

量化和修剪是用于降低深度神经网络推理成本的核心技术。最先进的量化技术目前应用于权重和激活;然而,修剪通常仅应用于网络的权重。在这项工作中,我们联合应用新的均匀量化和非结构化修剪方法,在训练过程中对深度神经网络的权重和激活进行调整。使用我们的方法,我们在广泛的计算机视觉任务中经验性地评估了目前公认的修剪然后重新修剪的范例,并观察到当应用于深度神经网络的权重和激活时的非交换性质。根据这些观察,我们提出了非交换性假设:对于一个为特定任务训练的给定深度神经网络,存在一个精确的训练时间表,其中可以引入量化和修剪来优化网络性能。我们确定,这种最佳顺序不仅存在,而且在不同的歧视和生成任务。在我们的培训框架中使用最佳培训计划,我们证明了比现有解决方案更高的每内存占用性能。

英文摘要:

Quantization and pruning are core techniques used to reduce the inference costs of deep neural networks. State-of-the-art quantization techniques are currently applied to both the weights and activations; however, pruning is most often applied to only the weights of the network. In this work, we jointly apply novel uniform quantization and unstructured pruning methods to both the weights and activations of deep neural networks during training. Using our methods, we empirically evaluate the currently accepted prune-then-quantize paradigm across a wide range of computer vision tasks and observe a non-commutative nature when applied to both the weights and activations of deep neural networks. Informed by these observations, we articulate the non-commutativity hypothesis: for a given deep neural network being trained for a specific task, there exists an exact training schedule in which quantization and pruning can be introduced to optimize network performance. We identify that this optimal ordering not only exists, but also varies across discriminative and generative tasks. Using the optimal training schedule within our training framework, we demonstrate increased performance per memory footprint over existing solutions.

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

↑