TL;DR
Fine-tuning foundation models in personalized federated learning under long-tailed data distributions inadvertently destroys their inherent class balance, biasing them heavily toward dominant classes. This paper introduces FedPuReL, a framework that uses zero-shot guidance to purify local gradients and models personalization as additive residuals, preserving global balance while achieving superior client adaptation.
What Problem Does This Paper Address?
Foundation models like CLIP possess remarkable zero-shot generalization and an inherent cross-class balance due to massive pre-training. However, when deployed in Personalized Federated Learning (PFL) across clients with highly skewed, long-tailed data distributions—where a few "head" classes dominate and many "tail" classes are scarce—standard parameter-efficient fine-tuning (PEFT) breaks this balance.
The authors identify two core limitations in existing approaches:
- Global Model Imbalance: Naive fine-tuning on long-tailed data erodes the foundation model's balanced knowledge, causing its performance on tail classes to drop significantly below even the original zero-shot baseline.
- Bias Propagation: Conventional personalization techniques fuse global and local features or parameters, which inadvertently transfers this head-class bias directly from the global model to the personalized local models.
Methods
To solve these issues, the authors propose FedPuReL (Federated Learning via Gradient Purification and Residual Learning), which splits the learning process into two distinct strategies:
- Gradient Purification (Global Balanced Training): To prevent the global model from drifting toward head classes, local updates are constrained using zero-shot predictions as an anchor. The authors introduce Temperature-Aligned KL Divergence (TKL) to measure structural distribution shifts while neutralizing differences in prediction confidence. Local task gradients that conflict with the zero-shot alignment gradient are projected onto an orthogonal subspace, effectively "purifying" the updates to maintain class balance.
- Residual Learning (Personalization): Instead of fusing parameters or features, personalization is treated as learning additive corrective residuals in the output space. The global model branch remains frozen to act as a stable, balanced anchor, while a parallel personalized branch learns client-specific logit corrections. This decouples personalization from global parameters and prevents bias inheritance.
Datasets
The authors evaluated their method across a diverse set of eight datasets, creating long-tailed versions using exponential decay with varying imbalance factors (IF up to 500):
- ImageNet-LT and Places-LT (standard large-scale benchmarks)
- CIFAR-100-LT
- Food101-LT
- DTD-LT (Textures)
- FGVC-Aircraft-LT
- Stanford Dogs-LT
- OxfordPets-LT
Key Insights and Ideas
- Fine-tuning can be a double-edged sword: While PEFT helps models adapt to downstream tasks, naive fine-tuning on long-tailed data actively destroys the robust cross-class equilibrium that foundation models naturally possess.
- Divergence correlates with imbalance: The authors show a strong negative correlation between Temperature-Aligned KL (TKL) divergence from the zero-shot model and overall class balancedness. As fine-tuning progresses, head-class accuracy climbs while tail-class accuracy plummets.
- Output-space decoupling prevents bias inheritance: Fusing features or parameters at intermediate stages acts as a vector for bias propagation. Adding client-specific corrections directly to the final logits preserves the integrity of the global model's representations.
- No class priors needed: Unlike many traditional long-tailed learning methods that require explicit knowledge of class distributions (which can pose privacy risks in federated settings), FedPuReL relies entirely on the implicit priors already embedded in the zero-shot foundation model.
Key Results
FedPuReL consistently outperformed state-of-the-art prompt-, LoRA-, and adapter-based federated learning methods across both Global Model (GM) and Personalized Model (PM) evaluations:
- ImageNet-LT: FedPuReL achieved a global model accuracy of 72.96% (prompt-based), outperforming the next best baseline (PromptFolio+Fed-GraB) by 3.43%, with a massive 19.68% improvement specifically on few-shot (tail) classes compared to standard PromptFolio.
- CIFAR-100-LT (Severe Imbalance, IF=500): Under extreme imbalance, FedPuReL boosted global model accuracy by 8.22% over the PromptFolio+Fed-GraB baseline.
- Reduced Client Drift: Gradient purification successfully kept client updates aligned, significantly reducing client drift and stabilizing variance compared to standard prompt tuning methods like PromptFL.
Limitations and Future Work
The authors note a trade-off controlled by the hyperparameter $\lambda$ in their residual fusion loss: higher values heavily favor tail-class performance via the personalized branch, while moderate values favor head and mid classes. While they found $\lambda = 0.9$ to be an optimal default balance, dynamically or adaptively setting this parameter per client based on local imbalance remains an open direction for future work. Additionally, the method relies on the availability of a high-quality foundation model to serve as a reliable zero-shot anchor.
Summary updated