TL;DR
FedAMoLE is a novel framework for personalized federated fine-tuning of Large Language Models (LLMs) that moves beyond simple parameter updates to data-driven architecture personalization. By using a heterogeneous mixture of LoRA experts and a "reverse selection" strategy, it allows different organizations (like hospitals vs. banks) to collaboratively train models while automatically tailoring their local model structures to their specific data distributions.
What Problem Does This Paper Address?
Fine-tuning LLMs on specialized instruction data is essential for high performance, but this data is often siloed and sensitive. While Federated Learning (FL) allows organizations to train models collaboratively without sharing raw data, it typically forces a "one-size-fits-all" global model architecture on every participant.
This is problematic because client data is often highly heterogeneous (non-IID). A hospital's medical instruction data and a bank's financial data require different internal "expertise." Existing personalized FL methods usually keep the model structure identical across all clients and only vary the parameters. The authors argue that to truly handle diverse data, we need architecture-level personalization—allowing each client to have a model structure specifically suited to its local tasks.
Methods
The authors introduce FedAMoLE (Federated Architecture-aware Mixture of LoRA Experts), which consists of two primary innovations:
- Heterogeneous MoLE (HMoLE) Module: Standard Mixture of Experts (MoE) routers have a fixed shape based on the total number of experts, which makes it hard to aggregate models if clients have different numbers of experts. HMoLE uses a "shape-invariant router" that decouples the router's structure from the local expert count. It uses token projections and expert embeddings to calculate weights, allowing clients to participate in the global update even if they only use a small subset of the available experts.
- Reverse Selection-based Expert Assignment (RSEA): Instead of clients downloading all experts and picking what they need (which is slow and privacy-risky), FedAMoLE uses a "reverse selection" strategy. Clients upload anonymized embeddings of their local data. The server then solves an optimization problem (specifically, Mixed Integer Linear Programming) where experts "select" the most relevant clients. This ensures each client receives a custom-tailored set of experts that align with their specific data domain.
Datasets
The framework was evaluated across seven diverse non-IID scenarios using several backbones (LLaMA-3.2-1B/3B and Qwen-2.5-0.5B):
- BigBench: Used to simulate domain skew (each client gets a unique domain).
- Natural Instructions (NI): Used to simulate task skew.
- Hybrid Dataset: A custom composite of ten datasets including Dolly-15K, Alpaca, AG News, and Yelp-P.
- SNLI & Dolly-15K: Partitioned using a Dirichlet distribution to simulate varying degrees of label skew.
Key Insights and Ideas
- Architecture > Parameters: The results show that allowing the model structure to adapt to local data provides a significant boost over just fine-tuning parameters within a fixed structure.
- The Power of Reverse Selection: By letting experts "choose" clients, the system naturally clusters similar clients together around specific experts. This collaborative training of domain-specific experts leads to better generalization than if a client trained a local expert in isolation.
- Efficiency via LoRA: By using Low-Rank Adaptation (LoRA) for the experts, the framework keeps communication and memory overhead extremely low—roughly 1% of the cost of traditional dense MoE methods. This makes it practical for cross-silo FL where bandwidth might be a constraint.
Key Results
FedAMoLE consistently outperformed both standard FL and state-of-the-art personalized FL baselines:
- Accuracy Gains: It achieved an average improvement of 5.97% across all scenarios. On highly heterogeneous datasets like BigBench, the gain was as high as 8.97%.
- Scalability: The system maintains high performance as the number of clients increases, showing better scalability than methods like FDLoRA.
- Efficiency: Despite using multiple experts, the peak GPU memory usage remained comparable to single-adapter LoRA methods (around 2.8 GB for a 1B model).
- Privacy: The method is robust to Differential Privacy (DP) noise, maintaining superior performance even when strong privacy protections are applied to the uploaded embeddings.
Limitations and Future Work
- Sequential Processing: The current default implementation processes domain experts sequentially, which adds some latency. While the authors demonstrated that parallelization is possible, it comes at a slight memory cost.
- Optimization Complexity: The RSEA strategy relies on solving an MILP problem. While this is efficient for hundreds of clients/experts, it is technically NP-hard and might require more heuristic approaches if scaled to thousands of participants.
- Hardware Support: Like most MoE implementations, FedAMoLE would benefit significantly from future specialized hardware and software kernels designed for sparse model architectures.
Summary updated