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 Md Akil Raihan Iftee
Md Akil Raihan Iftee

MD Md Akil Raihan Iftee

  • Alumni, CCDS
  • PhD Student

    Rochester Institute of Technology, USA

  • BSc

    Khulna University of Engineering & Technology, Bangladesh

Published at

IJCNN, ICIP

Mir Sazzat Hossain
Mir Sazzat Hossain

Mir Sazzat Hossain

  • Research Assistant, CCDS
  • Bachelors

    Independent University, Bangladesh (IUB)

Published at

WACV, IJCNN, ICIP, Smart Agricultural Technology

Rakibul Hasan Rajib
Rakibul Hasan Rajib

Rakibul Hasan Rajib

  • Alumni, CCDS
  • PhD Student

    University of Central Florida, USA

  • BSc

    Independent University, Bangladesh (IUB)

Published at

IJCNN, ICIP, Scientific Reports

Prof. Amin Ahsan Ali, PhD
Amin Ahsan Ali, PhD

Prof. Amin Ahsan Ali, PhD

  • Director, AI/ML Wing
  • Professor

    Department of Computer Science and Engineering

    Independent University, Bangladesh (IUB)

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

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 (IUB)

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