Skip to main content
QUICK REVIEW

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

Wenxuan Bao, Tianxin Wei|arXiv (Cornell University)|Oct 28, 2023
Privacy-Preserving Technologies in DataComputer Science5 citations
TL;DR

This paper proposes ATP, a novel adaptive test-time personalization framework for federated learning that learns module-specific adaptation rates from source client data to handle diverse distribution shifts without labeled test data. By dynamically adjusting adaptation rates based on inter-client distribution shifts, ATP achieves superior generalization across label shift, image corruption, and domain shift, outperforming existing TTA methods on multiple datasets and models.

ABSTRACT

Personalized federated learning algorithms have shown promising results in adapting models to various distribution shifts. However, most of these methods require labeled data on testing clients for personalization, which is usually unavailable in real-world scenarios. In this paper, we introduce a novel setting called test-time personalized federated learning (TTPFL), where clients locally adapt a global model in an unsupervised way without relying on any labeled data during test-time. While traditional test-time adaptation (TTA) can be used in this scenario, most of them inherently assume training data come from a single domain, while they come from multiple clients (source domains) with different distributions. Overlooking these domain interrelationships can result in suboptimal generalization. Moreover, most TTA algorithms are designed for a specific kind of distribution shift and lack the flexibility to handle multiple kinds of distribution shifts in FL. In this paper, we find that this lack of flexibility partially results from their pre-defining which modules to adapt in the model. To tackle this challenge, we propose a novel algorithm called ATP to adaptively learns the adaptation rates for each module in the model from distribution shifts among source domains. Theoretical analysis proves the strong generalization of ATP. Extensive experiments demonstrate its superiority in handling various distribution shifts including label shift, image corruptions, and domain shift, outperforming existing TTA methods across multiple datasets and model architectures. Our code is available at https://github.com/baowenxuan/ATP .

Motivation & Objective

  • To address the challenge of personalizing federated models for new, unlabeled clients facing complex distribution shifts.
  • To overcome the limitations of existing test-time adaptation (TTA) methods that assume single-domain training and lack flexibility for multi-client FL settings.
  • To enable flexible, module-agnostic adaptation by learning which model components to adapt based on observed distribution shifts among source clients.
  • To provide a theoretically grounded, robust method for unsupervised personalization in cross-device federated learning scenarios.

Proposed method

  • ATP trains on source clients by simulating unsupervised test-time adaptation and optimizing module-specific adaptation rates to maximize performance.
  • Adaptation rates are learned per model module (e.g., batch norm statistics, weights) and aggregated centrally to improve generalization.
  • During inference, target clients use the learned adaptation rates to locally personalize the global model using only unlabeled test data.
  • The method cumulatively averages adapted model states across batches for online adaptation, enhancing stability and performance.
  • Theoretical analysis shows ATP generalizes well due to multi-source utilization and low-dimensional adaptation rate learning.
  • Negative adaptation rates are allowed, enabling counter-intuitive but effective 'disalignment' of features under label shift.

Experimental results

Research questions

  • RQ1Can we learn effective, flexible adaptation rates for model modules without relying on labeled test data in federated learning?
  • RQ2How can we leverage inter-client distribution shifts among source domains to guide unsupervised personalization in test-time FL?
  • RQ3Does adaptive, module-specific adaptation outperform fixed-module TTA methods across diverse distribution shifts?
  • RQ4Can negative adaptation rates improve performance under label shift, and if so, why?

Key findings

  • ATP consistently outperforms existing TTA methods across multiple datasets (e.g., CIFAR-10, CIFAR-100, Tiny ImageNet) and model architectures (ResNet, Vision Transformer).
  • Under label shift, ATP learns negative adaptation rates for batch normalization running statistics, which improves accuracy by counter-intuitively 'disaligning' features.
  • Experiments show ATP generalizes robustly even under partial client participation (down to C=15), with stable convergence and low test loss.
  • The training and testing loss curves converge stably under full and partial participation, indicating strong generalization and robustness.
  • In a toy example, ATP with α = -0.5 achieved 92% accuracy under label shift, outperforming α = 0 (89%) and α = 1 (73%), validating the benefit of negative adaptation.
  • ATP’s theoretical analysis confirms strong generalization due to its use of multiple source domains and low-dimensional adaptation rate learning.

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.