Skip to main content
QUICK REVIEW

[Paper Review] Test-Time Robust Personalization for Federated Learning

Liangze Jiang, Tao Lin|arXiv (Cornell University)|May 22, 2022
Privacy-Preserving Technologies in DataComputer Science7 citations
TL;DR

This paper proposes a test-time robust personalization method for federated learning that dynamically adapts model heads using test-time fine-tuning and learnable ensemble weights. By optimizing local and global head parameters based on test sample history and feature representations, the approach achieves significant accuracy gains over baselines, especially under distribution shift and non-IID data conditions.

ABSTRACT

Federated Learning (FL) is a machine learning paradigm where many clients collaboratively learn a shared global model with decentralized training data. Personalized FL additionally adapts the global model to different clients, achieving promising results on consistent local training and test distributions. However, for real-world personalized FL applications, it is crucial to go one step further: robustifying FL models under the evolving local test set during deployment, where various distribution shifts can arise. In this work, we identify the pitfalls of existing works under test-time distribution shifts and propose Federated Test-time Head Ensemble plus tuning(FedTHE+), which personalizes FL models with robustness to various test-time distribution shifts. We illustrate the advancement of FedTHE+ (and its computationally efficient variant FedTHE) over strong competitors, by training various neural architectures (CNN, ResNet, and Transformer) on CIFAR10 andImageNet with various test distributions. Along with this, we build a benchmark for assessing the performance and robustness of personalized FL methods during deployment. Code: https://github.com/LINs-lab/FedTHE.

Motivation & Objective

  • To address the challenge of model personalization in federated learning under data distribution shifts and non-IID client data.
  • To improve test-time performance without retraining global models or requiring access to client data.
  • To develop a method that adapts personalized model heads dynamically during inference using local test statistics.
  • To enhance robustness to distributional shift by leveraging both global and local model components during inference.
  • To optimize ensemble weights between global and local heads in a learnable, adaptive manner at test time.

Proposed method

  • The method uses a global model head parameter $\mathbf{w}^g$ and a local model head parameter $\mathbf{w}^l$, both initialized from the global model.
  • Test-time fine-tuning is applied to the local head $\mathbf{w}^l$ using $\tau$ optimization steps on incoming test samples $\mathbf{x}_n$ with a learnable step size $\eta$.
  • An ensemble of global and local heads is formed using a learnable weight $e \in [0,1]$, updated via gradient-based optimization during test-time adaptation.
  • The model maintains a test history $\mathbf{h}^{\text{history}}$ to inform adaptive head weighting and feature representation adaptation.
  • Feature representations are split into global $\mathbf{h}^g$ and local $\mathbf{h}^l$ components, with the latter updated via fine-tuning on test samples.
  • Hyperparameters $\alpha = 0.1$ and $\beta = 0.3$ control the balance between loss terms in the optimization objective for ensemble weight and head updates.

Experimental results

Research questions

  • RQ1How can model personalization in federated learning be made robust to distribution shifts during inference?
  • RQ2Can dynamic adaptation of model heads at test time improve performance without retraining the global model?
  • RQ3What is the impact of using a learnable ensemble of global and local heads on test-time accuracy?
  • RQ4How does test-time fine-tuning of local heads affect generalization under non-IID data?
  • RQ5To what extent does maintaining a test history improve the robustness of personalized predictions?

Key findings

  • The proposed method achieves significant accuracy improvements over standard personalization baselines under distribution shift.
  • Test-time fine-tuning with adaptive ensemble weighting reduces error rates by up to 25% compared to static head ensembles.
  • The method maintains high performance even when client data distributions deviate from training data, demonstrating strong robustness.
  • The use of a learnable ensemble weight $e$ enables automatic balancing between global and local heads, improving generalization.
  • The method is effective under non-IID data settings, with consistent gains across diverse client data distributions.
  • The ablation study confirms that both test-time fine-tuning and history-based adaptation contribute significantly to performance gains.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.