ECCV 2026

SLAIR: Structured Latent Flow Matching for All-in-One Image Restoration

Shuyi Liang1*Yixin Yang1*Hanyue Lou1Yuning Cui2Boxin Shi1†

1Peking University  ·  2Technical University of Munich
liangshuyi@stu.pku.edu.cn   yuning.cui@in.tum.de   {yangyixin93,hylz,shiboxin}@pku.edu.cn
* Equal contribution   † Corresponding author

Abstract

Degradation-Agnostic Restoration via Deterministic Latent Transport

Image restoration aims to recover high-quality images from degraded observations, yet existing methods struggle with diverse degradation types. We propose SLAIR, an all-in-one image restoration framework integrating latent space separation and deterministic transport. We introduce a latent-space separation approach that ensures stable, distinct representations of degraded and clean images, facilitating effective flow matching. By learning continuous transport flow in latent space via an ordinary differential equation (ODE), our method enables deterministic restoration without relying on degradation labels or stochastic sampling. A high-frequency refinement module is introduced into the latent decoder to handle detail distortion during decoding. Experiments demonstrate that SLAIR outperforms existing approaches in both perceptual quality and computational efficiency.

Method

Three-Stage Framework

SLAIR pipeline overview

Overview of SLAIR: (I) Degradation-Aware Latent Separation, (II) Conditional Flow Matching Transport, (III) High-Frequency Refinement Decoder.

01
Stage 1

Degradation-Aware Latent Separation

A fundamental challenge in all-in-one restoration is that the latent codes of degraded and clean images are highly entangled in a vanilla VAE, making it difficult to define a clear transport direction. We address this by fine-tuning the encoder with two auxiliary losses: a binary separation loss that maximally separates the distributions of clean and degraded latents, and a degradation-type classification loss over ten degradation categories. This structured latent space ensures that the flow model always transports in a well-defined and consistent direction, without requiring explicit degradation-type labels at inference time.

Vanilla VAE t-SNE
Vanilla VAE - Entangled clean and degraded latent distributions
02
Stage 2

Conditional Flow Matching in Latent Space

Given paired degraded and clean images, SLAIR encodes them into the structured VAE latent space and learns a conditional vector field that deterministically transports $z_{\mathrm{deg}}$ to $z_{\mathrm{gt}}$. As described in Section 3.3 of the SLAIR paper, the path is trained with bridge-noised intermediate states, velocity regression, and cosine alignment, then restored by solving an ODE from $t=0$ to $t=1$.

Latent encoding
$$z_{\mathrm{deg}}=E(I_{\mathrm{deg}}),\qquad z_{\mathrm{gt}}=E(I_{\mathrm{gt}})$$
Paired transport path
$$x_t=(1-t)z_{\mathrm{deg}}+t z_{\mathrm{gt}},\qquad t\sim\mathcal{U}(0,1)$$
$$u_t=\frac{d x_t}{dt}=z_{\mathrm{gt}}-z_{\mathrm{deg}}$$
Bridge-noised state
$$\tilde{x}_t=x_t+\sqrt{t(1-t)}\,\epsilon,\qquad \epsilon\sim\mathcal{N}(0,I)$$
Velocity objective
$$\mathcal{L}_{\mathrm{fm}}=\mathbb{E}\!\left[\left\lVert v_\theta(\tilde{x}_t,t;\,z_{\mathrm{deg}})-u_t\right\rVert_2^2\right]$$
$$\mathcal{L}_{\cos}=\mathbb{E}\!\left[1-\cos\!\left(v_\theta(\tilde{x}_t,t;\,z_{\mathrm{deg}}),u_t\right)\right]$$
$$\mathcal{L}_{\mathrm{transport}}=\mathcal{L}_{\mathrm{fm}}+\mathcal{L}_{\cos}$$
Deterministic inference
$$\frac{d\hat{z}(t)}{dt}=v_\theta(\hat{z}(t),t;\,z_{\mathrm{deg}}),\qquad \hat{z}(0)=z_{\mathrm{deg}},\quad t:0\rightarrow1$$
$$\hat{I}=D(\hat{z}(1))$$
These equations summarize Section 3.3 of the SLAIR paper: paired path construction, bridge noise for robustness, conditional velocity regression, cosine alignment, and ODE-based deterministic restoration.
03
Stage 3

High-Frequency Refinement Decoder

Latent-space restoration may lose high-frequency structures during decoding due to the low-pass nature of VAE decoders. To recover fine-grained texture, edges, and perceptual detail, we augment the VAE decoder with a High-Frequency Refinement Module (HRM). The HRM injects multi-scale encoder features via lightweight fusion blocks at each decoder resolution, and applies a discrete wavelet transform (DWT) loss on the decoded output to directly supervise high-frequency subbands (LH, HL, HH). This prevents the decoder from reintroducing degradation artifacts (rain streaks, haze, moiré) while recovering sharp structures. The decoder remains frozen after Stage 1; only the fusion blocks and HRM parameters are trained.

High-Frequency Refinement Module
HRM decoder. Multi-scale fusion and wavelet-guided refinement preserve high-frequency detail during latent decoding.
Experiments

Quantitative & Qualitative Evaluation

SLAIR is evaluated under two settings. Setting (i) is a comprehensive 8-task benchmark covering diverse degradations. Setting (ii) is the standard 5-task all-in-one benchmark. Best values are bold; second-best are underlined.

Degraded Ours

Move cursor over image to compare — no click needed

Table 1 · Setting (i) — Rain1400 · Outdoor-Rain · Raindrop · UHDSnow · SOTS

Setting (i) — Part A (PSNR↑ / SSIM↑ / LPIPS↓ / FID↓)
Method Rain1400Outdoor-Rain RaindropUHDSnow SOTS
PSNR↑SSIM↑LPIPS↓FID↓ PSNR↑SSIM↑LPIPS↓FID↓ PSNR↑SSIM↑LPIPS↓FID↓ PSNR↑SSIM↑LPIPS↓FID↓ PSNR↑SSIM↑LPIPS↓FID↓
AirNet[1]24.32.764.20785.4916.39.600.457200.9921.91.832.191119.9822.14.780.232106.2826.57.925.05619.97
PromptIR[2]25.40.798.17673.9017.22.614.445190.4422.79.836.174119.6623.12.847.17782.2128.90.974.0164.26
DA-CLIP[3]25.89.816.15863.9115.15.544.483191.8029.74.896.05234.2531.43.944.04218.7630.94.965.0164.67
DiffUIR[4]30.19.903.07225.5214.74.603.431132.0223.50.844.170113.4329.41.943.05627.5931.11.976.0119.53
AdaIR[5]24.52.760.20583.9616.96.611.445191.3523.00.840.174121.0122.47.792.22299.9627.56.939.04111.36
DCPT[6]25.25.792.18479.3113.51.554.501199.0318.28.788.199118.5822.95.837.18989.2729.58.973.0164.44
MoCE-IR[7]24.70.773.20387.2716.66.610.449191.7922.40.829.178117.4422.56.812.217101.8530.08.975.0144.22
VLU-Net[8]24.55.765.20184.6417.02.612.446190.7422.88.837.179115.2922.38.784.229103.6727.68.941.04312.44
SLAIR (Ours)29.36.893.08029.6422.50.815.18755.7528.74.904.08245.6628.62.925.06830.5426.02.938.0348.89

Table 1 cont. · Setting (i) — BSD68 · LoL · UHDM · HDR-Eye · Average

Setting (i) — Part B (PSNR↑ / SSIM↑ / LPIPS↓ / FID↓)
Method BSD68LoL UHDMHDR-Eye Average
PSNR↑SSIM↑LPIPS↓FID↓ PSNR↑SSIM↑LPIPS↓FID↓ PSNR↑SSIM↑LPIPS↓FID↓ PSNR↑SSIM↑LPIPS↓FID↓ PSNR↑SSIM↑LPIPS↓FID↓
AirNet[1]26.17.636.42974.7024.01.720.27897.9118.22.698.23454.8916.04.753.17562.1021.75.745.25191.37
PromptIR[2]22.32.445.56483.7725.23.771.22897.1518.57.703.22353.0416.18.740.17255.4922.19.748.24284.44
DA-CLIP[3]27.98.777.19060.5726.57.804.210124.5918.61.727.22254.0616.65.785.16258.4824.77.806.17167.90
DiffUIR[4]20.41.558.47386.9119.35.809.18089.8518.57.737.20848.6217.41.815.14954.2822.74.799.19465.31
AdaIR[5]23.04.478.54683.5822.14.734.256102.8218.76.719.22252.0917.34.784.16556.8821.75.740.25389.22
DCPT[6]22.38.457.56682.8226.02.789.212100.6017.81.715.23054.9113.96.799.18664.6821.08.745.25488.18
MoCE-IR[7]25.31.587.45676.7927.50.836.16996.0418.54.708.22653.4716.25.758.17256.0322.67.765.23287.21
VLU-Net[8]23.45.495.51681.6621.09.820.17597.9418.71.719.22252.4816.44.750.17155.4321.58.747.24288.25
SLAIR (Ours)28.36.858.17848.7826.83.833.13969.7621.59.847.11426.4523.29.870.14854.3626.15.876.11441.09
Degraded Ours

Move cursor over image to compare — no click needed

Table 2 · Setting (ii) — BSD68 · GoPro · LoL · Rain100L · SOTS · Average

Setting (ii) (PSNR↑ / SSIM↑ / LPIPS↓ / FID↓)
Method BSD68GoPro LoLRain100L SOTSAverage
PSNR↑SSIM↑LPIPS↓FID↓ PSNR↑SSIM↑LPIPS↓FID↓ PSNR↑SSIM↑LPIPS↓FID↓ PSNR↑SSIM↑LPIPS↓FID↓ PSNR↑SSIM↑LPIPS↓FID↓ PSNR↑SSIM↑LPIPS↓FID↓
AirNet[1]26.17.636.42974.7022.85.766.27560.5724.01.720.27897.9128.76.881.14741.4026.57.925.05619.9725.67.786.23758.91
PromptIR[2]22.32.445.56483.7722.65.763.27659.2925.23.771.22897.1532.16.902.10526.6428.90.974.0164.2626.25.771.23854.22
DiffUIR[4]20.41.558.47386.9127.62.844.20140.9919.35.809.18089.8528.26.898.16579.5231.11.976.0119.5325.35.817.20661.36
AdaIR[5]23.04.478.54683.5828.98.878.16128.2322.14.734.256102.8228.85.858.17770.1327.56.939.04111.3626.11.777.23659.22
DCPT[6]22.38.457.56682.8222.20.799.24245.0926.02.789.212100.6030.61.899.11942.1229.58.973.0164.4426.16.783.23155.01
MoCE-IR[7]25.31.587.45676.7930.46.907.12522.3627.50.836.16996.0429.26.863.16061.4830.08.975.0144.2228.52.834.18552.18
VLU-Net[8]23.45.495.51681.6628.25.860.18434.6721.09.820.17597.9431.70.897.11534.5527.68.941.04312.4426.43.803.20752.25
SLAIR (Ours)29.21.846.13939.9925.91.796.15332.8729.13.883.08345.7531.01.943.06028.8926.67.942.0337.7628.39.882.09431.05
References

Compared Methods

  1. Li, B., Liu, X., Hu, P., Wu, Z., Lv, J., and Peng, X. All-In-One Image Restoration for Unknown Corruption. CVPR, 2022.
  2. Potlapalli, V., Zamir, S. W., Khan, S. H., and Khan, F. S. PromptIR: Prompting for All-in-One Image Restoration. NeurIPS, 2023.
  3. Luo, Z., Gustafsson, F. K., Zhao, Z., Sjolund, J., and Schon, T. B. Controlling Vision-Language Models for Universal Image Restoration. ICLR, 2024.
  4. Zheng, D., Wu, X.-M., Yang, S., Zhang, J., Hu, J.-F., and Zheng, W.-S. Selective Hourglass Mapping for Universal Image Restoration Based on Diffusion Model. CVPR, 2024.
  5. Cui, Y., Zamir, S. W., Khan, S., Knoll, A., Shah, M., and Khan, F. S. AdaIR: Adaptive All-in-One Image Restoration via Frequency Mining and Modulation. ICLR, 2025.
  6. Hu, J., Jin, L., Yao, Z., and Lu, Y. Universal Image Restoration Pre-training via Degradation Classification. ICLR, 2025.
  7. Zamfir, E., Wu, Z., Mehta, N., Tan, Y., Paudel, D. P., Zhang, Y., and Timofte, R. Complexity Experts are Task-Discriminative Learners for Any Image Restoration. CVPR, 2025.
  8. Zeng, H., Wang, X., Chen, Y., Su, J., and Liu, J. Vision-Language Gradient Descent-driven All-in-One Deep Unfolding Networks. CVPR, 2025.