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

多维剪枝:带延迟约束的通道、层与块联合剪枝

Multi-Dimensional Pruning: Joint Channel, Layer and Block Pruning with Latency Constraint

NVIDIA(英伟达);Stanford University(斯坦福大学)

Xinglong Sun, Barath Lakshmanan, Maying Shen, Shiyi Lan, Jingde Chen, Jose Alvarez

AI总结:

针对现有通道剪枝难以大幅压缩模型的问题,提出带延迟约束的通道、层、块联合多维剪枝框架,通过延迟建模和混合整数非线性规划实现单次遍历寻优,在分类和3D检测任务上以高剪枝率实现更优的精度与速度表现。

摘要:

随着我们不断突破各类视觉任务的性能边界,模型规模也相应增长。为应对这一增长趋势,我们需要极具力度的剪枝技术,以实现边缘设备上的高效推理与部署。现有剪枝方法仅局限于通道剪枝,难以实现大幅参数压缩。本文提出一种新颖的多维剪枝框架,可在满足延迟约束的同时,跨通道、层和块联合优化剪枝策略。我们开发了一种延迟建模技术,能够精准捕捉剪枝过程中全模型的延迟变化,这对于在高剪枝率下实现最优的延迟-精度权衡至关重要。我们将剪枝问题重新建模为混合整数非线性规划(MINLP),仅需单次遍历即可高效确定最优剪枝结构。大量实验结果表明,该方法相较现有方法实现了显著提升,尤其是在大剪枝率下优势更明显。在图像分类任务中,我们的方法显著优于现有技术HALP,Top-1准确率达70.0(对比68.6),帧率达5262 im/s(对比4101 im/s)。在3D目标检测任务中,我们以45%的剪枝率对StreamPETR进行剪枝,创下新的最优性能,其帧率(37.3 vs 31.7)和平均精度均值mAP(0.451 vs 0.449)均高于稠密基线模型。

英文摘要:

As we push the boundaries of performance in various vision tasks, the models grow in size correspondingly. To keep up with this growth, we need very aggressive pruning techniques for efficient inference and deployment on edge devices. Existing pruning approaches are limited to channel pruning and struggle with aggressive parameter reductions. In this paper, we propose a novel multi-dimensional pruning framework that jointly optimizes pruning across channels, layers, and blocks while adhering to latency constraints. We develop a latency modeling technique that accurately captures model-wide latency variations during pruning, which is crucial for achieving an optimal latency-accuracy trade-offs at high pruning ratio. We reformulate pruning as a Mixed-Integer Nonlinear Program (MINLP) to efficiently determine the optimal pruned structure with only a single pass. Our extensive results demonstrate substantial improvements over previous methods, particularly at large pruning ratios. In classification, our method significantly outperforms prior art HALP with a Top-1 accuracy of 70.0(v.s. 68.6) and an FPS of 5262 im/s(v.s. 4101 im/s). In 3D object detection, we establish a new state-of-the-art by pruning StreamPETR at a 45% pruning ratio, achieving higher FPS (37.3 vs. 31.7) and mAP (0.451 vs. 0.449) than the dense baseline.

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

↑