Towards Reasoning for PDE Foundation Models: A Reward-Model-Driven Inference-Time-Scaling Algorithm
Siddharth Mansingh, James Amarel, Ragib Arnab, Arvind Mohan, Kamaljeet Singh, Gerd J. Kunde, Nicolas Hengartner, Benjamin Migliori, Emily Casleton, Nathan A. Debardeleben, Ayan Biswas, Diane Oyen, Earl Lawrence
TL;DR
This work tackles the data- and compute-efficiency bottlenecks of PDE foundation models during long autoregressive rollouts. It introduces test-time computation (TTC), a beam-search style inference that generates $B$ candidate next steps per timestep and selects the best via reward signals, without training-time RL. Two reward-model strategies are proposed: Analytical Reward Models grounded in conservation laws and learned Process Reward Models trained with a contrastive triplet loss; a base ViT-based PDE operator with about $5\times10^6$ parameters is evaluated on PDEGym’s compressible Euler equations, achieving state-of-the-art downstream accuracy with only $6.25\%$ of the training data. The results show substantial data- and compute-efficiency gains and pave the way for RL-inspired, adaptive reasoning in scientific computing, while highlighting considerations for reward design and future integration of reinforcement learning signals in PDE modeling.
Abstract
Partial Differential Equations (PDEs) are the bedrock for modern computational sciences and engineering, and inherently computationally expensive. While PDE foundation models have shown much promise for simulating such complex spatio-temporal phenomena, existing models remain constrained by the pretraining datasets and struggle with auto-regressive rollout performance, especially in out-of-distribution (OOD) cases. Furthermore, they have significant compute and training data requirements which hamper their use in many critical applications. Inspired by recent advances in ``thinking" strategies used in large language models (LLMs), we introduce the first test-time computing (TTC) strategy for PDEs that utilizes computational resources during inference to achieve more accurate predictions with fewer training samples and smaller models. We accomplish this with two types of reward models that evaluate predictions of a stochastic based model for spatio-temporal consistency. We demonstrate this method on compressible Euler-equation simulations from the PDEGym benchmark and show that TTC captures improved predictions relative to standard non-adaptive auto-regressive inference. This TTC framework marks a foundational step towards more advanced reasoning algorithms or PDE modeling, inluding building reinforcement-learning-based approaches, potentially transforming computational workflows in physics and engineering.
