[논문 리뷰] Efficient Deployment of Large Language Models on Resource-constrained Devices
FedSpine은 구조화된 가지치기와 PEFT (LoRA)를 다중-팔 밴딧 기반 적응 전략과 결합하여 이질적인 디바이스에서 온-디바이스 LLM을 효율적으로 배포하는 연합 미세 조정 프레임워크입니다.
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 기반 중요도 기준에 따라 주의력 헤드 및 FFN 채널 같은 가중치 그룹을 제거하기 위한 구조화 가지치기를 사용한다.
- 사전 능력 지식 없이 디바이스별 가지치기 비율과 LoRA 랭크를 적응시키기 위해 온라인 학습 알고리즘인 다중-팔 밴딧(MAB) (Smooth Upper Confidence Bound)을 채택한다.
- 다양한 용량의 디바이스를 수용하기 위한 LoRA 업데이트에 이질성 인지 가중 합성을 구현한다.
- 손실 감소, 가지치기 진행, 지연 편차를 결합한 보상 함수를 정의하여 MAB 판단을 유도한다.
- LoRA 그래디언트와 그룹별 중요도 집계를 기반으로 가지치기 기준을 제공하여 어떤 파라미터를 가지치할지 결정한다.
실험 결과
연구 질문
- RQ1자원 제약 디바이스에서 정확도를 희생하지 않으면서 LLM의 연합 미세 조정을 어떻게 효율적으로 만들 수 있는가?
- RQ2적응형 가지치기와 적응형 LoRA 랭크 할당이 연합 LLM 미세 조정에서 디바이스 이질성과 지연 요인을 완화할 수 있는가?
- RQ3연합된, 디바이스 다양성을 가진 설정에서 연속적인 가지치기와 미세 조정의 실행 효율성과 작업 정확도에 미치는 영향은 무엇인가?
주요 결과
- 동일한 희소성 수준에서 기준선 대비 FedSpine은 미세 조정을 1.4×에서 6.9× 빠르게 만든다.
- 동일한 희소성 수준에서 최종 정확도를 0.4%에서 4.5% 높인다.
- 연속 팔 처리를 갖는 온라인 MAB 기반 알고리즘(S-UCB)이 사전 디바이스 지식 없이 가지치기 비율과 LoRA 랭크를 효과적으로 할당한다.
- 80개의 NVIDIA Jetson 디바이스에서의 실험은 제안된 접근법**, 효율성 향상과 정확도 개선을 모두 달성한다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.