Variational Grey-Box Dynamics Matching

Gurjeet Sangra Singh, Frantzeska Lavda, Giangiacomo Mercatali, Alexandros Kalousis
2/19/2026
cs.LG

Official code: DMML-Geneva/VGB-DM (0 stars, MIT, last commit 2026-04-28).

Abstract

Deep generative models such as flow matching and diffusion models have shown great potential in learning complex distributions and dynamical systems, but often act as black-boxes, neglecting underlying physics. In contrast, physics-based simulation models described by ODEs/PDEs remain interpretable, but may have missing or unknown terms, unable to fully describe real-world observations. We bridge this gap with a novel grey-box method that integrates incomplete physics models directly into generative models. Our approach learns dynamics from observational trajectories alone, without ground-truth physics parameters, in a simulation-free manner that avoids scalability and stability issues of Neural ODEs. The core of our method lies in modelling a structured variational distribution within the flow matching framework, by using two latent encodings: one to model the missing stochasticity and multi-modal velocity, and a second to encode physics parameters as a latent variable with a physics-informed prior. Furthermore, we present an adaptation of the framework to handle second-order dynamics. Our experiments on representative ODE/PDE problems show that our method performs on par with or superior to fully data-driven approaches and previous grey-box baselines, while preserving the interpretability of the physics model. Our code is available at https://github.com/DMML-Geneva/VGB-DM.

View on arXivView PDF

Code Implementations(1)

DMML-Geneva/VGB-DMOfficial100%
MIT

Variational Grey-Box Dynamic Matching: a training simulation-free variational grey-box framework for learning dynamical systems, flow matching, directly from trajectory data, with flow/gradient matching.

01Shell, PythonFeb 2, 20265 months agoMIT

Similar Papers

Cite this paper

@article{singh2026variational,
  title  = {Variational Grey-Box Dynamics Matching},
  author = {Gurjeet Sangra Singh and Frantzeska Lavda and Giangiacomo Mercatali and Alexandros Kalousis},
  year   = {2026},
  eprint = {2602.17477},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.17477v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.17477.svg)](https://codeofpaper.com/paper/2602.17477)

Discussion