cs.LGSep 27, 2026

Source Anchoring for Physical Consistency in Flow Matching Models

Authors: Giulia Romoli, Filippo Ruffini, Paolo Soda

Organizations: Department of Diagnostics and Intervention, Ume˚a University, Sweden · Unit of Artificial Intelligence and Computer Systems, Universit`a Campus Bio-Medico di Roma, Italy

Abstract

Deep generative models are used to solve partial differential equations and model distributions of physical system states, but ensuring that the generated samples satisfy the governing laws remains challenging. Projection-based flow-matching methods enforce physics by correcting the flow from an unconstrained noise distribution. These corrections shift the generated samples away from the distribution of target solutions, especially in high noise regions. To address this limitation, we propose Source Anchoring for Physical Consistency (SAPC), a Functional Flow Matching method that encodes the physical constraints into the source noise before generation begins. We evaluate SAPC on five systems governed by partial differential equations, covering six tasks with linear and non-linear dynamics, and compare results against five baselines and the unconstrained backbone. Anchoring the source reduces the need for large corrections that drive samples onto admissible but off-distribution states, and SAPC reproduces the target distributions most accurately on every evaluated task, while matching the constraint precision of the best projection-based baselines. Ablation experiments show that this gain arises from pairing source projection with a matched training objective that regresses toward the projected source. These results identify the source distribution as a key design choice for physically consistent generative modelling.

Figures & tables

Appendix figures & tables16 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Constraint-Aware Flow Matching: Decision Aligned End-to-End Training for Constrained Sampling

    May 12, 2026Jacob K. Christopher, James E. Warner, Ferdinando FiorettoGenerative ModelsContrastive Flow Matching

  2. SNAP-FM: Sparse Nonlinear Accelerated Projection for Physics-Constrained Generative Modeling

    Jun 30, 2026Alaina Kolli, Theodoros Xenakis, Utkarsh Utkarsh +4Inequality ConstraintsSolver Iterations

  3. PMosFM: Preconditioned Manifold Matching for One-Step Physics-Constrained Generation

    Sep 30, 2026Zhangyong Liang, Haibin LingFew-Step GenerationRegularization