TL;DR
This paper introduces Relative Trajectory Balance (RTB), an off-policy reinforcement learning objective that effectively solves Bayesian inverse problems using diffusion models. By extending RTB to handle conditional posteriors and integrating it with off-policy exploration, the authors demonstrate superior performance compared to existing methods, particularly in challenging vision and scientific applications.
What Problem Does This Paper Address?
Many scientific and engineering problems, such as image reconstruction or inferring physical properties from measurements, can be framed as Bayesian inverse problems. These problems involve inferring an underlying cause ($x$) given observed data ($y$) and a model of how the cause generates the data ($p(y|x)$). The challenge lies in the inherent uncertainties and ill-posed nature of these problems, especially in high-dimensional settings. Traditional methods like Markov Chain Monte Carlo (MCMC) become computationally intractable.
Diffusion models have emerged as a powerful tool for learning complex data distributions, acting as strong priors ($p(x)$) for inverse problems. However, directly sampling from the posterior distribution ($p(x|y) \propto p(x)p(y|x)$) using diffusion models is difficult because it requires modifying the diffusion process based on the likelihood function, which is often intractable. Existing methods for this task, such as diffusion posterior sampling (DPS) and function-space posterior sampling (FPS), often suffer from biases and mode collapse, leading to inaccurate posterior inference. This paper aims to address these limitations by proposing and evaluating an asymptotically unbiased objective for posterior inference with diffusion models.
Methods
The core contribution of this paper is the application and extension of Relative Trajectory Balance (RTB), an off-policy reinforcement learning objective. RTB, introduced by Venkatraman et al. (2024), is designed to asymptotically solve Bayesian inverse problems optimally by fine-tuning a diffusion model prior to sample from the desired posterior.
Key methodological aspects include:
- RTB Objective: The paper leverages the RTB objective, which is derived from the trajectory balance objective but specifically tailored for amortized posterior inference over a prior distribution. It aims to match the posterior distribution $p^{\text{post}}(x_1) \propto p^{\text{prior}}(x_1)r(x_1)$, where $p^{\text{prior}}$ is the diffusion model prior and $r(x_1)$ is the likelihood.
- Off-Policy Training: A significant advantage of RTB is its off-policy nature, allowing training with trajectories sampled from a distribution different from the current policy. This enables the use of techniques like replay buffers and backtracking exploration to improve sample efficiency and prevent mode collapse.
- Conditional Posterior Inference: The authors extend the RTB objective to handle conditional posteriors, where the constraint $r(x_1)$ depends on an observation $y$. This is achieved by conditioning the posterior drift and the learned partition function on $y$, enabling amortized inference for new observations.
- Hybrid Approaches: The paper explores combining RTB with other state-of-the-art techniques, such as classifier guidance (DPS and CLA), to further enhance performance.
- Parameter-Efficient Fine-tuning: The prior diffusion model's parameters are used as an initialization for the posterior model, and fine-tuning is performed in a parameter-efficient manner.
Datasets
The paper evaluates its method on standard datasets for image-based inverse problems:
- MNIST: A dataset of handwritten digits.
- CIFAR-10: A dataset of small color images in 10 classes.
The paper also mentions using the Probes dataset for gravitational lensing, which contains telescope images of undistorted galaxies. No new datasets were introduced.
Key Insights and Ideas
- RTB's Asymptotic Unbiasedness is Crucial: Unlike existing biased methods, RTB's ability to asymptotically sample from the true posterior is critical for accurate inference, especially in challenging scenarios. This is evidenced by higher log-partition function (log Z) values, indicating a better match to the true posterior.
- Off-Policy Exploration is Key for Stability: While RTB is theoretically unbiased, practical training can be unstable. The paper highlights that off-policy techniques like backtracking exploration with replay buffers are essential for stabilizing training and achieving competitive results.
- Existing Training-Free Methods Have Inherent Biases: The paper demonstrates that training-free diffusion posterior methods (like DPS and FPS) struggle with effective posterior inference in latent space due to inherent biases, leading to artificially high likelihoods at the expense of diversity.
- Hybrid Methods Offer Synergistic Benefits: Combining RTB with classifier guidance techniques (DPS+CLA) leads to improved rewards while mitigating the low log Z values that can plague purely guidance-based methods.
- RTB Scales to Complex Scientific Problems: The successful application to gravitational lensing showcases RTB's potential beyond standard vision tasks, suggesting its broad applicability in scientific discovery.
Key Results
The paper presents quantitative results across various linear and non-linear inverse problems on MNIST and CIFAR-10 datasets, comparing RTB with DPS, FPS, and FPS-SMC.
- Unconditional Posteriors: RTB achieves competitive rewards (E[logr(x)]) while maintaining significantly higher log Z values compared to DPS and FPS, indicating a closer match to the true posterior.
- Conditional Posteriors: Similar trends are observed for conditional posteriors, with RTB showing better log Z values. Combining RTB with DPS and CLA further improves rewards.
- Gravitational Lensing: RTB demonstrates effectiveness in this complex scientific inverse problem, outperforming a biased training-free baseline. Despite some training instability, RTB achieved better metrics.
- Qualitative Results: Figure 1 shows visually appealing samples from RTB-fine-tuned diffusion posteriors for various inpainting and deblurring tasks. Figure 2 illustrates the RTB samples for the gravitational lensing problem, showing good reconstruction of the source image.
Limitations and Future Work
- Training Instability: The authors acknowledge that RTB training can be unstable in some settings, particularly for problems with "peaky" reward functions (e.g., gravitational lensing). They suggest that off-policy tricks could help stabilize training.
- Exploration of Adaptive Strategies: Future work could explore improved adaptive strategies for trajectory selection and uncertainty estimation during training to further enhance stability.
- Broader Scientific Applications: The paper suggests extending RTB to other scientific domains like climate modeling, computational biology, and medical imaging, and specifically mentions inverse protein design as a promising future direction.
- Hybrid Approach Optimization: Further research into novel ways to blend RTB with other generative modeling techniques is recommended to enhance robustness and scalability.
Summary updated