[Paper Review] Efficient Deployment of Large Language Models on Resource-constrained Devices
FedSpine is a federated fine-tuning framework that combines structured pruning and PEFT (LoRA) with a multi-armed bandit driven adaptive strategy to deploy on-device LLMs efficiently across heterogeneous devices.
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.
Motivation & Objective
- Address data distribution shifts from end-device data via on-device fine-tuning while preserving privacy.
- Reduce inference latency and memory usage to enable LLM deployment on resource-constrained devices.
- Develop an adaptive, privacy-preserving framework that handles device heterogeneity during federated fine-tuning.
- Integrate structured pruning with PEFT to maintain accuracy while improving fine-tuning efficiency.
Proposed method
- Propose FedSpine, an FL framework that iteratively prunes the frozen LLM and tunes with LoRA in rounds.
- Use structured pruning to remove groups of weights (attention heads and FFN channels) guided by a LoRA-based importance criterion.
- Adopt a multi-armed bandit (MAB) online learning algorithm (Smooth Upper Confidence Bound) to adapt pruning ratios and LoRA ranks per device without prior capability knowledge.
- Implement heterogeneity-aware weighted aggregation for LoRA updates to accommodate devices with different capacities.
- Define a reward function combining loss decrease, pruning progress, and latency deviation to guide MAB decisions.
- Provide a pruning criterion based on LoRA gradients and a group-wise importance aggregation to determine which parameters to prune.
Experimental results
Research questions
- RQ1How can federated fine-tuning of LLMs be made efficient on resource-constrained devices without sacrificing accuracy?
- RQ2Can adaptive pruning and adaptive LoRA rank assignment mitigate device heterogeneity and straggler effects in federated LLM fine-tuning?
- RQ3What is the impact of joint iterative pruning and fine-tuning on both inference efficiency and task accuracy in a federated, device-diverse setting?
Key findings
- FedSpine speeds up fine-tuning by 1.4× to 6.9× compared to baselines under the same sparsity level.
- FedSpine improves final accuracy by 0.4% to 4.5% under the same sparsity level.
- An online MAB-based algorithm with continuous arm handling (S-UCB) effectively assigns pruning ratios and LoRA ranks without prior device knowledge.
- Experiments on 80 NVIDIA Jetson devices demonstrate the proposed approach**, achieving both efficiency gains and accuracy improvements.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.