[論文レビュー] Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizes
本論文は Distilling step-by-step を提案する。これは LLM が生成した推論を利用して小さなタスク特化モデルを訓練する方法で、ファインチューニングや蒸留よりデータ効率とデプロイ効率が向上し、しばしば はるかに小さなモデルで LLM を上回る性能を発揮する。
Deploying large language models (LLMs) is challenging because they are memory inefficient and compute-intensive for practical applications. In reaction, researchers train smaller task-specific models by either finetuning with human labels or distilling using LLM-generated labels. However, finetuning and distillation require large amounts of training data to achieve comparable performance to LLMs. We introduce Distilling step-by-step, a new mechanism that (a) trains smaller models that outperform LLMs, and (b) achieves so by leveraging less training data needed by finetuning or distillation. Our method extracts LLM rationales as additional supervision for training small models within a multi-task framework. We present three findings across 4 NLP benchmarks: First, compared to both finetuning and distillation, our mechanism achieves better performance with much fewer labeled/unlabeled training examples. Second, compared to few-shot prompted LLMs, we achieve better performance using substantially smaller model sizes. Third, we reduce both the model size and the amount of data required to outperform LLMs; our finetuned 770M T5 model outperforms the few-shot prompted 540B PaLM model using only 80% of available data on a benchmark, whereas standard finetuning the same T5 model struggles to match even by using 100% of the dataset. We release the code at: https://github.com/google-research/distilling-step-by-step .
研究の動機と目的
- 巨大な LLM への依存を減らすことにより、実用的でメモリ効率の高いモデルの運用を動機付ける。
- 小さなモデルの監督信号として LLM の推論を活用するデータ効率の高い訓練パラダイムを開発する。
- 推論を用いて訓練された小さなモデルが、はるかに少ないデータと計算資源で LLM を上回ることを示す。
- 複数の NLP ベンチマークにおいてデータ量とモデルサイズの低減を実証する。
提案手法
- Few-shot Chain-of-Thought prompting を用いて、推論付きのラベルを生成するよう LLM に促す。
- ラベルと推論の両方を予測するマルチタスク設定で小さなモデルを訓練し、テスト時にはラベルのみの予測を可能にする。
- タスクプレフィックスを用いて [label] と [rationale] の出力を切り替え、訓練時の補助監督として推論の生成を可能にする。
- ラベルあり・なしの異なるデータレジーム下で標準的なファインチューニングと標準的な蒸留と比較する。
- データ効率、モデルサイズ、および性能を評価するために、4 つの NLP ベンチマークを横断して評価する。
実験結果
リサーチクエスチョン
- RQ1LLM が生成した推論は、少ないラベル付きデータまたはラベルなしデータで小さなモデルを訓練する際に有用な監督を提供できるか。
- RQ2データと計算制約下で、推論付きガイド付きの小さなモデルは LLM や従来のベースラインを上回るか。
- RQ3マルチタスクの推論-ラベル訓練は、単一タスクの推論やラベル生成アプローチと比較してどうか。
- RQ4Distilling step-by-step が大規模 LLM の性能を上回るデータ量とモデルサイズの閾値は何か。
- RQ5このフレームワーク下で、ラベルなしデータの増強はさらに性能を向上させるか。
主な発見
- Distilling step-by-step は、4 データセット全てで、標準的なファインチューニングよりはるかに少ないラベル付き例数でより良い性能を達成する。
- Distilling step-by-step は同じベンチマークで、標準的なタスク蒸留より少ない未ラベルデータで上回る。
- 小さなモデル(例:220M T5)は、いくつかのタスクで 540B PaLM の few-shot CoT セットアップを、データのごく一部で上回る。
- このアプローチは、数千倍も小さなモデルと削減されたデータ要件で LLM を上回る性能を実現する。
- 別々の推論とラベル出力を用いたマルチタスク訓練は、単一タスクの共同訓練より一貫して利益をもたらす。
- ラベルなしデータの増強はさらに性能を向上させ、データが限定的なタスクでのギャップを縮めるのに役立つ。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。