Unified Alignment Protocol: Making Sense of the Unlabeled Data in New Domains

Sabbir Ahmed, Mamshad Nayeem Rizve, Abdullah Al Arafat, Jacqueline Tiffany Liu, Rahim Hossain, Mohaiminul Al Nahian, Adnan Siraj Rakin

TL;DR

This paper introduces the Unified Alignment Protocol (UAP), a novel framework for Semi-Supervised Federated Learning (SSFL) that addresses the critical challenge of domain generalization (S-FDG). UAP effectively aligns features between clients and the server, enabling models to perform well even when encountering new, unseen data distributions, a common issue in real-world applications.

What Problem Does This Paper Address?

The paper tackles the problem of Semi-supervised Federated Domain Generalization (S-FDG). Traditional Semi-Supervised Federated Learning (SSFL) assumes that the data distribution remains consistent between training and testing. However, in many real-world scenarios, such as healthcare or speech recognition, data distributions can shift significantly (domain shift). This means a model trained on data from one region or context might perform poorly when deployed in another. While Federated Domain Generalization (FDG) aims to address this, existing FDG methods often require labeled data at the client level, which is impractical in SSFL settings where clients primarily have unlabeled data. Therefore, the core challenge is to achieve robust domain generalization in a decentralized SSFL setting where clients have unlabeled data and the server has limited labeled data, and domain shifts are expected during testing.

Methods

The proposed solution is the Unified Alignment Protocol (UAP), a two-stage alternating training process designed to learn domain-invariant features.

  • Stage-I: Server Feature Alignment: The server model is trained to align its feature representations with a standard parametric distribution, specifically a Gaussian distribution. This is achieved by guiding the feature representations per class to follow a Gaussian distribution, where the mean of this distribution is implicitly learned from the classifier weights, and the covariance matrix is constrained to be diagonal. This stage aims to create an "anchor" distribution that clients can later leverage.
  • Stage-II: Client Feature Alignment: Clients use the server's anchor distribution information (communicated without additional overhead by embedding parameters into model weights) to align their own features. This stage involves generating pseudo-labels for client data and then using a novel alignment loss (Contrastive Domain Discrepancy - CDD) to match client features to the server's Gaussian anchor distribution. Additionally, a covariance matching loss is applied to both server and client training to implicitly align their covariance matrices, which helps mitigate issues arising from noisy pseudo-labels.

A key innovation is the communication efficiency of UAP. By deriving anchor distribution parameters directly from classifier weights and assuming diagonal covariance matrices, UAP avoids the significant communication overhead typically associated with transmitting distribution parameters.

Datasets

The paper evaluates UAP on five established Domain Generalization benchmark datasets:

  • PACS (four domains)
  • VLCS (four domains)
  • OfficeHome (four domains)
  • TerraIncognita (four domains)
  • RotatedMNIST (six domains)

The experimental setup involves allocating one domain for the server, one for testing, and distributing the remaining domains among clients, simulating a realistic S-FDG scenario.

Key Insights and Ideas

  • S-FDG is a critical, under-explored problem: The paper highlights that existing SSFL methods fail to generalize to unseen domains, and existing FDG methods are not suitable for the unlabeled client data constraint in SSFL.
  • Domain-invariant features are key: The core principle of UAP is to learn features that are consistent across different domains, regardless of whether they originate from the server or clients.
  • Leveraging server knowledge efficiently: UAP cleverly uses the server's labeled data to establish a robust feature distribution that can guide client training without requiring clients to share their data or extensive communication.
  • Pseudo-label robustness: The covariance matching loss is introduced to improve feature alignment even when client pseudo-labels might be noisy due to domain shifts.

Key Results

  • UAP consistently outperforms baseline SSFL methods in domain generalization tasks across various datasets.
  • On the PACS dataset, UAP achieved an average accuracy improvement of over 22% on unseen test domains compared to SOTA SSFL.
  • On the VLCS dataset, UAP showed an average accuracy improvement of more than 33% on an unseen test domain.
  • Ablation studies demonstrate that both the alignment loss (LCDD) and the covariance regularization loss (Lcov) contribute significantly to UAP's performance.
  • UAP shows consistent performance improvements across different model architectures (VGG11, ResNet18, DenseNet121, DeiT-B), indicating its generalizability.

Limitations and Future Work

  • Performance degradation with more clients: The paper notes that performance slightly decreases with an increasing number of clients due to increased decentralization, which is a common challenge in federated learning.
  • Future work: The authors anticipate their research will highlight the S-FDG problem and inspire further research to push the boundaries of this area. The paper suggests exploring more sophisticated alignment strategies and further optimizing communication efficiency.

Summary updated

BibTeX
@inproceedings{ahmed2026unified,
  author = {Sabbir Ahmed and Mamshad Nayeem Rizve and Abdullah Al Arafat and Jacqueline Tiffany Liu and Rahim Hossain and Mohaiminul Al Nahian and Adnan Siraj Rakin},
  title = {{Unified Alignment Protocol: Making Sense of the Unlabeled Data in New Domains}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2026},
}
Figure