arXiv:2610.31371cs.ROOct 2026

Manuscript Offprint

arXiv:2610.31371

Probabilistic Energy Modeling Unifies Versatile Swarm Control

Xiang Zhou, Xiangyu Zhu, Xintong Wang, Qingyuan Yang, Rui Huang, Feng Xue, Lin Li, Qingrui Zhang

Xiang Zhou 1^{1}, Xiangyu Zhu 1^{1}, Xintong Wang 1^{1}, Qingyuan Yang 1^{1}, Rui Huang 1^{1}, Feng Xue 1^{1}, Lin Li 1^{1}, Qingrui Zhang 1∗^{1*}

1^{1}School of Aeronautics and Astronautics, Sun Yat-sen University, Shenzhen 518107, China.

*Corresponding author. Email: zhangqr9@mail.sysu.edu.cn

Robotic swarms must coordinate across diverse missions, yet existing controllers often require redesign, retuning, or retraining when objectives change. Here we show that probabilistic energy modeling provides a unifying representation for versatile swarm control, in which diverse missions emerge from compositions of shared interaction principles rather than task-specific control formulations. By exploiting the correspondence between Gibbs random field energy minimization and structured reward maximization, we encode fundamental swarm behaviors as reusable energy terms within a unified probabilistic objective. Decentralized policies trained within this representation are composed into a single controller through lightweight policy gating, without retraining. An interpretable action-attention mechanism captures non-uniform local interactions, while dimensionless normalization supports transfer across swarm scales and platforms. Demonstrated on aerial swarms, the unified policy generalizes zero-shot across six mission classes, 10–100 agents, two hardware platforms, and indoor cluttered and GPS-denied woodland environments. Large-scale simulations achieve 0.96–1.00 task success rates with 1–10 ms per-agent inference latency, while physical deployments confirm zero-shot transfer to real platforms and unstructured environments. These results establish probabilistic energy modeling as a scalable and transferable framework for decentralized swarm control.

Introduction

Biological swarms coordinate collective motion while switching fluidly among flocking, foraging, and navigation through local interactions (1–5). This functional flexibility has long motivated robotic swarms, which combine multiple autonomous vehicles for exploration and monitoring and offer potential advantages in robustness, scalability, and efficiency over single-robot systems (6–9). A substantial gap nevertheless remains between the heterogeneous demands of multi-phase missions and current swarm systems, which are largely organized around task-specific designs (6, 7). Controllers are typically developed and evaluated around a single coordination objective, such as optimized flocking (10, 11) or formation control (12, 13), and their reuse across heterogeneous missions is often limited. Onboard resource constraints, together with uncertain sensing and communication, further complicate coordinated motion across environments (7, 14, 15). The central challenge is therefore not to improve any single-task controller, but to identify a shared mathematical representation in which diverse mission objectives can be expressed and reused, and to train a reusable decentralized policy that retains real-time execution.

Existing swarm control approaches face a persistent trade-off among coordination performance, computational demand, and cross-task reuse. Rule-based methods, including Reynolds-style interaction primitives, velocity vector fields, and artificial potential fields, provide decentralized scalability and low computational cost (10, 16–18), but their heuristic structure usually requires scenario-specific tuning and can degrade when operating conditions depart from design assumptions (9, 14, 16). Optimization-based frameworks, particularly Model Predictive Control, explicitly incorporate vehicle dynamics, safety constraints, and task objectives and achieve strong performance in specialized settings (11, 12, 14, 15, 19–21). However, online optimization and neighbor-trajectory exchange must fit limited onboard resources and real-time execution requirements (15, 19, 22). Learning-based swarm control, including multi-agent reinforcement learning (MARL), shifts much of the computational burden offline and enables high-speed neural inference during deployment (23–28). While learning-based flocking control and its performance trade-offs have been established in prior work (29), learned policies are typically optimized for individual tasks: extending them to new objectives often requires redesigning rewards, retraining policies, or deploying separate controllers. Thus, despite advances in efficient decentralized control and policy learning, a common representation that supports systematic reuse across heterogeneous swarm objectives remains less explored. The present work moves beyond single-task learned flocking toward a unified representation that supports multiple mission classes, modular policy integration, cross-platform deployment, and interpretable interaction analysis. This cross-task reuse bottleneck sits within a broader trend toward modular and compositional policy architectures in artificial intelligence (30–33). For swarm systems, it must be reconciled with structural coherence during real-world deployment and sim-to-real transfer under environmental uncertainty (9, 14, 27), while retaining a simple interface for high-level human or task-level guidance (34).

Here we show that probabilistic energy modeling provides a unifying representation for this versatility. We build on Gibbs Random Fields (GRFs), in which swarm coordination objectives are expressed as a common probabilistic energy composed of reusable unary terms for robot-to-environment interactions and pairwise terms for robot-to-robot interactions. Cohesion, collision avoidance, velocity alignment, formation regulation, and task-specific guidance are encoded as energy terms within one shared objective rather than as independent rewards designed for each task. We leverage the direct correspondence between GRF energy minimization and reward maximization: minimizing the Gibbs energy corresponds to maximizing a structured reward, so the same energy formulation yields consistent reward functions across missions. These energy-based rewards train decentralized specialist policies with MARL, and an action-attention mechanism enables interpretable, non-uniform weighting of neighboring agents while preserving fully decentralized execution and inference independent of swarm size. Dimensionless observation normalization provides a scale-consistent interface for high-level commands. The result is a single integrated controller, from which distinct mission capabilities arise by composing shared coordination energy terms with task-specific guidance potentials, and new capabilities can be incorporated without modifying previously learned policies. Although demonstrated on aerial platforms, the energy-based formulation is not inherently tied to a specific robotic platform. By unifying diverse objectives within a single probabilistic energy framework and demonstrating zero-shot transfer across tasks, scales, and platforms, this work establishes a representation layer upon which large-scale pre-trained swarm policies—analogous to foundation models in language and vision—could be constructed in the future.

We validate the framework through large-scale simulation benchmarks and physical deployments spanning four axes of generalization: mission class, swarm scale, hardware platform, and environment. In simulation, the unified policy attains task-execution success rates of 0.96–1.00 across traversal settings ranging from sparse 10-agent, 10-obstacle scenarios to congested 100-agent, 50-obstacle configurations, while per-agent inference remains O(1)O(1) in swarm size at 1–10 ms. Physical deployments on 29-g Crazyflie micro-quadrotors and custom-built outdoor quadrotors evaluate traversal, high-speed racing, persistent patrol, pattern formation, distributed exploration, and an integrated multi-phase outdoor workflow—without retraining or fine-tuning. Experiments span indoor passages, obstacle-dense arenas, and GPS-denied woodlands, with the same policy transferring directly across platforms and environments. Collectively, these results demonstrate zero-shot generalization across six mission classes, swarm scales from 10 to 100 agents, two hardware platforms, and indoor and GPS-denied outdoor environments, supporting reusable decentralized swarm coordination across diverse operating conditions.