[論文レビュー] Comparative Analysis of Different Efficient Fine Tuning Methods of Large Language Models (LLMs) in Low-Resource Setting
この論文は、低リソース環境における大規模言語モデル(LLM)の効率的微調整手法を比較し、OPT-125MおよびOPT-350Mを対象に、vanilla微調整、パターンベース微調整(PBFT)、LoRA、適応的微調整、コンテキスト distillation を MNLI および COLA データセットで評価している。コンテキスト distillation はドメイン外一般化において標準的な微調整を上回るが、最適でないプロンプト設計のため PBFT は vanilla 微調整を下回り、効率性、性能、リソース制約の間のトレードオフが浮き彫りになる。
In the domain of large language models (LLMs), arXiv:2305.16938 showed that few-shot full-model fine-tuning -- namely Vanilla Fine Tuning (FT) and Pattern-Based Fine Tuning (PBFT) --, and In-Context Learning (ICL) generalize similarly on Out-Of-Domain (OOD) datasets, but vary in terms of task adaptation. However, they both pose challenges, especially in term of memory requirements. In this paper, we further try to push the understanding of different fine-tuning strategies for LLM and aim to bring a myriad of these on the same pedestal for an elaborate comparison with full-model fine-tuning on two diverse datasets. To that end, we conducted a series of experiments, beginning with state-of-the-art methods like vanilla fine-tuning and Pattern-Based Fine-Tuning (PBFT) on pre-trained models across two datasets, COLA and MNLI. We then investigate adaptive fine-tuning and the efficiency of LoRA adapters in a few-shot setting. Finally, we also compare an alternative approach that has gained recent popularity -- context distillation -- with the vanilla FT and PBFT with and without few-shot setup. Our findings suggest that these alternative strategies that we explored can exhibit out-of-domain generalization comparable to that of vanilla FT and PBFT. PBFT under-performs Vanilla FT on out-of-domain (OOD) data, emphasizing the need for effective prompts. Further, our adaptive-fine tuning and LoRA experiments perform comparable or slightly worse than the standard fine-tunings as anticipated, since standard fine-tunings involve tuning the entire model. Finally, our context distillation experiments out-perform the standard fine-tuning methods. These findings underscore that eventually the choice of an appropriate fine-tuning method depends on the available resources (memory, compute, data) and task adaptability.
研究の動機と目的
- 低リソースで少しだけの例(few-shot)設定におけるさまざまな効率的微調整手法の性能を評価・比較すること。
- 標準的な微調整(vanilla FT)およびパターンベース微調整(PBFT)と比較して、LoRA や適応的微調整、コンテキスト distillation といった代替的微調整戦略の一般化能力を評価すること。
- MNLI および COLA という2つの多様なデータセットを用いた文書分類タスクにおいて、モデルの性能、計算効率、リソース制約の間のトレードオフを理解すること。
- 少しだけの例学習とプロンプト工学がドメイン外(OOD)一般化に与える影響を調査すること、特にデータが少ない状況での影響を重視する。
提案手法
- MNLI(自然言語推論用)および COLA(文法的受容可能性用)という2つのデータセットを用いて、OPT-125M および OPT-350M モデルで比較実験を実施した。
- 公平な比較のため、基準として標準的微調整(vanilla FT)およびパターンベース微調整(PBFT)を採用し、同じハイパーパrameterと訓練手順を適用した。
- ランク値を 1 から 64 に変更し、スケーリング係数 α=8 を用いた Low-Rank Adaptation(LoRA)を適用した。これは元の研究者による α=32 とは異なり、ハイパーパrameterへの感受性を評価するためである。
- 完全なモデル更新なしに学習ダイナミクスを最適化し、一般化性能を向上させるために適応的微調整を検討した。
- 少しだけの例を用いたプロンプトを含めたコンテキスト distillation を実装し、コンテキスト例を用いて知識を効率的に抽出した。
- 分布外のシフトに対して頑健性を評価するため、HANS データセットを OOD ベンチマークとして用い、構文的・語彙的ヒューリスティクスに対する耐性を確認した。

実験結果
リサーチクエスチョン
- RQ1コンテキスト distillation は、低リソース環境において、vanilla 微調整や PBFT よりも優れたドメイン外一般化を達成できるか?
- RQ2LoRA や適応的微調整は、文書分類タスクにおける性能と効率性の観点から、完全なモデル微調整と比較してどうなるか?
- RQ3PBFT はなぜ COLA データセットで vanilla 微調整を下回るのか?これは少しだけの例学習におけるプロンプト設計の影響をどのように示唆するか?
- RQ4少しだけの例を用いたコンテキスト distillation は、完全なデータセット微調整と同等の性能を達成しつつ、訓練時間とリソース使用量を削減できるか?
- RQ5LoRA のスケーリング係数 α が性能に与える影響は何か?特に、元のハイパーパrameter選択とは異なる場合にどうなるか?
主な発見
- コンテキスト distillation は、OPT-125M モデルを用いた MNLI データセットで、インドメイン精度 0.7209 を達成し、vanilla 微調整や PBFT を顕著に上回った。
- 少しだけの例を用いたコンテキスト distillation は、N=128 例でインドメイン精度 0.6708 を達成し、完全なデータセットでの distillation に近い性能を示した一方で、訓練時間を 1 時間 51 分から 5 分 19 秒に短縮した。
- vanilla 微調整は COLA で N=16 の条件下で OOD 精度 0.5310 を達成し、PBFT の 0.5058 を上回った。これはプロンプト設計が一般化性能に顕著に影響を与えることを示唆している。
- 適応的微調整は COLA で vanilla 微調整より OOD 精度が 0.0290 向上した。これは動的最適化による一般化性能の向上が可能であることを示している。
- α=8 を用いた LoRA は、ランクごとに -0.0697 から -0.0445 の OOD ダイナミクスの変化に留まり、完全な微調整に比べてほとんど向上が見られなかった。
- HANS データセットにおける OOD 精度は、ほとんどの手法で約 0.5 で安定しており、少しだけの例を用いた distillation ではわずかな低下が見られた。これは、敵対的例に対する一般化の向上は限定的であることを示唆している。

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