Abstract
Fine-tuning Large Language Models (LLMs) on edge devices presents significant challenges due to data heterogeneity, hardware constraints, and mathematical inconsistencies in standard federated learning workflows. We present Ravan, a novel federated fine-tuning framework that utilizes a multi-head low-rank architecture with frozen orthogonal bases. Ravan enables higher-rank updates than standard Low-Rank Adaptation (LoRA) while ensuring exact aggregation at the server. Our evaluation across vision and language tasks, including LLaMA 3.2-1B on the GLUE benchmark, demonstrates that Ravan consistently outperforms existing baselines by 2–8% in accuracy, particularly in non-I.I.D. settings.
Introduction
As Large Language Models (LLMs) become increasingly integrated into edge computing environments, the need for efficient, privacy-preserving fine-tuning methods has grown. Federated Learning (FL) is the standard paradigm for collaborative training without data sharing. To manage the high computational and memory requirements of LLMs on low-power hardware, researchers typically employ Parameter-Efficient Fine-Tuning (PEFT) techniques like Low-Rank Adaptation (LoRA).
However, standard LoRA faces three critical bottlenecks in a federated context:
- Mathematical Inconsistency: Averaging low-rank matrices ($A$ and $B$) from different clients is not mathematically equivalent to averaging the weight updates they represent, leading to "inexact aggregation."
- Data Heterogeneity: Edge data is often non-I.I.D. (Independent and Identically Distributed). Capturing the complexity of diverse datasets requires higher-rank updates, which standard LoRA cannot provide without significantly increasing communication costs.
- Hardware Heterogeneity: Devices with varying computational capacities struggle to participate in a uniform training process.
Ravan addresses these challenges by introducing a multi-head augmented structure that decouples the low-rank bases from the trainable parameters, ensuring both mathematical rigor and architectural flexibility.
The Ravan Framework
Named after the ten-headed figure from the Ramayana, Ravan reparameterizes the weight update $\Delta W$ into a multi-head structure:
$$\Delta W \approx \sum_{i=1}^{h} s_i B_i H_i A_i$$
Frozen Orthogonal Bases
Unlike standard LoRA, where both matrices in the low-rank pair are trained, Ravan utilizes frozen bases ($B_i$ and $A_i$). These matrices are generated at initialization and made mutually orthogonal using techniques such as Gram-Schmidt. Because these "outer" matrices remain fixed across all clients, the server can perform exact aggregation by averaging only the small, trainable core matrices ($H_i$). This ensures that the global model update is mathematically consistent with the local updates.
Multi-Head Scaling and Training
Ravan introduces two additional components to enhance performance:
- Trainable Cores ($H_i$): These small matrices are the primary units of communication and training.
- Scaling Factors ($s_i$): Lightweight trainable scalars allow the model to dynamically weight the importance of each head, effectively acting as a simple attention mechanism over the update dimensions.
Resource-Aware Selective Freezing
To accommodate hardware heterogeneity, Ravan allows for selective participation. Weaker devices can train a subset of the available heads (e.g., 1 out of 4), while more powerful devices train the full suite. This prevents resource-constrained devices from dropping out of the training process, preserving the diversity of the federated data pool.
Experimental Evaluation
The authors evaluated Ravan across a diverse set of models and benchmarks:
- Vision: ViT-B/16 on CIFAR-100 and SVHN.
- Language: T5-Base on 20 Newsgroups and the MRQA (Machine Reading Question Answering) benchmark.
- Large-Scale LLM: LLaMA 3.2-1B on the GLUE benchmark to test scalability to modern billion-parameter architectures.
Key Insights and Results
The Effective Rank Discovery
Using Singular Value Decomposition (SVD), the researchers found that as data becomes more heterogeneous (non-I.I.D.), the "effective rank" required for an ideal weight update increases. Standard LoRA is often too constrained to capture this complexity. Ravan’s multi-head approach effectively stacks low-rank updates, allowing the model to approximate high-rank transformations without the communication overhead of full-rank training.
Performance Gains
Ravan consistently outperformed state-of-the-art baselines such as FedIT and FedEx-LoRA. Key results include:
- Accuracy: A 2–8% improvement in test accuracy across most tasks.
- Robustness: In a non-I.I.D. setting with 50 diverse clients on CIFAR-100, Ravan outperformed the nearest baseline by 7.2%.
- Convergence: Training curves indicate that Ravan reaches target accuracy levels in significantly fewer communication rounds than other PEFT methods.
- Scalability: On the GLUE benchmark, Ravan surpassed the Fed-SB baseline, confirming its efficacy for large-scale LLM fine-tuning.
Conclusion and Future Work
Ravan provides a robust solution for federated fine-tuning by solving the aggregation problem inherent in low-rank methods. By utilizing frozen orthogonal bases and a multi-head architecture, it captures high-rank information while remaining communication-efficient.
Future research directions include developing a "cross-layer scoring scheme" to allow for more granular resource allocation across different layers of the model. Additionally, while federated learning provides a baseline for privacy, future iterations of Ravan could benefit from formal Differential Privacy (DP) guarantees and "data-aware" initializations to further optimize the starting point of the frozen bases.
Summary updated