Manuscript Offprint

arXiv:2610.17579

Risk-Averse Inference-Time Diffusion Model Alignment with Finite-Sample Guarantees

Yuchen Liang, Xian Yu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Inference-time alignment steers diffusion models toward downstream objectives without costly fine-tuning, but existing methods typically optimize expected cost (or reward) without explicitly controlling tail risk. In this work, we propose a risk-averse framework for inference-time alignment of diffusion models that balances expected cost and Conditional Value-at-Risk (CVaR) under trajectory-level Kullback-Leibler regularization. We characterize the optimal path distribution and reverse transitions as functions of the CVaR threshold, reducing the alignment problem to a one-dimensional optimization problem over the threshold. We show that this one-dimensional optimization problem can be nonconvex in general, establish sufficient conditions for convexity, and introduce quadratic regularization to enable efficient derivative-free ternary search. Under suitable assumptions, we provide finite-sample guarantees for threshold optimization and value estimation, and combine them into a terminal total-variation bound relative to the regularized target under exact resampling. Experiments on synthetic data and image generation using Stable Diffusion demonstrate improved tail performance over risk-neutral baselines while maintaining competitive average cost.

1 Introduction

Pretrained diffusion models [1, 2] have shown remarkable success in generating high-quality images and videos [3, 4, 5], but their outputs may not meet the specific needs of a downstream application. One approach is to fine-tune the pretrained model using task-specific rewards [6], but repeated fine-tuning can be expensive as needs change and may be infeasible when model weights are unavailable. An alternative approach is inference-time alignment, which steers the sampling process toward desired outputs without modifying the pretrained model [7, 8]. A classical formulation of inference-time alignment is to optimize the expected cost (resp. reward) at the output, while ensuring that the steered sampling path is close to the pretrained one [6, 7]. However, in practice, good average performance does not preclude the possibility of undesirable tail outcomes. For example, in molecular design where the expected chemical stability is optimized [9], there could still be a non-negligible probability of generating highly unstable candidates. As another example, diffusion-based robot motion planning requires explicit attention to collision avoidance [10, 11], since strong average task performance alone does not rule out occasional dangerous trajectories.

To this end, there is an urgent need for risk-averse inference-time alignment that explicitly accounts for risk by augmenting the expectation-based objective with a coherent risk measure. Among coherent risk measures, Conditional Value-at-Risk (CVaR) provides a principled way to capture tail behavior, as it measures the average cost beyond a prescribed threshold (i.e., Value-at-Risk) of the output distribution. According to [12, 13], CVaR can be expressed as an optimization problem over this one-dimensional threshold. Recent works have incorporated CVaR into generative model fine-tuning through sequential updates [14] or threshold-based reward transformation [9]. However,

∗^{*}Equal contribution.

†^{\dagger}Corresponding author: Xian Yu (yu.3610@osu.edu).

these works focus on risk-averse fine-tuning, which can be computationally costly and impractical for large pretrained models.

This paper aims to develop a risk-averse inference-time alignment framework that combines expected cost and CVaR under trajectory-level Kullback-Leibler (KL) regularization while keeping the pretrained model frozen. Establishing the reliability of such a framework requires a non-asymptotic analysis of its sampling accuracy. While existing risk-averse fine-tuning work studies sensitivity to threshold errors [9], inference-time alignment must additionally account for estimation errors in the value functions used to guide sampling. A central theoretical challenge is therefore to characterize how errors in CVaR threshold optimization and value function estimation jointly affect the final output distribution, and how many samples are needed to achieve a prescribed accuracy. This leads to the following question:

How can we align pretrained diffusion models at inference time to control tail risk‾\underline{\text{tail risk}}, and what finite-sample guarantees‾\underline{\text{finite-sample guarantees}} can we establish?

References (34)