TorchFL: A Performant Library for Bootstrapping Federated Learning Experiments

Vivek Khimani, Shahin Jabbari
11/1/2022
cs.LGcs.DCeess.SY
federated

Official code: torchfl-org/torchfl (45 stars, Python, PyTorch, last commit 2024-08-18).

Abstract

With the increased legislation around data privacy, federated learning (FL) has emerged as a promising technique that allows the clients (end-user) to collaboratively train deep learning (DL) models without transferring and storing the data in a centralized, third-party server. We introduce TorchFL, a performant library for (i) bootstrapping the FL experiments, (ii) executing them using various hardware accelerators, (iii) profiling the performance, and (iv) logging the overall and agent-specific results on the go.

Show full abstract

Being built on a bottom-up design using PyTorch and Lightning, TorchFL provides ready-to-use abstractions for models, datasets, and FL algorithms, while allowing the developers to customize them as and when required. This paper aims to dig deeper into the architecture and design of TorchFL, elaborate on how it allows researchers to bootstrap the federated learning experience, and provide experiments and code snippets for the same. With the ready-to-use implementation of state-of-the-art DL models, datasets, and federated learning support, TorchFL aims to allow researchers with little to no engineering background to set up FL experiments with minimal coding and infrastructure overhead.

View on arXivView PDF

Code Implementations(1)

PyTorch

A Python library for rapid prototyping, experimenting, and logging of federated learning using state-of-the-art models and datasets. Built using PyTorch and PyTorch Lightning.

451Python, MakefileDec 16, 20212 years agoNOASSERTION
federated-learningpython3pytorchpytorch-lightning

Similar Papers

Cite this paper

@article{khimani2022torchfl,
  title  = {TorchFL: A Performant Library for Bootstrapping Federated Learning Experiments},
  author = {Vivek Khimani and Shahin Jabbari},
  year   = {2022},
  eprint = {2211.00735},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.00735}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.00735.svg)](https://codeofpaper.com/paper/2211.00735)

Discussion