Preprint / Working Paper2025

pFedBBN: A Personalized Federated Test-Time Adaptation with Balanced Batch Normalization for Class-Imbalanced Data

Md Akil Raihan Iftee, Syed Md Ahnaf Hasan, Mir Sazzat Hossain, Rakibul Hasan Rajib, Amin Ahsan Ali, AKM Mahbubur Rahman, Sajib Mistry, Monowar Bhuyan

arXiv (Cornell University)

Cornell University, ISBN: 2331-8422

Abstract

Test-time adaptation (TTA) in federated learning (FL) is crucial for handling unseen data distributions across clients, particularly when faced with domain shifts and skewed class distributions. Class Imbalance (CI) remains a fundamental challenge in FL, where rare but critical classes are often severely underrepresented in individual client datasets. Although prior work has addressed CI during training through reliable aggregation and local class distribution alignment, these methods typically rely on access to labeled data or coordination among clients, and none address class unsupervised adaptation to dynamic domains or distribution shifts at inference time under federated CI constraints. Revealing the failure of state-of-the-art TTA in federated client adaptation in CI scenario, we propose pFedBBN,a personalized federated test-time adaptation framework that employs balanced batch normalization (BBN) during local client adaptation to mitigate prediction bias by treating all classes equally, while also enabling client collaboration guided by BBN similarity, ensuring that clients with similar balanced representations reinforce each other and that adaptation remains aligned with domain-specific characteristics. pFedBBN supports fully unsupervised local adaptation and introduces a class-aware model aggregation strategy that enables personalized inference without compromising privacy. It addresses both distribution shifts and class imbalance through balanced feature normalization and domain-aware collaboration, without requiring any labeled or raw data from clients. Extensive experiments across diverse baselines show that pFedBBN consistently enhances robustness and minority-class performance over state-of-the-art FL and TTA methods.

Keywords

  • test-time adaptation
  • domain shift
  • class imbalance
  • Federated learning
  • privacy-preserving federated learning
  • minority class performance

CCDS Authors

MD Akil Raihan Iftee
Md Akil Raihan Iftee

MD Akil Raihan Iftee

  • Research Assistant, CCDS

Published at

IJCNN, ICIP

Research Interests

Multimodal Learning, Computer Vision, Trustworthy ML

Syed Md. Ahnaf Hasan
Syed Md. Ahnaf Hasan

Syed Md. Ahnaf Hasan

  • Intern, CCDS

Research Interests

Machine Learning, Computer Vision

Mir Sazzat Hossain
Mir Sazzat Hossain

Mir Sazzat Hossain

  • Research Assistant, CCDS

Bachelors

Independent University, Bangladesh

Published at

WACV, IJCNN, ICIP, Smart Agricultural Technology

Research Interests

Machine Learning, Computer Vision

Rakibul Hasan Rajib
Rakibul Hasan Rajib

Rakibul Hasan Rajib

  • Research Assistant, CCDS

Published at

IJCNN, ICIP, Scientific Reports

Research Interests

Computer Vision, Multimodal Learning, Federated Learning

Amin Ahsan Ali, PhD
Amin Ahsan Ali, PhD

Amin Ahsan Ali, PhD

  • Director, AI/ML Wing

Professor

Department of Computer Science and Engineering

Independent University, Bangladesh

Published at

ACL, CHI, UbiComp, ECCV, IJCAI, ECAI, WACV, IPSN, PAKDD, LREC, IJCNN, ICPR, ICIP, BEA, BLP, ICMLA, Scientific Reports, Scientific Data, Pattern Recognition, Information Sciences, Ad Hoc Networks, Drug and Alcohol Dependence, PLOS ONE

Research Interests

Artificial Intelligence, Machine Learning

AKM Mahbubur Rahman, PhD
AKM Mahbubur Rhman, PhD

AKM Mahbubur Rahman, PhD

  • Director, DS & IPT Wings

Associate Professor

Department of Computer Science and Engineering

Independent University, Bangladesh

Published at

CHI, ECCV, WACV, PAKDD, LREC, IJCNN, ICPR, ICIP, HCII, BEA, Scientific Reports, Information Sciences

Dr. Sajib Mistry
Dr Sajib Mistry

Dr. Sajib Mistry

  • Collaborator, AI/ML Wing

Ph.D Candidate

Curtin University, Australia

Published at

IJCNN

Research Interests

Service Computing, Cloud/Edge Computing, Machine Learning, Augmented Reality, Internet of Things