arXiv:2610.26000cs.LGOct 2026

Manuscript Offprint

arXiv:2610.26000

PnP-CF: A Consensus Flow-Matching Solver for General Inverse Problems

Dibyanshu Kumar, Magda Gregorova

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

Abstract

Plug-and-Play (PnP) methods using continuous-time deep generative models as learned data distribution priors enable synthesizing high-quality solutions of model-based inverse problems. The quality of the solutions depends critically on the interplay and consensus between the inverse problem solver and the generative model sampler. We revisit a recently introduced flow-based PnP framework, which we refer to as PnP-CF (Consensus Flow), and extend its application to nonlinear inverse problems, including those with learned neural-network forward operators. PnP-CF combines a flow-matching denoiser with (i) ADMM-like dual variable updates and (ii) a time-adaptive pullback onto the intermediate flow probability path that combines a stochastic and a deterministic component. We discuss how these two features stabilize the algorithm and promote consensus, and demonstrate on a set of experiments that PnP-CF not only solves standard linear inverse problems with quality at least comparable to state-of-the-art baselines, but also extends gracefully to nonlinear inverse problems, including forward operators realized by pretrained neural networks, for which existing methods produce unsatisfactory results or fail completely.

1 Introduction

A fundamental task in model-based inverse problems is recovering an unknown signal x∈Rm\mathbf{x} \in \mathbb{R}^m from measurements y∈Rn\mathbf{y} \in \mathbb{R}^n satisfying a (noisy) forward model

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

where A\mathcal{A} denotes the measurement process and η\eta represents measurement noise. The forward model may be linear or nonlinear and is typically non-injective, so recovering x\mathbf{x} from y\mathbf{y} is ill-posed and requires prior information about the unknown signal.

In a Bayesian formulation, this prior information is modeled by a density p(x)p(\mathbf{x}) over the signal space, while the forward model induces the likelihood p(y∣x)p(\mathbf{y} \mid \mathbf{x}). A reconstruction can then be obtained either by sampling from the posterior p(x∣y)p(\mathbf{x} \mid \mathbf{y}), e.g., by training conditional score-based diffusion models [Batzolis et al., 2021, Saharia et al., 2022], or through maximum-a-posteriori (MAP) estimation. The latter yields the minimization problem

x^=arg⁡min⁡x{−log⁡p(y∣x)−log⁡p(x)}=arg⁡min⁡x{l(y;x)+s(x)},(2)\hat{\mathbf{x}}=\arg\min_{\mathbf{x}}\left\{-\log p(\mathbf{y}\mid\mathbf{x})-\log p(\mathbf{x})\right\}=\arg\min_{\mathbf{x}}\left\{l(\mathbf{y};\mathbf{x})+s(\mathbf{x})\right\}, \tag{2}

where l(y;x)=−log⁡p(y∣x)l(\mathbf{y}; \mathbf{x}) = -\log p(\mathbf{y} \mid \mathbf{x}) measures consistency with the forward model and s(x)=−log⁡p(x)s(\mathbf{x}) = -\log p(\mathbf{x}) encodes the prior. This formulation allows a single unconditional generative model p(x)p(\mathbf{x}) to serve as a reusable prior across multiple inverse problems and forward models. We refer to l(y;x)l(\mathbf{y}; \mathbf{x}) and s(x)s(\mathbf{x}) as the forward-consistency and prior-consistency terms, respectively. 1^{1}

1^{1}A shorter version of this paper is accepted at the PRIGM Workshop at NeurIPS 2026.

Preprint.

In this paper we revisit the flow-based PnP framework introduced by Kumar and Gregorová [2026] for solving the MAP problem in equation 2, which we refer to as PnP-CF (Plug-and-Play Consensus Flow), and extend its application to nonlinear inverse problems, including those involving learned neural-network forward operators. The algorithmic formulation of PnP-CF, recalled in section 3, follows Kumar and Gregorová [2026]; our contributions lie in its extension to and evaluation on nonlinear and learned forward models.

PnP-CF decouples the forward-consistency and prior-consistency updates within an iterative scheme, similar to the PnP formulation of Venkatakrishnan et al. [2013], while realizing the prior-consistency update through a pretrained flow-matching denoiser, avoiding backpropagation through the generative prior. However, integrating forward-consistency optimization with a generative prior such as flow matching poses a significant challenge in maintaining consensus between the two, since the forward-consistency step is driven by the measurements, whereas the flow prior is designed to operate along a structured family of intermediate probability paths.

PnP-CF addresses this challenge through two complementary mechanisms: (i) a decoupled ADMM-like (Alternating Direction Method of Multipliers [Boyd et al., 2010]) variable-splitting structure with dual-variable updates and (ii) a time-adaptive pullback toward the intermediate flow probability path using complementary stochastic and deterministic components (section 3). We argue that these mechanisms stabilize the interaction between the forward-consistency solver and the flow-matching denoiser, thereby promoting consensus between the measurement-driven iterate and the learned flow trajectory (section 4.1). While methods such as PnP-Flow [Martin et al., 2025] and FLOWER [Pourya et al., 2026] use flow-based denoisers as priors in similar PnP frameworks, we demonstrate through a series of experiments that PnP-CF not only achieves strong performance on standard linear inverse problems but also extends naturally to nonlinear forward operators, broadening the applicability of flow-based inverse solvers beyond the predominantly linear settings considered in existing work (section 4.2 and table 1). We further evaluate PnP-CF on segmentation-guided reconstruction, where the forward operator is a complex neural network that discards substantial image information, demonstrating that PnP-CF extends beyond analytical measurement models to highly non-injective learned operators (section 4.3 and table 3). Relative to Kumar and Gregorová [2026], we thus contribute a forward-consistency solver for nonlinear and learned operators, the first nonlinear evaluation of several flow-based baselines, and a segmentation-guided formulation with a highly non-injective neural forward operator. Our code is available at https://github.com/dibyanshu100/PnP_ConsensusFlow.git.

References (65)