Abstract
Controlling high-dimensional distributed systems, such as fluid flows or robot swarms, presents a significant challenge for reinforcement learning (RL). Centralized approaches often fail due to the curse of dimensionality, while decentralized multi-agent RL (MARL) typically lacks the coordination necessary for complex collective behavior. This paper introduces HypeMARL, a framework that bridges this gap by using hypernetworks to generate local agent policies conditioned on global system parameters and spatial positional encodings. This architecture provides local agents with a "global compass," enabling coordinated control across large-scale systems. Additionally, a model-based extension, MB-HypeMARL, utilizes learned surrogate models to achieve up to a 10x reduction in required environment interactions. Evaluations across density and flow control tasks demonstrate that HypeMARL significantly outperforms standard MARL in coordination, efficiency, and generalization.
Introduction
Engineering and physics frequently involve distributed systems governed by Partial Differential Equations (PDEs). Controlling these systems—such as managing airflow over an aircraft wing or optimizing a power grid—requires handling thousands of variables. Traditional centralized RL controllers struggle to explore such massive state spaces. Conversely, decentralized MARL scales well but suffers from a "locality problem": agents only observe their immediate surroundings and fail to coordinate on tasks requiring collective action, such as transporting a density across a field.
Methodology
HypeMARL addresses the limitations of decentralized control through three core innovations built upon the Twin-Delayed Deep Deterministic Policy Gradient (TD3) algorithm:
- Hypernetworks: Instead of training individual weights for each agent, a central hypernetwork generates the weights for all local policies. This allows for efficient parameter sharing and enables the system to adapt to global parameters ($\mu$), such as fluid speed or target locations.
- Positional Encoding (PE): Inspired by Transformers, HypeMARL uses sinusoidal positional encoding to provide agents with their relative coordinates. This spatial awareness allows agents to coordinate "hand-offs" and understand their role within the larger system without needing a global view.
- Model-Based Extension (MB-HypeMARL): To mitigate the high cost of physics simulations, the authors introduce a surrogate model that approximates local dynamics. Agents can train on "hallucinated" experiences from this digital twin, drastically speeding up the learning process.
Experimental Setup
The framework was evaluated on four PDE-governed control problems:
- Density Control (Vacuum & Fluid): Moving a Gaussian density to a target position, both in a static environment and against an underlying fluid flow.
- Flow Control (Vertical Jets): Managing 74 active jets on an obstacle's surface to maximize lift.
- Flow Control (Shape Morphing): Actively deforming an object's boundary at 37 control points to minimize drag.
Results and Discussion
HypeMARL demonstrated a marked improvement in coordination over standard MARL. In density control tasks, while standard agents merely suppressed local density, HypeMARL agents successfully steered the density toward the target.
Efficiency gains were particularly notable with the model-based extension. MB-HypeMARL reached peak performance in approximately 73 episodes compared to the 500 required by the model-free version—a nearly 10x speedup in environment interactions. Furthermore, the parametric nature of the hypernetwork allowed HypeMARL to generalize to unseen system parameters, such as varying angles of attack in fluid flow, where baseline MARL failed to adapt.
Conclusion
HypeMARL provides a scalable and efficient solution for the control of distributed systems. By combining the parameter-sharing benefits of hypernetworks with the spatial context of positional encodings, it enables decentralized agents to achieve global coordination. Future work will explore more complex reward structures and the use of Inverse Reinforcement Learning to further refine local agent behaviors in high-fidelity environments.
Summary updated