Inpainting physics: self-supervised learning for context-driven fluid simulation
Jonas Weidner, Yeray Martin-Ruisanchez, Daniel Rueckert, Benedikt Wiestler, Julian Suk
TL;DR. Train a self-supervised latent model on CFD velocity fields, impose boundary conditions at inference, predict the flow by inpainting, generalise more flexibly to unseen geometries and flow speeds.
Abstract. Neural surrogate models for computational fluid dynamics (CFD) are typically trained as forward operators that map explicit problem specifications, such as geometry and boundary conditions, to solution fields. This ties the model to the conditioning variables seen during training and limits reuse under boundary-condition shifts or local geometry changes. We propose to reformulate steady CFD inference as an inpainting problem: instead of training on explicit boundary conditions, we learn a self-supervised prior over velocity fields and impose boundary constraints only during inference by fixing known regions such as inlet, outlet or unchanged regions from previous simulations. To scale this idea to large 3D meshes, we introduce a local neighbourhood tokeniser that represents high-resolution velocity fields as compact spatial latent tokens and train latent flow-matching and masked-autoencoder models on these tokens. On simulations of intracranial aneurysm flow, our method 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. These results suggest that viewing CFD inference as context-conditioned inpainting can turn neural surrogates from task-specific predictors into reusable flow priors. Code and demo are available at https://inpainting-physics.com.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 4 reviews · OpenReview
Updated 25 Nov 2026, 03:43 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper proposes a new formulation of computational fluid dynamics (CFD) surrogate modeling by casting steady-state flow prediction as a self-supervised inpainting problem rather than as supervised forward prediction. The application considered is vascular aneurysm flow, motivated by the observation that, in this setting, the solution field is strongly constrained by boundary conditions and observed spatial context. The method proceeds as follows. A local-neighborhood tokenizer compresses large 3D velocity fields into latent tokens, on which latent flow-matching or masked-autoencoder models are trained. At inference, known flow regions, such as inlet, outlet, or unchanged regions, are fixed, while missing regions are inpainted. Experiments on intracranial aneurysm simulations show improved robustness to boundary-condition shifts, dataset shifts, and local geometry edits compared with supervised neural surrogates.
Overall, the reviewers are positive. They highlight the relevance of the problem, particularly generalization under boundary-condition and context shifts, the novelty of the formulation, the flexibility of the approach, and the extensive experiments on the aneurysm setting.
The reviewers nevertheless identify limitations, some of which are already acknowledged by the authors. These include predicting velocity fields only while ignoring other physical quantities, evaluating the method on a single and relatively favorable CFD regime, degraded performance at realistic mask fractions, and limiting geometry edits to small transformations.
The authors could clarify several points raised by the reviewers, including:
-
reconsidering the implementation of flow matching (RBFW9);
-
better characterizing the limits of the model’s robustness to geometry editing (R415q, RDldW);
-
commenting on the trade-off between information compression and information preservation (RDldW).
Final justification
The authors provided a thorough rebuttal addressing the reviewers’ concerns and questions. This includes:
-
Validation of the proposed method on two new datasets, including a large 3D steady-state turbulent aerodynamics dataset.
-
Joint prediction of velocity and pressure fields.
-
An analysis of the limits of geometry editing.
-
An analysis of the trade-off between compression and information preservation.
-
An analysis of performance degradation as a function of mask fraction.
All reviewers are satisfied with the authors’ responses, and two of them increased their scores to 5. Overall, the paper proposes a novel approach to steady-state CFD modeling, and this novelty was appreciated by all reviewers. I recommend acceptance.
Read meta-review
Meta-review
The paper proposes a new formulation of computational fluid dynamics (CFD) surrogate modeling by casting steady-state flow prediction as a self-supervised inpainting problem rather than as supervised forward prediction. The application considered is vascular aneurysm flow, motivated by the observation that, in this setting, the solution field is strongly constrained by boundary conditions and observed spatial context. The method proceeds as follows. A local-neighborhood tokenizer compresses large 3D velocity fields into latent tokens, on which latent flow-matching or masked-autoencoder models are trained. At inference, known flow regions, such as inlet, outlet, or unchanged regions, are fixed, while missing regions are inpainted. Experiments on intracranial aneurysm simulations show improved robustness to boundary-condition shifts, dataset shifts, and local geometry edits compared with supervised neural surrogates.
Overall, the reviewers are positive. They highlight the relevance of the problem, particularly generalization under boundary-condition and context shifts, the novelty of the formulation, the flexibility of the approach, and the extensive experiments on the aneurysm setting.
The reviewers nevertheless identify limitations, some of which are already acknowledged by the authors. These include predicting velocity fields only while ignoring other physical quantities, evaluating the method on a single and relatively favorable CFD regime, degraded performance at realistic mask fractions, and limiting geometry edits to small transformations.
The authors could clarify several points raised by the reviewers, including:
-
reconsidering the implementation of flow matching (RBFW9);
-
better characterizing the limits of the model’s robustness to geometry editing (R415q, RDldW);
-
commenting on the trade-off between information compression and information preservation (RDldW).
Final justification
The authors provided a thorough rebuttal addressing the reviewers’ concerns and questions. This includes:
-
Validation of the proposed method on two new datasets, including a large 3D steady-state turbulent aerodynamics dataset.
-
Joint prediction of velocity and pressure fields.
-
An analysis of the limits of geometry editing.
-
An analysis of the trade-off between compression and information preservation.
-
An analysis of performance degradation as a function of mask fraction.
All reviewers are satisfied with the authors’ responses, and two of them increased their scores to 5. Overall, the paper proposes a novel approach to steady-state CFD modeling, and this novelty was appreciated by all reviewers. I recommend acceptance.
1 comment
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors target computational fluid dynamics, where simulations are costly and complicated. Neural “surrogates” are used to explore areas of parameter space, but a problem remains that there is a strong coupling between the learned model conditioning variables and data-generating process used during training so generalization is challenging. Phrased differently, it doesn’t work well out of distribution, e.g. with new boundary conditions, solvers or geometry. Here, the authors apply a tokenization step to then use a generative flow-matching model to infer the distributions and a series of masked autoencoders. They conclude that inpainting with flow-matching helps generalization and that there is a clear benefit to learning a reusable global context. The data is on intracranial aneurysm hemodynamics.
Strengths and weaknesses
To my knowledge this work is original.
Strengths: I found the paper to be pleasant to read and offered a nice overview of flow-matching and varying applications of masked autoencoders.
The work was, to my knowledge, novel, but I note that I am not an expert on hemodynamics or the targets of this branch of work to which the paper pertains.
The statements regarding that learning reusable global context I believe are not new, but are phrased quite nicely here, and the authors get good mileage out of assessing the different models in this context.
I very much liked the very intentional use of the data from a different dataset entirely for additional validation.
Weaknesses: The authors touch on this, but the setup seems a bit odd in that it does not include any surrounding variables and parameters e.g. related to the boundaries. At least some experiments showing how this would transfer to this space would improve the paper. It could in partcular be useful for researchers from different fluid fields to assess if this would be relevant for them to implement.
Some sections of the manuscript could be strengthened, such as the contributions statements in the introduction.
Questions
I would appreciate a better fig 1 outlining what the vrious approaches are and how they fit together. In general, the visualisations are nice, but leave a bit to be desired in terms of immediately following the role of the figures.
I also found lines 86-92 quite a confusing laundry-list of things.
Limitations
I would like the authors to comment on incorporating different parameters.
One could speculate that the problem is made too simple and that a more complicated latent space would change the results to such an extent that an actual application in the target field is not feasible. In this case, the application to a biomedical topic as a motivating statement should be changed.
Final justification
I thank the authors for their responses to my comments.
Overall, I remain positive to the paper.
I expect the authors to follow through on their statements, especially on the possible issues regarding that the problem is too simple.
I originally read this paper as use-inspired, and would have slightly higher expectations of the ML novelty. However, I defer to the other reviews here.
Formatting concerns
Reasonable.
1 comment
Rebuttal
We thank the reviewer for their thoughtful and constructive review. We are encouraged that the reviewer found the paper well written, appreciated the novelty of the proposed formulation, and highlighted the value of the external AneuG validation. We address the individual points below.
- Explicit simulation parameters and boundary-condition variables
We agree that the absence of explicit simulation parameters (e.g., mass flow, pressure conditions, turbulence model, or other boundary-condition descriptors such as number of mesh boundary layers) may appear unusual from the perspective of conventional CFD surrogate modelling. We intentionally selected this problem formulation as a well-defined environment to investigate our new generative inpainting approach, which learns a self-supervised prior over velocity fields and conditioning from observed solution context at inference time. Importantly, our proposed framework is not restricted to this setting: additional physical parameters could be incorporated through global conditioning tokens, latent variables, or additional input channels while preserving the same inpainting formulation. Including additional parameters could be particularly interesting for properties that are hard to infer from sparse context, such as viscosity or wall resolution. We will augment our discussion in the final manuscript.
Meanwhile, we demonstrate this flexibility by extending L-MAE to jointly model velocity and pressure using separate tokenisers. The combined model retains comparable velocity accuracy and achieves pressure nMSE below 11% for masking fractions up to 0.9, showing that additional physical fields can be incorporated without changing the overall inpainting formulation.
We show the velocity normalised MSE for the Aneumo dataset:
| model | mf 0.05 | mf 0.1 | mf 0.2 | mf 0.3 | mf 0.5 | mf 0.7 | mf 0.9 | mf 0.99 |
|---|---|---|---|---|---|---|---|---|
| trained on velocity only | 1.34 % ± 0.15 % | 1.67 % ± 0.18 % | 2.63 % ± 0.30 % | 3.57 % ± 0.38 % | 6.23 % ± 0.55 % | 9.75 % ± 0.71 % | 15.12 % ± 0.99 % | 34.38 % ± 2.98 % |
| trained on velocity + pressure | 1.25 % ± 0.13 % | 1.48 % ± 0.13 % | 2.28 % ± 0.25 % | 3.31 % ± 0.38 % | 7.02 % ± 0.68 % | 12.37 % ± 0.93 % | 20.29 % ± 1.35 % | 35.99 % ± 2.96 % |
| trained on velocity + pressure, mixed BC | 0.51 % ± 0.07 % | 0.52 % ± 0.11 % | 0.70 % ± 0.16 % | 0.80 % ± 0.12 % | 2.42 % ± 0.25 % | 7.53 % ± 0.59 % | 22.91 % ± 1.64 % | 44.74 % ± 4.57 % |
We show the pressure normalised MSE for the Aneumo dataset:
| model | mf 0.05 | mf 0.1 | mf 0.2 | mf 0.3 | mf 0.5 | mf 0.7 | mf 0.9 | mf 0.99 |
|---|---|---|---|---|---|---|---|---|
| velocity + pressure | 0.150 % ± 0.024 % | 0.182 % ± 0.027 % | 0.342 % ± 0.063 % | 0.620 % ± 0.136 % | 1.715 % ± 0.366 % | 3.032 % ± 0.424 % | 10.303 % ± 1.651 % | 47.353 % ± 15.714 % |
| velocity + pressure, mixed BC | 0.060 % ± 0.013 % | 0.068 % ± 0.014 % | 0.088 % ± 0.019 % | 0.134 % ± 0.029 % | 0.778 % ± 0.258 % | 7.468 % ± 3.419 % | 55.589 % ± 35.900 % | 268.714 % ± 122.306 % |
Here "mixed BC" stands for conditioning on inlet velocity and outlet pressure (but not inlet pressure and outlet velocity). We will add this additional experiment to a revised version of our manuscript.
- Figure 1 and overall presentation
We thank the reviewer for this suggestion. We agree that Figure 1 could more clearly convey the relationships among the neighbourhood tokeniser, the self-supervised generative model, and the different inference modes. We will revise the figure and caption to better separate tokenisation, self-supervised training, and context-conditioned inference to more clearly illustrate the role of the individual model components. Along this line, we will add clarifying remarks to the related-work discussion (lines 86-92) and sharpen our contribution statement to more clearly communicate our work's advances: Reformulating CFD inference as context-conditioned inpainting, allowing conditioning through arbitrary observed solution regions rather than fixed training-time parameters, and demonstrating robustness of our approach under challenging conditioning shifts, including held-out mass flows, external dataset transfer, and local geometry edits. We believe this revised framing will better communicate the novel aspects of the work.
- Problem may be too simple
We agree that steady intracranial flow is a favourable setting because inlet and outlet velocities provide strong information about the dominant flow structure. However, we demonstrate substantial anatomical variability, unseen mass flows, cross-dataset performance and local geometry changes. Furthermore, we will list extension to transient arterial flow under future work in a revised version of our manuscript.
To test whether the formulation extends beyond the favourable hemodynamic setting, we additionally retrained L-MAE on turbulent external flow around airfoils using the Emmi-Wing dataset. Although L-MAE is slightly less accurate in distribution, it outperforms the supervised attention baseline at both slower and faster unseen inflow velocities, reducing nMSE from 13.80% to 4.21% for OOD-slow and from 7.69% to 5.18% for OOD-fast. These results show that the observed OOD advantage extends beyond laminar vascular flow to turbulent external aerodynamics.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper casts steady-state CFD prediction as conditional field completion, where a self-supervised latent model learns the distribution of velocity fields and uses observed regions as inference-time constraints. This formulation improves adaptability beyond standard supervised surrogates, particularly under unseen flow conditions, cross-dataset shifts, and localized geometry changes.
Strengths and weaknesses
Strengths:
(1) The paper offers a promising reformulation of steady CFD surrogate modeling as context-conditioned inpainting, effectively transferring ideas from masked/generative modeling to physical field reconstruction. (2) The empirical results show clear advantages in context-rich settings, especially under boundary-condition shifts, external dataset transfer, and local geometry editing.
Weaknesses:
(1) The experimental scope remains limited to a relatively narrow and favorable CFD regime, mainly steady internal aneurysm flows, so it is unclear whether the approach generalizes to broader CFD settings such as unsteady, turbulent, external, or multi-physics flows. (2) While the inpainting formulation yields strong empirical performance, the core methodological novelty is somewhat incremental, relying more on adapting existing inpainting and masked-modeling ideas than on introducing a fundamentally new physics-aware modeling mechanism. (3) The physical validation is still incomplete: velocity reconstruction, divergence, and vorticity are useful, but pressure consistency, momentum residuals, wall shear stress, and downstream engineering/biomedical quantities are not fully assessed.
Questions
-
Flow fields are highly complex physical media, arguably with richer structure and stricter constraints than images or text. Does tokenizing them risk losing critical physical information? How do you balance compression efficiency and information preservation, and have you evaluated tokenization loss beyond the steady internal-flow setting studied in the paper?
-
The physical consistency imposed on the inpainted region seems softer than in autoregressive or solver-based formulations. Have you considered this limitation, and how do you assess whether the completed field satisfies the governing physics?
-
Local edits in physical systems may induce global changes due to strong spatial coupling, unlike many image or text inpainting tasks. Stronger constraints or evaluation criteria may be needed to verify global consistency after local geometry editing.
-
Why not evaluate the method on unsteady internal-flow cases as an intermediate step toward broader CFD applicability?
Limitations
- The experimental scope is narrow.
- The enforcement and evaluation of physical consistency remain weak.
- The core methodological novelty is limited, and the diversity of experiments is insufficient to fully support the paper’s broader claims.
Final justification
The authors have clarified the contributions of their work and discussed my questions in greater detail, including the relationship between local and global physics and the specific implementation details, as well as how they balance compression efficiency and information preservation. These explanations show that the paper is sound and valuable. However, broader experiments, such as those on unsteady flows, are still missing.
Formatting concerns
The writing is generally clear and fluent.
4 comments
Rebuttal Part 1
We thank the reviewer for the constructive assessment of our work, recognising our "promising reformulation of steady CFD surrogate modelling" and the "clear advantages in context-rich settings".
- Experimental scope
To address the reviewer's comments on additional CFD regimes, we have conducted experiments on airfoil geometries (Emmi-Wing [4]) in a highly turbulent regime. As with arteries, we find that our approach (L-MAE) performs well compared to a supervised baseline, especially out-of-distribution (at velocities slower or faster than the training regime). In-distribution (ID), both methods demonstrate a low error rate; however, the baseline supervised method performs better. We present the velocity nMSE for ID (mid-range inflow speeds) and out-of-distribution (OOD) in the following table.
| Slice | L-MAE | supervised-Att |
|---|---|---|
| ID | 1.46% ± 0.34% | 0.45% ± 0.16% |
| OOD-slow | 4.21% ± 0.27% | 13.80% ± 0.27% |
| OOD-fast | 5.18% ± 0.29% | 7.69% ± 0.32% |
- Novelty of contribution
We would like to clarify that the novelty of our contribution lies indeed not in the generative backbones themselves, but in a fresh perspective on CFD inference: We recast CFD inference as an inpainting problem over a generative (flow field) prior. We introduce a local neighbourhood tokeniser that makes this training strategy feasible on large unstructured 3D point clouds while preserving spatial locality. Within our framework, we benchmark well-established generative models. Using established generative backbones allows us to isolate the contribution of the inpainting formulation.
- Physical validation
The risk of intracranial aneurysm rupture has been associated with wall shear stress (WSS) [1], making WSS a preferred downstream biomarker. We estimate WSS from the predicted velocity field by measuring how fast the flow ramps up away from the wall. Both flow matching and the supervised baselines perform worse, indicating that L-MAE more accurately preserves the near-wall velocity gradients required for WSS estimation.
WSS nMSE Aneumo.
| model | mf 0.2 | mf 0.5 | mf 0.7 | mf 0.9 | mf 0.99 |
|---|---|---|---|---|---|
| L-MAE | 9.3 % ± 0.8 % | 12.6 % ± 0.8 % | 14.9 % ± 0.8 % | 21.0 % ± 1.1 % | 32.0 % ± 1.9 % |
| L-FM | 62.3 % ± 13.3 % | 80.5 % ± 36.5 % | 57.7 % ± 9.2 % | 49.8 % ± 2.4 % | 50.5 % ± 2.3 % |
| supervised-Att | 213.4 % ± 34.0 % | 149.3 % ± 14.6 % | 129.3 % ± 14.2 % | 121.9 % ± 14.4 % | 83.9 % ± 7.3 % |
| supervised-MP | 125.8 % ± 28.0 % | 72.6 % ± 6.4 % | 66.6 % ± 6.3 % | 66.3 % ± 6.7 % | 51.2 % ± 3.7 % |
Additionally, we trained a separate local neighbourhood tokeniser to encode the pressure field. Using velocity and pressure tokens, we have trained our best method (L-MAE). Joint velocity-pressure modelling retains comparable velocity accuracy at low and moderate mask fractions, with some degradation as context becomes sparse. Pressure nMSE remains below 11% up to and including a mask fraction of 0.9.
Velocity nMSE Aneumo:
| model | mf 0.05 | mf 0.1 | mf 0.2 | mf 0.3 | mf 0.5 | mf 0.7 | mf 0.9 | mf 0.99 |
|---|---|---|---|---|---|---|---|---|
| trained on velocity only | 1.34 % ± 0.15 % | 1.67 % ± 0.18 % | 2.63 % ± 0.30 % | 3.57 % ± 0.38 % | 6.23 % ± 0.55 % | 9.75 % ± 0.71 % | 15.12 % ± 0.99 % | 34.38 % ± 2.98 % |
| trained on velocity + pressure | 1.25 % ± 0.13 % | 1.48 % ± 0.13 % | 2.28 % ± 0.25 % | 3.31 % ± 0.38 % | 7.02 % ± 0.68 % | 12.37 % ± 0.93 % | 20.29 % ± 1.35 % | 35.99 % ± 2.96 % |
Pressure nMSE for Aneumo:
| model | mf 0.05 | mf 0.1 | mf 0.2 | mf 0.3 | mf 0.5 | mf 0.7 | mf 0.9 | mf 0.99 |
|---|---|---|---|---|---|---|---|---|
| velocity + pressure | 0.150 % ± 0.024 % | 0.182 % ± 0.027 % | 0.342 % ± 0.063 % | 0.620 % ± 0.136 % | 1.715 % ± 0.366 % | 3.032 % ± 0.424 % | 10.303 % ± 1.651 % | 47.353 % ± 15.714 % |
With the pressure predictions available, we can compute the residual of the Navier-Stokes momentum equation and compare it to that of the ground truth simulation. We observe a 5-fold increase in momentum residuals over the ground truth for the sparse case with a 99 % masking fraction. At a 50 % masking fraction, we observe a momentum residual twice as large as the reference.
- Balancing compression efficiency and information preservation
The quality of the tokenisation is critical, as it sets an upper bound on the reconstruction accuracy achievable by the downstream generative models. Our design seeks to minimise information loss in two ways. First, the tokeniser compresses only the physical quantities, while the spatial structure is retained explicitly. The original point locations and wall-distance information are preserved throughout the pipeline and are additionally provided to the decoder. Consequently, the tokeniser does not need to encode absolute geometry in the latent representation and can focus on compressing the velocity field (or, more generally, physical fields) itself.
Rebuttal Part 2
... Second, we directly evaluate the trade-off between compression and information preservation in Appendix C: as shown there in Figure 7, increasing the number of neighbourhood centres beyond 2,500 yields only negligible improvements in reconstruction error, indicating that the chosen representation already captures nearly all relevant information while remaining computationally tractable. Importantly, this preservation extends beyond pointwise velocity values. Figure 2 demonstrates that the reconstructed fields retain the relevant flow structures across both in-distribution and external datasets, and the reconstruction error remains substantially smaller than the downstream inpainting error. We believe that, in the studied setting, the tokeniser achieves a favourable balance between compression efficiency and information preservation, while the ablation results suggest that the chosen operating point is close to the point of diminishing returns.
Regarding tokenisation evaluation "beyond the [...] internal-flow setting", for the Emmi-Wing dataset, we find a tokeniser reconstruction nMSE of 0.04 %. This demonstrates its ability to efficiently compress the data with minimal loss.
- Physical consistency imposition
We identify two approaches to neural surrogate modelling: (1) autoregressive solver emulation (e.g., [2]), which the reviewer assumes to impose physical consistency more strictly, and (2) end-to-end surrogate modelling (e.g., [3]). Our approach falls into the latter category and thus (arguably) has a softer physical bias. Both approaches have their advantages and disadvantages. Approach (1) leads to emulators that are narrow in scope (e.g., limited to a well-defined flow case) but follow established solver behaviour, while (2) trades off adherence to solver behaviour for generalisability. We thank the reviewer for pointing this out and will append a discussion on this to our revised manuscript in case of acceptance.
Regarding how we "assess whether the completed field satisfies the governing physics": Our model is a surrogate and does not enforce the complete Navier–Stokes equations during inference. We therefore evaluate reference-solution accuracy and physical consistency separately. nMSE and cosine similarity measure agreement with the reference CFD solution, while divergence and vorticity error measure field properties.
As a side note, in the flow-matching backend, we also experiment with guiding the integration steps by conditioning on zero divergence as a hard side constraint ("L-FM-Physics", section 3.2.3).
- Local edits and global changes
Local geometry edits can alter the flow beyond the modified region and introduce inconsistencies at the mask boundary and beyond. We quantify this by contrasting error and physical metrics both within the masked region and across the full domain (including the mask; see Table 2). To gain further insight, we have performed additional experiments since submission, quantifying nMSE [%] over size of the geometric edit. We group deformation pairs into small, medium, and large edits based on volume intersection-over-union and report nMSE over the full domain, inside the edited mask, and outside the mask.
| Deformation size | Full domain | Inside mask | Outside mask |
|---|---|---|---|
| Small | 1.9 ± 1.5 | 19.7 ± 11.1 | 1.1 ± 1.2 |
| Medium | 4.5 ± 3.3 | 24.7 ± 8.3 | 3.0 ± 3.2 |
| Large | 7.3 ± 6.1 | 35.8 ± 36.7 | 3.8 ± 3.5 |
Accuracy decreases with deformation magnitude, with most error concentrated inside the edited region. Outside-mask error remains comparatively small, indicating that reusing the surrounding source simulation introduces limited inconsistency.
- Evaluation on transient simulations
We agree that transient flow is an important extension. Our method was initially tested only on steady-state simulations, as most training data is available only for such cases. There are multiple ways to include time: as an autoregressive rollout or as a direct 4D time-window prediction. We consider a rigorous, transient extension beyond the scope of this work. We instead broaden the steady-state evaluation to turbulent external aerodynamics and will note transient modelling as future work.
References
[1] G. Zhou, Y. Zhu, Y. Yin, M. Su, M. Li. Association of wall shear stress with intracranial aneurysm rupture: systematic review and meta-analysis. Scientific Reports. 2017.
[2] P. Lippe, B.S. Veeling, P. Perdikaris, R.E. Turner, J. Brandstetter. PDE-Refiner: Achieving Accurate Long Rollouts with Neural PDE Solvers. NeurIPS 2023.
[3] B. Alkin, A. Fürst, S. Schmid, L. Gruber, M. Holzleitner, J. Brandstetter. Universal Physics Transformers: A Framework For Efficiently Scaling Neural Operators. NeurIPS 2024.
[4] F. Paischer, L. Cotteleer, Y. Dreze, R. Kurle, D. Rubini, M. Bleeker, T. Kronlachner, J. Brandstetter. Going with the Speed of Sound: Pushing Neural Surrogates into Highly-turbulent Transonic Regimes. NeurIPS 2025 ML4PS.
Thank you for the detailed response. The additional experiments and explanations are clear and sufficient. Although some important issues remain, the paper is still of good overall quality and offers useful insights to the AI-for-physics community. I have therefore decided to raise my score to 5.
Thank you very much for your positive evaluation of our paper and rebuttal.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper reformulates CFD velocity-field prediction so that the neural surrogate is no longer a forward operator that produces a prediction by regression, but a generative model that can be flexibly conditioned on arbitrary boundary information at inference time. It learns a self-supervised prior over velocity fields (without boundary-condition labels) and imposes boundary conditions only at inference, by fixing the known regions (inlet, outlet, or unchanged regions of a previous simulation) and inpainting the rest. To scale to large 3D point-cloud meshes, it uses a local neighbourhood tokeniser, and it instantiates the generative inpainting with two conditional models: a masked autoencoder (MAE) and a flow matching model (FM). The main contributions of this paper include:
- A novel framework that uses MAE- and FM-based generative model for inpainting to replace the conventional supervised neural operator for CFD prediction
- Extensive experiments on intracranial aneurysm hemodynamics (Aneumo, AneuG), showing that the proposed method gives the flexibility to impose arbitrary boundary conditions at inference time, which results in improved performance on handling out-of-distribution cases and dataset shift, as well as the support of local geometry editing.
Strengths and weaknesses
Strengths:
- The idea of modelling CFD prediction as generative inpainting is novel and interesting, and it naturally fits the point-cloud-based tokenization scheme.
- The authors try two different generative models (MAE and FM) with several variants. MAE works well; FM is slightly worse, but it is clever that FM natively supports inpainting without any special training. Since conditional generation/inpainting with FM is already very mature in 2D/3D vision, the FM route also has a lot of room to be extended.
- The key benefit of generative inpainting is the flexibility to impose arbitrary boundary conditions, and the authors further show that this property is important for OOD generalization, dataset shift, and the local-editing downstream task, which are all important applications.
Weaknesses:
- As with previous methods, all experiments are on Aneumo and AneuG, so the geometry/operator scope is still highly similar to that of the supervised baselines, and the paper does not actually demonstrate stronger generalization than supervised methods (the authors also acknowledge this in the limitations).
- From Fig. 4 and Fig. 8, at a mask fraction of 1.0 (i.e., no boundary condition is used, which aligns with the supervised setting), the supervised methods are often still better, which suggests that the generative-inpainting model's own advantage is limited in the unconditional-generation regime. In addition, Fig. 4's qualitative results do not show where the mask is applied, which raises a concern that in the OOD cases, the region where the supervised and proposed methods differ most from the ground truth may already be covered by the given boundary condition.
Recommendation:
The paper is clearly written and the core idea is interesting to me. The latent space generation framework is similar to that in CoNFiLD, but the task scope is quite different, and the inspiration of "inpainting" here is closer to a transfer from the field of 2D vision (where MAE and FM have been frequently used for inpainting or other tasks). The paper has some weaknesses, but they are relatively minor, so I lean towards accept.
Questions
The exposition is very clear, so I only have two questions:
- In Fig. 4 and Fig. 8, how is the mask fraction defined for the supervised methods? From my understanding, the supervised methods do not take an unmasked region/context as input. Did you just predict the velocity field for the masked region and use the ground-truth for the unmasked region?
- Did you try larger-magnitude geometry edits to test the upper limit of the method's generalization over geometry (both for the tokenizer and for the generative models)?
Limitations
Yes
Final justification
The authors' rebuttal addressed most of my concerns and clarified the intended scope of the method. In particular, I appreciate the explicit distinction that supervised surrogates remain strong for standard boundary-conditioned prediction, while the proposed inpainting framework is most beneficial when additional context is available or under distribution shift and changing conditioning patterns. I find this limitation reasonable, and it does not change my positive assessment of the paper. Overall, I maintain my recommendation of acceptance.
Formatting concerns
No
3 comments
Rebuttal
We thank the reviewer for their careful evaluation of our work, recognising our "novel framework" and "extensive experiments". We want to address and clarify the weaknesses and questions raised:
- Exploring generalization
We initially evaluated only on two datasets due to the limited availability of public data. Nevertheless, we have already evaluated generalisation to unseen flow rates (Fig. 4, left) and cross-dataset (Fig. 4, right). To better characterise our approach's flexibility, we now additionally study generalisation through two distinct lenses:
- To evaluate the generalisation towards another internal flow example, different from arteries, we simulate a simple T-pipe geometry, where a pipe is connected orthogonally in the middle of another pipe. For this, we use the simpleFoam solver from OpenFOAM to generate a laminar, steady-state flow field. Sweeping over the masking fraction (as in Fig. 3) shows that L-MAE outperforms the supervised methods by a large margin, whereas L-FM degrades at larger fractions. Please note that for this experiment, we directly used models trained on the Aneumo aneurysm dataset without any modification or re-training to study generalisation capability to a widely out-of-domain problem.
Reporting nMSE on self-simulated T-pipe geometry:
| Mask Fraction | L-MAE | L-FM | supervised-att | supervised-MP |
|---|---|---|---|---|
| 20% | 5.8% | 9.1% | 90.6% | 76.5% |
| 50% | 7.1% | 42.7% | 71.6% | 64.4% |
| 70% | 8.9% | 68.3% | 69.2% | 59.5% |
| 99% | 16.2% | 141.2% | 54.4% | 43.7% |
- To demonstrate that our method also generalises to other flow domains, we retrain our method on external aerodynamics, the Emmi-Wing dataset [1]. As in Fig. 4, we train our best method, L-MAE, and the state-of-the-art attention-based supervised model on a mid-range band of inflow velocities. While performing slightly worse than surrogate-Att in the training regime (ID), L-MAE performs better out-of-domain (OOD) for velocities both slower and faster than the training velocities, confirming the superior generalizability of our method.
Reporting nMSE on the Emmi-Wing dataset:
| Slice | L-MAE | supervised-Att |
|---|---|---|
| ID | 1.46% ± 0.34% | 0.45% ± 0.16% |
| OOD-slow | 4.21% ± 0.27% | 13.80% ± 0.27% |
| OOD-fast | 5.18% ± 0.29% | 7.69% ± 0.32% |
- Performance at the sparse inlet/outlet setting
In the sparse inlet/outlet setting (i.e., the highest mask fractions), supervised surrogates generally achieve better performance, as transparently shown in Figure 3. This is expected, since they are trained specifically for the forward prediction task and receive the governing boundary-condition parameters explicitly.
However, our approach has other, distinct advantages:
- the ability to incorporate and reuse arbitrary partial solution context, such as existing simulations in treatment planning or local geometry editing (Figures 3 and 5)
- improved robustness when the inference-time conditions differ from the training-time conditioning, such as unseen mass flows and external dataset shift (Figure 4). In summary, our inpainting framework enables learning a flow prior that generalises better under certain circumstances while using the same amount of training data.
We will revise the manuscript to make this distinction more explicit. Specifically, we will clarify that supervised surrogates remain a strong choice for standard boundary-conditioned prediction, whereas the proposed inpainting framework is most beneficial when additional context is available or when robustness to distribution shift and changing conditioning patterns is required.
- Similarity to CoNFiLD
We agree with the reviewer on the relevance of CoNFiLD and include it in the literature discussion. We contrasted it to our approach in the related works as follows: "[i]n contrast to their approach, we include variations in mass flow and domain geometry in our framework while Du et al. [2024] focus on generating complex turbulence patterns within a fixed setting."
- Clarifying masking for supervised forward models
For the comparison to the supervised method (Fig. 4 left), we use a masking ratio of 99%, as explained in line 248. This is because our method requires context, which is provided to the supervised model as a condition. So the sweep over masking ratios also stops at 99%.
We will also add the masked region to the qualitative results of Fig. 4, which is also 99%.
We evaluate only the masked region across all methods; no predictions are evaluated outside the given boundary conditions.
- Robustness to large(r) geometry edits
While we are limited in terms of deformation strength by the geometries that are provided in the dataset, we agree that it is interesting to investigate how geometric edit magnitude affects the error. Therefore, we grouped geometry edits by volume intersection-over-union into small, medium, and large deformations. Errors increase significantly with the magnitude of deformation for L-FM and L-MAE, providing an empirical estimate of the full pipeline’s generalisation limit. As expected, we find no significant trend for the supervised case, since the prediction is always run from scratch.
| method | small deformation | medium deformation | large deformation | Spearman rho |
|---|---|---|---|---|
| L-FM-Zero | 4.5 ± 4.3% | 6.8 ± 4.3% | 12.7 ± 12.7% | +0.51 (p=0.005) |
| L-FM-Physics | 4.7 ± 5.0% | 5.3 ± 3.9% | 11.5 ± 12.8% | +0.40 (p=0.034) |
| L-MAE | 1.9 ± 1.5% | 4.5 ± 3.3% | 7.3 ± 6.1% | +0.59 (p=0.001) |
| supervised-Att | 44.3 ± 21.4% | 28.6 ± 6.5% | 30.6 ± 8.8% | -0.26 (p=0.180) |
References
[1] F. Paischer, L. Cotteleer, Y. Dreze, R. Kurle, D. Rubini, M. Bleeker, T. Kronlachner, J. Brandstetter. Going with the Speed of Sound: Pushing Neural Surrogates into Highly-turbulent Transonic Regimes. NeurIPS 2025 ML4PS.
Thank you for the detailed rebuttal and additional experiments. The authors have addressed most of my concerns. I therefore maintain my recommendation of acceptance.
Thank you very much for your positive evaluation of our paper and rebuttal.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 4/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors study the inpainting capacity of generative models for solving computational fluid dynamics problems in the context of vascular aneurysms. Their core insight is that, in this hemodynamic setting, velocity fields are strongly constrained by sparse boundary/context observations, and they formulate CFD inference as a generative inpainting problem. Rather than training a forward surrogate conditioned on explicit geometry and boundary-condition variables, they train a self-supervised generative prior over velocity fields and impose boundary/context constraints at inference time. The authors argue that this is a more flexible and generalizable formulation than training supervised surrogates on fixed geometric subsets and boundary-condition parameterizations.
Strengths and weaknesses
Strengths
- Attention to generalization: The authors tackle the problem of generalization for neural surrogate models under boundary-condition and dataset shift, a problem which standard conditional training often struggles with. The authors conduct experiments showing that their generative inpainting approach exhibits improved generalization capacity under held-out mass flows and external dataset shift.
- Creative and insightful formulation: I appreciate the paper’s creativity and its ability to draw analogies between generative models and PDE solvers. Recasting CFD inference as context-conditioned inpainting is a useful perspective, especially for settings where partial solution fields or prior simulations are available.
- Diversity of generative approaches: The authors evaluate both diffusion-style flow matching and masked generation, investigating how different corruption/decorruption processes can function as generative inpainters.
- Flexible geometry and physics representation: The authors propose to model velocity fields through a latent point-cloud representation. This allows the same model to condition on different spatial subsets of the velocity field, including sparse inlet/outlet boundary regions, larger volumetric context, and mostly unchanged volumetric regions for local geometry editing. This representation is potentially useful not only for boundary-conditioned surrogate modelling, but also for settings such as 4D-flow-style reconstruction, where sparse, noisy, or coarse volumetric velocity measurements could provide additional constraints beyond the boundary.
Weaknesses
- Lack of pressure modelling: The authors constrain their generative model to sample only velocity fields. This restricts the current method in relation to many simulation workflows, where one often specifies a mix of inlet velocity or flow rate and pressure, resistance, or Windkessel outlet conditions. While this method could potentially accommodate joint modelling of velocity and pressure, it is unclear to what extent generative modelling can capture the cross-space coupling between velocity and pressure and respect physical priors such as momentum conservation and continuity. An interesting scenario to examine is when the prescribed boundary velocities are mis-specified such that continuity is violated. This would clarify whether the generative model prefers to adhere to the imposed boundary/context constraints or to conservation of mass.
- Performance degradation at realistic mask fractions: The authors demonstrate that performance decreases with increasing mask fraction, meaning that restricting the context to sparse boundary zones makes the conditional modelling task substantially more difficult. However, many prospective simulation use-cases are of this type, where inlets/outlets are specified and the wall is defined as no-slip. The lower mask fractions, in which a large volumetric region of the velocity field is provided, are often not available in standard medical CFD workflows. This does not invalidate the method, since volumetric context may be available in applications such as 4D-flow reconstruction or local simulation editing, but it limits the generality of the surrogate-modelling claim.
- Limited ability to model geometric edits: The local editing task is limited to relatively small geometric transformations. This may be because the edited latent point cloud is out of distribution, or more likely because inlet, outlet, and even upstream/downstream velocity fields may change with the geometry. I suggest that the authors quantitatively correlate the strength of the geometric edit with the drop in performance, perhaps by plotting geometric deformation metrics against velocity-field error metrics. It would also be useful to quantify when preserving the unchanged simulation context becomes physically inconsistent.
- Suboptimal inverse modelling choices for flow matching: The authors show that masked autoencoders often perform better for inpainting. In my opinion, the flow-matching model is disadvantaged by a relatively naive inpainting procedure. The paper appears to keep known tokens fixed to their clean encoded values throughout integration, while the unknown tokens are evolved from noise or zero. This creates a mixed-time latent state: the known tokens are effectively at the data endpoint, while the unknown tokens are at the current flow-matching/noise level. Since the model is trained on globally noised/interpolated latent fields, where all tokens share the same noise level, this creates a train-test mismatch. I suggest the authors compare against stronger inverse-modelling methods for diffusion/flow-matching models, including diffusion guidance, or re-noising the fixed tokens to the corresponding integration time so that the model input remains closer to the training distribution. Flow-map guidance would also make the comparison to masked autoencoders more convincing.
Questions
na
Limitations
yes
Final justification
The authors have appropriately conducted experiments that answered my questions. The main remaining limiting factor is the performance, especially at lower mask fractions. Despite that, I find the work interesting and would provide a solid base upon which the method can be optimized.
Formatting concerns
na
3 comments
Rebuttal
We thank the reviewer for their recognition of our "creative and insightful formulation" for recasting CFD inference and the "attention to generalization" in our evaluation. In the following, we address the concerns raised in the review:
- Lack of pressure modelling
We agree that the velocity field alone is insufficient for many tasks. Additional fields, such as pressure or temperature, might also be of relevance. In the initial submission, we intentionally focused on velocity as a well-defined setting to validate and compare our method against state-of-the-art solutions. Following the reviewer's suggestion, we have conducted an additional experiment to demonstrate how additional fields can be readily incorporated into our formulation.
We trained a separate local neighbourhood tokeniser to encode the pressure field. Using velocity and pressure tokens, we train our best method (L-MAE). Using the combined L-MAE, we match velocity accuracy. For the pressure, nMSE drops below 11 % for mask fractions ("mf") under 0.9, which corresponds to a very sparse context.
We show the velocity normalised MSE for the Aneumo dataset:
| model | mf 0.05 | mf 0.1 | mf 0.2 | mf 0.3 | mf 0.5 | mf 0.7 | mf 0.9 | mf 0.99 |
|---|---|---|---|---|---|---|---|---|
| trained on velocity only | 1.34 % ± 0.15 % | 1.67 % ± 0.18 % | 2.63 % ± 0.30 % | 3.57 % ± 0.38 % | 6.23 % ± 0.55 % | 9.75 % ± 0.71 % | 15.12 % ± 0.99 % | 34.38 % ± 2.98 % |
| trained on velocity + pressure | 1.25 % ± 0.13 % | 1.48 % ± 0.13 % | 2.28 % ± 0.25 % | 3.31 % ± 0.38 % | 7.02 % ± 0.68 % | 12.37 % ± 0.93 % | 20.29 % ± 1.35 % | 35.99 % ± 2.96 % |
| trained on velocity + pressure, mixed BC | 0.51 % ± 0.07 % | 0.52 % ± 0.11 % | 0.70 % ± 0.16 % | 0.80 % ± 0.12 % | 2.42 % ± 0.25 % | 7.53 % ± 0.59 % | 22.91 % ± 1.64 % | 44.74 % ± 4.57 % |
We show the pressure normalised MSE for the Aneumo dataset:
| model | mf 0.05 | mf 0.1 | mf 0.2 | mf 0.3 | mf 0.5 | mf 0.7 | mf 0.9 | mf 0.99 |
|---|---|---|---|---|---|---|---|---|
| velocity + pressure | 0.150 % ± 0.024 % | 0.182 % ± 0.027 % | 0.342 % ± 0.063 % | 0.620 % ± 0.136 % | 1.715 % ± 0.366 % | 3.032 % ± 0.424 % | 10.303 % ± 1.651 % | 47.353 % ± 15.714 % |
| velocity + pressure, mixed BC | 0.060 % ± 0.013 % | 0.068 % ± 0.014 % | 0.088 % ± 0.019 % | 0.134 % ± 0.029 % | 0.778 % ± 0.258 % | 7.468 % ± 3.419 % | 55.589 % ± 35.900 % | 268.714 % ± 122.306 % |
With the pressure predictions available, we can compute the residual of the Navier-Stokes momentum equation (in addition to divergence / continuity, which we already had) and compare it to that of the ground-truth simulation. We observe an approximate 5-fold increase in momentum residuals over the ground truth for the sparse case with a 99 % masking fraction. At a 50 % masking fraction, we observe a momentum residual approximately twice as large as the ground truth. Given that this residual is highly sensitive to local errors in both velocity and pressure gradients, these values still indicate good physical consistency, particularly at moderate mask fractions.
Additionally, we evaluate the pressure for mixed boundary conditions, in which we fix the inlet velocity and outlet pressure. This deviation further improves velocity and pressure predictions for small mask fractions, but decreases performance at low context.
The reviewer proposes an experimental setup in which the "prescribed boundary velocities are mis-specified such that continuity is violated", which we find intriguing. In our framework, the boundary conditions are, however, specified by local context. Therefore, we would have to instil a discontinuity / unphysical transition somewhere in the inpainting context to conduct this experiment, which does not seem straightforward at this point. Nevertheless, we think this experiment would be insightful and will mention it under future work in a revised version of our manuscript.
- Performance degradation at realistic mask fractions
We agree that the sparse inlet/outlet setting at the highest mask fraction is both practically important and the most challenging condition for our method - our results also show this transparently in Figure 3. Our claim is not that inpainting universally dominates supervised surrogates under minimal boundary context, but that a self-supervised flow prior becomes advantageous either when (i) additional context is available, for example, under local geometry edits or when (ii) the inference-time context differs from the fixed training-time conditioning interface, e.g., under OOD mass flows or external dataset shift. In other words, our inpainting framework enables learning a flow prior that generalises better under certain circumstances while using the same amount of training data.
While sparse inlet/outlet boundary conditions are common in current medical CFD workflows, we can imagine several clinically relevant applications which could provide reusable context that our formulation can naturally exploit. One example we also analyse in Figure 5 is the simulation of aneurysm treatment (e.g., flow-diverter placement or coiling), where a pre-treatment CFD simulation could remain informative over large parts of the vasculature. We can imagine similar situations arising in device optimisation and virtual intervention studies, where an existing simulation is available, and only localised anatomical or device-related modifications are introduced. Additional context may also come from imaging-based measurements, such as 4D flow MRI, as the reviewer mentions or Doppler ultrasound, which provide sparse or low-resolution velocity observations within the domain. A key motivation of our inpainting formulation is precisely to accommodate such heterogeneous conditioning patterns, rather than restricting inference to a predefined set of boundary-condition inputs.
We will revise the manuscript to better distinguish between the classical boundary-conditioned surrogate setting and these context-rich scenarios. We will also clarify the error-versus-context analysis in Figure 3, which quantifies how performance evolves as additional context becomes available and when the inpainting prior becomes competitive with, or superior to, conventional supervised surrogates.
- Limited ability to model geometric edits
To investigate the relation between the strength of the local geometric edit and performance, we divide deformation pairs (Table 1 in the main paper) into three categories based on their volume intersection-over-union. As expected, we find no significant trend for the supervised case, as the prediction is run from scratch each time. L-FM and L-MAE, on the other hand, show a significant increase in error for larger deformations:
Reporting the nMSE velocity for deformations.
| method | small deformation | medium deformation | large deformation | Spearman ρ |
|---|---|---|---|---|
| L-FM-Zero | 4.5% ± 4.3% | 6.8% ± 4.3% | 12.7% ± 12.7% | +0.51 (p=0.005) |
| L-FM-Physics | 4.7% ± 5.0% | 5.3% ± 3.9% | 11.5% ± 12.8% | +0.40 (p=0.034) |
| L-MAE | 1.9% ± 1.5% | 4.5% ± 3.3% | 7.3% ± 6.1% | +0.59 (p=0.001) |
| supervised-Att | 44.3% ± 21.4% | 28.6% ± 6.5% | 30.6% ± 8.8% | -0.26 (p=0.180) |
The above numbers quantify the error in the complete domain. In order to assess the reviewer's conjecture that "inlet, outlet, and even upstream/downstream velocity fields may change with the geometry" we additionally report numbers for the masked region in isolation. This can be contrasted with the error for the complete domain to draw conclusions. Here, we find that the overall error of inpainting geometric edits is dominated by the error the model makes within the inpainting mask. These results indicate that, across the tested deformation range, the dominant error arises within the edited region rather than from reusing the surrounding source simulation.
| method | small deformation | medium deformation | large deformation | Spearman ρ |
|---|---|---|---|---|
| L-MAE | 19.7% ± 11.1% | 24.7% ± 8.3% | 35.8% ± 36.7% | +0.43 (p=0.021) |
| supervised-Att | 78.2% ± 33.9% | 73.1% ± 64.4% | 66.1% ± 65.9% | -0.40 (p=0.033) |
The reviewer proposes we should "quantify when preserving the unchanged simulation context becomes physically inconsistent". To this end, we reproduce the above table while evaluating only outside the mask.
| method | small deformation | medium deformation | large deformation | Spearman ρ |
|---|---|---|---|---|
| L-MAE | 1.1% ± 1.2% | 3.0% ± 3.2% | 3.8% ± 3.5% | +0.48 (p=0.009) |
| supervised-Att | 43.1% ± 20.5% | 26.5% ± 6.5% | 28.8% ± 8.1% | -0.32 (p=0.094) |
This purely evaluates the error introduced by re-using the source simulation results for the edited target shape. We observe that the error is small compared to the inpainting error within the mask region.
- Suboptimal inverse modelling choices for flow matching
We appreciate the reviewer's input for improving the flow matching model. Our current L-FM inpainting procedure can create a mixed-time latent stage, which the model has not seen during training. In the Appendix (Figure 9, L580), we already implemented a version that adds noise to the boundary ("L-FM-Soft").
Following the reviewer's suggestion, we have also added "L-FM-Noise", which applies the correct noise level to all non-masked tokens. We found only minor deviations from fixed latents. For large mask fractions, it works slightly worse (mf 90%, 41% relative decrease), and for small mask fractions (mf 10%, 50% relative improvement), it is slightly in favour. This can be explained as follows: for small masked regions, a large portion of the latent is in the "wrong" time, whereas for large masked regions, the model mostly sees the correct time. We will add these observations to the final paper, also highlighting our existing additional L-FM variants, including soft boundaries, iterative inpainting, and MAE-initialised L-FM, which show that stronger inverse-modelling choices may improve L-FM performance.
Thank you for the detailed response and interesting experiments, I am more than happy to raise my score to accept.
Thank you very much for your positive comment. We are happy our additional experiments addressed your concerns.
Comments on the paper
1 comment
Please Respond to the Authors' Rebuttal and Update Your Review
Dear Reviewers,
Please consider the authors' rebuttal together with the other reviews, acknowledge the rebuttal in OpenReview, and update your scores if your assessment has changed. If you decide not to modify your scores, please briefly explain why.
Where appropriate, please engage in a constructive discussion with the authors and the other reviewers.
Thank you.
AC
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Summary of Rebuttal
We thank the reviewers for their constructive assessments and positive appraisal of our paper and rebuttal, and the Area Chair for highlighting the novelty and relevance of context-conditioned CFD inpainting. In the rebuttal, we provided substantial new evidence addressing the remaining concerns:
Broader scope and physical validation (BFW9, 415q, pNWR). We broadened our initial use case to joint velocity-pressure prediction, evaluated Navier-Stokes momentum residuals and wall shear stress. In addition, we extended the evaluation of our method beyond vascular flow to highly turbulent external aerodynamics: on the Emmi-Wing dataset, L-MAE outperformed the supervised baseline under both slower and faster OOD inflow velocities, validating the key advantage of our approach over conventional neural surrogates in OOD generalisation.
Realistic masking regime (BFW9, 415q). We clarified the intended scope of our contribution: supervised surrogates remain stronger for very sparse, in-distribution inlet/outlet conditioning, whereas inpainting is advantageous when additional solution context is available or under distribution shift. This distinction is consistent with our original context-versus-error analysis (Figure 3 in our submission).
Geometry-editing limits (BFW9, 415q, DLdW). We stratified geometric edits by deformation magnitude and found a significant increase in error for larger edits with our approach, demonstrating the value of reusing as much context as possible, a key strength of our method. Importantly, error remained concentrated inside the edited region, while outside-mask error stayed comparatively small, indicating limited inconsistency from reusing the surrounding simulation.
Flow-matching inference (BFW9). Following reviewer’s BFW9 suggestion, we evaluated time-consistent noising of known tokens and compared it with the existing soft-boundary, iterative, physics-guided, and MAE-initialised variants (Figure 9 in our submission). Time-consistent noising changed performance depending on mask size but does not alter the overall conclusions. We, however, acknowledge that other FM configurations might improve performance, and want to highlight the flexibility of our approach: future advances in FM or MAE inpainting configurations can further improve our approach.
Compression versus preservation (DLdW). We clarified that the neighbourhood tokeniser primarily makes global self-attention tractable by reducing the number of tokens while preserving spatial locality. The existing ablation (Figure 7 in our submission) shows diminishing reconstruction gains beyond 2,500 centres, and the tokeniser achieved 0.04% reconstruction nMSE on the new Emmi-Wing dataset. This supports the selected operating point as an effective balance between efficiency and information preservation.
Together, these additions broaden the evaluation, quantify the method’s limits, and support a more precise central conclusion: context-conditioned inpainting complements rather than universally replaces supervised CFD surrogates, with its clearest benefits arising under distribution shift, flexible conditioning, and reuse of partial solution context.