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

压缩神经网络:确定最佳逐层分解

Compressing Neural Networks: Towards Determining the Optimal Layer-wise Decomposition

MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);University of Haifa(海法大学)

Lucas Liebenwein, Alaa Maalouf, Oren Gal, Dan Feldman, Daniela Rus

摘要:

我们提出了一种新的全局压缩框架,用于深度神经网络,自动分析每一层,以确定最佳的每层压缩比,同时实现所需的整体压缩。我们的算法依赖于压缩每个卷积(或全连接)层的想法,将其信道切片为多个组,并通过低秩分解来分解每个组。在我们的算法的核心是从EckartYoungMirsky定理推导逐层误差界。然后,我们利用这些界限来框架的压缩问题作为一个优化问题,我们希望最大限度地减少跨层的最大压缩误差,并提出了一个有效的算法解决方案。我们的实验表明,我们的方法优于现有的低秩压缩方法在广泛的网络和数据集。我们相信,我们的研究结果为未来研究现代神经网络的全局性能-大小权衡开辟了新的途径。我们的代码可在https://github.com/lucaslie/torchprune上获得。

英文摘要:

We present a novel global compression framework for deep neural networks that automatically analyzes each layer to identify the optimal per-layer compression ratio, while simultaneously achieving the desired overall compression. Our algorithm hinges on the idea of compressing each convolutional (or fully-connected) layer by slicing its channels into multiple groups and decomposing each group via low-rank decomposition. At the core of our algorithm is the derivation of layer-wise error bounds from the Eckart Young Mirsky theorem. We then leverage these bounds to frame the compression problem as an optimization problem where we wish to minimize the maximum compression error across layers and propose an efficient algorithm towards a solution. Our experiments indicate that our method outperforms existing low-rank compression approaches across a wide range of networks and data sets. We believe that our results open up new avenues for future research into the global performance-size trade-offs of modern neural networks. Our code is available at https://github.com/lucaslie/torchprune.

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

↑