Only Train Once: A One-Shot Neural Network Training And Pruning Framework
Tianyi Chen, Bo Ji, Tianyu Ding, Biyi Fang, Guanyi Wang, Zhihui Zhu, Luming Liang, Yixin Shi, Sheng Yi, Xiao Tu
摘要
Structured pruning is a commonly used technique in deploying deep neural networks (DNNs) onto resource-constrained devices. However, the existing pruning methods are usually heuristic, task-specified, and require an extra fine-tuning procedure. To overcome these limitations, we propose a framework that compresses DNNs into slimmer architectures with competitive performances and significant FLOPs reductions by Only-Train-Once (OTO). OTO contains two keys: (i) we partition the parameters of DNNs into zero-invariant groups, enabling us to prune zero groups without affecting the output; and (ii) to promote zero groups, we then formulate a structured-sparsity optimization problem and propose a novel optimization algorithm, Half-Space Stochastic Projected Gradient (HSPG), to solve it, which outperforms the standard proximal methods on group sparsity exploration and maintains comparable convergence. To demonstrate the effectiveness of OTO, we train and compress full models simultaneously from scratch without fine-tuning for inference speedup and parameter reduction, and achieve state-of-the-art results on VGG16 for CIFAR10, ResNet50 for CIFAR10 and Bert for SQuAD and competitive result on ResNet50 for ImageNet. The source code is available at https://github.com/tianyic/only_train_once.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 24 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- ALPS: Improved Optimization for Highly Sparse One-Shot Pruning for Large Language Models 引用了 The Combinatorial Brain Surgeon: Pruning Weights That Cancel One Another in Neural Networks
- Efficient Joint Optimization of Layer-Adaptive Weight Pruning in Deep Neural Networks 引用了 Picking Winning Tickets Before Training by Preserving Gradient Flow
- Movement Pruning: Adaptive Sparsity by Fine-Tuning 引用了 Reducing Transformer Depth on Demand with Structured Dropout
- The Combinatorial Brain Surgeon: Pruning Weights That Cancel One Another in Neural Networks 引用了 Picking Winning Tickets Before Training by Preserving Gradient Flow
- The Combinatorial Brain Surgeon: Pruning Weights That Cancel One Another in Neural Networks 引用了 Comparing Rewinding and Fine-tuning in Neural Network Pruning
- HYDRA: Pruning Adversarially Robust Neural Networks 引用了 Picking Winning Tickets Before Training by Preserving Gradient Flow
- Pruning's Effect on Generalization Through the Lens of Training and Regularization 引用了 The Combinatorial Brain Surgeon: Pruning Weights That Cancel One Another in Neural Networks
- Pruning's Effect on Generalization Through the Lens of Training and Regularization 引用了 Picking Winning Tickets Before Training by Preserving Gradient Flow
- Pruning's Effect on Generalization Through the Lens of Training and Regularization 引用了 Comparing Rewinding and Fine-tuning in Neural Network Pruning
引用它的顶会 Paper24
- The Combinatorial Brain Surgeon: Pruning Weights That Cancel One Another in Neural NetworksXin Yu, Thiago Serra, Srikumar Ramalingam, Shandian ZheICML 2022 · 60 次引用
- Topology-Aware Network Pruning using Multi-stage Graph Embedding and Reinforcement LearningSixing Yu, Arya Mazaheri, Ali JannesariICML 2022 · 54 次引用
- Pruning's Effect on Generalization Through the Lens of Training and RegularizationTian Jin, Michael Carbin, Daniel M. Roy, Jonathan Frankle 等NeurIPS 2022 · 40 次引用
- Efficient Joint Optimization of Layer-Adaptive Weight Pruning in Deep Neural NetworksKaixin Xu, Zhe Wang, Xue Geng, Min Wu 等ICCV 2023 · 24 次引用
- ALPS: Improved Optimization for Highly Sparse One-Shot Pruning for Large Language ModelsXiang Meng, Kayhan Behdin, Haoyue Wang, Rahul MazumderNeurIPS 2024 · 19 次引用
它引用的 Paper13
- Picking Winning Tickets Before Training by Preserving Gradient FlowChaoqi Wang, Guodong Zhang, Roger B. GrosseICLR 2020 · 743 次引用
- Reducing Transformer Depth on Demand with Structured DropoutAngela Fan, Edouard Grave, Armand JoulinICLR 2020 · 695 次引用
- Movement Pruning: Adaptive Sparsity by Fine-TuningVictor Sanh, Thomas Wolf, Alexander M. RushNeurIPS 2020 · 656 次引用
- Comparing Rewinding and Fine-tuning in Neural Network PruningAlex Renda, Jonathan Frankle, Michael CarbinICLR 2020 · 437 次引用
- HYDRA: Pruning Adversarially Robust Neural NetworksVikash Sehwag, Shiqi Wang, Prateek Mittal, Suman JanaNeurIPS 2020 · 242 次引用
相关 Paper
- OTOv2: Automatic, Generic, User-FriendlyTianyi Chen, Luming Liang, Tianyu Ding, Zhihui Zhu 等ICLR 2023 · 7 次引用
- Auto- Train-Once: Controller Network Guided Automatic Network Pruning from ScratchXidong Wu, Shangqian Gao, Zeyu Zhang, Zhenzhen Li 等CVPR 2024 · 13 次引用
- PDP: Parameter-free Differentiable Pruning is All You NeedMinsik Cho, Saurabh Adya, Devang NaikNeurIPS 2023 · 24 次引用
- CrAM: A Compression-Aware MinimizerAlexandra Peste, Adrian Vladu, Eldar Kurtic, Christoph H. Lampert 等ICLR 2023 · 1 次引用
- Learning Pruning-Friendly Networks via Frank-Wolfe: One-Shot, Any-Sparsity, And No RetrainingLu Miao, Xiaolong Luo, Tianlong Chen, Wuyang Chen 等ICLR 2022 · 34 次引用
