Skip to main content
QUICK REVIEW

[論文レビュー] Efficient Deployment of Large Language Models on Resource-constrained Devices

Zhu Yao, Yang Xu|arXiv (Cornell University)|Jan 5, 2025
Parallel Computing and Optimization TechniquesComputer Science被引用数 3
ひとこと要約

FedSpine は、構造的剪定と PEFT(LoRA)を組み合わせ、マルチアームバンディット駆動の適応戦略で分散デバイス上の LLM を効率的にデプロイするフェデレーテッド微調整フレームワークである。

ABSTRACT

Deploying Large Language Models (LLMs) on resource-constrained (or weak) devices presents significant challenges due to limited resources and heterogeneous data distribution. To address the data concern, it is necessary to fine-tune LLMs using on-device private data for various downstream tasks. While Federated Learning (FL) offers a promising privacy-preserving solution, existing fine-tuning methods retain the original LLM size, leaving issues of high inference latency and excessive memory demands unresolved. Hence, we design FedSpine, an FL framework that combines Parameter- Efficient Fine-Tuning (PEFT) with structured pruning for efficient deployment of LLMs on resource-constrained devices. Specifically, FedSpine introduces an iterative process to prune and tune the parameters of LLMs. To mitigate the impact of device heterogeneity, an online Multi-Armed Bandit (MAB) algorithm is employed to adaptively determine different pruning ratios and LoRA ranks for heterogeneous devices without any prior knowledge of their computing and communication capabilities. As a result, FedSpine maintains higher inference accuracy while improving fine-tuning efficiency. Experimental results conducted on a physical platform with 80 devices demonstrate that FedSpine can speed up fine-tuning by 1.4$ imes$-6.9$ imes$ and improve final accuracy by 0.4%-4.5% under the same sparsity level compared to other baselines.

研究の動機と目的

  • エンドデバイスデータからのデータ分布シフトに対処するため、プライバシーを保護しつつオンデバイス微調整を実施する。
  • リソース制約デバイス上での推論レイテンシとメモリ使用量を低減し、LLM のデプロイを可能にする。
  • フェデレーテッド微調整中のデバイス多様性を扱う適応的でプライバシー保護的なフレームワークを開発する。
  • 構造的剪定と PEFT を統合して、微調整効率を向上させつつ精度を維持する。

提案手法

  • FedSpine を提案する:固定化された LLM を反復的に剪定し、LoRA でラウンドごとに微調整する FL フレームワーク。
  • 構造的剪定を用いて、LoRA ベースの重要度基準に guided された重みのグループ(アテンションヘッドと FFN チャネル)を削除する。
  • Prior 知識なしでデバイスごとの能力を事前に知ることなく、マルチアームバンディット(MAB)オンライン学習アルゴリズム(Smooth Upper Confidence Bound)を採用して剪定比と LoRA ランクを適応する。
  • 異種性を考慮した LoRA 更新の重み付け集約を導入し、容量の異なるデバイスに対応する。
  • 報酬関数を定義し、損失低減、剪定の進捗、遅延の偏差を組み合わせて MAB の意思決定を導く。
  • LoRA 勾配に基づく剪定基準とグループ単位の重要度集約を提供し、どのパラメータを剪定するかを決定する。

実験結果

リサーチクエスチョン

  • RQ1リソース制約デバイス上でも精度を損なわずに LLM のフェデレーテッド微調整を効率化できるか。
  • RQ2適応的剪定と適応的 LoRA ランク割り当ては、デバイスの非均質性とストラグラー効果を軽減できるか。
  • RQ3共同的な反復的剪定と微調整が、推論効率とタスク精度の両方に与える影響は、デバイス多様性を持つ設定でどうなるか。

主な発見

  • FedSpine は同じスパース性レベルでのベースラインと比較して微調整を 1.4×〜6.9×高速化する。
  • 同じスパース性レベルで最終精度を 0.4%〜4.5%向上させる。
  • 連続アームを扱えるオンライン MAB(S-UCB)アルゴリズムは事前のデバイス知識なしに剪定比と LoRA ランクを効果的に割り当てる。
  • 80 台の NVIDIA Jetson デバイスでの実験により、提案手法は効率向上と精度改善の両方を達成する。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。