OFTSR: One-Step Flow for Image Super-Resolution with Tunable Fidelity-Realism Trade-offs

Yuanzhi Zhu, Ruiqing Wang, Shilin Lu, Junnan Li, Hanshu Yan, Kai Zhang · OpenReview

Abstract

Recent advances in diffusion and flow-based generative models have demonstrated remarkable success in image restoration tasks, achieving superior perceptual quality compared to traditional deep learning approaches. However, these methods either require numerous sampling steps to generate high-quality images, resulting in significant computational overhead, or rely on model distillation, which usually imposes a fixed fidelity-realism trade-off and thus lacks flexibility. In this paper, we introduce OFTSR, a novel flow-based framework for one-step image super-resolution that can produce outputs with tunable levels of fidelity and realism. Our approach first trains a conditional flow-based super-resolution model to serve as a teacher model. We then distill this teacher model by applying a specialized constraint. Specifically, we force the predictions from our one-step student model for same input to lie on the same sampling ODE trajectory of the teacher model. This alignment ensures that the student model's single-step predictions from initial states match the teacher's predictions from a closer intermediate state. Through extensive experiments on challenging datasets including FFHQ (256x256), DIV2K, and ImageNet (256x256), we demonstrate that OFTSR achieves state-of-the-art performance for one-step image super-resolution, while having the ability to flexibly tune the fidelity-realism trade-off.

Introduction

In the domain of Image Super-Resolution (SR), researchers face a persistent challenge known as the perception-distortion trade-off. High-fidelity models prioritize mathematical closeness to the ground truth (high PSNR), which often results in blurry outputs. Conversely, high-realism models generate sharp, visually appealing images that may "hallucinate" fine details not present in the original low-resolution (LR) input.

While modern generative frameworks like Diffusion and Rectified Flow excel at producing realistic textures, they are computationally intensive, requiring dozens or hundreds of sampling steps. Existing distillation methods that compress these models into a single step often sacrifice flexibility, providing a fixed output that cannot be adjusted based on the specific needs of an application. OFTSR (One-Step Flow for Super-Resolution) addresses this by providing a one-step model that retains a "tuning dial" for this trade-off.

Methodology

The OFTSR framework utilizes a two-stage training pipeline designed to preserve the flexibility of multi-step models within a single-step inference process.

Teacher Training via Noise-Augmented Rectified Flow

The first stage involves training a "teacher" model using a conditional rectified flow approach. To stabilize training and improve the mapping from LR to high-resolution (HR) space, the authors introduce noise-augmented conditioning. By adding a small amount of Gaussian noise to the LR input, the model learns a more robust Ordinary Differential Equation (ODE) trajectory, bridging the gap between the ill-posed LR input and the target HR output.

Trajectory-Based Distillation

The core innovation of OFTSR is its distillation strategy. Rather than training a "student" model to simply match the teacher's final output, the student is trained to align its one-step prediction with the teacher's entire ODE trajectory. By conditioning the student on a time parameter $t \in [0, 1]$, the model learns to "jump" to any specific point along the teacher's path in a single step. This allows the parameter $t$ to act as a tuning dial: $t=0$ yields high-fidelity results, while $t=1$ produces high-realism outputs.

Experimental Results

OFTSR was evaluated on standard benchmarks including FFHQ, DIV2K, and ImageNet, demonstrating superior efficiency and flexibility.

Tunable Fidelity-Realism Trade-off

A key advantage of OFTSR is the ability to smoothly transition between fidelity and realism. As shown in the qualitative results, increasing $t$ enhances perceptual sharpness and detail (improving LPIPS) while slightly decreasing mathematical fidelity (PSNR).

Visual demonstration of the tunable trade-off between realism and fidelity as the time parameter t varies.

Quantitative Performance and Efficiency

OFTSR achieves state-of-the-art performance with a Number of Function Evaluations (NFE) of 1. On the ImageNet benchmark, the model achieved an FID of 46.88 at $t=1$, significantly outperforming other one-step distillation methods like SinSR (FID 94.90) and even rivaling many multi-step models.

Comparison of OFTSR against state-of-the-art methods on the FID-PSNR trade-off curve.

The model's efficiency is not just limited to inference; the trajectory alignment loss used during distillation is also more computationally efficient to train compared to previous state-of-the-art methods.

Conclusion

OFTSR represents a significant step forward in efficient image super-resolution. By distilling the sampling trajectory of a flow-based teacher, it enables high-quality, one-step generation with the unique ability to tune the output's characteristics in real-time. Future work will focus on improving robustness to real-world "blind" degradations and exploring the integration of direct ground-truth supervision during the distillation phase.

Summary updated

Abstract

Recent advances in diffusion and flow-based generative models have demonstrated remarkable success in image restoration tasks, achieving superior perceptual quality compared to traditional deep learning approaches. However, these methods either require numerous sampling steps to generate high-quality images, resulting in significant computational overhead, or rely on model distillation, which usually imposes a fixed fidelity-realism trade-off and thus lacks flexibility. In this paper, we introduce OFTSR, a novel flow-based framework for one-step image super-resolution that can produce outputs with tunable levels of fidelity and realism. Our approach first trains a conditional flow-based super-resolution model to serve as a teacher model. We then distill this teacher model by applying a specialized constraint. Specifically, we force the predictions from our one-step student model for same input to lie on the same sampling ODE trajectory of the teacher model. This alignment ensures that the student model's single-step predictions from initial states match the teacher's predictions from a closer intermediate state. Through extensive experiments on challenging datasets including FFHQ (256$\times$256), DIV2K, and ImageNet (256$\times$256), we demonstrate that OFTSR achieves state-of-the-art performance for one-step image super-resolution, while having the ability to flexibly tune the fidelity-realism trade-off. Code and pre-trained models are available at https://github.com/yuanzhi-zhu/OFTSR and https://huggingface.co/Yuanzhi/OFTSR, respectively.
BibTeX
@misc{zhu2024oftsr,
  author = {Yuanzhi Zhu and Ruiqing Wang and Shilin Lu and Junnan Li and Hanshu Yan and Kai Zhang},
  title = {{OFTSR: One-Step Flow for Image Super-Resolution with Tunable Fidelity-Realism Trade-offs}},
  year = {2024},
  eprint = {2412.09465},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.09465},
}
Figure