APPFLx: Providing Privacy-Preserving Cross-Silo Federated Learning as a Service

Zilinghan Li, Shilan He, Pranshu Chaturvedi, Trung-Hieu Hoang, Minseok Ryu, Eliu A. Huerta, Volodymyr V. Kindratenko, Jordan D. Fuhrman, Maryellen L. Giger, Ryan Chard, Kibaek Kim, Ravi K. Madduri

Abstract

Federated Learning (FL) offers a promising path for training machine learning models on sensitive, distributed datasets without compromising data privacy. However, the practical implementation of cross-silo FL remains challenging due to complex infrastructure requirements and the need for specialized expertise. This paper presents APPFLx, a "Federated Learning as a Service" platform designed to democratize secure collaborative training. By integrating cloud-native orchestration, high-performance computing (HPC) resources, and user-friendly interfaces, APPFLx enables domain experts to manage privacy-preserving workflows with minimal technical overhead. We demonstrate the platform's efficacy through a heterogeneous cross-silo deployment, showcasing its ability to handle diverse hardware and various aggregation algorithms.

Introduction

Training robust machine learning (ML) models often requires massive, diverse datasets. In critical fields such as healthcare or smart grid management, this data is frequently siloed across different institutions and cannot be shared due to strict privacy regulations, intellectual property concerns, or security risks. Federated Learning (FL) addresses this by training models locally at each site and only sharing model weights, rather than raw data.

Despite its potential, "Cross-Silo" FL—where organizations collaborate to train a shared model—is notoriously difficult to implement. It requires managing distributed compute resources, establishing secure Identity and Access Management (IAM) across organizations, and mitigating privacy risks such as data leakage from model weights. APPFLx aims to lower these barriers by providing a streamlined, service-oriented platform that decouples the scientific process of machine learning from the underlying complexities of distributed systems.

System Architecture and Methods

APPFLx is built upon the Argonne Privacy-Preserving Federated Learning (APPFL) framework, extending it into a cloud-native service. The architecture is designed for flexibility, scalability, and ease of use through several key components:

  • Identity Management: The platform integrates with Globus Authentication, allowing researchers to use their existing institutional credentials to form secure federations.
  • Function-as-a-Service (FaaS): Utilizing Globus Compute (formerly funcX), APPFLx dispatches training tasks to heterogeneous endpoints. This allows a single federation to simultaneously include diverse resources, such as SLURM-based supercomputers, cloud instances, and local workstations.
  • Cloud-Native Orchestration: The central aggregator server is hosted using AWS ECS/Fargate containers. Experiment configurations and metadata are managed via Amazon S3 and DynamoDB, ensuring a robust and scalable backend.
  • Algorithm Suite: The platform supports a variety of aggregation strategies, including five synchronous algorithms (e.g., FedAvg, FedAdam, FedYogi) and two asynchronous algorithms (FedAsync, FedBuf). The latter are particularly vital for cross-silo environments where "straggler" clients with slower compute speeds might otherwise stall the global training process.
  • Observability and FAIR Standards: A web-based dashboard integrates TensorBoard for performance tracking and provides real-time resource monitors for CPU, GPU, and network utilization. The system also implements FAIR (Findable, Accessible, Interoperable, and Reusable) standards for metadata to ensure experiment reproducibility.

Experimental Setup

To evaluate the platform, the authors conducted a demonstration using the MNIST dataset, artificially partitioned into five equal silos to simulate a distributed environment. A defining feature of this evaluation was the use of highly heterogeneous hardware across the silos, including:

  • The NCSA Delta supercomputer
  • ALCF Polaris
  • Azure Virtual Machines
  • An M1 MacBook Pro

This setup tested the platform's ability to orchestrate training across vastly different compute environments and network conditions.

Key Results and Insights

The demonstration successfully validated the "Federated Learning as a Service" model:

  • Algorithmic Performance: In a comparison between FedAvg and FedAvgM (Federated Averaging with Momentum), FedAvgM achieved higher validation accuracy more rapidly, reaching approximately 98% accuracy within 10 communication rounds.
  • System Stability: The platform effectively managed real-time logs and model transfers via AWS S3. The automated aggregation proved that the service-oriented model can handle the heavy lifting of distributed training without manual intervention from users.
  • Resource Transparency: The "Endpoint Monitor" provided granular visibility into resource consumption at each site. This transparency is essential for participating institutions to monitor costs and justify the allocation of local compute resources to a federation.

Discussion and Future Work

APPFLx successfully demonstrates that usability can serve as a bridge between domain expertise and high-performance distributed computing. By moving configuration tasks—such as hyperparameter tuning and model selection—to a web UI, the platform allows researchers to focus on science rather than infrastructure.

However, several areas for future development remain. The current evaluation was limited to a relatively simple Convolutional Neural Network (CNN) on the MNIST dataset; future work must demonstrate performance on larger models, such as Transformers. Additionally, while the platform supports privacy budgets, a more extensive analysis of the trade-off between Differential Privacy (DP) levels and model accuracy is needed. Finally, the authors plan to deepen integration with model repositories like HuggingFace to facilitate the fine-tuning of state-of-the-art pre-trained models within the APPFLx ecosystem.

Conclusion

APPFLx represents a significant step toward democratizing privacy-preserving machine learning. By providing a robust, cloud-orchestrated service that accommodates hardware heterogeneity and prioritizes user experience, it enables institutions to collaborate on sensitive data challenges that were previously inaccessible due to technical complexity.

Summary updated

BibTeX
@inproceedings{li2023appflx,
  author = {Zilinghan Li and Shilan He and Pranshu Chaturvedi and Trung-Hieu Hoang and Minseok Ryu and Eliu A. Huerta and Volodymyr V. Kindratenko and Jordan D. Fuhrman and Maryellen L. Giger and Ryan Chard and Kibaek Kim and Ravi K. Madduri},
  title = {{APPFLx: Providing Privacy-Preserving Cross-Silo Federated Learning as a Service}},
  booktitle = {e-Science},
  year = {2023},
  doi = {10.1109/e-science58273.2023.10254842},
}
Figure