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

AutoSculpt: 一种基于模式的模型自动剪枝框架,利用强化学习和图学习

AutoSculpt: A Pattern-based Model Auto-pruning Framework Using Reinforcement Learning and Graph Learning

Ocean University of China(海洋大学)

Lixian Jing, Jianpeng Qi, Junyu Dong, Yanwei Yu

AI总结:

AutoSculpt通过图学习和深度强化学习,自动识别并剪枝DNN中的规律模式,提升效率和准确性,实验显示在多种架构上实现高达90%的剪枝率和18%的FLOPs减少。

摘要:

随着深度神经网络(DNN)越来越多地部署在边缘设备上,优化模型以适应受限的计算资源变得至关重要。现有的自动剪枝方法面临挑战,因为DNN模型的多样性、各种操作符(如滤波器)以及在剪枝粒度与模型精度之间平衡的难度。为了解决这些限制,我们引入了AutoSculpt,一种基于模式的自动化剪枝框架,旨在通过图学习和深度强化学习(DRL)提高效率和准确性。AutoSculpt自动识别并剪枝DNN架构中的规律模式,这些模式可通过现有推理引擎识别,从而在运行时加速。AutoSculpt的三个关键步骤包括:(1)将DNN构建成图以编码其拓扑和参数依赖性,(2)嵌入计算高效的剪枝模式,(3)利用DRL迭代优化自动剪枝策略,直到在压缩与精度之间达到最佳平衡。实验结果表明,AutoSculpt在各种架构上均有效,包括ResNet、MobileNet、VGG和Vision Transformer,实现了高达90%的剪枝率和近18%的FLOPs减少,优于所有基线。代码可在https://github.com/jlx15588/AutoSculpt获取。

英文摘要:

As deep neural networks (DNNs) are increasingly deployed on edge devices, optimizing models for constrained computational resources is critical. Existing auto-pruning methods face challenges due to the diversity of DNN models, various operators (e.g., filters), and the difficulty in balancing pruning granularity with model accuracy. To address these limitations, we introduce AutoSculpt, a pattern-based automated pruning framework designed to enhance efficiency and accuracy by leveraging graph learning and deep reinforcement learning (DRL). AutoSculpt automatically identifies and prunes regular patterns within DNN architectures that can be recognized by existing inference engines, enabling runtime acceleration. Three key steps in AutoSculpt include: (1) Constructing DNNs as graphs to encode their topology and parameter dependencies, (2) embedding computationally efficient pruning patterns, and (3) utilizing DRL to iteratively refine auto-pruning strategies until the optimal balance between compression and accuracy is achieved. Experimental results demonstrate the effectiveness of AutoSculpt across various architectures, including ResNet, MobileNet, VGG, and Vision Transformer, achieving pruning rates of up to 90% and nearly 18% improvement in FLOPs reduction, outperforming all baselines. The codes can be available at https://github.com/jlx15588/AutoSculpt

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

↑