NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Inpainting physics: self-supervised learning for context-driven fluid simulation

Jonas Weidner, Yeray Martin-Ruisanchez, Daniel Rueckert, Benedikt Wiestler, Julian Suk

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Time Series, PDEs & Probabilistic ML › Neural Operator Learning for PDEs · Type: new method · Keywords: computational fluid dynamics, self-supervised learning, inpainting, velocity field reconstruction, latent flow-matching, masked auto-encoder

Areas: Model Architectures & Sequence Modeling › Scientific and Medical Architectures › Neural Operator Learning; AI for Science › Physics-Informed Neural Modeling › Neural Physics Simulation

Summary

The paper reformulates steady CFD inference as a context-driven inpainting problem, learning a self-supervised prior over velocity fields and using local tokenisation and latent flow-matching/auto-encoder models to enable reusable surrogates that generalize to new boundary conditions and geometry changes.

Explained to a 5-year-old

Scientists want to know how liquids move inside things like blood vessels. Usually a computer needs to know the whole shape and where the liquid comes in and goes out to make a prediction. This makes it hard to change the shape or the flow later. The new idea is like drawing a picture by filling in missing parts: we learn what fluid flow looks like from many examples, then we can guess the rest when we only know a little. This helps make better predictions when the situation changes, so we can reuse the computer model for new problems.

Explained to a 5-year-old, longer

Scientists study how liquids move inside things like blood vessels. They want a computer that can tell them how the liquid will flow. Usually the computer needs to know the exact shape of the container and where the liquid enters and leaves. This makes it hard to change the shape or the flow later. The new idea is like completing a picture when some parts are missing. First, the computer learns what fluid flow looks like from many examples. It creates a hidden picture that captures the general patterns of how liquids move. When we have a new situation, we only need to give a few clues, like where the liquid comes in or out. The computer then fills in the rest of the flow using the hidden picture. This way, the computer can make predictions even when the shape or flow conditions are different. It also lets us change a small part of the shape and reuse the same model. As a result, we get better and more flexible predictions for many real-world problems.

For a technical reader

The paper reframes steady CFD inference as an inpainting task, learning a self-supervised prior over velocity fields instead of training on explicit boundary conditions. During inference, known regions (e.g., inlet, outlet) are fixed and the remaining flow is reconstructed by filling in missing information. To handle large 3D meshes, the authors tokenize the velocity field locally into compact spatial tokens and train two latent models-a flow-matching model and a masked auto-encoder-on these tokens. This enables the surrogate to generalize to unseen boundary conditions and dataset shifts, and to support local geometry edits by reusing unchanged simulation context.

Problem

Neural surrogate models for computational fluid dynamics are trained as forward operators that map geometry and boundary conditions to solution fields, which ties them to the conditioning variables seen during training and limits reuse when boundary conditions or local geometry change.

Method

The approach reformulates steady CFD inference as an inpainting problem, learning a self-supervised prior over velocity fields and imposing boundary constraints only during inference by fixing known regions. It introduces a local neighbourhood tokeniser to represent high-resolution velocity fields as compact spatial latent tokens and trains latent flow-matching and masked-autoencoder models on these tokens.

Results

The approach reconstructs full velocity fields from sparse boundary context, outperforms supervised neural surrogates under boundary-condition and dataset shift, and enables local geometry editing by reusing unchanged simulation context.

Contributions

It proposes a context-driven inpainting formulation for CFD, introduces a self-supervised prior over velocity fields, presents a local tokenisation scheme for large 3D meshes, and demonstrates that latent flow-matching and masked-autoencoder models can produce reusable surrogates that generalize to new conditions.

Practical relevance

It provides reusable neural surrogates for CFD that can adapt to new boundary conditions and geometry changes, facilitating faster and more flexible simulations in biomedical and engineering applications.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction