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

HALOC:面向紧凑神经网络的硬件感知自动低秩压缩

HALOC: Hardware-Aware Automatic Low-Rank Compression for Compact Neural Networks

Rutgers University(罗格斯大学);Indiana University(印第安纳大学);Washington State University(华盛顿州立大学)

Jinqi Xiao, Chengming Zhang, Yu Gong, Miao Yin, Yang Sui, Lizhi Xiang, Dingwen Tao, Bo Yuan

AI总结:

本文提出HALOC框架,通过可微分的硬件感知架构搜索自动确定逐层低秩压缩秩值,在显著减少FLOPs的同时提升模型精度,并在多种硬件平台上实现实际加速。

摘要:

低秩压缩是获得紧凑神经网络模型的一种重要模型压缩策略。一般而言,由于秩值直接决定模型复杂度和模型精度,因此逐层秩的恰当选择非常关键且十分必要。迄今为止,尽管已经提出了许多低秩压缩方法,无论是手动还是自动选择秩,它们要么面临昂贵的手动试错,要么压缩性能不尽如人意。此外,所有现有工作都不是以硬件感知的方式设计的,这限制了压缩模型在真实硬件平台上的实际性能。为解决这些挑战,本文提出HALOC,一个硬件感知的自动低秩压缩框架。通过从架构搜索的角度解释自动秩选择,我们开发了一种端到端解决方案,以可微分且硬件感知的方式确定合适的逐层秩。我们进一步提出了设计原则和缓解策略,以高效探索秩空间并减少潜在的干扰问题。在不同数据集和硬件平台上的实验结果表明了所提方法的有效性。在CIFAR-10数据集上,HALOC使未压缩的ResNet-20和VGG-16模型分别实现了0.07%和0.38%的精度提升,同时FLOPs分别减少72.20%和86.44%。在ImageNet数据集上,HALOC相比原始ResNet-18模型实现了0.9%更高的top-1精度,同时FLOPs减少66.16%。与最先进的自动低秩压缩方案相比,HALOC还实现了0.66%更高的top-1精度提升,且计算和内存成本更低。此外,HALOC在不同硬件平台上展示了实际加速效果,并通过桌面GPU、嵌入式GPU和ASIC加速器上的测量结果得到验证。

英文摘要:

Low-rank compression is an important model compression strategy for obtaining compact neural network models. In general, because the rank values directly determine the model complexity and model accuracy, proper selection of layer-wise rank is very critical and desired. To date, though many low-rank compression approaches, either selecting the ranks in a manual or automatic way, have been proposed, they suffer from costly manual trials or unsatisfied compression performance. In addition, all of the existing works are not designed in a hardware-aware way, limiting the practical performance of the compressed models on real-world hardware platforms. To address these challenges, in this paper we propose HALOC, a hardware-aware automatic low-rank compression framework. By interpreting automatic rank selection from an architecture search perspective, we develop an end-to-end solution to determine the suitable layer-wise ranks in a differentiable and hardware-aware way. We further propose design principles and mitigation strategy to efficiently explore the rank space and reduce the potential interference problem. Experimental results on different datasets and hardware platforms demonstrate the effectiveness of our proposed approach. On CIFAR-10 dataset, HALOC enables 0.07% and 0.38% accuracy increase over the uncompressed ResNet-20 and VGG-16 models with 72.20% and 86.44% fewer FLOPs, respectively. On ImageNet dataset, HALOC achieves 0.9% higher top-1 accuracy than the original ResNet-18 model with 66.16% fewer FLOPs. HALOC also shows 0.66% higher top-1 accuracy increase than the state-of-the-art automatic low-rank compression solution with fewer computational and memory costs. In addition, HALOC demonstrates the practical speedups on different hardware platforms, verified by the measurement results on desktop GPU, embedded GPU and ASIC accelerator.

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

↑