DeepThin:一个用于深度神经网络的自压缩库
DeepThin: A Self-Compressing Library for Deep Neural Networks
摘要:
随着业界将越来越大和复杂的神经网络部署到移动设备,这些设备的存储器和计算资源面临更大的压力。深度压缩,或深度神经网络权重矩阵的压缩,是一种为此类场景拉伸资源的技术。现有的压缩方法不能有效地压缩小于其原始大小的1-2%的模型。我们开发了一种新的压缩技术DeepThin,建立在低秩因子分解领域的现有研究基础上。我们确定和打破人为的限制强加的低秩近似相结合的秩分解与整形过程中,增加了非线性的近似函数。我们将DeepThin部署为与TensorFlow集成的插件库,使用户能够以不同的粒度无缝压缩模型。我们在两个最先进的声学模型TFKaldi和DeepSpeech上评估了DeepThin,并将其与以前的压缩工作(修剪,HashNet和Rank Factorization),经验极限研究方法和手动调整模型进行了比较。对于TFKaldi,我们的DeepThin网络在几乎所有测试的压缩率下都显示出比竞争方法更好的单词出错率(WER),比秩因子分解平均相对改进60%,比修剪平均相对改进57%,比手动调整的相同大小的网络平均相对改进23%,比计算昂贵的HashedNets平均相对改进6%。对于DeepSpeech,DeepThin压缩网络的测试损失比所有其他压缩方法都要好,比秩分解好28%,比修剪好27%,比手动调整的相同大小的网络好20%,比哈希网络好12%。DeepThin还提供推理性能优势,范围从2倍到14倍加速,具体取决于压缩比和平台缓存大小。
英文摘要:
As the industry deploys increasingly large and complex neural networks to mobile devices, more pressure is put on the memory and compute resources of those devices. Deep compression, or compression of deep neural network weight matrices, is a technique to stretch resources for such scenarios. Existing compression methods cannot effectively compress models smaller than 1-2% of their original size. We develop a new compression technique, DeepThin, building on existing research in the area of low rank factorization. We identify and break artificial constraints imposed by low rank approximations by combining rank factorization with a reshaping process that adds nonlinearity to the approximation function. We deploy DeepThin as a plug-gable library integrated with TensorFlow that enables users to seamlessly compress models at different granularities. We evaluate DeepThin on two state-of-the-art acoustic models, TFKaldi and DeepSpeech, comparing it to previous compression work (Pruning, HashNet, and Rank Factorization), empirical limit study approaches, and hand-tuned models. For TFKaldi, our DeepThin networks show better word error rates (WER) than competing methods at practically all tested compression rates, achieving an average of 60% relative improvement over rank factorization, 57% over pruning, 23% over hand-tuned same-size networks, and 6% over the computationally expensive HashedNets. For DeepSpeech, DeepThin-compressed networks achieve better test loss than all other compression methods, reaching a 28% better result than rank factorization, 27% better than pruning, 20% better than hand-tuned same-size networks, and 12% better than HashedNets. DeepThin also provide inference performance benefits ranging from 2X to 14X speedups, depending on the compression ratio and platform cache sizes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。