Continuous Degradation Modeling via Latent Flow Matching for Real-World Super-Resolution [AAAI 2026]
Hyeonjae Kim*, Dongjin Kim*, Eugene Jin, Tae Hyun Kim†
* Equal contribution. † Corresponding author.
This repository contains the official implementation of Continuous Degradation Modeling via Latent Flow Matching for Real-World Super-Resolution.
We propose DegFlow, a continuous degradation modeling framework for real-world super-resolution. During training, DegFlow learns continuous degradation trajectories, modeled with a natural cubic spline, in a constrained latent space using Latent Flow Matching (LFM). At inference time, given only a single HR input, it synthesizes realistic LR images at continuous scales. The generated continuous-scale LR images provide realistic supervision beyond limited discrete real HR–LR pairs, leading to improved real-world arbitrary-scale super-resolution (ASSR) performance.
Illustration of applying LPIPS to nonlinear flow matching for perceptually meaningful degradation modeling.
For unseen intermediate degradation scales, we extrapolate an intermediate latent toward the next discrete degradation level using a third-order Taylor expansion:
We then decode the extrapolated latent and compute the LPIPS loss against the ground-truth LR image at the next degradation level:
This enables perceptual supervision even at unseen intermediate degradation scales, without requiring direct ground-truth LR images.
🟥 Best and 🟦 second-best are highlighted in the table.
Table 2. Fixed-scale SR results on the RealSR ×3 test set.
Table 3. Arbitrary-scale SR results on the RealSR ×3 and RealArbiSR test sets.
We use the RealSR Version 2 dataset for both training and evaluation.
To be specific, we use a dataset reconstructed from InterFlow (Learning Controllable Degradation for Real-World Super-Resolution via Constrained Flows), containing only overlapping HR–LR pairs.
You may refer to the official InterFlow repository, where the dataset is available for download.
After downloading, set the dataset root path in the config files:
configs/datasets/realsr_train.yaml
configs/datasets/realsr_train_allscale.yaml
configs/datasets/realsr_test.yaml
configs/datasets/realsr_test_allscale.yaml
dataset:
params:
dataroot: '/path/to/RealSR_v2_ordered/'We assume an ordered dataset structure such as RealSR_v2_ordered.
Please modify the dataset loader if your directory structure differs.
Training consists of two stages.
python main.py --config configs/train_lit_ae.yamlThis stage trains the latent autoencoder to construct a constrained latent space.
python main.py --config configs/train_lit_rf.yamlThis stage trains the latent flow model in the learned latent space.
To generate arbitrary-scale real LR samples or latent trajectories, configure:
configs/generate.yaml
Set pretrained checkpoint paths:
model:
params:
ae_config:
checkpoint: /path/to/autoencoder_checkpoint.ckpt
rf_config:
checkpoint: /path/to/flow_model_checkpoint.ckptRun generation:
python generate.py --config configs/generate.yamlFurthermore, DegFlow generation can also be performed using external datasets that contain HR images only.
For example, DIV2K is currently supported.
You can enable generation by configuring the data section as follows:
data:
target: datasets.data_module.GenerationDataModule
params:
dataset:
target: datasets.dataset.DIV2K_HR_only_dataset
params:
root_dir: '/path/to/DIV2K dataset'You can also perform generation with any custom dataset that contains HR images only by implementing or adapting a compatible dataset class.
We provide pretrained checkpoints for both the autoencoder and flow models.
| Model | Download |
|---|---|
| Autoencoder | Google Drive |
| Model | Download |
|---|---|
| Flow Model | Google Drive |
If you find this work useful, please cite:
@inproceedings{kim2026degflow,
title = {Continuous Degradation Modeling via Latent Flow Matching for Real-World Super-Resolution},
author = {Kim, Hyeonjae and Kim, Dongjin and Jin, Eugene and Kim, Taehyun},
booktitle = {Proceedings of the AAAI Conference on Artificial Intelligence},
year = {2026}
}This project builds upon ideas from the following works:
- Learning Controllable Degradation for Real-World Super-Resolution via Constrained Flows (ICML 2023)
- Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow (ICLR 2023)
- Improving the Training of Rectified Flows (NeurIPS 2024)
We sincerely thank the authors for their inspiring and foundational contributions.


