Deep $k$ -Means:用于压缩深度卷积的更硬聚类分析的重新训练和参数共享
Deep $k$-Means: Re-Training and Parameter Sharing with Harder Cluster Assignments for Compressing Deep Convolutions
摘要:
当前用卷积将CNN推得更深的趋势已经产生了对CNN实现更高压缩增益的迫切需求,其中卷积主导计算和参数量(例如,GoogLeNet、ResNet和Wide ResNet)。此外,卷积的高能耗限制了其在移动设备上的部署。为此,我们提出了一个简单而有效的方案,通过应用k-均值聚类的权重压缩卷积,压缩是通过权重共享,通过只记录$K$聚类中心和权重分配指数。然后,我们引入了一种新的谱松弛$k$均值正则化,其倾向于在重新训练期间将卷积层权重硬分配给$K$学习的聚类中心。我们还提出了一组改进的度量来估计CNN硬件实现的能耗,其估计结果被验证为与先前提出的从实际硬件测量外推的能量估计工具一致。我们最终在压缩比和能耗降低方面评估了几个CNN模型的Deep $k$ -Means,观察到了有希望的结果,而不会导致准确性损失。代码可在https://github.com/Sandbox3aster/Deep-K-Means上获得
英文摘要:
The current trend of pushing CNNs deeper with convolutions has created a pressing demand to achieve higher compression gains on CNNs where convolutions dominate the computation and parameter amount (e.g., GoogLeNet, ResNet and Wide ResNet). Further, the high energy consumption of convolutions limits its deployment on mobile devices. To this end, we proposed a simple yet effective scheme for compressing convolutions though applying k-means clustering on the weights, compression is achieved through weight-sharing, by only recording $K$ cluster centers and weight assignment indexes. We then introduced a novel spectrally relaxed $k$-means regularization, which tends to make hard assignments of convolutional layer weights to $K$ learned cluster centers during re-training. We additionally propose an improved set of metrics to estimate energy consumption of CNN hardware implementations, whose estimation results are verified to be consistent with previously proposed energy estimation tool extrapolated from actual hardware measurements. We finally evaluated Deep $k$-Means across several CNN models in terms of both compression ratio and energy consumption reduction, observing promising results without incurring accuracy loss. The code is available at https://github.com/Sandbox3aster/Deep-K-Means
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。