FLsim: A Modular and Library-Agnostic Simulation Framework for Federated Learning

Arnab Mukherjee, Raju Halder, Joydeep Chandra
7/15/2025
cs.DCcs.LG

No official code found. Best implementation: mukherjeearnab/FLsim (1 star, GPL-3.0, last commit 2024-09-05).

Abstract

Federated Learning (FL) has undergone significant development since its inception in 2016, advancing from basic algorithms to complex methodologies tailored to address diverse challenges and use cases. However, research and benchmarking of novel FL techniques against a plethora of established state-of-the-art solutions remain challenging. To streamline this process, we introduce FLsim, a comprehensive FL simulation framework designed to meet the diverse requirements of FL workflows in the literature. FLsim is characterized by its modularity, scalability, resource efficiency, and controlled reproducibility of experimental outcomes. Its easy to use interface allows users to specify customized FL requirements through job configuration, which supports: (a) customized data distributions, ranging from non-independent and identically distributed (non-iid) data to independent and identically distributed (iid) data, (b) selection of local learning algorithms according to user preferences, with complete agnosticism to ML libraries, (c) choice of network topology illustrating communication patterns among nodes, (d) definition of model aggregation and consensus algorithms, and (e) pluggable blockchain support for enhanced robustness. Through a series of experimental evaluations, we demonstrate the effectiveness and versatility of FLsim in simulating a diverse range of state-of-the-art FL experiments. We envisage that FLsim would mark a significant advancement in FL simulation frameworks, offering unprecedented flexibility and functionality for researchers and practitioners alike.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

A Modular and Library-Agnostic Simulation Framework for Federated Learning

11Shell, PythonJan 5, 20242 years agoGPL-3.0

Similar Papers

Cite this paper

@article{mukherjee2025flsim,
  title  = {FLsim: A Modular and Library-Agnostic Simulation Framework for Federated Learning},
  author = {Arnab Mukherjee and Raju Halder and Joydeep Chandra},
  year   = {2025},
  eprint = {2507.11430},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.11430v1}
}

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/2507.11430.svg)](https://codeofpaper.com/paper/2507.11430)

Discussion