[Paper Review] FedPylot: Navigating Federated Learning for Real-Time Object Detection in Internet of Vehicles
This paper proposes FedPylot, an MPI-based federated learning framework for real-time object detection in the Internet of Vehicles (IoV), using YOLOv7 with hybrid encryption to secure communications. It demonstrates that federated training of YOLOv7 achieves robust performance under data heterogeneity, with mAP up to 71.8% on KITTI and 53.1% on non-IID nuImages, while maintaining low inference latency and scalable communication overhead.
The Internet of Vehicles (IoV) emerges as a pivotal component for autonomous driving and intelligent transportation systems (ITS), by enabling low-latency big data processing in a dense interconnected network that comprises vehicles, infrastructures, pedestrians and the cloud. Autonomous vehicles are heavily reliant on machine learning (ML) and can strongly benefit from the wealth of sensory data generated at the edge, which calls for measures to reconcile model training with preserving the privacy of sensitive user data. Federated learning (FL) stands out as a promising solution to train sophisticated ML models in vehicular networks while protecting the privacy of road users and mitigating communication overhead. This paper examines the federated optimization of the cutting-edge YOLOv7 model to tackle real-time object detection amid data heterogeneity, encompassing unbalancedness, concept drift, and label distribution skews. To this end, we introduce FedPylot, a lightweight MPI-based prototype to simulate federated object detection experiments on high-performance computing (HPC) systems, where we safeguard server-client communications using hybrid encryption. Our study factors in accuracy, communication cost, and inference speed, thereby presenting a balanced approach to the challenges faced by autonomous vehicles. We demonstrate promising results for the applicability of FL in IoV and hope that FedPylot will provide a basis for future research into federated real-time object detection. The source code is available at https://github.com/cyprienquemeneur/fedpylot.
Motivation & Objective
- Address privacy and scalability challenges in autonomous driving by enabling collaborative model training without sharing raw vehicular data.
- Overcome data heterogeneity in IoV—such as label distribution shifts and concept drift—through federated optimization of modern real-time object detectors.
- Develop a practical, high-performance simulation framework for federated object detection experiments on HPC systems to support large-scale evaluation.
- Balance model accuracy, inference speed, and communication cost in federated training of YOLOv7 across diverse, non-IID datasets like KITTI and nuImages.
- Provide a reproducible, open-source prototype (FedPylot) to accelerate future research in federated real-time vision for autonomous vehicles.
Proposed method
- Design and implement FedPylot, a lightweight, MPI-based client-server prototype to simulate federated training of YOLOv7 on high-performance computing (HPC) systems.
- Integrate a hybrid cryptosystem (RSA + AES) to secure model weight transmissions between server and clients, ensuring confidentiality and integrity of model updates.
- Apply FedOptM, a momentum-based federated optimization algorithm, to improve convergence and robustness under data heterogeneity, particularly in non-IID settings.
- Use the YOLOv7 architecture across multiple variants (tiny, base, X, W6) with input resolutions of 640px and 1280px to evaluate trade-offs between accuracy, speed, and communication cost.
- Conduct experiments on KITTI (IID) and two non-IID subsets of nuImages (nuImages-10, nuImages-23) to simulate realistic vehicular data distribution shifts.
- Measure inference speed in FPS (batch size 1, V100), communication overhead in MB per round (with symmetric encryption), and mAP for model generalization and real-time feasibility.
Experimental results
Research questions
- RQ1Can federated learning effectively train state-of-the-art YOLOv7 for real-time object detection in the Internet of Vehicles under realistic data heterogeneity?
- RQ2How does the choice of federated optimization algorithm (e.g., FedAvg vs. FedOptM) impact model accuracy and convergence in non-IID, concept-drifting vehicular data?
- RQ3What is the trade-off between model accuracy, inference speed, and communication cost when training YOLOv7 variants in a federated setting across diverse IoV datasets?
- RQ4To what extent does hybrid encryption secure federated model updates without introducing prohibitive communication overhead in IoV scenarios?
- RQ5How does model size (e.g., YOLOv7-W6 vs. YOLOv7-tiny) affect performance and communication cost in federated object detection under real-world data constraints?
Key findings
- FedPylot successfully enables federated training of YOLOv7 on HPC systems, achieving mAP of 67.6% on the IID KITTI dataset and 71.8% on the larger YOLOv7-W6 variant with 1280px input.
- On non-IID nuImages-10, FedPylot achieved 47.6% mAP, while on the more heterogeneous nuImages-23, it reached 28.5% mAP, demonstrating robustness under data skew.
- The FedOptM algorithm with momentum (0.3) improved convergence and accuracy over FedAvg, especially on non-IID data, with a 0.3% gain on nuImages-23 and a 0.1% gain on nuImages-10.
- Communication overhead was minimized through half-precision model transfer, with a single round of model exchange costing 74.8MB for YOLOv7 (640px) and 162.5MB for YOLOv7-W6 (1280px) on KITTI.
- Inference speed remained practical for real-time use, with YOLOv7-W6 achieving 115 FPS on KITTI and 92 FPS on nuImages, even at higher input resolution.
- High momentum values (e.g., 0.9) disrupted training and degraded performance, especially on non-IID data, indicating sensitivity to hyperparameter tuning in federated settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.