物理学家和AI研究者必看!这篇论文把物理方程巧妙融入流动匹配模型,解决了PDE场生成和检测难题。
研究提出了一种基于流动匹配的模型,通过势诱导速度产生显式标量能量,其梯度恰好是转换后的学习评分函数。该方法在PDE场生成任务中实现了能量校正的数据生成,相比传统流动ODE基线,降低了PDE残差和谱距离。论文展示了能量函数可作为分布外(OOD)检测的评分工具,通过结合数据能量和基于物理的能量提高检测准确率。在逆问题应用中,研究将能量与二次观测似然组合形成后验能量,作为推理时明确选择的家族目标。
Composing Flow-Matching Energies with Known Physics: Generation, OOD Detection, and Inversion on PDE Fields
Probabilistic modeling of physical fields benefits from both a data-driven prior and known physical structure such as the governing equations. Energy-based models (EBMs) are a natural fit since energies compose additively, which enables augmenting physics information during inference. However, EBMs have been difficult to train and sample from due to the intractable partition function. We show in this work that flow matching models with a potential-induced velocity yield an explicit scalar energy at all transport times, whose gradient is exactly the converted learned score and which recovers the marginal negative log-density at the population optimum. The time-dependent energy functions are obtained purely from the matching regression objective on an independent linear Gaussian interpolation, without a variational form or additional MCMC steps, and the sampling retains the flow ODE. Access to the energy function from a trained model serves three roles: energy-corrected data generation, energy as a scoring function for out-of-distribution (OOD) detection, and energy compositional posterior sampling for inverse problems. In particular, we show the explicit energy permits general MCMC samplers in the predictor-corrector sampling framework, reducing PDE residual and spectral distance compared to the flow ODE baseline. Furthermore, we demonstrate utilizing the data energy and physics-based energy (e.g., PDE residuals) as complementary mechanisms to improve detection accuracy for OOD tasks. In addition, we explore the connection to MCMC-based inference for inverse problems by composing the energy with a quadratic observational likelihood that yields a posterior energy, used as an explicitly chosen family of inference-time targets.