Reversible GNS for Dissipative Fluids with Consistent Bidirectional Dynamics
Mu Huang, Linning Xu, Mingyue Dai, Yidi Shao, BoDai · 2025
Read Reversible GNS for Dissipative Fluids with Consistent Bidirectional Dynamics by Mu Huang, Linning Xu, Mingyue Dai, Yidi Shao, BoDai (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2509-22207.txt.
Introduction
Mu Huang and four co-authors present a fluid simulator that can run time in both directions. Particle-based simulators reproduce forward flow well, but running a fluid backward, to find what start produced a given splash, is slow and unreliable with ordinary solvers. Their 2025 framework, R-GNS, builds backward running into a graph network by design. It does not pretend the physics itself reverses; instead, its design can be run in reverse.
The design uses reversible message passing with shared parameters, coupling forward simulation and backward inference in one network. On three water benchmarks, it reached higher accuracy and consistency than rivals while staying far smaller. Recovering plausible starting states ran far faster than tuning-based methods. For goal-shaped targets, like water forming letters, it skips repeated tuning entirely and produces physically sound paths. Forward simulation speed matched strong baselines.
Catalog record
| CREATOR | Mu Huang, Linning Xu, Mingyue Dai, Yidi Shao, BoDai |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 37 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2509-22207
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Reversible GNS for Dissipative Fluids with Consistent Bidirectional Dynamics Mu Huang, Linning Xu, Mingyue Dai, Yidi Shao, BoDai Abstract Simulating physically plausible trajectories toward user-defined goals is a fundamental yet challenging task in fluid dynamics. While particle-based simulators can efficiently reproduce forward dynamics, inverse inference remains difficult, especially in dissipative systems where dynamics are irreversible and optimization-based solvers are slow, unstable, and often fail to converge. In this work, we introduce the Reversible Graph Network Simulator (R-GNS), a unified framework that enforces bidirectional consistency within a single graph architecture. Unlike prior neural simulators that approximate inverse dynamics by fitting backward data, R-GNS does not attempt to reverse the underlying physics. Instead, we propose a mathematically invertible design based on residual reversible message passing with shared parameters, coupling forward dynamics with inverse inference to deliver accurate predictions and efficient recovery of plausible initial states. Experiments on three dissipative benchmarks (Water-3D, WaterRamps, and WaterDrop) show that R-GNS achieves higher accuracy and consistency with only one quarter of the parameters, and performs inverse inference more than 100× faster than optimization-based baselines. For forward simulation, R-GNS matches the speed of strong GNS baselines, while in goal-conditioned tasks it eliminates iterative optimization and achieves orders-of-magnitude speedups. On goal-conditioned tasks, R-GNS further demonstrates its ability to complex target shapes (e.g., characters “L” and “N”) through vivid, physically consistent trajectories. To our knowledge, this is the first reversible framework that unifies forward and inverse simulation for dissipative fluid systems. 1 Introduction Inverse problems are central to many fields, enabling the recovery of hidden causes from observable outcomes. For instance, estimating physical parameters from simulation results in physics or inferring joint motions from actions in robotics ( Li et al. 2023a ; Dinh et al. 2016 ; Kingma & Dhariwal 2018 ; Ghosh et al. 2022 ; Zhang et al. 2024 ) . Yet their application to complex systems is challenging: reversible networks impose strict constraints, making them difficult to extend to high-dimensional systems. ( Ardizzone et al. 2018 ; Gomez et al. 2017 ; Behrmann et al. 2019 ) , In fluid simulation, while forward models can efficiently reproduce flows, waves, and turbulence, it remains hard to infer an initial state that plausibly evolves into a desired outcome, such as smoke rising into a dragon-shaped cloud or waves forming characters on a shoreline. Such goal-conditioned problems in fluid dynamics are particularly challenging. Most natural fluids are dissipative systems governed by irreversible dynamics, which makes inverse inference inherently ill-posed. Moreover, fluids are often modeled as particle systems ( Sanchez-Gonzalez et al. 2020 ; Prantl et al. 2022 ) , where each particle carries its own physical attributes and interacts with a large number of neighbors, leading to extremely high system complexity. Existing approaches struggle to directly recover plausible past states of dissipative fluids ( Beck et al. 2024 ; Lefever 2018 ; Levashova et al. 2021 ) . Optimization-based methods rely on differentiable simulators ( Hu et al. 2019 ; Holl et al. 2020 ; Schoenholz & Cubuk 2020 ; Li et al. 2023b ) to iteratively refine initial conditions, but the process is computationally expensive, unstable, and becomes increasingly inaccurate or fails to converge as particle counts and inverse steps grow. Data-driven alternatives, such as feed-forward neural simulators ( Sanchez-Gonzalez et al. 2020 ; Prantl et al. 2022 ; Shao et al. 2022 ) , can generate inverse solutions more efficiently, yet directly fitting inverse data often causes the model to deviate from real physical principles and yields inconsistencies with forward simulations. To address these challenges, we introduce Reversible Graph Network Simulator (R-GNS), a compact architecture that unifies forward and inverse simulation within a single framework. Importantly, R-GNS does not assume that dissipative fluids are physically reversible; rather, it uses a mathematically reversible design to enforce forward–inverse consistency, recovering one plausible initial trajectory consistent with forward dynamics even when the underlying system is irreversible. By leveraging a reversible residual message-passing design, R-GNS propagates particle interactions in both directions while maintaining strict consistency. With shared parameters and a bidirectional training scheme, the model efficiently learns forward dynamics and simultaneously exploits this knowledge to guide inverse inference, ensuring physical plausibility and coherence between the two tasks. We evaluate R-GNS on three dissipative fluid benchmarks: Water-3D, WaterRamps, and WaterDrop ( Sanchez-Gonzalez et al. 2020 ) . And demonstrate state-of-the-art accuracy, efficiency, and consistency in both forward and inverse simulation. On a goal-conditioned character-shaping task, R-GNS successfully generates physically plausible trajectories to match target shapes. In summary, our contributions are: (1) a unified reversible framework that achieves higher accuracy with one quarter of the parameters, and improves forward–inverse consistency via shared parameters and bidirectional training; (2) a feed-forward solution for inverse simulation in dissipative systems, which maintains forward speed comparable to strong GNS baselines in standard rollouts, while delivering orders-of-magnitude speedups on inverse tasks by eliminating iterative optimization, and (3) a residual reversible message-passing network that guarantees invertibility, enables faithful bidirectional propagation, and better captures underlying physical laws. Figure 1: The pipeline illustrates unified bidirectional simulation: dashed arrows denote inverse inference and solid arrows denote forward simulation. Key advantages are highlighted along the pipeline: (1) 100× Faster : inverse inference is orders of magnitude faster than optimization-based solvers; (2) ¼ Parameters : a unified reversible network integrates forward and inverse reasoning with only one quarter of the parameters compared to two seperately trained GNSs; (3) Consistent Goal Rollout : goal-conditioned rollouts reproduce target shapes with high consistency; (4) Accurate Simulation : R-GNS achieves high accuracy on dissipative fluids dataset with up to 13k particles; (5) Versatile Fluids Modeling : Beyond water, R-GNS effectively handles other dissipative fluids like sand, highlighting its robustness across material types. 2 Related Work Particle-based Fluid Simulation. Particle-based modeling has long been a powerful paradigm for simulating complex physical systems, from molecular dynamics to large-scale fluids, where each particle encapsulates its own state and interacts with many others. Traditional physics-based solvers, such as SPH and MPM ( Monaghan 2005 ; Sulsky et al. 1995 ) , can deliver highly accurate forward dynamics, but require careful manual specification of fluid parameters and simulation settings, which limits their accessibility and flexibility.Recent neural simulators ( Sanchez-Gonzalez et al. 2020 ; Shao et al. 2022 ; Ummenhofer et al. 2019 ; Prantl et al. 2022 ; Toshev et al. 2024 ; Satorras et al. 2021 ; Toshev et al. 2023 ; Toshev et al. 2024 ) , such as GNS and DMCF, alleviate this burden by implicitly learning particle interactions from data, enabling efficient approximations of dynamics; however, they often struggle to maintain strict physical consistency. Moreover, the inherent complexity of particle systems varies significantly across scenarios, motivating our choice of datasets that span different levels of difficulty and setting the stage for methods that can adapt across such scales. Optimization-based Inverse Solvers. Optimization-based inverse solvers built upon differentiable simulation frameworks (e.g., DiffTaichi, PhiFlow, Jax-MD) ( Hu et al. 2019 ; Holl et al. 2020 ; Schoenholz & Cubuk 2020 ; Li et al. 2023b ) typically recover initial states through iterative optimization algorithms such as Adam or L-BFGS ( Kingma 2014 ; Nocedal 1980 ; Liu & Nocedal 1989 ) . These approaches refine candidate trajectories step by step via