arXiv:2610.09281cs.LGOct 2026

Manuscript Offprint

arXiv:2610.09281

Twist Flow for Inverse Problems

Shiqin Zeng, Zijun Deng, Felix J. Herrmann

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

Abstract

In Bayesian inverse problems, posterior sampling requires generating samples that are consistent with given observations while capturing the range of plausible solutions. Direct conditional generative models introduce latent noise to model this ambiguity, but paired inverse-problem training can still encourage an almost deterministic map from the observation to the target. As a result, generated samples may be observation-consistent while under-representing posterior variability, especially when the posterior is multimodal, leading to undercoverage, mode distortion, or artificial transitions between distinct feasible solutions. We propose joint twist-flow, an augmented flow-matching formulation that learns a continuous transport from the augmented source state (zx,y)(z_x, y) to the augmented terminal state (x,zy)(x, z_y). Here xx is the target variable, yy is the observation, zxz_x is the Gaussian reference coordinate for posterior sampling, and zyz_y is a Gaussian likelihood-side coordinate associated with the observation branch. Under a Gaussian observation model, zyz_y is motivated by the normalized observation residual associated with observation compatibility. Its role is not to replace uncertainty in xx, but to couple generated samples of xx to observation consistency, helping reduce likelihood-inconsistent variation while preserving variability in weakly constrained directions. We validate the method on low-dimensional inverse problems with reference posterior samples, where joint twist-flow better preserves multimodal posterior support than a direct conditional-flow baseline. We further evaluate the method on image restoration and seismic subsurface velocity-model inversion, showing increased posterior variability while maintaining observation consistency.

1 Introduction

Generative models have become a central tool for learning and sampling from high-dimensional distributions, with major developments including generative adversarial networks (GANs) [1], variational autoencoders (VAEs) [2], normalizing flows [3, 4], and diffusion and score-based generative models [5, 6]. In inverse problems, however, the goal is not to sample from the marginal data distribution alone. Given an observation y, one seeks samples of an unknown target x from the posterior distribution p(x∣y)p(x \mid y) [7]. This task is difficult because the observation operator is often many-to-one, so a fixed observation can be compatible with multiple plausible targets. Observation consistency is necessary but not sufficient. A useful posterior sampler should also represent the uncertainty that remains unresolved by the observation.

Conditional generative models address this ambiguity by introducing latent variables. A common parameterization learns a direct conditional map from Gaussian latent noise and the observation to the target. In principle, this allows the model to generate different feasible solutions for the same observation. However, in paired inverse-problem training, each observation yiy_i is often matched with only one target xix_i. The training objective may therefore be satisfied by relying mostly on the observation and using the latent noise only weakly. As a result, the sampler may remain consistent with the observation but produce too little posterior variation. When several distinct solutions are

(a) Conditional flow matching

(b) Joint twist flow (ours)

Figure

Figure 1: Overview of conditional flow matching and joint twist-flow. (a) Conditional flow matching samples x from a one-way conditional map with fixed observation yobsy_{obs}, which may underrepresent posterior ambiguity. (b) Joint twist-flow learns an augmented transport (zx,yobs)↦(x,zy)(z_x, y_{obs}) \mapsto (x, z_y), where x is the posterior sample and zyz_y is a Gaussian likelihood-side coordinate for the observation branch. This augmented transport is designed to preserve broader posterior variability under observation consistency.

compatible with the same observation, the sampler may miss some solutions, distort others, or create unrealistic transitions between them.

We introduce joint twist-flow as shown in Figure 1, an augmented flow-matching formulation for posterior sampling in inverse problems. Rather than learning a direct map from latent noise and the observation to x, joint twist-flow learns a continuous augmented transport

Sθ(zx,y)=(x,zy),S_{\theta}(z_{x},y)=(x,z_{y}),

where zx∼N(0,I)z_x \sim \mathcal{N}(0, I) drives posterior sampling and zyz_y is an auxiliary terminal coordinate associated with the observation. This added coordinate gives the transport an observation-side degree of freedom, reducing the tendency to fit paired training data through a nearly deterministic dependence of xx on yy. For a fixed observation yy, the learned flow maps independent draws of zx∼N(0,I)z_x \sim \mathcal{N}(0, I) to an ensemble of target samples xx. The variability across this ensemble represents the posterior uncertainty left unresolved by the observation.

This paper makes three contributions. First, we propose joint twist-flow, an augmented parameterization (zx,y)↦(x,zy)(z_x, y) \mapsto (x, z_y) for fixed-observation posterior sampling. Second, we develop a flow-matching objective on the augmented state and interpret zyz_y as a likelihood-side coordinate associated with observation consistency. Third, we evaluate whether joint twist-flow preserves posterior variation while maintaining observation consistency. Low-dimensional experiments with reference posterior samples validate our method by showing that joint twist-flow reduces latent underuse and better preserves posterior support. We then evaluate the same formulation on high-dimensional image restoration and seismic velocity-model inversion, assessing whether generated samples remain consistent with the fixed observation while capturing a range of plausible solutions.

References (31)