跳到正文
实时
Apple Machine Learning Research·· 4 天前

IDEA Prune:一种集成化的小语言模型结构化剪枝框架

On the Efficiency of Structured Pruning in Small Language Model Pretraining

要点速览

IDEA Prune 框架通过集成化训练、迭代剪枝和恢复的单周期余弦退火学习率调度,在压缩 2.8B 模型至 1.3B 的实验中,以 2T token 预训练 token 预算显著优于传统流水线,将 MMLU 准确率提升至 46.4%(传统流水线为 31.4–33.4%),并在下游微调中与同等规模基线持平或超越。分析显示中间检查点优于完全收敛点,约 2.6 倍的放大因子效果最佳。

正文

AuthorsYixiao Li†**, Xianzhi Du, Ajay Kumar Jaiswal, Tao Lei, Tuo Zhao†, Chong Wang**, Jianyu Wang**

Companies that deploy generative language models on edge devices often need to train small models from scratch due to legal, data-governance, or product-customization requirements. An alternative approach is to train an enlarged model and compress it to the target size via structured pruning, but this advantage becomes unclear once the cost of pretraining the enlarged model is included. We introduce the enlarge-and-prune framework to study this question under full-cost accounting, and show that conventional enlarge-and-prune pipelines—which train the enlarged model, prune it, and recover in separate stages—do not consistently outperform direct small-model training under the same total token budget. To overcome this limitation, we propose IDEA Prune, an integrated enlarge-and-prune pipeline that unifies enlarged model pretraining, iterative structured pruning, and recovery under a single cosine annealing learning rate schedule. In controlled experiments compressing 2.8B models to 1.3B with up to 2T tokens on the same dataset, IDEA Prune consistently outperforms conventional pipelines and modestly improves overall performance relative to the scratch baseline, improving MMLU accuracy to 46.4%, compared with 31.4–33.4% for conventional pipelines. These advantages are preserved after downstream supervised fine-tuning, where IDEA Prune matches or outperforms all baselines of the same size on instruction following, math reasoning, and code generation. Our analysis further reveals that intermediate checkpoints provide more favorable pruning starting points than fully converged ones, and that an enlargement factor of approximately 2.6×yields the best pruned models in the tested regime.

  • † Georgia Institute of Technology
  • ** Work done while at Apple

Related readings and updates.

Recent advancements in large language models have intensified the need for efficient and deployable models within limited inference budgets. Structured pruning pipelines have shown promise in token efficiency compared to training target-size models from scratch. In this paper, we advocate incorporating enlarged model pretraining, which is often ignored in previous works, into pruning. We study the enlarge-and-prune pipeline as an integrated…

Read more

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…

Read more

来源: Apple Machine Learning Research · machinelearning.apple.com