TL;DR
This paper introduces a novel trajectory optimization paradigm for diffusion-based image restoration that simultaneously boosts reconstruction quality and inference efficiency. By combining a reinforcement learning framework with a dynamically modulated stochastic differential equation (SDE) and a cost-aware trajectory distillation strategy, the authors successfully fine-tune the massive 12-billion-parameter FLUX model into a unified framework (FLUX-IR) capable of state-of-the-art, few-step restoration across seven distinct degradation types.
What Problem Does This Paper Address?
Differential equation-based generative models, such as diffusion models and rectified flows, have shown immense promise in generating high-fidelity images. However, applying them to image restoration (e.g., denoising, deblurring, low-light enhancement) introduces two major challenges:
- Trajectory Instability: Due to inherent score-estimation errors at discrete sampling steps, the reverse generation path can become chaotic or sub-optimal, leading to artifacts or inaccurate restorations.
- High Computational Cost: Standard diffusion models require dozens or hundreds of sampling steps (Number of Function Evaluations, or NFEs) to produce high-quality outputs, making them too slow for practical, real-time deployment.
While existing methods try to straighten these trajectories or distill them into fewer steps, excessive regularization often degrades the model's generative power. This paper aims to find an optimal balance: navigating highly effective restoration paths while compressing the inference process down to as few as one or two steps.
Methods
The authors propose a two-stage workflow to optimize the restoration trajectories of pre-trained diffusion models:
-
Reinforcing ODE Trajectories with Modulated SDEs (M-SDE): Instead of relying on rigid, static optimization, the authors use a reinforcement learning (RL) approach to align the standard deterministic Ordinary Differential Equation (ODE) trajectory with a more effective path. To generate diverse candidate paths for the RL agent to evaluate, they introduce a Modulated SDE (M-SDE). The M-SDE dynamically adjusts its noise injection intensity based on the current reconstruction error and timestamp via a small MLP, steering the model toward the most precise restoration path.
-
Cost-Aware Trajectory Distillation: To solve the efficiency bottleneck, the authors analyze the mathematical "distillation cost"—the burden placed on the network's parameters when compressing a multi-step trajectory into fewer steps. To minimize this cost and preserve the model's original generative capacity, they implement two key tricks:
-
Initial State Interpolation: Instead of starting the reverse process from pure Gaussian noise, they initialize the trajectory from an intermediate state interpolated with the low-quality input image.
- Negative Sampling Guidance: Recognizing that degraded images lie in low-probability regions of the clean image space, they use the low-quality input as negative guidance to actively steer the model away from bad restoration choices.
Finally, they scale this approach up by fine-tuning FLUX-DEV, a foundational 12B parameter rectified flow model, creating a unified framework called FLUX-IR that handles seven different restoration tasks simultaneously using task-specific text prompts.
Datasets
The authors evaluated their method across both task-specific networks and their unified FLUX-IR framework using a wide array of benchmark datasets:
- Underwater Image Enhancement: UIEB (including the challenging C60 subset) and U45.
- Low-Light Enhancement: LOLv1 and LOLv2-real.
- Image Deraining / Raindrop Removal: Raindrop, Outdoor-Rain, Rain100L/H, Rain200L/H, DID-Data, and DDN-Data.
- Super-Resolution: DIV2K and Flickr2K (degraded via a Real-ESRGAN pipeline), tested on DIV2K-Val.
- Image Desnowing: Snow100K-L.
- Image Deblurring: GoPro.
- Image Denoising: BSD500 and SIDD (used strictly for zero-shot generalization testing).
Key Insights and Ideas
- The Initial Steps Matter Most: Through empirical and theoretical analysis, the authors discovered that the distillation cost is heavily concentrated in the initial high-noise steps of the reverse trajectory. By bypassing pure noise and starting from a noised latent representation of the low-quality image, the optimization burden drops drastically.
- Degraded Images as Negative Space: Rather than just conditioning the model on the low-quality image, treating the degraded image as negative guidance helps the model effectively prune away incorrect generation paths, leading to sharper details.
- Flexibility Beats Rigidity: Traditional SDEs inject noise at a fixed rate. Allowing the noise intensity ($\gamma$) to be adaptively modulated based on real-time reconstruction performance gives the reinforcement learning framework the flexibility it needs to discover superior trajectories.
Key Results
The proposed method achieved outstanding quantitative and qualitative performance across the board:
- Task-Specific Gains: The method achieved a massive 2.1 dB PSNR improvement over state-of-the-art deraining methods on the Outdoor-Rain dataset, and a 1.3 dB improvement on the UIEBD underwater dataset.
- Ultra-Efficient Inference: Thanks to the cost-aware distillation, the model delivers top-tier results in just 1 or 2 steps (NFE=1 or 2), outperforming many multi-step diffusion baselines. For instance, the single-step low-light model runs in just 0.06 seconds while maintaining competitive accuracy.
- Unified Perceptual Superiority: The 12B FLUX-IR model set new performance standards across all 7 tasks, demonstrating a remarkable ability to reconstruct complex textures, text, and human faces even under severe degradation.
Limitations and Future Work
While FLUX-IR achieves exceptional perceptual quality, the authors note that evaluating such high-performing generative models remains difficult, as traditional reference-based metrics like PSNR do not always correlate perfectly with human visual preference.
For future work, the authors suggest exploring more advanced reward metrics for the reinforcement learning phase. They also propose investigating alternative generative frameworks, such as bridge diffusion models, to further enhance the model's controllability and reconstruction fidelity.
Summary updated