arXiv:2610.26183cs.CVOct 2026

Manuscript Offprint

arXiv:2610.26183

HP-PnP-Flow: Hybrid Time Scheduling and Projection for Plug-and-Play Image Restoration via Flow Matching

Yong Li, Xiaojie Wang, Xiaoyan Zhang

Abstract

Image restoration is a fundamental inverse problem that seeks to recover high-quality images from degraded observations. Plug-and-Play (PnP) methods provide a flexible framework for integrating pretrained denoisers into iterative reconstruction, whereas flow matching offers an efficient generative modeling approach based on continuous-time ODE dynamics. Very recently, Martin et al. (ICLR, 2025) developed a PnP-Flow method, which integrates the PnP framework with flow matching through a time-dependent denoiser constructed from a pretrained flow matching model. By incorporating a different time schedule and an additional pixel-space projection operator, this paper proposes a novel efficient PnP-Flow algorithm (HP-PnP-Flow) that enjoys rigorous convergence guarantees under mild assumptions, without imposing restrictive conditions on iterates required by the aforementioned work. Numerical experiments on CelebA and AFHQ-Cat demonstrate that the newly proposed HP-PnP-Flow algorithm significantly outperforms PnP-Flow on several restoration tasks such as denoising, deblurring, super-resolution, random inpainting, and box inpainting. Notably, our algorithm achieves comparable or better reconstruction quality with substantially fewer iterations, reducing the iteration count from 500 to 100 for deblurring and super-resolution on AFHQ-Cat.

AMS subject classification: 65J22, 68U10, 65K10.

Key Words: Image reconstruction, Flow matching, Plug-and-Play, Hybrid time scheduling, Projection operator.

1 Introduction

Image restoration has been a long-standing problem in a wide range of applications, including digital photography, medical imaging, remote sensing, surveillance and digital entertainment [33,[33,

†^{\dagger}This work was supported by Natural Science Foundation of China (12471394, 12371417, 12071488) and Hunan Basic Science Research Center for Mathematical Analysis (2024JC2002). E-mail addresses: 15572158033@163.com, x.j.wang7@csu.edu.cn, x.y.zhang@csu.edu.cn.

39]. Given a degraded observation, the objective is to recover the underlying clean image, where the degradation may arise from various factors during image acquisition, transmission, or processing [14, 15, 22, 23, 31]. Such restoration tasks can typically be formulated as inverse problems under the observation model

y=Hx+ζ,(1.1)y=Hx+\zeta, \tag{1.1}

where x∈Rdx \in \mathbb{R}^d denotes the unknown high-quality image, y∈Rmy \in \mathbb{R}^m is the degraded observation, H:Rd→RmH : \mathbb{R}^d \to \mathbb{R}^m denotes the degradation operator, and ζ\zeta describes the underlying additive noise. The inherent ill-posedness and high dimensionality of the problem pose significant challenges to accurate and stable reconstruction.

From a Bayesian perspective [18, 24, 36], the unknown image x and the observation y are treated as random variables. By Bayes' theorem, the corresponding maximum a posteriori (MAP) estimator is then given by

x^MAP=arg⁡max⁡x∈Rdlog⁡p(x∣y)=arg⁡min⁡x∈Rd{−log⁡p(y∣x)−log⁡p(x)},(1.2)\hat{x}_{\mathrm{MAP}}=\arg\max_{x\in\mathbb{R}^{d}}\log p(x\mid y)=\arg\min_{x\in\mathbb{R}^{d}}\left\{-\log p(y\mid x)-\log p(x)\right\}, \tag{1.2}

where log⁡p(y∣x)\log p(y \mid x) represents the log-likelihood of observation yy, log⁡p(x)\log p(x) delivers the prior of clean image xx and is independent of degraded image yy. Nevertheless, the image prior p(x)p(x) is generally unknown or intractable in this framework. To illustrate this point, the negative log-prior is typically replaced by an explicit regularization term, leading to the optimization problem

arg⁡min⁡x∈Rd{f(x)+g(x)},(1.3)\arg\min_{x\in\mathbb{R}^{d}}\big\{f(x)+g(x)\big\}, \tag{1.3}

where f(x)=−log⁡p(y∣x)f(x) = -\log p(y \mid x) denotes the data-fidelity term. In particular, under additive Gaussian noise ξ∼N(0,σ2Id)\xi \sim \mathcal{N}(0, \sigma^2 I_d), the data-fidelity term takes the form f(x)=12σ2∥Hx−y∥2f(x) = \frac{1}{2\sigma^2} \|Hx - y\|^2.

In recent years, the regularized minimization problem (1.3) has received considerable attention. Early works addressed this problem by using proximal splitting methods, which handle the data-fidelity and regularization terms separately. For example, forward-backward splitting (FBS) [4,10] alternates between a proximal operation on g and a gradient descent step on f, when f is differentiable. In more general settings, half-quadratic-splitting (HQS) [17], alternating direction method of multipliers (ADMM) [2] or douglas-rachford splitting (DRS) [13] use proximal operations for both f and g.

Plug-and-Play (PnP) method. Since designing an effective regularizer for complex priors is challenging, the authors of [37] introduced the Plug-and-Play (PnP) methods, which replace the proximal operator with an off-the-shelf denoiser such as DnCNN [43] or DRUNet [42]. Over the last few years, much attention has been received on various PnP methods and their convergence analysis (see, e.g., [21, 28, 29, 32, 35] and references therein). For example, the authors of [40] first provide a new convergence theory for plug-and-play proximal gradient descent (PnP-PGD) under prior mismatch where the denoiser is trained on a different data distribution to the inference task at hand. By incorporating neural network denoisers, PnP methods have achieved promising results across various image restoration tasks. However, classical PnP methods typically rely on generic discriminative denoisers, for which an explicit regularization function may not be available. This limits both the optimization interpretation of the method and its ability to represent complex image distributions.

PnP-Flow method. Generative models provide a natural alternative by modeling the underlying data distribution, and have achieved state-of-the-art performance in image generation, inverse problems and a broad range of related applications [5, 9, 12, 19, 25, 26, 34]. In particular, flow matching learns a time-dependent vector field whose ODE flow transports a base distribution to the data distribution. Owing to simpler training objectives and more efficient sampling, flow matching has recently emerged as a powerful framework for continuous-time generative modeling. These developments have motivated the use of generative models as image priors within the PnP framework. Very recently, Martin et al. [27] introduced PnP-Flow matching method by defining a time-dependent denoiser using a pretrained flow matching model. Under regularity assumptions and bounded support of the base distribution, they established convergence under the additional assumptions that the iterates remain bounded and the time sequence satisfies ∑k=0∞(1−tk)<∞\sum_{k=0}^{\infty}(1-t_k)<\infty. Despite its good reconstruction performance, PnP-Flow still has several limitations. On the one hand, the condition imposed on the time sequence is difficult to be satisfied in practice. For instance, the linear schedule tk=k/Nt_k=k/N used in [27] does not satisfy the required uniform boundedness with respect to the iteration budget N. On the other hand, the convergence guarantee is obtained based on bounded iterates, a property that is not explicitly guaranteed by the original algorithm. Motivated by this we ask the following question:

Can one design an improved PnP-Flow algorithm that enjoys rigorous convergence guarantees under mild assumptions, while achieving improved reconstruction efficiency and quality?

An improved HP-PnP-Flow algorithm. In this work, we address this problem by proposing a hybrid-projection PnP-Flow (HP-PnP-Flow) algorithm, based on a different time schedule and an additional pixel-space projection operator. More precisely, the hybrid time schedule given by (3.1) combines geometric and linear phases, while the projection operator defined by (3.2) explicitly constrains the iterates to the prescribed pixel range. Under mild and reasonable assumptions, we establish the convergence of HP-PnP-Flow (see Theorem 3.3), without requiring the a priori boundedness assumptions on the iterates imposed in the original PnP-Flow framework in [27]. Also, the new hybrid time schedule ensures the resulting time sequence satisfies the uniform boundedness assumption ∑k=0∞(1−tk)<∞\sum_{k=0}^{\infty}(1-t_k)<\infty. Notably, numerical experiments demonstrate the efficiency and high quality of the new algorithm. Ablation studies further validate the individual effects of the initial time offset t0t_0 and the hybrid time schedule, with their combination yielding the best overall performance. In summary, our main contributions are as follows:

  • We propose an improved PnP-Flow algorithm, called HP-PnP-Flow, by incorporating a novel hybrid time schedule and an additional pixel-space projection operator.

  • We establish the convergence of the newly proposed HP-PnP-Flow algorithm under mild and reasonable assumptions.

  • Extensive experiments on two datasets and five tasks demonstrate that our algorithm significantly outperforms PnP-Flow in terms of reconstruction quality and convergence efficiency.

The rest of this article is organized as follows. The next section collects some notations, introduces background on Plug-and-Play (PnP), flow matching and PnP-Flow throughout this paper. Section 3 presents the proposed method and main results of this paper. Numerical experiments are conducted in Section 4 to demonstrate the effectiveness of the proposed algorithm. Finally, some concluding remarks are given in the last section.

References (41)