TL;DR
FedReFT introduces a highly efficient way to fine-tune Large Language Models (LLMs) in decentralized environments by manipulating hidden representations rather than model weights. By utilizing a novel "All-But-Me" (ABM) aggregation strategy and adaptive mixing, it achieves state-of-the-art performance across reasoning and language tasks while using up to 49x fewer trainable parameters than leading LoRA-based federated methods.
What Problem Does This Paper Address?
Fine-tuning LLMs is computationally expensive. While Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA have lowered the barrier, they still focus on modifying model weights. A newer paradigm, Representation Fine-Tuning (ReFT), has shown that modifying a model’s internal "thoughts" (hidden activations) is often more effective and efficient than changing its "brain structure" (weights).
However, bringing ReFT into Federated Learning (FL)—where data stays on local devices—is tricky. In FL, clients often have very different data distributions (heterogeneity). Standard aggregation methods like FedAvg, which simply average updates, tend to "corrupt" the delicate semantic alignment of hidden representations. If Client A is learning math and Client B is learning poetry, a simple average of their representation interventions might result in a model that is good at neither.
Methods
The authors propose FedReFT, a framework built on three key technical pillars:
- LoReFT (Low-Rank Linear Subspace ReFT): Instead of updating weights, FedReFT injects tiny, learnable intervention layers that steer the model's hidden representations. This is mathematically expressed as a low-rank projection that "edits" the activation space.
- All-But-Me (ABM) Aggregation: To solve the "averaging" problem, the server doesn't send a single global model back to everyone. Instead, for each client $k$, the server aggregates the updates from all other clients ($m \neq k$). This allows a client to maintain its local expertise while selectively incorporating "global knowledge" from its peers.
- Geometric Median Robustness: Within the ABM strategy, the authors use the geometric median (calculated via Weiszfeld’s algorithm) instead of a standard arithmetic mean. This makes the aggregation much more robust to outliers or clients with highly divergent data.
- Adaptive Mixing via Test-Time Computing (TTC): At inference time, the model needs to decide how much to trust its local intervention versus the aggregated global intervention. FedReFT uses a TTC-inspired strategy to learn a dynamic mixing coefficient ($\alpha$) based on a small set of calibration data.
Datasets
The researchers evaluated FedReFT across a wide array of benchmarks using models like LLaMA-2 (7B/13B), LLaMA-3 (8B), LLaMA-3.2 (3B), and RoBERTa-large:
- Commonsense Reasoning: The Commonsense170K dataset, which includes tasks like BoolQ, PIQA, SIQA, HellaSwag, and WinoGrande.
- Arithmetic Reasoning: The MATH10K dataset, covering AQuA, GSM8K, SVAMP, and MAWPS.
- Natural Language Understanding (NLU): The GLUE benchmark (including MNLI, SST-2, QNLI, and QQP).
Key Insights and Results
- Extreme Efficiency: FedReFT is 1x to 49x more parameter-efficient than LoRA-based federated methods. For a LLaMA-2 7B model, it only needs to train 0.0311% of the total parameters.
- Superior Accuracy: On the GSM8K arithmetic task (LLaMA-3 8B), FedReFT achieved 48.88% accuracy, outperforming LoRA (46.23%) and other specialized federated variants like FedSA-LoRA and FFA-LoRA.
- Task Heterogeneity: In "Distinct Task" (DT) setups—where every client works on a completely different reasoning task—FedReFT remained stable and outperformed baselines, proving it can handle the "messiness" of real-world decentralized data.
Limitations and Future Work
- Manual Hyperparameters: The current study uses a fixed set of layers and positions for interventions. Future work could use multi-agent coordination to automatically find optimal intervention spots.
- Privacy Mechanisms: While FL is inherently more private, this paper does not explicitly implement Differential Privacy (DP). Integrating DP-SGD into the FedReFT framework is a high priority for future research.
- Beyond Text: The study is limited to language models. Extending these representation-level interventions to vision-language or multimodal models in a federated setting remains an open challenge.
Summary updated