$\texttt{strategic-fl-sim}$: An Extensible Package for Simulating Strategic Behavior in Federated Learning

Published: 29 Sept 2025, Last Modified: 23 Oct 2025NeurIPS 2025 - Reliable ML WorkshopEveryoneRevisionsBibTeXCC BY 4.0
Keywords: federated learning, strategic interactions, simulations, game theory
TL;DR: We introduce an extensible package for simulating strategic behavior in federated learning protocols.
Abstract: We introduce $\texttt{strategic-fl-sim}$, a lightweight research package for *strategic behavior* in Federated Learning (FL). Most existing FL frameworks target deployment or other simulation settings—such as privacy, benchmarking or heterogeneity—and are not designed for modeling strategic clients. $\texttt{strategic-fl-sim}$ fills this gap by prioritizing easy specification of **client strategies** (transformations of local updates) and **server defenses** (aggregation methods). The design enforces a clean client–server separation: the $\texttt{Client}$ owns data, local optimizers, local training, and strategic actions, while the $\texttt{Server}$ handles aggregation, global updates and records metrics. Out-of-the-box, $\texttt{strategic-fl-sim}$ includes implementations of common manipulations and robust aggregators, while remaining extensible. It supports single-node multi-GPU execution for efficient simulations in heterogeneous settings. We showcase the package's utility for the FedAvg protocol and three strategic actions—gradient scaling, sign-flipping, and free-riding.
Submission Number: 127
Loading