NVIDIA FLARE: Federated Learning from Simulation to Real-World

Holger R. Roth, Yan Cheng, Yuhong Wen, Isaac Yang, Ziyue Xu, Yuan-Ting Hsieh, Kristopher Kersten, Ahmed Harouni, Can Zhao, Kevin Lu, Zhihong Zhang, Wenqi Li, Andriy Myronenko, Dong Yang, Sean Yang, Nicola Rieke, Abood Quraini, Chester Chen, Daguang Xu, Nic Ma, Prerna Dogra, Mona Flores, Andrew Feng

Introduction

Federated Learning (FL) represents a paradigm shift for industries such as healthcare and finance, where data privacy is a fundamental requirement. By allowing multiple organizations to train shared models on local data without exchanging sensitive raw information, FL addresses critical privacy concerns. However, transitioning FL from research simulations to secure, high-availability production environments remains a significant engineering challenge. NVIDIA FLARE (NVFlare) is an open-source, Python-based SDK designed specifically to bridge this gap, providing a flexible runtime environment that handles communication, security, and workflow orchestration.

System Architecture and Methods

NVFlare is built on a componentized, task-based architecture that departs from rigid training loops. It utilizes a Controller/Worker pattern to manage the flow of operations. The Controller (server-side) orchestrates tasks such as training epochs, validation, and secure aggregation, while the Worker (client-side) executes these tasks and returns the results.

The NVFlare Controller/Worker architecture and task-based filter mechanism.

A core innovation in NVFlare is the Filter mechanism. This abstraction allows developers to integrate privacy-preserving techniques, such as Differential Privacy (DP) or Homomorphic Encryption (HE), as middleware. Filters process data before it leaves the client or after it reaches the server, decoupling the AI model logic from the security layer. Furthermore, the framework is library-agnostic, supporting PyTorch, TensorFlow, XGBoost, and NumPy, and includes an "Overseer" component to ensure high availability through server failover.

Bridging Simulation and Production

One of the most practical features of NVFlare is the FL Simulator. It enables developers to run identical code in a single-process local environment for debugging before deploying to a distributed production setup. This "Simulation-to-Real-World" pipeline significantly reduces the friction of deployment. Beyond standard deep learning, NVFlare supports Federated XGBoost and Split Learning, where models are vertically partitioned across clients with different data types (e.g., one client holding images and another holding labels).

Experimental Results

The framework was validated using benchmarks like CIFAR-10 and various healthcare datasets, including COVID-19 oxygen requirement prediction and prostate segmentation.

Algorithm Performance

In scenarios with high data heterogeneity (Dirichlet sampling $\alpha=0.1$), the choice of optimization algorithm becomes critical. Experiments demonstrated that advanced algorithms like SCAFFOLD and FedOpt significantly outperform the standard FedAvg in terms of convergence rates and final accuracy.

Comparison of different FL algorithms on heterogeneous CIFAR-10 data.

Communication and Encryption Overhead

Performance benchmarks comparing gRPC and TCP drivers across Azure and AWS revealed that while client uploads are generally efficient, global model downloads can become a bottleneck. Additionally, the use of Homomorphic Encryption for secure aggregation introduces a measurable trade-off: for an 18MB model, upload times increased from approximately 21 seconds to 38 seconds due to the increased message size required by the encryption layer.

Conclusion and Future Work

NVIDIA FLARE provides a robust foundation for moving FL into production. As the field evolves toward Large Language Models (LLMs), future development is focused on supporting parameter-efficient fine-tuning methods like LoRA and Prompt Tuning. The authors are also enhancing the communication layer to support the massive message sizes required for foundation models and expanding the ecosystem of reference algorithms through community-driven open-source growth.

Summary updated

BibTeX
@inproceedings{roth2023nvidia,
  author = {Holger R. Roth and Yan Cheng and Yuhong Wen and Isaac Yang and Ziyue Xu and Yuan-Ting Hsieh and Kristopher Kersten and Ahmed Harouni and Can Zhao and Kevin Lu and Zhihong Zhang and Wenqi Li and Andriy Myronenko and Dong Yang and Sean Yang and Nicola Rieke and Abood Quraini and Chester Chen and Daguang Xu and Nic Ma and Prerna Dogra and Mona Flores and Andrew Feng},
  title = {{NVIDIA FLARE: Federated Learning from Simulation to Real-World}},
  booktitle = {IEEE Data Eng. Bull},
  year = {2023},
  url = {https://openreview.net/forum?id=3VE2MYUYJM},
}
Figure