[論文レビュー] Compact Language Models via Pruning and Knowledge Distillation
本研究は、大規模LLMを幅と深さ軸の structured pruning と知識蒸留に基づく再訓練で圧縮し、Minitronモデル(8Bおよび4B)を生み出すことにより、同程度のサイズのモデルに匹敵または上回りつつ、訓練トークン数を大幅に削減できることを示している。
Large language models (LLMs) targeting different deployment scales and sizes are currently produced by training each variant from scratch; this is extremely compute-intensive. In this paper, we investigate if pruning an existing LLM and then re-training it with a fraction (<3%) of the original training data can be a suitable alternative to repeated, full retraining. To this end, we develop a set of practical and effective compression best practices for LLMs that combine depth, width, attention and MLP pruning with knowledge distillation-based retraining; we arrive at these best practices through a detailed empirical exploration of pruning strategies for each axis, methods to combine axes, distillation strategies, and search techniques for arriving at optimal compressed architectures. We use this guide to compress the Nemotron-4 family of LLMs by a factor of 2-4x, and compare their performance to similarly-sized models on a variety of language modeling tasks. Deriving 8B and 4B models from an already pretrained 15B model using our approach requires up to 40x fewer training tokens per model compared to training from scratch; this results in compute cost savings of 1.8x for training the full model family (15B, 8B, and 4B). Minitron models exhibit up to a 16% improvement in MMLU scores compared to training from scratch, perform comparably to other community models such as Mistral 7B, Gemma 7B and Llama-3 8B, and outperform state-of-the-art compression techniques from the literature. We have open-sourced Minitron model weights on Huggingface, with corresponding supplementary material including example code available on GitHub.
研究の動機と目的
- 既存のLLMを剪定し、少量のデータ分だけで再訓練することが、より小さな variants の全訓練を置換できるかを評価する。
- 深さ、幅、アテンション、MLPの剪定と知識蒸留を組み合わせた実用的な圧縮ベストプラクティスを開発する。
- Nemotron-4 15B から Minitron モデル(8B および 4B)を導出し、言語タスクでコミュニティモデルと比較することで、アプローチを実証する。
提案手法
- 軸(深さ:レイヤー、幅:アテンションヘッド、MLP隠れチャンネル)、および埋め込みチャネルに対して活性化ベースの重要度スコアリングを用いた構造的剪定。
- 未剪定の教師モデルからの知識蒸留を用いた軽量な再訓練フェーズ(約1.8Bトークン)で精度を回復。
- パラメータ予算の下で剪定アーキテクチャを選択するため、制約付き候補空間で軽量なニューラルアーキテクチャ探索を実施。
- ログits損失と中間状態損失を組み合わせた蒸留ベースの損失を訓練し、動的な重み付けでログits損失と中間状態搶損失を切り替える。
- 最終性能を向上させ、能力を維持するために反復的ステップ(2段階)で剪定を行う。
- 剪定後に再訓練したモデルを、ゼロからの訓練ベースラインおよび他の圧縮モデルと比較する。

実験結果
リサーチクエスチョン
- RQ11つの大規模LLMを剪定し、小データ分で再訓練して、より小さく高性能な variant を作成できるか。
- RQ2まず剪定する最も有効な軸(深さ、幅、埋め込み)はどれで、どのように組み合わせるべきか。
- RQ3再訓練と比較して、剪定後の精度回復における知識蒸溜の効果はどの程度か。
- RQ4圧縮効率を最大化しつつ、パフォーマンスを維持または向上させる実践的なベストプラクティスは何か。
主な発見
- 幅に関連する成分(ヘッド、MLPチャネル、埋め込み)を剪定する方が、深さ剪定のみより再訓練後の性能が高くなることが多く、再訓練は結果を向上させる。
- 幅の剪定は、特に軽量再訓練後、15Bパラメータまでのモデルで深さ剪定より一般的に優れている。
- 再訓練中に未剪定の教師モデルからの知識蒸留は、従来の訓練と比較してダウンストリームタスクの性能を大幅に向上させる。
- Nemotron-4 15B から Minitron 8B および 4B を導出するには最大で訓練トークン数を40倍削減でき、全ファミリの訓練コスト savingsは約1.8xに達する。
- Minitron 8B は Nemotron-3 8B や LLaMa-2 7B を上回り、複数のベンチマークで Mistral-7B、Gemma-7B、Llama-3-8B と競合しつつ、Nemotron-3 8B に比べてはるかに少ないトークン(40x)を使用している。
- Minitron-4B は Gemma2 を上回り、さまざまな深さ/幅剪定のベースラインと比較して有利で、指示に特化したバリアントは指示遵守性とRAG機能が強いことを示す。

この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。