Personalized Federated Fine-Tuning for LLMs via Data-Driven Heterogeneous Model Architectures

Yicheng Zhang, Zhen Qin, Zhaomin Wu, Jian Hou, Shuiguang Deng

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.

Figure 1: Scenario examples of federated LLM fine-tuning among three institutes, where each holds data that differs in domain and tasks. To better adapt to local data, personalized models with heterogeneous architectures tailored for local data distributions are usually preferred (b).

Methods

The authors introduce FedAMoLE (Federated Architecture-aware Mixture of LoRA Experts), which consists of two primary innovations:

  1. 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.
  2. 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.
Figure 3: Overview of FedAMoLE in a single round. Each client has a transformer-based local model with 𝐿decoder layers, where each layer includes a self-attention block (with parameters Q, K, V, and O) and an FFN block. Trainable HMoLE modules (see Figure 4) are injected into Q and V for fine-tuning, while K, O, and FFN remain frozen. Step ➅denotes the RSEA strategy (see Figure 5). Components of the same type (e.g., all shared experts) are shown with an identical color and texture.

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.
Figure 4: Routing of HMoLE module 𝑚at client 𝑖.

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

Abstract

Large language models (LLMs) are increasingly powering web-based applications, whose effectiveness relies on fine-tuning with large-scale instruction data. However, such data often contains valuable or sensitive information that limits its public sharing among business organizations. Federated learning (FL) enables collaborative fine-tuning of LLMs without accessing raw data. Existing approaches to federated LLM fine-tuning usually adopt a uniform model architecture, making it challenging to fit highly heterogeneous client-side data in varying domains and tasks, e.g., hospitals and financial institutions conducting federated fine-tuning may require different LLM architectures due to the distinct nature of their domains and tasks. To address this, we propose FedAMoLE, a lightweight personalized FL framework that enables data-driven heterogeneous model architectures. It features a heterogeneous mixture of low-rank adaptation (LoRA) experts module to aggregate architecturally heterogeneous models and a reverse selection-based expert assignment strategy to tailor model architectures for each client based on data distributions. Experiments across seven scenarios demonstrate that FedAMoLE improves client-side performance by an average of 5.97% over existing approaches while maintaining practical memory, communication, and computation overhead.
BibTeX
@inproceedings{zhang2026personalized,
  author = {Yicheng Zhang and Zhen Qin and Zhaomin Wu and Jian Hou and Shuiguang Deng},
  title = {{Personalized Federated Fine-Tuning for LLMs via Data-Driven Heterogeneous Model Architectures}},
  booktitle = {The Web Conference},
  year = {2026},
  doi = {10.1145/3774904.3792147},
}
Figure