Introduction
Fine-tuning Large Language Models (LLMs) like GPT-2 or Llama typically requires massive computational resources, creating a "compute wall" for resource-constrained edge devices. While Federated Learning (FL) offers privacy-preserving distributed training, the sheer size of LLMs makes local execution impossible on most smartphones or IoT sensors. Conversely, Split Learning (SL) offloads computation to a server but introduces sequential bottlenecks.
To address these challenges, the authors introduce SflLLM, a framework that harmonizes Split Learning, Federated Learning, and Low-Rank Adaptation (LoRA). By jointly optimizing model split points, LoRA ranks, and wireless resource allocation, SflLLM achieves up to a 60% reduction in training latency while maintaining accuracy comparable to centralized training.
System Architecture and Methods
The SflLLM framework is built upon a novel dual-server architecture designed to balance computational load and communication efficiency.
Core Components
- Model Splitting: The LLM is partitioned into a client-side segment (lower layers) and a server-side segment (upper layers). A "cut layer" is dynamically selected to balance the computational burden on the client against the communication overhead of transmitting intermediate activations.
- Parameter-Efficient Fine-Tuning (LoRA): Instead of updating the entire weight matrix, SflLLM trains low-rank adapter matrices ($\Delta W$). This significantly reduces the volume of data synchronized between clients and the federated server.
- Dual-Server Architecture:
- Main Server: Executes the forward and backward propagation for the upper layers of the model.
- Federated Server: Aggregates the LoRA weights from all participating clients to update the global model, ensuring privacy by decoupling data processing from model aggregation.
The Training Workflow
The training process is divided into local fine-tuning steps and global aggregation rounds. The timing of these operations is critical for minimizing total latency.
As shown in the workflow, each global iteration involves client-side forward propagation (CF), activation transmission (AT), server-side processing (SF/SB), and client-side back-propagation (CB). The "straggler effect" is mitigated by ensuring that the slowest device does not stall the entire network through adaptive resource allocation.
Optimization Engine
The primary contribution of this work is a joint optimization problem aimed at minimizing the total training delay. The framework solves for four key variables:
- Subchannel Allocation: Assigning frequency bands to clients to optimize bandwidth.
- Power Control: Managing transmit power to maximize data rates while minimizing interference.
- Split Point Selection: Determining the optimal layer to cut the model based on client compute capacity and activation data size.
- LoRA Rank Configuration: Selecting a rank ($r$) that balances the number of steps to convergence (higher rank = faster convergence) with the per-step overhead (higher rank = more compute/data).
The authors employ a Block Coordinate Descent (BCD) algorithm to iteratively solve these sub-problems, utilizing greedy heuristics for subchannel assignment and convex optimization for power control.
Key Insights and Results
The research highlights several critical trade-offs in distributed LLM training:
- Rank-Convergence Tradeoff: SflLLM is the first to explicitly model how LoRA rank affects the total number of training steps required to reach a target loss.
- Layer-Wise Variability: The optimal split point is highly dependent on the size of the activation tensors at different layers, which varies significantly across the model architecture.
- Latency and Accuracy: Experimental results using the E2E dataset and GPT-2 architectures show that SflLLM reduces training latency by up to 60% compared to baseline methods. Crucially, the Test Perplexity (PPL) remains within 0.001 of centralized fine-tuning, demonstrating no loss in model quality.
Conclusion
SflLLM provides a robust solution for deploying LLM fine-tuning in heterogeneous wireless environments. By intelligently splitting the model and optimizing communication resources alongside adaptation parameters, it overcomes the hardware limitations of edge devices. Future work may extend this framework to optimize for energy consumption and explore theoretical derivations for the rank-convergence relationship across a wider variety of transformer architectures.
Summary updated