Introduction
Large pre-trained models, such as LLaMA and Vision Transformers (ViTs), have revolutionized AI. However, deploying them in privacy-preserving Federated Learning (FL) environments remains challenging due to "model heterogeneity." In real-world scenarios, client devices (e.g., smartphones vs. high-end servers) possess vastly different hardware capabilities. While a powerful GPU can handle a massive model, a mobile device is restricted to much smaller architectures.
Existing solutions typically fall into three categories, each with significant drawbacks:
- Knowledge Distillation: Often requires auxiliary public data and imposes heavy computational burdens.
- Sub-model Extraction: Pruning or slicing pre-trained models can disrupt their learned representations, leading to poor convergence.
- Proxy Models: Transferring knowledge through a middle-man model is inefficient when the size disparity between the proxy and local models is extreme.
The HeteroTune Framework
To overcome these limitations, we introduce HeteroTune, a framework designed for efficient fine-tuning of large models across heterogeneous networks. HeteroTune leverages two key innovations: the Dense Mixture of Adapters (DeMA) and Cross-Model Gradient Alignment (CMGA).
Dense Mixture of Adapters (DeMA)
Instead of modifying the entire model, HeteroTune utilizes Parameter-Efficient Fine-Tuning (PEFT) via adapters. DeMA decomposes these adapters into a local-adapter (specific to the client's model size) and a set of share-adapters.
During training, clients update only the share-adapter corresponding to their specific model variant. A critical advantage of DeMA is its "collapsibility": at inference time, the multiple branches are mathematically simplified into a single linear layer, ensuring zero additional computational overhead during deployment.
Cross-Model Gradient Alignment (CMGA)
Aggregating updates from models of different sizes often leads to conflicting gradient directions, causing training instability. CMGA addresses this by performing a lightweight whitening and rescaling operation on the server. This aligns the gradient geometry, ensuring smooth convergence and preventing any single model type from dominating the global update.
Experimental Evaluation
HeteroTune was validated across diverse Computer Vision (CV) and Natural Language Processing (NLP) tasks:
- CV Tasks: Evaluated on CIFAR-10, CIFAR-100, Caltech-101, and Caltech-256 using ViT variants (Tiny to Large).
- NLP Tasks: Tested on the GLUE benchmark (SST-2, CoLA, QQP) using LLaMA3 models with 1B, 3B, and 8B parameters.
- Data Distribution: Experiments simulated realistic "Non-IID" scenarios using a Dirichlet distribution ($\alpha=0.1$), where data is highly biased across clients.
Key Results and Insights
HeteroTune demonstrates superior performance and efficiency compared to state-of-the-art methods like FedDF and FLoRA:
- Massive Efficiency Gains: For 8B parameter LLaMA models, HeteroTune reduced communication overhead by 99.5% and peak memory usage by 50%.
- Superior Accuracy: On Caltech-256, HeteroTune achieved 65.89% accuracy, outperforming the next best method by over 3.5%.
- Enhanced Privacy: By sharing only small adapter weights instead of full model gradients, the framework provides inherent resistance to "Deep Leakage" attacks.
Conclusion and Future Directions
HeteroTune represents a significant advancement in heterogeneous FL for large models by preserving pre-trained knowledge and optimizing gradient geometry. Future work will explore extending DeMA to more diverse architectural mixes (e.g., CNNs and Transformers) and adapting the framework for asynchronous federated learning environments.
Summary updated