Navigating Data Heterogeneity in Federated Learning A Semi-Supervised Approach for Object Detection

Taehyeon Kim, Eric Lin, Junu Lee, Christian Lau, Vaikkunth Mugunthan

Abstract

Federated Learning (FL) has emerged as a potent framework for training models across distributed data sources while maintaining data privacy. Nevertheless, it faces challenges with limited high-quality labels and non-IID client data, particularly in applications like autonomous driving. To address these hurdles, we navigate the uncharted waters of Semi-Supervised Federated Object Detection (SSFOD). We present a pioneering SSFOD framework, designed for scenarios where labeled data reside only at the server while clients possess unlabeled data. Notably, our method represents the inaugural implementation of SSFOD for clients with 0% labeled non-IID data, a stark contrast to previous studies that maintain some subset of labels at each client. We propose FedSTO, a two-stage strategy encompassing Selective Training followed by Orthogonally enhanced full-parameter training, to effectively address data shift (e.g. weather conditions) between server and clients. Our contributions include selectively refining the backbone of the detector to avert overfitting, orthogonality regularization to boost representation divergence, and local EMA-driven pseudo label assignment to yield high-quality pseudo labels. Extensive validation on prominent autonomous driving datasets (BDD100K, Cityscapes, and SODA10M) attests to the efficacy of our approach, demonstrating state-of-the-art results. Remarkably, FedSTO, using just 20-30% of labels, performs nearly as well as fully-supervised centralized training methods.

Introduction

Presented at NeurIPS 2023, this research introduces FedSTO, a novel framework for Semi-Supervised Federated Object Detection (SSFOD). The study addresses a critical bottleneck in decentralized machine learning: the "labels-at-server" scenario. In this context, a central server possesses a small amount of high-quality labeled data, while distributed clients—such as autonomous vehicles—collect vast quantities of unlabeled, heterogeneous (non-IID) data.

While Federated Learning (FL) is designed to train models on decentralized data without compromising privacy, most existing research assumes that clients have access to perfectly labeled data. In real-world applications like autonomous driving, labeling data at the "edge" is prohibitively expensive and logistically difficult. FedSTO bridges this gap by enabling effective training even when clients have 0% labeled data and face significant environmental distribution shifts.

The Challenge of Data Heterogeneity

Object detection is inherently more complex than classification, as it requires the model to simultaneously locate and categorize objects. This complexity is compounded in a federated setting by non-IID data. For instance, one autonomous vehicle might primarily operate in rainy conditions, while another operates in snow. Standard semi-supervised methods often struggle with this "data shift," leading to the generation of "noisy" or incorrect pseudo-labels that can degrade the global model's performance.

The FedSTO Framework

To mitigate these issues, the authors propose FedSTO (Federated Selective Training followed by Orthogonally enhanced training), which utilizes a two-stage training strategy and a personalized teacher mechanism.

1. Selective Training (ST)

To prevent the model from overfitting to the server's specific data distribution early in the process, the framework initially limits updates. During the first stage, only the model's backbone (the feature extractor) is updated using the clients' unlabeled data. The "neck" and "head" components—responsible for bounding box prediction and classification—remain frozen. This "backbone-first" philosophy ensures the model learns robust, general features before attempting to refine complex detection tasks on heterogeneous data.

2. Full Parameter Training (FPT) with Orthogonal Enhancement

Once the backbone is stabilized, the model transitions to full parameter training. To combat the bias introduced by local data heterogeneity, the authors apply orthogonality regularization to the neck and head. By forcing the model's weights to be orthogonal (mathematically perpendicular), the framework encourages the learning of diverse, non-redundant representations. This makes the detector more resilient to environmental noise, such as glare or heavy precipitation, which might otherwise cause feature collapse.

3. Personalized EMA-Driven Teacher

Standard semi-supervised approaches often use a single global model to generate pseudo-labels. However, in a non-IID setting, a global model acts as a "jack of all trades, master of none." FedSTO instead has each client maintain a local Exponential Moving Average (EMA) model. This local teacher acts as a specialized expert for that specific client's environment, providing higher-quality pseudo-labels for the "student" model to learn from than a generic global model could provide.

Experimental Evaluation

The framework was rigorously tested on three major autonomous driving datasets to simulate real-world heterogeneity:

  • BDD100K: Featuring 100,000 driving videos across diverse weather conditions (cloudy, rainy, snowy, overcast).
  • Cityscapes: Urban street scenes captured across 50 different cities.
  • SODA10M: A large-scale 2D dataset specifically designed for self- and semi-supervised autonomous driving research.

Key Results and Insights

FedSTO demonstrates that high-performance object detection is possible without ubiquitous labeling. Key findings include:

  • Near-Supervised Performance: On the BDD100K dataset, FedSTO achieved a 0.593 [email protected]. This is remarkably close to the 0.605 mAP achieved by a fully supervised model trained on 100% of the labels in a centralized setting, despite FedSTO using significantly fewer labels.
  • Superiority over Baselines: FedSTO outperformed "Vanilla" Semi-Supervised FL by 3.5% mAP and partially supervised baselines by 8.2% mAP.
  • Communication Efficiency: By selectively updating only the backbone in the initial stage, FedSTO reduced total network communication costs by 20.52% compared to standard federated methods, making it more suitable for bandwidth-constrained edge environments.

Conclusion and Future Directions

FedSTO represents the first SSFOD framework capable of handling clients with zero labels and significant environmental shifts. By combining selective updates, orthogonal regularization, and local EMA teachers, it provides a robust solution for training autonomous systems in the real world.

While the framework handles environmental shifts effectively, the authors note that extreme class imbalance (e.g., a scarcity of rare objects like bicycles compared to cars) remains a challenge. Future research may also focus on reducing the computational overhead of maintaining local EMA models to better support low-power edge devices and expanding the scope of heterogeneity to include lighting variations and diverse road surfaces.

Summary updated

Abstract

Federated Learning (FL) has emerged as a potent framework for training models across distributed data sources while maintaining data privacy. Nevertheless, it faces challenges with limited high-quality labels and non-IID client data, particularly in applications like autonomous driving. To address these hurdles, we navigate the uncharted waters of Semi-Supervised Federated Object Detection (SSFOD). We present a pioneering SSFOD framework, designed for scenarios where labeled data reside only at the server while clients possess unlabeled data. Notably, our method represents the inaugural implementation of SSFOD for clients with 0% labeled non-IID data, a stark contrast to previous studies that maintain some subset of labels at each client. We propose FedSTO, a two-stage strategy encompassing Selective Training followed by Orthogonally enhanced full-parameter training, to effectively address data shift (e.g. weather conditions) between server and clients. Our contributions include selectively refining the backbone of the detector to avert overfitting, orthogonality regularization to boost representation divergence, and local EMA-driven pseudo label assignment to yield high-quality pseudo labels. Extensive validation on prominent autonomous driving datasets (BDD100K, Cityscapes, and SODA10M) attests to the efficacy of our approach, demonstrating state-of-the-art results. Remarkably, FedSTO, using just 20-30% of labels, performs nearly as well as fully-supervised centralized training methods.
BibTeX
@inproceedings{kim2023navigating,
  author = {Taehyeon Kim and Eric Lin and Junu Lee and Christian Lau and Vaikkunth Mugunthan},
  title = {{Navigating Data Heterogeneity in Federated Learning A Semi-Supervised Approach for Object Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=2D7ou48q0E},
}
Figure