Abstract
Standard parameter-efficient fine-tuning (PEFT) methods often struggle in Federated Learning (FL) due to "client drift" caused by highly diverse, non-IID data across users. We present Client-Customized Adaptation (C2A), a framework that employs a hypernetwork to generate unique, specialized adapters for each client based on their specific data distribution. By shifting from a single global module to a client-conditional generation approach, C2A significantly improves both accuracy and communication efficiency in heterogeneous environments.
Introduction
Federated Learning (FL) enables multiple clients—such as mobile devices or healthcare institutions—to collaboratively train models without sharing private data. However, the deployment of Large Language Models (LLMs) in FL is hindered by the massive communication overhead required to transmit model weights.
While PEFT techniques like Adapters or LoRA mitigate this by updating only a small fraction of parameters, they typically enforce a "one-size-fits-all" global module. In real-world scenarios, client data is often non-IID (not identically and independently distributed). This diversity leads to "client drift," where local updates pull the global model in conflicting directions, resulting in slow convergence and degraded performance.
Methodology: Client-Customized Adaptation (C2A)
The core innovation of C2A is the transition from learning a single global adapter to learning a hypernetwork that generates customized adapters for each client.
1. Client Embeddings
To inform the hypernetwork about a client's specific data distribution, C2A utilizes two types of embeddings:
- Label Embeddings: These capture the class distribution (e.g., identifying a client primarily focused on "Sports").
- Context Embeddings: These capture linguistic style and domain by averaging word vectors from the Pre-trained Language Model (PLM) layers.
2. Client-Conditional Hypernetworks
A small neural network (the hypernetwork) processes these embeddings to output weights for a client-specific adapter. To maintain parameter efficiency, the authors employ matrix factorization, generating smaller components that are multiplied together rather than a single massive weight matrix.
3. Federated Aggregation
During training, clients do not transmit their customized adapters. Instead, they send updates for the hypernetwork weights. The server aggregates these updates, refining the hypernetwork's ability to generate specialized adapters for the entire client population.
Experimental Evaluation
The framework was evaluated on two benchmarks simulating real-world heterogeneity:
- 20Newsgroup: Used to test label heterogeneity across 20 topics.
- XGLUE-NC: A multilingual dataset used to test both label and language heterogeneity across five languages.
Key Results and Insights
Superior Performance in Heterogeneous Settings
C2A demonstrates significant gains as data becomes more non-IID. On the 20Newsgroup dataset with high heterogeneity, C2A achieved 61.0% accuracy, outperforming standard Adapters (56.1%) and LoRA (56.6%).
Efficiency and Convergence
C2A reached a target accuracy of 80% in just 18 communication rounds, compared to 33 rounds for vanilla Adapters—a nearly 2x improvement in training speed. Furthermore, Centered Kernel Alignment (CKA) analysis confirmed that C2A's local models remain closer to the global objective, effectively mitigating client drift.
The Importance of Context
Ablation studies revealed that "Context Embeddings" (capturing language and style) were more critical for performance than "Label Embeddings," suggesting that the linguistic nuances of client data are vital for effective adaptation.
Conclusion
C2A addresses the fundamental conflict between parameter efficiency and data heterogeneity in Federated Learning. By leveraging hypernetworks to provide local specialization within a global framework, C2A offers a scalable and efficient path for deploying LLMs in diverse, real-world federated environments. Future work will explore the integration of Differential Privacy to further secure client embeddings and the application of this hypernetwork approach to other PEFT methods like LoRA.
Summary updated