Learning Across Domains and Devices: Style-Driven Source-Free Domain Adaptation in Clustered Federated Learning

Donald Shenaj, Eros Fanì, Marco Toldo, Debora Caldarola, Antonio Tavera, Umberto Michieli, Marco Ciccone, Pietro Zanuttigh, Barbara Caputo · DOI

Abstract

Semantic segmentation is vital for autonomous systems but suffers from high labeling costs and domain shift. Federated Learning (FL) offers a privacy-preserving solution, yet real-world applications often lack labeled target data and access to original source datasets. We introduce FFREEDA (Federated Source-Free Domain Adaptation), a realistic framework where clients adapt to new domains using only unlabeled data without source access. To address this, we propose LADD (Learning Across Domains and Devices), which utilizes image style-based clustering and a stabilized self-training strategy (SWAt) to achieve state-of-the-art performance in semantic segmentation across diverse global environments.

Introduction

Semantic Segmentation (SS) requires dense pixel-level annotations, making large-scale data collection prohibitively expensive. While Federated Learning (FL) enables collaborative training without data sharing, standard FL assumes labeled local data. In practice, edge devices like autonomous vehicles encounter unlabeled data in diverse environments (e.g., varying weather, lighting, and architecture), leading to significant domain shift from synthetic source models.

This paper addresses the FFREEDA setting, characterized by three constraints: strict data privacy, absence of target labels, and lack of source data access during adaptation. This "worst-case" scenario mirrors the deployment of pre-trained models on a fleet of vehicles operating in heterogeneous real-world conditions.

Methodology: The LADD Framework

The proposed LADD algorithm bridges the domain gap through three core components:

1. Style-Based Clustering

LADD groups clients into clusters based on the "style" of their local images. By analyzing low-frequency components of the Fourier Transform, the system captures environmental characteristics (e.g., "sunny Rome" vs. "overcast London") without exposing private scene content. This allows for domain-specific adaptation without compromising privacy.

2. Personalized Aggregation

Model parameters are partitioned into global and cluster-specific components. While most weights are shared to leverage the collective knowledge of the fleet, specific layers (e.g., the classifier) are specialized for each cluster. This balance enables the model to generalize across road structures while specializing for local environmental nuances.

The LADD pipeline overview

3. Stabilized Self-Training (SWAt)

To learn from unlabeled data, LADD employs a self-training strategy using pseudo-labels. To mitigate the instability inherent in unsupervised FL, the authors introduce a SWA teacher (SWAt)—a temporal average of model weights. This teacher provides stable, high-quality pseudo-labels, preventing catastrophic forgetting of source knowledge.

Experimental Setup

The framework was evaluated using a synthetic-to-real pipeline:

  • Source: GTA5 (synthetic video game data).
  • Targets: Cityscapes, CrossCity, and Mapillary Vistas. The authors introduced new federated splits for CrossCity and Mapillary, organizing data by city or GPS coordinates to simulate realistic fleet distributions.

Results and Discussion

LADD demonstrates superior performance across all benchmarks compared to standard federated and domain adaptation baselines.

Quantitative results on CrossCity and Mapillary

On the CrossCity dataset, LADD achieved a 40.09% mIoU, significantly outperforming the source-only baseline of 26.49%. It also surpassed existing state-of-the-art methods like MCD by over 17% in federated settings. Notably, specializing only the classifier achieved performance comparable to full-model personalization while drastically reducing communication overhead.

Conclusion

LADD provides a robust solution for source-free domain adaptation in federated environments. By leveraging style-based clustering and stabilized self-training, it enables effective semantic segmentation on unlabeled edge data. Future work includes addressing extreme domain gaps and handling mobile clients that transition between different environmental clusters.

Summary updated

BibTeX
@inproceedings{shenaj2023learning,
  author = {Donald Shenaj and Eros Fanì and Marco Toldo and Debora Caldarola and Antonio Tavera and Umberto Michieli and Marco Ciccone and Pietro Zanuttigh and Barbara Caputo},
  title = {{Learning Across Domains and Devices: Style-Driven Source-Free Domain Adaptation in Clustered Federated Learning}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2023},
  url = {https://openreview.net/forum?id=FbJ-H2fLWRh},
}
Figure