Helmsman: Autonomous Synthesis of Federated Learning Systems via Collaborative LLM Agents
Haoyuan Li, Mathias Funk, Aaqib Saeed
TL;DR
Helmsman tackles the manual bottleneck in federated learning system design by introducing a three-phase, multi-agent pipeline that converts high-level user specifications into deployable FL code. It combines interactive planning with self-reflection and human oversight, modular code generation across specialized agent teams, and autonomous sandboxed evaluation to iteratively refine solutions. The AgentFL-Bench benchmark of 16 tasks across five FL domains demonstrates that Helmsman-produced solutions can rival or surpass hand-crafted baselines, validating the feasibility of automated FL engineering. The work offers a practical path toward scalable, robust, and production-ready decentralized AI systems, with potential for further self-improvement through meta-optimization.
Abstract
Federated Learning (FL) offers a powerful paradigm for training models on decentralized data, but its promise is often undermined by the immense complexity of designing and deploying robust systems. The need to select, combine, and tune strategies for multifaceted challenges like data heterogeneity and system constraints has become a critical bottleneck, resulting in brittle, bespoke solutions. To address this, we introduce Helmsman, a novel multi-agent system that automates the end-to-end synthesis of federated learning systems from high-level user specifications. It emulates a principled research and development workflow through three collaborative phases: (1) interactive human-in-the-loop planning to formulate a sound research plan, (2) modular code generation by supervised agent teams, and (3) a closed-loop of autonomous evaluation and refinement in a sandboxed simulation environment. To facilitate rigorous evaluation, we also introduce AgentFL-Bench, a new benchmark comprising 16 diverse tasks designed to assess the system-level generation capabilities of agentic systems in FL. Extensive experiments demonstrate that our approach generates solutions competitive with, and often superior to, established hand-crafted baselines. Our work represents a significant step towards the automated engineering of complex decentralized AI systems.
