Sparse Sensor Placement in Multi-Agent Reinforcement Learning Control of Rayleigh-Bénard Convection

Jan Stenner, Hans Harder, Sebastian PeitzarXiv 2026

TL;DR

This paper introduces a structured framework to drastically reduce the number of sensors needed for controlling chaotic fluid flows using multi-agent reinforcement learning. By distilling a dense "expert" policy into a sparse "apprentice" policy using novel grouped regularization techniques, the authors cut the required sensor data per agent by up to 96% without sacrificing control performance.

What Problem Does This Paper Address?

Controlling systems governed by Partial Differential Equations (PDEs)—such as turbulent fluid flows or atmospheric convection—is incredibly challenging because their dynamics are high-dimensional, non-linear, and chaotic. Rayleigh-Bénard convection (RBC), a buoyancy-driven flow where fluid is heated from below and cooled from above, is a classic benchmark for this problem.

While deep reinforcement learning (DRL) can successfully train "expert" policies to control these flows, it typically relies on a dense grid of sensors covering the entire domain. In real-world physical deployments, installing and maintaining hundreds of high-speed probes is prohibitively expensive, complex, and prone to hardware failure. The core challenge is finding a systematic way to discover the minimal subset of sensors—and their optimal spatial locations—needed to maintain high-fidelity control.

Methods

The authors develop a multi-stage teacher-student (expert-apprentice) pipeline designed to enforce structured sparsification:

  1. Expert Policy Training: They first train a high-capacity expert policy with access to all dense sensor data. Instead of standard Proximal Policy Optimization (PPO), they utilize a modified Multi-Agent Transformer (MAT) architecture, which coordinates actions across agents via attention mechanisms.
  2. Policy Distillation with Grouped Regularization: The expert's behavior is distilled into a smaller apprentice network via supervised learning. To prune sensors, the authors apply non-convex grouped regularization to the input weights of the network's encoder. They evaluate two distinct mathematical approaches: Group-Ordered (GO) regularization and Iterative Grouped-Reweighted (GR) regularization.
  3. Overlapping Window Grouping: In translationally invariant multi-agent setups, agents share identical policies but look through localized, shifting observation windows. Consequently, a single physical sensor maps to different local indices for different agents. The authors introduce a unique grouping construction that treats these overlapping views as mathematical equivalence classes, ensuring that when a sensor is pruned, it is consistently deactivated across all agents.
Figure 2: (a) Schematic view of different agents and their observation windows of sensor sets for the Rayleigh-Bénard-Convection control problem. Only three agents are depicted for clarity. (b) Sensor-window view of a temperature channel spanning 47 sensors with added positional encoding. Note that observations also include two velocity channels which are omitted here.

The framework supports both channel-separated grouping (pruning individual physical variables like temperature or velocity independently) and channel-coupled grouping (completely removing a physical sensor location).

Datasets

The method was validated using high-fidelity numerical simulations of 2D fluid dynamics generated via the Oceananigans.jl software package.

  • Simulation Setup: A 96×64 grid simulating a classic buoyancy-driven convection loop.
  • Sensors & Actuators: The dense baseline features a 48×8 sensor grid (each probe measuring temperature, horizontal velocity, and vertical velocity) mapped to 12 boundary temperature actuators.
  • Scenarios: The framework was rigorously tested across two regimes: Fixed Initial Conditions (a standard, simplified benchmark) and Varying Initial Conditions (where fluid states change randomly across episodes, representing a much tougher control challenge).

Key Insights and Ideas

  • Transformers Stabilize PDE Control: The Multi-Agent Transformer (MAT) architecture dramatically outperformed PPO baselines in training stability, especially when dealing with varying initial fluid conditions.
  • Velocity Trumps Temperature: Counterintuitively, the sparsification process heavily favored velocity sensors over temperature sensors. The regularizers consistently pruned away temperature inputs, prioritizing velocity components in the middle and upper regions of the fluid layer. This challenges traditional human intuition, which heavily relies on temperature-centric visualizations to analyze convection rolls.
  • The Necessity of Global Coordination: Naive weight pruning fails when agents have overlapping fields of view. Grouping local indices into global equivalence classes is mathematically required to achieve true hardware-level sensor reduction.

Key Results

  • Massive Data Reduction: In the fixed initial condition setting, the grouped regularization methods achieved maximal sparsity, successfully reducing the per-agent observation size from 360 to just 12 inputs—a 96.6% reduction in data throughput—while matching the expert's ability to minimize heat transport (the Nusselt number).
  • Robustness under Generalization: In the more volatile varying initial condition setting, the framework still achieved near-maximal sparsity, maintaining excellent control behavior with a 90% to 96% reduction in active sensors.
  • Training from Scratch: As a final proof of concept, the authors successfully trained a brand-new MARL policy from scratch using only the discovered 12-sensor subset, proving that the sparsification framework isolates the true underlying control-relevant dynamics of the system.

Limitations and Future Work

  • Global Reward Dependency: While the trained apprentice policy only needs a minimal sensor set to execute control, calculating the reward function during the training phase still requires evaluating the global Nusselt number (which depends on full-domain data). Real-world training would require an alternative method to estimate this global metric.
  • Long-Horizon Instability: Under highly diverse varying initial conditions, extreme sensor sparsity introduced minor instabilities over extended simulation horizons, suggesting that slightly less aggressive pruning might be preferred for highly turbulent environments.
  • The Leap to 3D: This study was confined to 2D fluid domains. The authors note that transferring these sparse placement patterns to 3D Rayleigh-Bénard convection—where spatial dimensionality and data bandwidth demands scale exponentially—is the most critical next step for practical engineering applications.

Summary updated

BibTeX
@misc{stenner2026sparse,
  author = {Jan Stenner and Hans Harder and Sebastian Peitz},
  title = {{Sparse Sensor Placement in Multi-Agent Reinforcement Learning Control of Rayleigh-Bénard Convection}},
  year = {2026},
  eprint = {2606.30238},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.30238},
}
Figure