FedDrive: Generalizing Federated Learning to Semantic Segmentation in Autonomous Driving

Lidia Fantauzzo, Eros Fanì, Debora Caldarola, Antonio Tavera, Fabio Cermelli, Marco Ciccone, Barbara Caputo

Introduction

Semantic segmentation—the pixel-level classification of camera feeds—is a cornerstone of autonomous driving, enabling vehicles to identify pedestrians, sidewalks, and obstacles. Traditionally, training these models requires massive, centralized datasets. However, the sensitive nature of automotive data, coupled with strict privacy regulations like GDPR, makes centralizing raw footage from thousands of private vehicles impractical.

Federated Learning (FL) offers a privacy-preserving alternative by training models locally on vehicles and sharing only mathematical updates with a central server. Despite its promise, FL faces significant challenges in real-world driving scenarios due to "non-IID" (not identically and independently distributed) data. A vehicle in Rome encounters vastly different architecture and lighting than one in London. Standard FL algorithms often struggle to generalize across these diverse environments, particularly when faced with unseen cities or weather conditions during deployment.

The FedDrive Framework

To address these challenges, the authors introduce FedDrive, a benchmark and a suite of methods designed to make FL robust for semantic segmentation in autonomous driving. The framework focuses on three key areas: normalization, style-based generalization, and server-side optimization.

Overview of the FedDrive framework illustrating the interaction between the global server and local clients across heterogeneous domains.

Local Normalization Strategies

Standard Batch Normalization (BN) assumes a uniform data distribution, which fails in heterogeneous FL settings. FedDrive evaluates SiloBN and FedBN, which keep BN statistics (mean and variance) strictly local to each client. This allows the model to adapt its internal scaling to the specific visual characteristics of its local environment while still contributing to the learning of global semantic features.

Generalization via Style Transfer

To improve performance in unseen domains, FedDrive employs style-sharing techniques that preserve privacy by avoiding raw image transmission:

  • Continuous Frequency Space Interpolation (CFSI): Swaps low-frequency image components, which carry style and lighting information, between clients.
  • LAB-based Image Translation: Aligns the statistics of images in the LAB color space across different clients.

Server-Side Optimization

The framework utilizes adaptive optimizers like FedAvgM, which incorporates momentum at the server level. This helps stabilize training and speed up convergence when local updates from diverse clients are noisy or conflicting.

Experimental Setup and Datasets

The FedDrive benchmark utilizes two primary datasets adapted for federated settings:

  • Cityscapes: Real-world images from 50 cities, split heterogeneously by city to simulate diverse urban environments.
  • IDDA (Image Dataset for Domain Adaptation): A large-scale synthetic dataset used to simulate environmental shifts, such as transitioning from clear "Country" weather to "Rainy" conditions.

Key Insights and Results

The evaluation of FedDrive yielded several critical findings regarding the interplay between normalization, style, and optimization:

  • Normalization is Critical: Localizing Batch Normalization statistics (SiloBN) proved to be the most significant factor in handling feature shifts between cities. In the Cityscapes benchmark, SiloBN improved the mean Intersection over Union (mIoU) from 43.33% to 52.86% compared to standard FedAvg.
  • Appearance vs. Semantics: The effectiveness of style transfer depends on the nature of the domain shift. In Cityscapes, where shifts are primarily semantic (layout changes), style transfer had limited impact. However, in IDDA, where shifts are appearance-based (e.g., weather), LAB-based style transfer provided a massive boost.
  • Performance in Adverse Weather: On the IDDA "Rainy" setting, the combination of SiloBN and LAB style transfer doubled the performance of standard FedAvg, increasing mIoU from 26.75% to 53.99%.
  • Optimization Gains: Server-side momentum (FedAvgM) consistently outperformed vanilla FedAvg, providing an average boost of approximately 8 mIoU points in uniform experiments.

Conclusion and Future Directions

FedDrive demonstrates that robust semantic segmentation in a federated setting is achievable by combining local normalization with privacy-conscious style transfer. While these methods significantly improve generalization, they introduce additional computational costs on edge devices. Future research should focus on reducing the communication rounds required for convergence and exploring the integration of Differential Privacy to further strengthen the privacy-generalization trade-off.

Summary updated

BibTeX
@inproceedings{fantauzzo2022feddrive,
  author = {Lidia Fantauzzo and Eros Fanì and Debora Caldarola and Antonio Tavera and Fabio Cermelli and Marco Ciccone and Barbara Caputo},
  title = {{FedDrive: Generalizing Federated Learning to Semantic Segmentation in Autonomous Driving}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=sub-ZwPxbIc},
}
Figure