Introduction
Training multilingual Large Language Models (LLMs) often involves a difficult trade-off known as the "Curse of Multilinguality." As models attempt to support a vast array of languages, they frequently encounter "Negative Interference," where diverse linguistic patterns compete for limited model capacity. This often results in degraded performance, particularly for low-resource languages. While Federated Learning (FL) allows for training on decentralized data, a single global model rarely satisfies the unique linguistic requirements of every client.
To address this, researchers have turned to personalization via Parameter-Efficient Fine-Tuning (PEFT), such as LoRA. However, determining the optimal personalization strategy—specifically, which layers to tune and what LoRA ranks to assign—remains a manual and often suboptimal process. FedP2EFT (Federated Learning to Personalize PEFT) is a novel framework designed to automatically discover these optimal, per-layer configurations tailored to specific language and data constraints.
The FedP2EFT Framework
The core innovation of FedP2EFT lies in its ability to collaboratively learn how to personalize. The system consists of two primary components:
- BT-LoRA (BayesTune-LoRA): This component treats LoRA rank selection as a Bayesian pruning problem. By applying Laplace and Gamma distribution priors, the model learns to identify and "zero out" insignificant ranks, effectively discovering the most efficient adapter structure for a specific task.
- PSG (Personalization Strategy Generator): The PSG is a small, federatedly-trained Multi-Layer Perceptron (MLP) that acts as the system's decision-maker. It takes client-specific metadata—derived from the mean and standard deviation of hidden features in the base model—and predicts the optimal LoRA rank configuration (denoted as $\lambda$) for that client.
The training process is executed in two stages. First, clients utilize BT-LoRA to identify their best local rank structure. Second, they collaboratively train the PSG to learn the mapping between data features and those optimal structures. This collaborative approach allows even clients with very limited data to benefit from the collective "personalization wisdom" of the entire network.
Experimental Setup and Datasets
The researchers evaluated FedP2EFT across several challenging multilingual benchmarks using models like mBERT, MobileLLaMA-1.4B, and Llama-3.2-3B. The benchmarks included:
- XNLI: Natural language inference across 15 languages.
- MasakhaNEWS: News topic classification for 16 African languages, many of which are highly resource-constrained.
- Fed-Aya: A real-world federated instruction-tuning dataset featuring a mix of high- and low-resource languages.
Key Insights: Structure vs. Magnitude
A significant finding of the study is that FedP2EFT learns "rank structures" that are largely task-specific rather than language-specific. For a given task, the model might consistently determine that dense layers require more tuning than attention blocks, regardless of the input language. However, the magnitude or strength of this personalization remains highly language-dependent.
Furthermore, the model naturally clusters languages based on linguistic similarity. Linguistically related languages, such as Urdu and Arabic, result in the PSG generating remarkably similar LoRA configurations. This suggests that the PSG successfully captures underlying linguistic relationships to inform its personalization strategies.
Performance and Efficiency
FedP2EFT consistently outperformed standard LoRA with fixed ranks and other automated methods like AdaLoRA. On the MasakhaNEWS benchmark, it achieved significantly higher accuracy across all 16 languages. Beyond accuracy, the framework offers notable efficiency gains; compared to previous state-of-the-art methods like FedL2P, FedP2EFT is faster and more memory-efficient by avoiding expensive second-order optimization. Crucially, the PSG demonstrated strong generalization, successfully generating effective strategies for "unseen" clients who did not participate in the initial training.
Limitations and Future Directions
Despite its success, the system faces challenges with "zero-shot" transfer to languages that are linguistically distinct from those in the training pool (e.g., poor performance on Russian when no other Slavic languages were present). Additionally, there is a risk of "predominant language bias," where configurations may skew toward the most frequent language in a client's local dataset.
Future work will explore the use of per-language metadata and multi-adapter approaches to further refine personalization for minority languages in mixed-language environments.
Summary updated