arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.07094cs.LG
收藏

FALCON:面向神经网络剪枝的FLOP感知组合优化

FALCON: FLOP-Aware Combinatorial Optimization for Neural Network Pruning

MIT(麻省理工学院)

Xiang Meng, Wenyu Chen, Riade Benbaki, Rahul Mazumder

AI总结:

针对现有剪枝方法忽略FLOPs相关部署成本的问题,提出兼顾准确率、FLOPs与稀疏度约束的FALCON剪枝框架,通过近似求解整数线性规划实现高效剪枝,在固定FLOP预算及渐进剪枝场景下均取得更优性能。

摘要:

现代神经网络不断增长的计算需求给资源受限设备上的部署带来了挑战。网络剪枝为在保持性能的同时减小模型规模、降低计算成本提供了一种解决方案。然而,当前大多数剪枝方法主要通过减少非零参数数量来提升稀疏度,往往忽略了与浮点运算次数(FLOPs)密切相关的推理时间等其他部署成本。本文提出了FALCON,一种新型的基于组合优化的网络剪枝框架,该框架同时兼顾模型准确率(保真度)、FLOPs和稀疏度约束。本方法的核心构建模块是一个可同时处理FLOP和稀疏度约束的整数线性规划(ILP)。我们提出了一种新型算法来近似求解该ILP,还为该优化框架提出了一种利用上述ILP求解器的新型一阶方法。借助问题结构(例如近似Hessian的低秩结构),我们能够处理含数百万参数的实例。实验表明,在固定的FLOP预算下,FALCON相比其他剪枝方法取得了更优的准确率。例如,对于保留总FLOPs 20%的ResNet50,本方法的准确率相比现有最优方法相对提升了48%。此外,在剪枝步骤之间进行重训练的渐进式剪枝设置下,我们的框架性能优于现有剪枝方法,凸显了同时纳入FLOP和稀疏度约束对于实现高效网络剪枝的重要性。

英文摘要:

The increasing computational demands of modern neural networks present deployment challenges on resource-constrained devices. Network pruning offers a solution to reduce model size and computational cost while maintaining performance. However, most current pruning methods focus primarily on improving sparsity by reducing the number of nonzero parameters, often neglecting other deployment costs such as inference time, which are closely related to the number of floating-point operations (FLOPs). In this paper, we propose FALCON, a novel combinatorial-optimization-based framework for network pruning that jointly takes into account model accuracy (fidelity), FLOPs, and sparsity constraints. A main building block of our approach is an integer linear program (ILP) that simultaneously handles FLOP and sparsity constraints. We present a novel algorithm to approximately solve the ILP. We propose a novel first-order method for our optimization framework which makes use of our ILP solver. Using problem structure (e.g., the low-rank structure of approx. Hessian), we can address instances with millions of parameters. Our experiments demonstrate that FALCON achieves superior accuracy compared to other pruning approaches within a fixed FLOP budget. For instance, for ResNet50 with 20% of the total FLOPs retained, our approach improves the accuracy by 48% relative to state-of-the-art. Furthermore, in gradual pruning settings with re-training between pruning steps, our framework outperforms existing pruning methods, emphasizing the significance of incorporating both FLOP and sparsity constraints for effective network pruning.

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

↑