Manuscript Offprint
arXiv:2609.15702Backward SDEs-based Diffusion for Physics-Constrained Generation
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
where A is a known or partially known forward operator and 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
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 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 International Conference on Machine Learning, Seoul, South Korea. PMLR 306, 2026. Copyright 2026 by the author(s).
| Framework | Prior | Constraint form | Path cond.? | Terminal consistency | Tuning burden |
|---|---|---|---|---|---|
| Variational, TV | explicit reg. / plug-in | soft, penalty | No | sometimes | medium |
| GAN inversion | GAN generator | soft, physics loss | No | no guarantee | high |
| Diffusion posterior sampling | score | soft | Approx. | no guarantee | high |
| Projection-in-the-loop/PnP | domain pretrained score | intermittent projection | No | often improves, not guaranteed | medium |
| Manifold-constrained diffusion | score | soft or hybrid | Approx. | not guaranteed | medium |
| Diffusion and Schrödinger bridges | score | path measure | Yes, path value | yes | high |
| Ours: BSDE-diffusion | general pretrained score | hard terminal map | Yes, terminal value | by design | lower |
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 . The process 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 , 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.
2.1. Score-Based Diffusion via SDEs
Scores and denoising score matching: Let denote the data distribution on . Score-based diffusion models learn the score field of a family of perturbed distributions . A standard training principle is denoising score matching. One samples , selects a noise level , perturbs to obtain , and trains a neural network to approximate (Song et al., 2021). For Gaussian perturbations of the form with , an equivalent objective is
Forward-time SDE: The SDE viewpoint unifies diffusion learning and sampling in continuous time (Song et al., 2021). Let be a filtered probability space supporting a Brownian motion . A broad class of perturbation processes can be written as the forward SDE
which induces a marginal density for .
Reverse-time SDE: Given an estimate , samples from can be obtained by simulating the reverse-time SDE (Anderson, 1982; Song et al., 2021)
initialized from . In practice, Eq. (5) is integrated numerically, and solver choices influence sample quality (Song et al., 2021; Karras et al., 2022; Jolicoeur-Martineau et al., 2021; Mao et al., 2023). We need to note that the reverse-time SDEs is a sampling mechanism for the learned prior and does not encode terminal feasibility constraints.
Physics-constrained inverse problems: We consider inverse problems with measurements defined by Eq. (1), where A is a known forward operator. A central requirement is measurement consistency. Reconstructed outputs should satisfy the feasible set
up to the tolerance implied by the noise model and numerical errors. This requirement is particularly important in high-stakes settings such as medical imaging, where visually plausible but physically inconsistent hallucinations can be unacceptable.
Physics constrained Diffusion: Table 1 summarizes major paradigms for combining learned priors with physics. They differ along three axes. First, some methods enforce constraints through soft penalties, while others apply explicit consistency operators. Second, some approaches correspond to conditioning a path measure on terminal feasibility, while others apply step-wise corrections without a terminal-value characterization. Third, practical performance often depends on tuning guidance weights and schedules. These differences motivate our terminal-conditioned perspective. Rather than enforcing physics through time-dependent guidance, we will encode feasibility as a terminal condition and solve for an adapted mechanism that achieves it.
2.2. Backward Stochastic Differential Equations
A backward stochastic differential equation is specified by a terminal condition and solved backward over time. Given a terminal random variable and a driver , a standard BSDE seeks adapted processes such that (Bismut, 1973; Pardoux & Peng, 1990)
Equivalently, with terminal condition . Under standard assumptions that is Lipschitz in and , Eq. (7) admits a unique adapted solution (Pardoux & Peng, 1990). The process serves as the martingale integrand that makes the terminal condition achievable within the given filtration.
This terminal-value characterization is distinct from the reverse-time SDE in Eq. (5). Reverse-time SDEs are used to sample from a learned prior by transporting back to using a score field. In contrast, BSDEs take a terminal specification as an input and solve for an adapted pair that satisfies it. This viewpoint is central to our contribution.
3. Method
We formalize terminal-conditioned inversion as a general framework for physics-constrained inference under pretrained score-based diffusion priors. Our key observation is that any score-based SDE admits a corresponding BSDE representation, allowing inversion to be posed as a well-defined terminal value problem. By encoding observations or feasibility requirements as terminal conditions, the induced BSDE defines a mathematically well-posed inverse map from terminal constraints to a prior state at a chosen noise level.
3.1. BSDEs for Score-based Modeling
We introduce the terminal-conditioned inversion problem for arbitrary pretrained score-based SDE priors, define the associated BSDE representation, and state the well-posedness guarantees that make the inversion map mathematically sound. The construction is model-agnostic in the sense that it applies to any prior that admits a score-based SDE form, and it isolates task information through a terminal specification operator.
Score-SDE priors: Let be a filtered probability space supporting a -dimensional Brownian motion . A score-based prior is represented through a diffusion process of the form
where is a known diffusion scale and the drift is
(I) The Simulation of SDE

(II) The Simulation of BSDE
Figure 1. Reverse-time SDE versus associated BSDE. Left: reverse-time sampling is an initial value formulation that evolves from a chosen noise law and does not encode a fixed terminal specification. Right: a BSDE is posed by a terminal condition and solves backward for an adapted representation process that enforces the terminal requirement.
specified using a trained score network . This class covers standard VP and VE constructions and their score-parametrized variants.
Terminal specification Terminal-conditioned inversion is defined by a task-provided terminal requirement. We encode this requirement through a measurable specification operator
which maps an observation to a target terminal latent state. In practice, can be implemented by decoding a latent to the image domain, enforcing the task constraint via a consistency step which its measurement matching under , and re-encoding back to the latent space.
SDE Score Associated BSDE The key modeling object here is an associated BSDE that pairs with a given SDE defined score prior. It is posed as a terminal value problem and returns an adapted solution whose initial value is interpreted as the recovered prior state at a chosen noise level.
Definition 3.1 (Associated BSDE for a score prior). Fix a horizon . Let follow the pretrained score prior (8) driven by the Brownian motion . Let be an -measurable terminal random variable in . In terminal-conditioned inversion, we set for a given observation .
We seek an adapted pair with and that satisfies
We call (10) the associated BSDE induced by the score prior (8) and the terminal specification encoded by .
Equation (10) is a BSDE in the standard sense. The terminal condition is imposed at the right endpoint , and the solution is required to be adapted to . The process is an unknown adapted representation process solved from the terminal condition. This is the structural distinction from reverse-time SDE sampling, where the diffusion coefficient is prescribed and no terminal constraint is enforced.
Well-posedness: To use (10) as a general inversion tool, we need existence and uniqueness of an adapted solution. In our setting, the BSDE driver is induced by the pretrained score prior through its score network and noise schedule. Concretely, we consider score-induced drivers of the form
where is a fixed measurable map determined by the chosen prior family and the terminal-conditioning mechanism. The analysis follows classical Lipschitz BSDE theory under standard regularity assumptions commonly adopted for neural score models.
Assumption 3.2. There exist constants such that for all and all , , ,
(12)
Moreover,
Theorem 3.3 (Well-posedness of the associated BSDE). Under Assumption 3.2, the BSDE (10) admits a unique adapted solution .
Theorem 3.3 is proved in the Appendix Sec. B.2. The prove follows classical BSDE well-posedness results for Lipschitz drivers (Pardoux & Peng, 1990; Peng, 1991). It provides the mathematical foundation for terminal-conditioned inversion. Given an observation y and terminal specification with , the inversion map is well-defined by the unique initial value of the adapted BSDE solution.
The associated BSDE enforces the terminal specification by construction; we have the corollary 3.4:

BSDE: Y-neighborhood Forward Sampling
Figure 2. Backward inversion and forward use of the recovered prior state. Top: Example of solving the associated BSDE with terminal specification to obtain the recovered prior state . Bottom: generate feasible outputs by corresponding Score-SDE.
Corollary 3.4 (Terminal consistency). Let be the unique solution in Theorem 3.3. Then holds almost surely. In terminal-conditioned inversion with , the terminal feasibility requirement encoded by is satisfied almost surely by the BSDE solution.
BSDE is fundamentally distinct from reverse-time SDE Reverse-time SDE and BSDE are mathematically distinct objects and arise from different problem statements. Reverse-time SDE is a time-reversal characterization of a forward diffusion and is therefore the standard backbone in many plug-and-play (PnP)-style score methods for inverse problems: under suitable regularity assumptions on the forward coefficients and the existence of time-marginal densities, the reversed process is again a diffusion whose drift is identified by the forward drift together with density-dependent correction terms involving the score of the time marginals (Haussmann & Pardoux, 1986). This time-reversal characterization underlies score-based generative modeling, where the reverse-time dynamics used for sampling depend on the score of the perturbed data distribution and are integrated from a reference noise law toward the data end (Song et al., 2021). In contrast, a BSDE specifies a terminal random variable and seeks an adapted pair satisfying a backward integral equation, where Z is the martingale integrand in the Doob–Meyer or martingale representation sense (Pardoux & Peng, 1990; El Karoui et al., 1997). Accordingly, reverse-time SDE addresses the time-reversal and sampling dynamics of a given diffusion, whereas our terminal-conditioned inversion is posed as a terminal-value problem whose solution is an adapted process pair determined by the terminal specification.
Using the recovered prior state via neighborhood sampling: Terminal-conditioned inversion returns a recovered prior state at the chosen noise level. In inverse problems, a single observation may admit multiple feasible explanations, and exploring this ambiguity is often desirable for uncertainty quantification. A practical mechanism is neighborhood sampling around the recovered state.
Let be the associated BSDE solution for a terminal specification . Sample perturbations from a user-chosen local distribution and form perturbed prior states
Each is then propagated through the pretrained diffusion dynamics associated with the score prior, producing a family of outputs whose diversity is controlled by the perturbation scale. Since all samples share the same terminal specification mechanism through the recovered anchor , this procedure provides an efficient way to generate multiple plausible solutions without modifying the pretrained prior.
3.2. Solve the BSDE-based Diffusion Model
The associated score-BSDE in Section 3.1 is nonlinear and typically does not admit an analytical solution. We therefore rely on numerical solvers to compute the recovered prior state and the adapted representation process. We present two solver families that are sufficient for our purposes. The first is a classical regression-based solver that approximates conditional expectations on a time grid. The second is a deep BSDE solver that parameterizes the representation process with a neural network and optimizes it by terminal matching, which enables efficient GPU acceleration in our implementation. A broader overview of BSDE solvers can be found in (Chessari et al., 2023).
Time discretization: Let be a uniform grid with step size , and denote for the ith Brownian path. For a BSDE of the form , a standard explicit discretization yields the recursion
where and along the ith simulated path.
Regression-based solver: A classical approach estimates by approximating conditional expectations on the grid (Gobet et al., 2005; Lemor et al., 2006; Longstaff & Schwartz, 2001; Chessari et al., 2023). Given Monte Carlo (MC) samples , one uses a basis expansion to regress quantities of the form onto a chosen finite-dimensional function class. This yields an estimate of that is then inserted into the forward recursion (15). The recovered prior state is obtained as the empirical average of the resulting values over the MC paths.
The traditional BSDE solver cannot be used for solving the proposed high dimensional BSDE-Diffusion model. For high-dimensional state spaces, regression on hand-crafted bases becomes inefficient. We therefore introduce the learning based solver for solving the proposed BSDE-Diffusion model. The core idea is to parameterize the representation process by a neural network (E et al., 2017) and fit it by minimizing a terminal matching objective.
We treat the initial value as a learnable parameter and set for all paths. We parameterize by a neural network and set , where denotes the chosen input features at time along the ith path. Given , we propagate forward using (15) to obtain , and minimize the terminal loss
Gradient-based optimization yields parameters , after which the recovered prior state is given by . Algorithm 1 summarizes the procedure.
Algorithm 1 Deep BSDE solver by terminal matching
Input: Terminal specification , step size , number of paths , initial parameters , learning rate
Output: Recovered prior state and network parameters
Data: Brownian paths and increments
repeat
Set for for to do
end
Update
until convergence
4. Application and Experiment
Our experiments follow a two-stage narrative that links theory to practice.
Part 4.1) toy validation of BSDE diffusion theory : We first use controlled toy benchmarks to empirically validate the theoretical claims of BSDE-diffusion: (a) terminal-value conditioning enables stable latent inversion which should be consistent with BSDE well-posedness. (b) the recovered prior encoding is distributionally correct in the sense that neighborhood sampling produces class-consistent outputs with improved distributional agreement.
Part 4.2) Physics-constrained CT reconstruction: We then evaluate the same terminal-value mechanism on a representative physics-constrained inverse problem: sparse-view CT reconstruction (SVCT) reconstruction. Here the central objective is terminal physical consistency : reconstructions must satisfy the CT measurement model within a prescribed numerical tolerance, which is essential for reliable deployment in mission-critical imaging scenarios.
For toy conditional generation, we report distributional similarity via Jensen–Shannon divergence (lower is better) and shape similarity via average cosine similarity (higher is better). For CT reconstruction, we report (a) image quality metrics (PSNR/SSIM) and (b) physics consistency quantified by the relative measurement residual , evaluated after applying the terminal consistency map.
4.1. Toy Validation
MNIST: terminal-conditioned inversion and stable prior encodings. We validate terminal-conditioned inversion in a controlled visual setting using MNIST. We train a score model under a variance-exploding SDE perturbation and then construct an associated BSDE whose terminal condition is a prescribed target sample . We solve for the adapted pair such that .
We adopt the driver
and set to isolate the effect of terminal conditioning. The corresponding BSDE is
This setup probes the terminal-value nature of the model. The solver learns an adapted process that enforces the terminal specification.
Stability under repeated solves and neighborhood sampling. BSDE inversion maps a terminal sample to an initial state , which serves as a code in the prior space. Under the well-posedness conditions, the adapted solution is unique, suggesting that repeated solves for the same should produce consistent encodings. We therefore report the terminal feasibility error and the variability of the recovered across solver restarts and random seeds. To verify that is a meaningful encoding rather than an optimization artifact, we also sample local neighborhoods
and generate outputs by running the BSDE-conditioned forward dynamics from . As Fig. 4 shows, it yields controlled diversity while preserving digit identity, supports that is a stable prior code induced by the terminal condition.
Star lightcurves: quantitative distributional consistency
MNIST provides an intuitive visualization, but it does not directly quantify distributional fidelity. We therefore use star lightcurves, where class-conditional generation is commonly evaluated with distributional metrics. The question

Figure 3. Qualitative comparison for SVCT lung screening. From left to right: physics measurement, high resolution reference, sparse-view recon (FBP), TV, DIP-TV, DPS, DDS*, SiTCom, PnPDM, and the proposed BSDE. Highlighted regions emphasize pulmonary parenchyma and small structural details that are critical for early cancer screening. The proposed method better preserves subtle lung textures and low-contrast structures while suppressing noise and remaining consistent with the measurement model. More examples are in Appendix. E.1.
| Method | MAE↓ | PSNR↑ | SSIM↑ | NPSNR↑ | NSSIM↑ | NMSE↓ | NCC↑ | Task-spec. training? | Training-free? | Unconditional prior? | General prior? |
|---|---|---|---|---|---|---|---|---|---|---|---|
| FBP | 37.22 | 14.12 | 0.366 | 8.91 | 0.268 | 0.4695 | 0.902 | No | Yes | N/A | N/A |
| TV (Chen et al., 2018) | 4.81 | 27.89 | 0.807 | 27.56 | 0.816 | 0.0205 | 0.978 | No | Yes | N/A | N/A |
| TVDIP (Ma et al., 2025) | 4.56 | 28.08 | 0.816 | 27.79 | 0.827 | 0.0197 | 0.979 | No | Yes | Yes | Yes |
| PnPDM (Zheng et al., 2025) | 23.38 | 19.06 | 0.551 | 22.36 | 0.691 | 0.3531 | 0.934 | No | Yes | Yes | No |
| DPS (Chung et al., 2023) | 9.84 | 24.27 | 0.494 | 24.36 | 0.508 | 0.0473 | 0.950 | No | Yes | Yes | Yes |
| DDS* (Chung & Ye, 2024) | 4.38 | 31.10 | 0.806 | 30.93 | 0.811 | 0.0118 | 0.988 | No | Yes | Yes | No |
| SiTCoM (Alkhouri et al., 2025) | 5.83 | 27.34 | 0.695 | 27.37 | 0.704 | 0.0265 | 0.973 | No | Yes | Yes | Yes |
| BSDE (Proposed) | 3.57 | 30.99 | 0.868 | 30.85 | 0.869 | 0.0101 | 0.989 | No | Yes | Yes | Yes |
Table 2. SVCT reconstruction quality. We additionally report method attributes: whether the approach requires task-specific training, is training-free at test time, uses an unconditional prior, and whether the prior is general. *See special footnote [1] for DDS.
is whether terminal-conditioned inversion yields a prior encoding whose neighborhood sampling matches the target conditional distribution.
We compare against representative conditioning mechanisms, including diffusion-based perturbation editing, GAN inversion, and a variational baseline based on an LSTM-VAE. We follow prior practice in this dataset and report Jensen-Shannon divergence and average cosine similarity for class-conditional generation of Cepheid, Eclipsing Binary, and RR Lyrae lightcurves. Table 3 shows improved distributional agreement relative to the baselines. Together with MNIST, this supports the claim that terminal-conditioned inversion yields stable codes and distributionally consistent neighborhood sampling.
4.2. Real-world Case Study: SVCT Reconstruction
We instantiate terminal-conditioned inversion on a physics-constrained inverse problem, SVCT reconstruction. This case study serves two purposes. It demonstrates how the terminal condition encodes feasibility under a real measurement operator. It tests whether the associated BSDE solver can enforce terminal physical consistency without injecting
Table 3. Unsupervised conditional generation on star lightcurves. Lower is better for Jensen–Shannon divergence. Higher is better for average cosine similarity.
| Jensen-Shannon Divergence↓ | Average Cos Similarity↑ | |||||
|---|---|---|---|---|---|---|
| Cepheid | Eclipsing B | RR Lyrae | Cepheid | Eclipsing B | RR Lyrae | |
| SDE Diff. | 0.3521 | 0.4397 | 0.3942 | 0.4338 | 0.4648 | 0.6284 |
| GAN Inv. | 0.3714 | 0.4374 | 0.3639 | 0.2860 | 0.5495 | 0.3302 |
| LSTMVAE | 0.3929 | 0.4916 | 0.3721 | 0.3794 | 0.0357 | 0.5299 |
| BSDE Diff. | 0.3323 | 0.4223 | 0.3510 | 0.7095 | 0.4321 | 0.6838 |

Figure 4. Terminal-conditioned inversion and neighborhood sampling with the BSDE mechanism. See more in Appendix E.3
measurements into the pretrained score prior.
Measurement model and hard terminal requirement. Let denote the SVCT measurement. We model the measurement formation by
, where is the unknown standard CT image at the diffusion data end and is the known CT forward operator that already includes the SVCT degradation mechanism. Our goal is terminal physical consistency: the final reconstruction must satisfy
for a prescribed numerical tolerance . We enforce this requirement through a hard terminal specification and a terminal measurement loss used by the solver. The pretrained score prior remains unconditional and freeze.
Pretrained SDE Diffusion We employ a pretrained score-based diffusion prior (Song et al., 2021) in latent space (Rombach et al., 2022) and keep it frozen during reconstruction. Let denote the latent state and consider the unconditional VE-SDE
where is a standard Brownian motion and is the diffusion scale. The marginal noise level satisfies . A pretrained score network specifies the denoising field at each time. The measurement does not enter (19).
Imaging terminal specification: We encode the CT measurement requirement as a hard terminal specification through a measurable map . Given the observed sinogram , returns a data-end latent specification whose decoded image is measurement-consistent under within the prescribed tolerance. This exposes the CT constraint to the BSDE through a terminal boundary condition rather than through the pretrained score drift.
SDE-associated BSDE Form: Fix a diffusion noise level and solve an associated BSDE on the interval . We use the BSDE time variable as an inversion-time parameter, mapped to diffusion time , so that corresponds to the diffusion data end and corresponds to the diffusion state at noise level . The BSDE terminal condition is
and the associated BSDE reads
Equivalently, with terminal condition (20). The inversion target is the recovered noisy prior state at diffusion noise level , represented by the BSDE initial value .
We discretize the VE-SDE using a schedule and increments . We use the pretrained score-defined denoising recursion from index down to 0 to map the inferred latent state at noise level to the data end. Let denote the resulting data-end latent and let denote the fixed decoder mapping latent states. We obtain and set the final reconstruction as: .
Terminal measurement consistency: We solve the BSDE by minimizing the measurement discrepancy
where the expectation is taken over the innovation variables used by the discrete score-defined recursion. This loss enforces terminal physical consistency in the measurement domain while keeping the pretrained prior unconditional: we do not inject into the SDE coefficients nor into score evaluation, and instead solve for an adapted BSDE solution whose inferred prior state yields a terminal reconstruction consistent with A and .
Baseline and Result We compare against filtered back-projection (FBP), total variation minimization (TV) (Chen et al., 2018), deep image prior (TVDIP) (Ma et al., 2025), and four diffusion-based inverse problem solvers: PnPDM (Zheng et al., 2025), DPS (Chung et al., 2023), DDS (Chung & Ye, 2024), and SiTCoM (Alkhouri et al., 2025). These baselines are chosen to cover complementary reconstruction paradigms: analytic and variational methods (FBP, TV), a training-free DIP baseline (TVDIP), and representative diffusion-based reconstruction methods. All methods use the same A and are evaluated under the same metrics. FBP serves as a fast analytic baseline, TV (Chen et al., 2018) as a classical physics-constrained regularization baseline, TVDIP (Ma et al., 2025) as a training-free DIP baseline, and PnPDM (Zheng et al., 2025), DPS (Chung et al., 2023), DDS (Chung & Ye, 2024), and SiTCoM (Alkhouri et al., 2025) as diffusion-based baselines.
Quantitatively, Table 2 summarizes SVCT reconstruction performance on the SVCT dataset. The proposed BSDE solver achieves the best MAE (3.57), SSIM (0.868), NSSIM (0.869), NMSE (0.0101), and NCC (0.989), while remaining competitive in PSNR/NPSNR. Relative to the non-diffusion baselines, MAE decreases from 37.22 under FBP and 4.56 under TVDIP to 3.57, while SSIM increases from 0.366 under FBP and 0.816 under TVDIP to 0.868. Compared with the diffusion baselines built without dataset-specific retraining in our setting, BSDE substantially improves over PnPDM, DPS, and SiTCoM. We note that DDS uses a released CT-domain prior, so it does not correspond to exactly the same general-prior setting studied in this paper. We report DDS for reference in Table 2, but do not make it the main focus of the discussion here. A more detailed discussion of this mismatch and the resulting fairness issue is deferred to the Appendix.
Figure 3 corroborates the quantitative trends. FBP and TVDIP retain residual streaking and structured artifacts. TV suppresses noise but over-smooths fine structures in the highlighted regions. Among the diffusion baselines, PnPDM, DPS, and SiTCoM can sharpen details but may also exhibit contrast drift or reduced structural fidelity under step-wise soft measurement guidance. In contrast, BSDE better preserves subtle textures and edges while maintaining measurement consistency through the terminal feasibility map, yielding reconstructions that remain visually faithful and physically constrained.
5. Ablation
Effect of terminal conditioning. We first conduct a controlled ablation at resolution to isolate the contribution of terminal conditioning within the proposed BSDE framework. We compare three variants. Hard terminal
DDS (Chung & Ye, 2024) tested here uses CT pretrained prior, it is included here as additional baselines rather than main fair-comparison.
Table 4. Ablation of terminal conditioning on CT reconstruction. The hard terminal constraint gives the best reconstruction quality and the lowest measurement residual, confirming the importance of terminal feasibility in the BSDE formulation.
| Method | PSNR | SSIM | NMSE | Residual |
|---|---|---|---|---|
| Hard terminal constraint | ||||
| Soft terminal penalty | ||||
| No terminal constraint |
constraint denotes the full model, where the BSDE correction network is optimized with the terminal measurement loss. Soft terminal penalty replaces the hard terminal conditioning mechanism with a soft penalty toward the initial terminal estimate . No terminal constraint removes the BSDE correction network and directly optimizes the terminal latent variable .
Table 4 shows that terminal conditioning is essential for both image quality and measurement consistency. Replacing the hard terminal constraint with a soft penalty already degrades PSNR from 35.36 to 33.10 and increases the residual from 0.00128 to 0.00203, indicating that a soft attraction to does not fully preserve terminal feasibility. Removing the terminal constraint causes a much larger failure: PSNR drops to 17.38, SSIM decreases to 0.4188, and the residual increases by two orders of magnitude to 0.2008. This confirms that the performance gain is not merely due to latent optimization, but comes from the BSDE correction mechanism that enforces the terminal measurement requirement.
Effect of terminal timepoint . We further perform a standalone sweep over the BSDE terminal timepoint to isolate the effect of the inversion horizon. The terminal timepoint controls the noise level at which the recovered prior state is anchored. A smaller keeps the inversion closer to the data end and can improve reconstruction fidelity, while a larger requires a stronger correction from a noisier latent state and can make terminal recovery less stable.
Empirically, achieves the highest mean PSNR, , but it also requires a stronger terminal correction. In contrast, achieves a nearly identical PSNR of with better stability, providing the best quality-stability tradeoff in our experiments. When becomes larger, performance drops substantially: PSNR decreases to at and further to at . These results suggest that terminal-conditioned BSDE inversion benefits from anchoring at a moderate diffusion noise level.
6. Conclusion
We proposed terminal-conditioned inversion for score-based SDE priors via an associated BSDE. Feasibility is imposed through a terminal specification, while the pretrained score prior remains unconditional and frozen. Under standard regularity conditions, the resulting BSDE is well posed and defines a unique adapted inverse mapping from the terminal requirement to a prior anchor. We also developed a neural BSDE solver that makes this construction numerically tractable for complex score priors without conditional retraining. Toy experiments validate stable inversion and distributionally consistent sampling. As a case study, SVCT reconstruction shows improved fidelity together with measurement consistency. Future work will focus on faster solvers and broader application cases.
Acknowledgment
This research is supported by the Ruth S. Holmberg Grant, and is supported in part by the Provost's Office of University of Tennessee at Chattanooga. We thank the anonymous reviewers for their constructive feedback.
Impact Statement
This paper presents work whose goal is to advance the field of Machine Learning. There are many potential societal consequences of our work, none which we feel must be specifically highlighted here.
References
Achituve, I., Habi, H. V., Rosenfeld, A., Netzer, A., Diamant, I., and Fetaya, E. Inverse problem sampling in latent space using sequential Monte Carlo. In Singh, A., Fazel, M., Hsu, D., Lacoste-Julien, S., Berkenkamp, F., Maharaj, T., Wagstaff, K., and Zhu, J. (eds.), Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 420–443. PMLR, 13–19 Jul 2025. URL https://proceedings.mlr.press/v267/achituve25a.html.
Alkhouri, I., Liang, S., Huang, C.-H., Dai, J., Qu, Q., Ravishankar, S., and Wang, R. SITCOM: Step-wise triple-consistent diffusion sampling for inverse problems. In Singh, A., Fazel, M., Hsu, D., Lacoste-Julien, S., Berkenkamp, F., Maharaj, T., Wagstaff, K., and Zhu, J. (eds.), Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 1128–1158. PMLR, 13–19 Jul 2025. URL https://proceedings.mlr.press/v267/alkhouri25b.html.
Anderson, B. D. O. Reverse-time diffusion equation models. Stochastic Processes and their Applications, 12(3):313–326, 1982. doi: 10.1016/0304-4149(82)90051-5.
Bismut, J.-M. Conjugate convex functions in optimal stochastic control. Journal of Mathematical Analysis and Applications, 44(2):384–404, 1973. ISSN 0022-247X. doi: https://doi.org/10.1016/0022-247X(73)90066-8. URL https://www.sciencedirect.com/science/article/pii/0022247X73900668.
Bora, A., Jalal, A., Price, E., and Dimakis, A. G. Compressed sensing using generative models. In Precup, D. and Teh, Y. W. (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 537–546. PMLR, 06–11 Aug 2017. URL https://proceedings.mlr.press/v70/boral7a.html.
Chan, K. C. K., Xu, X., Wang, X., Gu, J., and Loy, C. C. Glean: Generative latent bank for image super-resolution and beyond, 2022. URL https://arxiv.org/abs/2207.14812.
Chen, R. T. Q. and Lipman, Y. Flow matching on general geometries, 2024. URL https://arxiv.org/abs/2302.03660.
Chen, W., Shao, Y., Wang, Y., Zhang, Q., Liu, Y., Yao, L., Chen, Y., Yang, G., and Gui, Z. A novel total variation model for low-dose ct image denoising. IEEE Access, 6:78892–78903, 2018. doi: 10.1109/ACCESS.2018.2885514.
Chessari, J., Kawai, R., Shinozaki, Y., and Yamada, T. Numerical methods for backward stochastic differential equations: A survey. Probability Surveys, 20(none), jan 2023. doi: 10.1214/23-ps18. URL https://doi.org/10.1214%2F23-ps18.
Chung, H. and Ye, J. C. Deep diffusion image prior for efficient ood adaptation in 3d inverse problems, 2024. URL https://arxiv.org/abs/2407.10641.
Chung, H., Sim, B., Ryu, D., and Ye, J. C. Improving diffusion models for inverse problems using manifold constraints. In Advances in Neural Information Processing Systems, 2022. doi: 10.48550/arXiv.2206.00941. URL https://arxiv.org/abs/2206.00941.
Chung, H., Kim, J., Mccann, M. T., Klasky, M. L., and Ye, J. C. Diffusion posterior sampling for general noisy inverse problems. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=OnD9zGAGT0k.
De Bortoli, V., Thornton, J., Heng, J., and Doucet, A. Diffusion schrödinger bridge with applications to score-based generative modeling. In Advances in Neural Information Processing Systems, 2021. doi: 10.48550/arXiv.2106.01357. URL https://arxiv.org/abs/2106.01357.
E, W., Han, J., and Jentzen, A. Deep learning-based numerical methods for high-dimensional parabolic partial differential equations and backward stochastic differential equations. Communications in Mathematics and Statistics, 5(4):349–380, November 2017. doi: 10.1007/s40304-017-0117-6. URL https://doi.org/10.1007/s40304-017-0117-6.
Ekström Kelvinius, F., Zhao, Z., and Lindsten, F. Solving linear-Gaussian Bayesian inverse problems with decoupled diffusion sequential Monte Carlo. In Singh, A., Fazel, M., Hsu, D., Lacoste-Julien, S., Berkenkamp, F., Maharaj, T., Wagstaff, K., and Zhu, J. (eds.), Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 15148–15181. PMLR, 13–19 Jul 2025. URL https://proceedings.mlr.press/v267/ekstrom-kelvinius25b.html.
El Karoui, N., Peng, S., and Quenez, M. C. Backward stochastic differential equations in finance. Mathematical finance, 7(1):1–71, 1997.
Gobet, E., Lemor, J.-P., and Warin, X. A regression-based Monte Carlo method to solve backward stochastic differential equations. Annals of Applied Probability, 15(3):2172–2202, 2005.
Gushchin, N., Kholkin, S., Burnaev, E., and Korotin, A. Light and optimal schrödinger bridge matching. In Salakhutdinov, R., Kolter, Z., Heller, K., Weller, A., Oliver, N., Scarlett, J., and Berkenkamp, F. (eds.), Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 17100–17122. PMLR, 21–27 Jul 2024. URL https://proceedings.mlr.press/v235/gushchin24a.html.
Gushchin, N., Li, D., Selikhanovych, D., Burnaev, E., Baranchuk, D., and Korotin, A. Inverse bridge matching distillation. In Singh, A., Fazel, M., Hsu, D., Lacoste-Julien, S., Berkenkamp, F., Maharaj, T., Wagstaff, K., and Zhu, J. (eds.), Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 21471–21496. PMLR, 13–19 Jul 2025. URL https://proceedings.mlr.press/v267/gushchin25b.html.
Haussmann, U. G. and Pardoux, É. Time reversal of diffusions. The Annals of Probability, 14(4):1188–1205, 1986.
Heng, J., De Bortoli, V., Doucet, A., and Thornton, J. Simulating diffusion bridges with score matching, 2021. URL https://arxiv.org/abs/2111.07243.
Hirono, Y., Tanaka, A., and Fukushima, K. Understanding diffusion models by feynman's path integral. In Salakhutdinov, R., Kolter, Z., Heller, K., Weller, A., Oliver, N., Scarlett, J., and Berkenkamp, F. (eds.), Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 18324–18351. PMLR, 21–27 Jul 2024. URL https://proceedings.mlr.press/v235/hirono24a.html.
Ho, J., Jain, A., and Abbeel, P. Denoising diffusion probabilistic models. In Larochelle, H., Ranzato, M., Hadsell, R., Balcan, M., and Lin, H. (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 6840–6851. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper_files/paper/2020/file/4c5bcfec8584af0d967f1ab10179ca4b-Paper.pdf.
Janati, Y., Moufad, B., Qassime, M. A. E., Oliviero Durmus, A., Moulines, E., and Olsson, J. A mixture-based framework for guiding diffusion models. In Singh, A., Fazel, M., Hsu, D., Lacoste-Julien, S., Berkenkamp, F., Maharaj, T., Wagstaff, K., and Zhu, J. (eds.), Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 26830–26876. PMLR, 13–19 Jul 2025. URL https://proceedings.mlr.press/v267/janati25a.html.
Jolicoeur-Martineau, A., Li, K., Piché-Taillefer, R., Kachman, T., and Mitliagkas, I. Gotta go fast when generating data with score-based models, 2021.
Karras, T., Aittala, M., Aila, T., and Laine, S. Elucidating the design space of diffusion-based generative models. In Oh, A. H., Agarwal, A., Belgrave, D., and Cho, K. (eds.), Advances in Neural Information Processing Systems, 2022. URL https://openreview.net/forum?id=k7FuTOWMOc7.
Kawar, B., Elad, M., Ermon, S., and Song, J. Denoising diffusion restoration models, 2022. URL https://arxiv.org/abs/2201.11793.
Ksenofontov, G. and Korotin, A. Categorical schrödinger bridge matching. In Singh, A., Fazel, M., Hsu, D., Lacoste-Julien, S., Berkenkamp, F., Maharaj, T., Wagstaff, K., and Zhu, J. (eds.), Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 31727–31751. PMLR, 13–19 Jul 2025. URL https://proceedings.mlr.press/v267/ksenofontov25a.html.
Lemor, J.-P., Gobet, E., and Warin, X. Rate of convergence of an empirical regression method for solving generalized backward stochastic differential equations. Bernoulli, 12(5):889–916, 2006.
Li, S., Jiang, X., Tivnan, M., Gang, G. J., Shen, Y., and Stayman, J. W. Ct reconstruction using diffusion posterior sampling conditioned on a nonlinear measurement model. Journal of Medical Imaging, 11(04), August 2024. ISSN 2329-4302. doi: 10.1117/1.jmi.11.4.043504. URL http://dx.doi.org/10.1117/1.JMI.11.4.043504.
Lin, S., Clark, R., Birke, R., Schönborn, S., Trigoni, N., and Roberts, S. Anomaly detection for time series using vae-lstm hybrid model. In ICASSP 2020 - 2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2020.
Liu, J., Sun, Y., Xu, X., and Kamilov, U. S. Image restoration using total variation regularized deep image prior, 2018. URL https://arxiv.org/abs/1810.12864.
Longstaff, F. A. and Schwartz, E. S. Valuing american options by simulation: a simple least-squares approach. The review of financial studies, 14(1):113–147, 2001.
Ma, Y., Zhang, Y., Chen, L., Jiang, Q., Shi, F., and Wei, B. Deep plug-and-play denoising prior with total variation regularization for low-dose ct. Frontiers in Physics, Volume 13 - 2025, 2025. ISSN 2296-424X. doi: 10.3389/fphy.2025.1563756. URL https://www.frontiersin.org/journals/physics/articles/10.3389/fphy.2025.1563756.
Mao, W., Xu, C., Zhu, Q., Chen, S., and Wang, Y. Leapfrog diffusion model for stochastic trajectory prediction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 5517–5526, 2023.
Meng, C., He, Y., Song, Y., Song, J., Wu, J., Zhu, J.-Y., and Ermon, S. SDEdit: Guided image synthesis and editing with stochastic differential equations. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=aBsCjcPu_tE.
Pardoux, E. and Peng, S. Adapted solution of a backward stochastic differential equation. Systems & Control Letters, 14(1):55–61, 1990. ISSN 0167-6911. doi: https://doi.org/10.1016/0167-6911(90)90082-6. URL https://www.sciencedirect.com/science/article/pii/0167691190900826.
Park, C. Y., Hu, Y., McCann, M. T., Garcia-Cardona, C., Wohlberg, B., and Kamilov, U. S. Plug-and-play priors as a score-based method. In 2025 IEEE International Conference on Image Processing (ICIP), pp. 49–54, 2025. doi: 10.1109/ICIP55913.2025.11084503.
Peng, S. Probabilistic interpretation for systems of quasilinear parabolic partial differential equations. Stochastics and stochasticity reports (Print), 37(1-2):61–74, 1991.
Peng, X., Zheng, Z., Dai, W., Xiao, N., Li, C., Zou, J., and Xiong, H. Improving diffusion models for inverse problems using optimal posterior covariance. In Salakhutdinov, R., Kolter, Z., Heller, K., Weller, A., Oliver, N., Scarlett, J., and Berkenkamp, F. (eds.), Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 40347–40370. PMLR, 21–27 Jul 2024. URL https://proceedings.mlr.press/v235/peng24h.html.
Rebbapragada, U., Protopapas, P., Brodley, C. E., and Alcock, C. Finding anomalous periodic time series. Machine Learning, 74(3):281–313, dec 2008. doi: 10.1007/s10994-008-5093-3. URL https://doi.org/10.1007%2Fs10994-008-5093-3.
Romano, Y., Elad, M., and Milanfar, P. The little engine that could: Regularization by denoising (red). SIAM Journal on Imaging Sciences, 10(4):1804–1844, 2017. doi: 10.1137/16M1102884.
Rombach, R., Blattmann, A., Lorenz, D., Esser, P., and Ommer, B. High-resolution image synthesis with latent diffusion models, 2022. URL https://arxiv.org/abs/2112.10752.
Rudin, L. I., Osher, S., and Fatemi, E. Nonlinear total variation based noise removal algorithms. Physica D: Nonlinear Phenomena, 60(1–4):259–268, 1992. doi: 10.1016/0167-2789(92)90242-F.
Shah, V. and Hegde, C. Solving linear inverse problems using gan priors: An algorithm with provable guarantees. arXiv preprint arXiv:1802.08406, 2018. doi: 10.48550/arXiv.1802.08406.
Sidky, E. Y. and Pan, X. Image reconstruction in circular cone-beam computed tomography by constrained, total-variation minimization. Physics in Medicine and Biology, 53(17):4777–4807, 2008. doi: 10.1088/0031-9155/53/17/021.
Song, J., Vahdat, A., Mardani, M., and Kautz, J. Pseudoinverse-guided diffusion models for inverse problems. In International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=9_gsMA8MRKQ.
Song, Y., Sohl-Dickstein, J., Kingma, D. P., Kumar, A., Ermon, S., and Poole, B. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations (ICLR), 2021. doi: 10.48550/arXiv.2011.13456. URL https://arxiv.org/abs/2011.13456.
Venkatakrishnan, S. V., Bouman, C. A., and Wohlberg, B. Plug-and-play priors for model based reconstruction. In 2013 IEEE Global Conference on Signal and Information Processing (GlobalSIP), pp. 945–948, 2013. doi: 10.1109/GlobalSIP.2013.6737048.
Wang, H., Jin, T., Lin, W., Wang, S., Huang, H., Ji, S., and Zhao, Z. IRBridge: Solving image restoration bridge with pre-trained generative diffusion models. In Forty-second International Conference on Machine Learning, 2025a. URL https://openreview.net/forum?id=b3bJR1quJ3.
Wang, Y., Yu, J., and Zhang, J. Zero-shot image restoration using denoising diffusion null-space model. arXiv preprint arXiv:2212.00490, 2022. doi: 10.48550/arXiv.2212.00490.
Wang, Z., Vandersteen, C., Raffaelli, C., Guevara, N., and Delingette, H. Multi-energy quasi-symplectic langevin inference for latent disentangled learning. IEEE Transactions on Image Processing, 34:7037–7049, 2025b. doi:10.1109/TIP.2025.3624614.
Xia, W., Zhang, Y., Yang, Y., Xue, J.-H., Zhou, B., and Yang, M.-H. Gan inversion: A survey, 2022.
Zheng, C. and Lan, Y. Characteristic guidance: Non-linear correction for diffusion model at large guidance scale. In Salakhutdinov, R., Kolter, Z., Heller, K., Weller, A., Oliver, N., Scarlett, J., and Berkenkamp, F. (eds.), Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 61386–61412. PMLR, 21–27 Jul 2024. URL https://proceedings.mlr.press/v235/zheng24f.html.
Zheng, H., Chu, W., Zhang, B., Wu, Z., Wang, A., Feng, B., Zou, C., Sun, Y., Kovachki, N. B., Ross, Z. E., Bouman, K., and Yue, Y. Inversebench: Benchmarking plug-and-play diffusion priors for inverse problems in physical sciences. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=U3PBITXNG6.
Zhu, Y., Zhang, K., Liang, J., Cao, J., Wen, B., Timofte, R., and Van Gool, L. Denoising diffusion models for plug-and-play image restoration. arXiv preprint arXiv:2305.08995, 2023. doi: 10.48550/arXiv.2305.08995.
A. Notations
We collect the main notation used throughout the paper.
-
Probability space. is a filtered probability space. is a -dimensional Brownian motion adapted to .
-
Data and distributions. is the data space. is the data distribution on . For a stochastic process , denotes the marginal density of at time .
-
Score field and network. The score field at time is . is a neural network approximation of , with parameters .
-
Score-SDE prior. is the diffusion time horizon. The forward Score-SDE prior is
When needed, denotes a Brownian motion for reverse-time sampling dynamics.
-
Inverse problems and measurements. is a known forward operator and is the measurement. denotes the measurement-feasible set (or an -feasible set) specified by the task.
-
Terminal specification. is a measurable terminal specification operator that encodes the feasibility requirement induced by . The BSDE terminal random variable is .
-
Associated BSDE (terminal-conditioned inversion). is the chosen inversion horizon (noise level). We solve an adapted pair satisfying
where is the BSDE driver. The recovered prior state is .
-
Function spaces and regularity. denotes square-integrable adapted processes with finite . denotes square-integrable predictable processes with finite . means . are Lipschitz constants of in .
-
Discrete noise schedule. is a discrete noise schedule and . are standard Gaussian innovations.
B. Proofs
B.1. Notation and function spaces
Let support a -dimensional Brownian motion . We use the standard spaces (as in Pardoux–Peng’s proof strategy):
(We use the Euclidean norm and the associated inner product .)
We consider the BSDE
For convenience, define the effective driver
where and . Then (23) can be rewritten as
B.2. Step A: Properties of the driver G (from Assumption 3.2)
Lemma B.1 (Lipschitzness of G in ). Under Assumption 3.2, for all and all , ,
This is exactly Assumption 3.2.
Lemma B.2 (Square-integrability at the origin). Under Assumption 3.2,
This is the integrability condition in Assumption 3.2.
Hence, under the assumptions of Theorem 3.3 and Proposition 3.2, G is uniformly Lipschitz in (Lemma B.1) and satisfies the standard square-integrability condition at the origin (Lemma B.2).
B.3. Step B: Linear BSDE solvability via martingale representation
Lemma B.3 (Linear BSDE (construction)). Let and let be progressively measurable. Then there exists a unique pair such that
Proof. Define . Let , then is a square-integrable martingale. By the martingale representation theorem, there exists a unique such that . Set . Rearranging yields (24). Uniqueness follows by subtracting two solutions: the difference has and , so its martingale representation forces and hence .
B.4. Step C: Uniqueness for the nonlinear BSDE (Itô energy estimate)
Proposition B.4 (Uniqueness in ). Assume and satisfies the uniform Lipschitz condition in Lemma B.1. Then (23) has at most one solution in .
Proof. Let and be two solutions. Set , and . Then
Apply Itô’s formula to on :
Take expectation; the stochastic integral has zero expectation:
Using Cauchy–Schwarz and Young’s inequality with ,
By Lipschitzness (Lemma B.1), , hence . Therefore,
where we dropped the nonnegative term on the left. By Grönwall's inequality, for all , hence a.s. Plugging back gives , so .
B.5. Step D: Existence via Picard iteration (Pardoux–Peng proof route (Pardoux & Peng, 1990; Peng, 1991))
Theorem B.5 (Existence and uniqueness (detailed proof of Theorem 3.3)). Assume: (i) ; (ii) (e.g., Lemma B.2); (iii) is uniformly Lipschitz in (Lemma B.1). Then (23) admits a unique adapted solution .
Proof. (1) Picard scheme (linearization). Initialize . Given , define the progressively measurable process
We claim . Indeed, by Lipschitzness,
hence with ,
Integrating and taking expectation gives finiteness because and (inductively) implies and .
Therefore, by Lemma B.3, there exists a unique solving the linear BSDE
(2) Contraction estimate in an exponentially weighted norm.
Let , . Subtract (25) at levels and to get
Fix and apply Itô's formula to :
where the stochastic integral vanishes after expectation. Using Young's inequality,
we obtain
By Lipschitzness of ,
hence . Define the weighted energy norm
The above inequalities yield
Choose and set . Then , so is Cauchy under and thus converges to some in that norm.
(3) Passing to the limit and verification. Since is Lipschitz and in the weighted sense, it follows that in . Letting in (25) yields that satisfies (23).
(4) Membership in . From (23) and the square-integrability of and , standard Itô/BDG a priori estimates imply , hence .
Thus, uniqueness follows from Proposition B.4.
Theorem 3.3 in the main text is exactly Theorem B.5 above, applied to with the driver/score conditions in Proposition 3.2.
C. Key Implementations
C.1. Backward Stochastic Differential Equation for Diffusion
We consider the case used in our example that the Forward Diffusion model defined through:
where . The Python implementation of above BSDE-based Diffusion is:
Driver Func
def f(t, y, z, score_model, config): t = torch.ones(config.solver_batch_size, device=device) * t score_model.eval() model_output = score_model(y, t) # time schedule alphas = 1.0 - betas alphas_cumprod = alphas.cumprod(dim=0) weighted_score = betas / torch.sqrt(1 - alphas_cumprod)
Extract coefficients based on t
mean = extract(1 / torch.sqrt(alphas), t, y.shape) *
(- extract(weighted_score, t, y.shape) * model_output)
return -mean
Target Func
def Xi(target): # Target Y_T return torch.Tensor(target).to(device)
Integral Func
def BSDE(batch_size, N): delta_t = T / N W = torch.randn(batch_size, dim_d, N, device=device) * np.sqrt(delta_t) # Brownian t = torch.ones(batch_size, device=device)
y = y_0 * marginal_prob_std(t)[:, None, None, None] + torch.zeros(W.size() [0], dim_y, device=device)
Integral over t
for i in range(N):
z = PHI(i, delta_t) # Solver Net
dw = torch.randn_like(z) * np.sqrt(delta_t)
t = torch.ones(batch_size, device=device) * i * delta_t g = (z * diffusion_coeff_fn(t)[:, None, None, None]) rdm = (dw * g).reshape(-1, dim_y) y_t = y = y - f(delta_t * i, x, y, z) * delta_t + rdm return y_t
In the aforementioned code fragment, the python function f(t, y, z, score_model, config) aligns with the driver function explicated in Eq. 7, while the function Xi(target) represents the target . The function BSDE(batch_size, N) integrates the BSDE from t to T across N steps of discretization.
We can resolve the presented BSDE by employing a numerical solver as delineated in the manuscript.
D. Algorithms
Once the backward BSDE is solved, we obtain an initial state and an adapted control process (or an estimator thereof). We then construct controlled forward samplers by perturbing ( -neighborhood sampling).
Forward-time form. From (7), the corresponding forward-time stochastic dynamics read
All forward samplers below are Euler–Maruyama discretizations of (27).
In practice, we use a learned estimator (trained by our BSDE solver) to approximate the control, e.g., .
Algorithm 2: -neighborhood sampling
Given a reference initial state inferred by solving the backward BSDE for a terminal datum , we generate diversity by sampling perturbed initial conditions , then propagating each forward according to (27). The parameter controls the exploration radius around .
Algorithm 3: Monte Carlo uncertainty quantification
To quantify uncertainty in conditional generation, we repeatedly run a chosen forward sampler (e.g., Algorithm 2 with independent randomness (Brownian increments and/or perturbations) to obtain an empirical distribution of terminal samples. We report the sample mean and covariance.
Algorithm 2 Conditional generation via -neighborhood sampling (forward Euler–Maruyama)
Input: Initial state , -estimator , steps , score , driver , scale
Output: Terminal sample
//
// drift of (27)
return
Algorithm 3 Monte Carlo uncertainty quantification for terminal samples
Input: Sampler (Algorithm 2), number of runs
Output: Sample mean , sample covariance
for to do
// independent random seed / Brownian path
E. Additional Qualitative Evaluation
E.1. SVCT Reconstruction
Additional qualitative comparisons. Fig. 5 reports additional SVCT reconstruction examples across diverse anatomical slices. Consistent trends can be observed. FBP exhibits severe streaking and noise amplification, especially around high-attenuation structures, which obscures low-contrast tissue boundaries. TV effectively suppresses noise but introduces noticeable over-smoothing and loss of fine textures (e.g., lung parenchyma and soft-tissue interfaces), together with bias in local contrast. TVDIP further reduces streak artifacts compared to TV, but still tends to blur anatomical edges and dampen subtle structures, suggesting a trade-off between artifact removal and detail preservation.
Among diffusion-based baselines, SiTCoM, PnPDM, DPS, and DDS further illustrate different behaviors under step-wise conditioning. SiTCoM can recover sharper local structures than TV/TVDIP, but its intensity is less stable across cases and it still exhibits noticeable streak residuals and display-window sensitivity. PnPDM is visually smoother and reduces streaking, but it often suppresses high-frequency textures and weak edges, yielding an over-regularized appearance and attenuated structural contrast. DPS is more sensitive to the measurement-guidance balance in this setting and tends to produce grainy, unstable textures, especially in soft-tissue regions, indicating that posterior-sampling guidance alone does not fully prevent drift toward visually plausible but poorly calibrated samples. DDS is visibly stronger than the other diffusion baselines and recovers sharper anatomical boundaries with fewer gross failures. However, we emphasize that this result is obtained with a released CT-pretrained prior, so it does not correspond to exactly the same general-prior setting studied in this paper. In the present comparison, DDS should therefore be interpreted mainly as a strong reference point rather than a like-for-like baseline.
In contrast, our method follows a terminal-conditioned formulation that is fundamentally different from step-wise PnP-style designs. Rather than repeatedly injecting heuristic guidance along the stochastic path, we impose a hard terminal feasibility operator at the endpoint of the reverse process. This enables composition with arbitrary pretrained generative priors in a modular manner: the prior specifies the base stochastic dynamics, while the task information is isolated into the terminal specification that enforces measurement-consistent decoding and projection. As a result, the final reconstruction is explicitly tied to the measurement model through the terminal constraint, making the solution less fragile to the absolute strength of the prior or to prior pretraining domains that are not perfectly matched to the measurement target. When the measurement operator is accurate and the terminal projection is well-defined, endpoint feasibility is enforced by construction up to numerical tolerances, whereas PnPDM, DPS, and SiTCoM do not provide an explicit terminal guarantee and can drift toward prior-preferred samples when the prior and the measurement target are inconsistent. Qualitatively, BSDE remains the most stable across slices: it suppresses streaks, preserves subtle textures and soft-tissue transitions, and avoids the contrast drift or grainy artifacts seen in the step-wise diffusion baselines. Compared with DDS, BSDE is slightly smoother in some regions but shows more calibrated global appearance under the same measurement model, which is consistent with our goal.
of enforcing terminal feasibility under a general-prior setting rather than relying on a tightly matched CT-domain prior. Notably, BSDE better maintains lung texture and sharp soft-tissue transitions without introducing the over-smoothing seen in TV/TVDIP.

Figure 5. Additional qualitative results.
E.2. Further discussion on DDS and prior matching
Table 2 shows that, under the intended general-prior setting, BSDE provides the strongest overall quantitative performance. Among the baselines that do not rely on a released CT-domain pretrained prior in our evaluation setting, BSDE outperforms PnPDM, DPS, and SiTCoM across all reported image-quality and error metrics. This is the main quantitative comparison aligned with our problem definition: enforcing terminal feasibility under a frozen general prior, rather than assuming that the prior is already tightly matched to the CT measurement domain.
We include DDS here only as an additional reference. The reason is that DDS uses a released CT-pretrained prior, and therefore does not correspond to the same general-prior setting studied in this paper. For this reason, we do not center the main quantitative claim on DDS, and defer a more detailed discussion of this fairness mismatch to the Appendix.
Even under this non-like-for-like comparison, the result is still useful to read carefully. DDS attains slightly higher PSNR/NPSNR (31.10/30.93 vs. 30.99/30.85), but BSDE remains better on MAE (3.57 vs. 4.38), SSIM (0.868 vs. 0.806), NSSIM (0.869 vs. 0.811), NMSE (0.0101 vs. 0.0118), and NCC (0.989 vs. 0.988). So we do not read DDS as overturning the main result. Rather, it indicates that a domain-matched CT prior can slightly favor pixel-wise distortion metrics, while BSDE still retains stronger structural consistency and lower overall error in the intended general-prior regime.
Therefore, our main takeaway remains unchanged: BSDE is most competitive in the setting this paper is actually about, namely reconstruction with a frozen prior that may be imperfect or mismatched, where correctness is enforced by the terminal constraint rather than inherited from a domain-specific CT prior.
E.3. BSDE for star Light Curve Inversion and Conditional Generation
The visual comparison of the proposed approach against other generation methods is presented in the Fig. 6. We use the star lightcurve dataset (Rebbapragada et al., 2008), which encapsulates time series data corresponding to three distinct categories of star lightcurves: Cepheid, Eclipsing Binary, and RR Lyrae. Each stellar class portrays exclusive periodic light fluctuations, contributing significantly to astronomical explorations. Fig. 6 manifests unsupervised conditional generation results of individual samples for various methods across the triad of distinct classes.
Our proposed BSDE-based Diffusion model exhibits a noteworthy performance superiority over the GAN-inversion (Xia et al., 2022), LSTMVAE (Lin et al., 2020), and SDE-based Diffusion (Meng et al., 2022) methods in the realm of unsupervised conditional generation of star lightcurves signals. Fig. 6 presents rows of unsupervised conditional generation results sourced from the proposed BSDE-based Diffusion model, the GAN-based Inversion model, the SDE-based Diffusion Perturbing model, the LSTMVAE-based model, and samples drawn from the target classes for the purpose of comparison. From this visual inspection, it is evident that the BSDE Diffusion model continually surpasses its counterparts for all three classes of star types (Cepheid, Eclipsing Binary, and RR Lyrae), implying the model's enhanced precision in echoing the genuine star lightcurve distributions.
The visualization shows the effectiveness of our BSDE-based Diffusion model in capturing and replicating the complex temporal dynamics inherent in these celestial time series data, thus establishing it as a promising tool for advance time series generation tasks.

Baseline Generated Data B (Class 1)
Baseline Generated Data B (Class 2)
Baseline Generated Data B (Class 3)
Ground Truth Data GT (Class 1)
Ground Truth Data GT (Class 2)
Ground Truth Data GT (Class 3)
Figure 6. Conditional Generation of lightcurves (time series data).

Figure 7. One sample uncertainty quantification on MNIST dataset.

Figure 8. BSDEs-based Diffusion for Conditioning Generation on MNIST Dataset (2D data).
E.4. BSDE for Diffusion Inversion and Conditional Generation
Fig. 8 displays the diffusion inversion outcomes achieved when employing the BSDE-based Diffusion model with target mean images of from each class to procure the latent representation of the intended target.
Once we obtain the latent noise encoding, as shown in the Fig. 8, we can then perform conditional generation by using the proposed -neighborhood Sampling algorithm. The figure shows diversity of the generation for different numbers. In the absence of the two transformations, the uncertainty tied to a single sample generation can still be quantified via the MC method delineated in algorithm 3. We exhibit the uncertainty related to one sample generation in Fig. 7.
F. Additional Experimental and Implementation Details
F.1. SVCT forward model and exact experimental setting
To make the CT setting fully explicit, we describe the degradation model used in the SVCT experiments. The task is sparse-view CT with light noise, not sparse-view CT in the strict Poisson-photon sense. We use a parallel-beam Radon geometry with 30 uniformly spaced projection views over 180°, i.e., over the nonredundant angular range . Let denote the target image and let denote the forward projector. The measurement is generated as
where is additive Gaussian noise applied to the sinogram with variance . Thus, in our experiments, the main difficulty comes from severe angular undersampling, while the measurement noise is relatively light.
Preprocessing note. All baselines and the proposed method are evaluated under the same forward operator A, the same 30-view geometry, and the same Gaussian-noise level. We also ensure consistent image-range handling during export and evaluation.
F.2. CT-specific realization of the terminal specification
In the toy setting, the terminal target is explicitly prescribed. In CT reconstruction, however, the terminal specification is typically not available as a closed-form latent anchor. Instead, it is defined implicitly through measurement feasibility under the forward model.
For a measurement , we define the feasible image set
The terminal specification operator should therefore be interpreted as a terminal-consistency operator: it encodes the requirement that the decoded terminal latent correspond to an image in . Equivalently, in the CT case, is realized numerically by minimizing the terminal-domain measurement discrepancy
where the expectation is taken over the innovation variables in the discretized score-defined recursion. This means that the CT pipeline is not an example where the terminal anchor is removed.
CT-specific implicit realization of the terminal condition. For completeness, we summarize the CT pipeline used to realize the implicit terminal specification:
-
Given a measurement , initialize the BSDE parameters for the recovered noisy prior state and the representation process.
-
Solve the BSDE on to obtain the inferred latent state at noise level .
-
Run the frozen denoising recursion from noise level to the data end.
-
Decode the resulting data-end latent to obtain .
-
Evaluate the terminal-domain measurement loss
-
Update by gradient descent through the discretized BSDE solver and denoising recursion.
-
Repeat until convergence and output the final reconstruction .
F.3. Explicit-terminal and implicit-terminal regimes
The paper contains two practically different terminal-conditioned regimes.
Explicit-terminal regime. In the toy experiments, the terminal target is explicitly given. The BSDE is therefore trained by direct terminal matching, and the terminal-value formulation appears in its most direct form.
Implicit-terminal regime. In real inverse problems such as CT, a closed-form latent target is typically unavailable. The terminal condition still exists conceptually, but it is specified through forward-model-defined feasibility rather than by an explicit latent anchor. This is why Eq. (22) is introduced: it numerically realizes the same terminal requirement in the terminal domain. In this sense, the CT pipeline remains terminal-conditioned, but the terminal specification is implicit.
This distinction is important because it clarifies why the CT implementation should not be interpreted as abandoning the BSDE formulation. The optimization is still carried out within the BSDE-parameterized family induced by the terminal-conditioned construction, rather than as unconstrained latent fitting.
F.4. Baseline implementation details
To make the comparisons reproducible, we summarize the baseline implementations and the main hyperparameters used in our experiments. We start from the released implementations of each method and only adapt the task-specific CT geometry and measurement setup to the 30-view SVCT setting with Gaussian noise variance .
F.5. Further discussion on prior matching and why we do not require a CT-specific prior
It is common in inverse-problem papers to use a prior pretrained on tightly matched in-domain data. However, this is not the setting studied in our paper. Our goal is to handle the more realistic case where the prior may be imperfect or mismatched with the target measurement domain. In practice, mismatch can arise for many reasons, including scanner differences, protocol changes, preprocessing pipelines, site-specific variation, or domain shifts between the source data used to train the prior and the test-time measurements.
This is precisely the issue our BSDE formulation is designed to address. We do not want correctness to depend on the prior already being well aligned with the measurement distribution. Instead, the forward model defines the terminal requirement, and the BSDE constrains the final reconstruction to remain consistent with the observed measurement even when the prior is imperfect or mismatched.
In that sense, the main distinction is not simply whether a method uses a task-specific prior. For example, SiTCoM also does not require a task-specific retrained prior. The more important difference is how measurement consistency is enforced: our method uses terminal feasibility as the main constraint, rather than relying on the prior to already be correct.
F.6. How the score-induced driver is chosen
A remaining practical question is how the BSDE driver is chosen once a prior family is fixed. The general associated BSDE is written using a generic driver notation to allow dependence on the forward prior process. In the score-induced instantiation used in this paper, the effective driver is chosen as a coupling of the pretrained score field and the BSDE state:
The dependence on the prior family therefore enters through the selected score model and its noise schedule.
For the toy VE-style construction used in Eq. (17), the driver specializes to
Setting isolates the effect of terminal conditioning and yields
Thus, Eq. (17) is not an arbitrary choice: it is the score-induced specialization associated with the selected VE-style prior and the chosen terminal-conditioning mechanism.
F.7. Practical limitations and computational cost
Our method inherits the practical limitations of neural BSDE solvers and score-based inverse solvers more broadly.
In our current implementation, a representative CT reconstruction run takes approximately 41.3 s for inference, plus 2.8 s for model loading. The optimization stage dominates the runtime (40.9 s). Peak GPU memory usage is about 886 MB allocated (898 MB reserved).
The theoretical guarantees in Section 3 apply to the exact adapted BSDE solution under the stated assumptions. In practice, the method uses time discretization and neural approximation of the representation process. A preliminary discretization study indicates that the method remains reasonably stable over several solver choices, with relative measurement residuals around 0.0015–0.0017 for .
Still, approximation and discretization errors remain part of the practical gap between theory and implementation.