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

PDP:你所需的无参数可微剪枝

PDP: Parameter-free Differentiable Pruning is All You Need

Apple Inc.(苹果公司)

Minsik Cho, Saurabh Adya, Devang Naik

AI总结:

本文提出了一种高效且通用的训练时无参数可微剪枝方案PDP,通过权重的动态函数生成软掩码,在视觉和语言任务的模型大小、准确率及训练成本上均达到SOTA。

摘要:

DNN剪枝是一种流行的方法,用于减小模型大小、提高推理延迟并降低DNN加速器上的功耗。然而,现有的方法可能过于复杂、昂贵或无效,难以应用于各种视觉/语言任务、DNN架构,并难以满足结构化剪枝约束。在本文中,我们提出了一种高效且有效的训练时剪枝方案——无参数可微剪枝(PDP),它在模型大小、准确率和训练成本方面提供了最先进的性能。PDP在训练过程中使用权重的动态函数,以无参数的方式为给定的剪枝目标生成软剪枝掩码。尽管是可微的,PDP的简单性和高效性使其具有足够的通用性,能够在各种视觉和自然语言任务上提供最先进的随机/结构化/通道剪枝结果。例如,对于MobileNet-v1,PDP在86.6%稀疏度下可以在ImageNet1k上实现68.2%的top-1准确率,比最先进的算法高出1.7%。此外,PDP在BERT上以90%稀疏度在Multi-Genre Natural Language Inference上获得了超过83.1%的准确率,而现有技术中次优的方法仅显示81.5%的准确率。另外,PDP可应用于结构化剪枝,例如N:M剪枝和通道剪枝。对于ResNet18的1:4结构化剪枝,PDP将ImageNet1k的top-1准确率比最先进技术提高了3.6%以上。对于ResNet50的通道剪枝,PDP将ImageNet1k的top-1准确率比最先进技术降低了0.6%。

英文摘要:

DNN pruning is a popular way to reduce the size of a model, improve the inference latency, and minimize the power consumption on DNN accelerators. However, existing approaches might be too complex, expensive or ineffective to apply to a variety of vision/language tasks, DNN architectures and to honor structured pruning constraints. In this paper, we propose an efficient yet effective train-time pruning scheme, Parameter-free Differentiable Pruning (PDP), which offers state-of-the-art qualities in model size, accuracy, and training cost. PDP uses a dynamic function of weights during training to generate soft pruning masks for the weights in a parameter-free manner for a given pruning target. While differentiable, the simplicity and efficiency of PDP make it universal enough to deliver state-of-the-art random/structured/channel pruning results on various vision and natural language tasks. For example, for MobileNet-v1, PDP can achieve 68.2% top-1 ImageNet1k accuracy at 86.6% sparsity, which is 1.7% higher accuracy than those from the state-of-the-art algorithms. Also, PDP yields over 83.1% accuracy on Multi-Genre Natural Language Inference with 90% sparsity for BERT, while the next best from the existing techniques shows 81.5% accuracy. In addition, PDP can be applied to structured pruning, such as N:M pruning and channel pruning. For 1:4 structured pruning of ResNet18, PDP improved the top-1 ImageNet1k accuracy by over 3.6% over the state-of-the-art. For channel pruning of ResNet50, PDP reduced the top-1 ImageNet1k accuracy by 0.6% from the state-of-the-art.

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

↑