Beacon, a lightweight deep reinforcement learning benchmark library for flow control

Jonathan Viquerat, Philippe Meliga, Pablo Jeken, Elie HachemarXiv 2024 · OpenReview

Abstract

Recently, the increasing use of deep reinforcement learning for flow control problems has led to a new area of research, focused on the coupling and the adaptation of the existing algorithms to the control of numerical fluid dynamics environments. Although still in its infancy, the field has seen multiple successes in a short time span, and its fast development pace can certainly be partly imparted to the open-source effort that drives the expansion of the community. Yet, this emerging domain still misses a common ground to (i) ensure the reproducibility of the results, and (ii) offer a proper ad-hoc benchmarking basis. To this end, we propose Beacon, an open-source benchmark library composed of seven lightweight 1D and 2D flow control problems with various characteristics, action and observation space characteristics, and CPU requirements. In this contribution, the seven considered problems are described, and reference control solutions are provided. The sources for the following work are available at https://github.com/jviquerat/beacon.

Introduction

Deep Reinforcement Learning (DRL) has demonstrated significant potential in managing complex fluid systems, offering applications ranging from drag reduction in aerospace to optimized heat transfer in industrial processes. However, the intersection of fluid dynamics and AI faces a "reproducibility crisis." DRL algorithms are highly sensitive to hyperparameters and environment configurations, making cross-study comparisons difficult without standardized benchmarks. Furthermore, the high computational cost of traditional 3D Computational Fluid Dynamics (CFD) often makes DRL training—which requires thousands of iterations—prohibitively expensive for many researchers.

The BEACON Library

To address these challenges, we introduce BEACON, a Python-based open-source library that implements a "Gym-like" interface for flow control. By adhering to the standardized Gymnasium API, BEACON allows researchers to easily swap algorithms and environments.

To maintain computational efficiency, BEACON utilizes simplified 1D and 2D versions of the governing Navier-Stokes equations, focusing on dominant physical terms. Performance is further enhanced using Numba, a Just-In-Time (JIT) compiler that optimizes Python code to near-native speeds. This efficiency allows the environments to be categorized by hardware needs: some run on standard laptops, while others require workstations or parallel processing, providing a clear roadmap for researchers based on their available resources.

Temporal evolution of a flow control task, showing the agent's actions (red/blue bars) and the resulting suppression of instabilities over time.

Benchmark Suite

BEACON provides seven distinct environments with varying physical characteristics:

  • shkadov-v0: Control of falling liquid films (1D).
  • rayleigh-v0: Management of Rayleigh-Bénard heat convection in a 2D cavity.
  • mixing-v0: Optimization of passive substance mixing.
  • lorenz-v0: State-locking in a classic chaotic system.
  • burgers-v0: Noise damping in the 1D inviscid Burgers equation.
  • sloshing-v0: Wave prevention in a 1D water tank.
  • vortex-v0: Energy extraction from vortex-induced vibrations.

These environments are designed with "physics-first" goals, such as reaching a specific Nusselt number to suppress convection or minimizing the L1 norm of a concentration field.

Performance and Scalability

A key finding from the baseline evaluations is a "performance flip" compared to standard RL benchmarks. While "off-policy" algorithms like TD3 often outperform "on-policy" algorithms like PPO in robotics, PPO frequently demonstrates superior robustness in fluid environments. This suggests that the non-linear, time-delayed nature of fluid physics may favor the stability of on-policy methods.

Learning curves comparing PPO and TD3 algorithms (left) and performance scaling with increasing actuator count (right).

Furthermore, BEACON allows for testing scalability. In environments like shkadov-v0, the number of actuators (jets) can be varied, providing a testbed for how DRL agents handle increasing action space dimensionality. Results show that while complexity increases with more jets, agents can still learn effective control strategies.

Conclusion

BEACON represents a foundational step toward standardized benchmarking in the flow control community. By providing lightweight, accessible, and physically grounded environments, it enables broader participation in this research area. Future work will focus on expanding the suite to include more diverse physical phenomena and exploring the performance of emerging RL paradigms, such as offline reinforcement learning or Transformer-based agents, in these specialized domains.

Summary updated

BibTeX
@misc{viquerat2024beacon,
  author = {Jonathan Viquerat and Philippe Meliga and Pablo Jeken and Elie Hachem},
  title = {{Beacon, a lightweight deep reinforcement learning benchmark library for flow control}},
  year = {2024},
  eprint = {2402.17402},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.17402},
}
Figure