arXiv:2609.15702cs.LGSep 2026

Manuscript Offprint

arXiv:2609.15702

Backward SDEs-based Diffusion for Physics-Constrained Generation

Zihao Wang

Abstract

Pretrained score-based diffusion models provide strong unconditional priors, yet enforcing measurement or physics consistency in inverse problems is often handled by heuristic guidance, intermittent projections, or task-specific conditional training, with limited guarantees of feasibility at the end of inference. We propose terminal-conditioned inversion for score-based SDE priors. Given a frozen Score-SDE prior and a task-defined terminal feasibility specification, we construct an associated backward stochastic differential equation whose adapted solution defines a principled inverse map from the terminal requirement to a prior state at a chosen noise level. Under standard regularity conditions, we establish existence and uniqueness of the adapted solution and obtain terminal consistency by construction. We further develop a practical neural BSDE solver that composes arbitrary pretrained diffusion priors with domain constraints without modifying the score-defined coefficients, producing an anchored prior state that enables neighborhood sampling for uncertainty characterization. Experiments on toy datasets validate stable terminal-conditioned inversion and distributionally consistent neighborhood sampling. As a real-world case study, we apply the framework to sparse-view CT reconstruction and achieve improved reconstruction quality over representative training-free baselines while satisfying strict measurement feasibility under the prescribed terminal specification. Project is available in: https://laplace.center/icmlbsdeI/

1. Introduction

Many practical and scientific tasks require recovering an unknown signal x from indirect and noisy observations

y=A(x)+η,(1)y=\mathcal{A}(x)+\eta, \tag{1}

where A is a known or partially known forward operator and η\eta denotes noise. The forward model alone rarely identifies x uniquely: multiple candidates can explain the same y. In high-stakes settings, the goal is not merely to produce a perceptually plausible sample, but to output solutions that are physically consistent with the observation at the end of inference, for example

x∈S(y)≜{x:A(x)≈y}.(2)x\in\mathcal{S}(y)\triangleq\{x:\mathcal{A}(x)\approx y\}. \tag{2}

This exposes a persistent tension. Physics imposes a rigid terminal requirement, while unsupervised generative priors represent uncertainty through stochasticity and high-entropy support. Bridging physical determinism with generative uncertainty is the core challenge.

Diffusion and score-based models (Ho et al., 2020; Song et al., 2021) provide remarkably expressive priors learned from massive data, motivating their integration with forward operators for inverse problems. A wide range of approaches has emerged, including diffusion-based inverse problem solvers (Kawar et al., 2022), pseudoinverse or conditional-score constructions (Song et al., 2023), bridge-based formulations (Wang et al., 2025a; De Bortoli et al., 2021; Heng et al., 2021), and posterior-sampling methods such as diffusion posterior sampling (Chung et al., 2023; Li et al., 2024; Alkhouri et al., 2025; Achituve et al., 2025; Ekström Kelvinius et al., 2025; Peng et al., 2024). Despite strong empirical progress, a persistent difficulty is how measurement consistency is enforced. Most methods rely on step-wise penalties, intermittent projections, or guidance schedules whose strengths and time dependencies are tuned heuristically (Janati et al., 2025; Zheng & Lan, 2024). When the inverse problem is severely ill-posed, heuristic enforcement can lead to physically inconsistent yet visually plausible hallucinations, which is particularly concerning in scientific and medical applications.

At a conceptual level, this difficulty reflects a mismatch in mathematical formulation. Standard score-based generation

Laplace Lab 1^{1}https://laplace.center, Department of Computer Science, University of Tennessee, Chattanooga, US. Correspondence to: Zihao Wang <zihao.wang@tennessee.edu; zihao.wang@ieee.org>.

Proceedings of the 43rd43^{rd} International Conference on Machine Learning, Seoul, South Korea. PMLR 306, 2026. Copyright 2026 by the author(s).

FrameworkPriorConstraint formPath cond.?Terminal consistencyTuning burden
Variational, TVexplicit reg. / plug-insoft, penaltyNosometimesmedium
GAN inversionGAN generatorsoft, physics lossNono guaranteehigh
Diffusion posterior samplingscoresoftApprox.no guaranteehigh
Projection-in-the-loop/PnPdomain pretrained scoreintermittent projectionNooften improves, not guaranteedmedium
Manifold-constrained diffusionscoresoft or hybridApprox.not guaranteedmedium
Diffusion and Schrödinger bridgesscorepath measureYes, path valueyeshigh
Ours: BSDE-diffusiongeneral pretrained scorehard terminal mapYes, terminal valueby designlower

Table 1. Comparison of physics-constrained generative frameworks: Variational (Rudin et al., 1992; Sidky & Pan, 2008; Liu et al., 2018; Chen et al., 2018); GAN inversion (Bora et al., 2017; Shah & Hegde, 2018; Chan et al., 2022); DPS and posterior sampling (Chung et al., 2023; Li et al., 2024; Alkhouri et al., 2025; Achituve et al., 2025; Ekström Kelvinius et al., 2025; Peng et al., 2024); PnP, RED, diffusion PnP (Park et al., 2025; Venkatakrishnan et al., 2013; Romano et al., 2017; Wang et al., 2022; Zhu et al., 2023); manifold constrained (Chung et al., 2022; Wang et al., 2025b; Chen & Lipman, 2024); bridges and matching (De Bortoli et al., 2021; Heng et al., 2021; Wang et al., 2025a; Gushchin et al., 2024; 2025; Ksenofontov & Korotin, 2025; Alkhouri et al., 2025).

is an initial-value stochastic transport: one starts from a simple reference distribution and simulates a reverse-time SDE to obtain data samples (Song et al., 2021), built on time-reversal characterizations of diffusions (Anderson, 1982; Hirono et al., 2024). Physics-constrained inference, however, is naturally terminal-value: the requirement is specified through a feasibility event or an observation. Injecting penalties or projections into a discrete sampling loop does not, in general, define the path measure conditioned on a terminal requirement, and can push trajectories away from the intended manifold, motivating manifold-aware corrections such as MCG (Chung et al., 2022). These observations point to a missing ingredient: a principled path-space mechanism whose conditioning is posed directly in terminal form.

In stochastic analysis, terminal-value problems are naturally expressed via backward stochastic differential equations, BSDEs (Bismut, 1973; Pardoux & Peng, 1990). A BSDE encodes the terminal requirement explicitly and solves for an adapted pair (Yt,Zt)(Y_t, Z_t). The process ZtZ_t acts as an adapted control in the martingale representation, steering stochastic dynamics so that the prescribed terminal specification is satisfied. This terminal-value viewpoint aligns directly with physics-constrained inference and complements other path-conditioning paradigms such as diffusion and Schrödinger bridges (De Bortoli et al., 2021; Heng et al., 2021).

We introduce a BSDE-based, terminally conditioned diffusion framework that applies to any pretrained score prior expressible in Score-SDE form. We show that, given a pretrained Score-SDE defining a base stochastic dynamics, we can construct an associated BSDE by imposing a terminal condition via a task-defined terminal map. This map encodes the observation requirement and can be instantiated as a decode, projection onto S(y)\mathcal{S}(y), and encode composition, enforcing physics consistency at the terminal condition rather than through heuristic time-dependent guidance. Solving the associated BSDE yields a well-defined inverse mapping from a terminal requirement to a prior state at a chosen noise level, and it satisfies the terminal specification by construction. This associated BSDE is not a reverse-time SDE: the pretrained SDE specifies the base diffusion prior, while the BSDE introduces an adapted pair whose martingale integrand is solved from the terminal requirement.

Our contributions are as follows. First, we introduce a terminal-conditioned diffusion perspective that brings BS-DEs into generative modeling as a general mechanism for enforcing terminal feasibility. Second, we provide a rigorous associated-BSDE construction for score-based SDE priors and establish well-posedness under standard regularity assumptions, ensuring existence and uniqueness of an adapted solution. Third, we develop a practical solver for general Score-BSDEs that composes arbitrary pretrained diffusion priors with domain-defined terminal operators through a hard terminal map, avoiding task-specific conditional training and reducing tuning burden. Finally, we instantiate the framework on a representative physics-constrained inverse problem, sparse-view CT reconstruction, as a case study that highlights the methodological gap between terminal-conditioned, feasibility-defined reconstruction via an associated BSDE and widely used PnP-style step-wise conditioning strategies.