RestoRect: Degraded Image Restoration via Latent Rectified Flow & Feature Distillation
Organizations: Department of Computer Science, Purdue University, USA · Purdue Institute of Cancer Research, USA
Abstract
Current approaches for restoration of degraded images face a trade-off: high-performance models are slow for practical use, while fast models produce poor results. Knowledge distillation transfers teacher knowledge to students, but existing static feature matching methods cannot capture how modern transformer architectures dynamically generate features. We propose a novel Latent Rectified Flow Feature Distillation method for restoring degraded images called 'RestoRect'. We apply rectified flow to reformulate feature distillation as a generative process where students learn to synthesize teacher-quality features through learnable trajectories in latent space. Our framework combines Retinex decomposition with learnable anisotropic diffusion constraints, and trigonometric color space polarization. We introduce a Feature Layer Extraction loss for robust knowledge transfer between different network architectures through cross-normalized transformer feature alignment with percentile-based outlier detection. RestoRect achieves better training stability, and faster convergence and inference while preserving restoration quality, demonstrating superior results across 15 image restoration datasets, covering 4 tasks, on 10 metrics against baselines.
Figures & tables
| Methods | LOL -v1 | LOL -v2-real | LOL -v2-syn | SID | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| PSNR | SSIM | FID | BIQI | PSNR | SSIM | FID | BIQI | PSNR | SSIM | FID | BIQI | PSNR | SSIM | FID | BIQI | |
| MRQ ( Liu et al., 2023 ) | 25.24 | 0.855 | 53.32 | 22.73 | 22.37 | 0.854 | 68.89 | 33.61 | 25.54 | 0.940 | 21.56 | 25.09 | 24.80 | 0.688 | 63.72 | 29.53 |
| IAGC ( Wang et al., 2023b ) | 24.53 | 0.866 | 59.73 | 25.50 | 22.20 | 0.863 | 70.34 | 31.70 | 25.58 | 0.941 | 21.58 | 30.32 | 23.17 | 0.640 | 78.80 | 30.56 |
| DiffIR ( Xia et al., 2023 ) | 23.15 | 0.828 | 70.13 | 26.38 | 21.15 | 0.816 | 72.33 | 29.15 | 24.76 | 0.921 | 21.36 | 27.74 | 23.17 | 0.640 | 78.80 | 30.56 |
| CUE ( Zheng et al., 2023 ) | 21.86 | 0.841 | 69.83 | 27.15 | 21.19 | 0.829 | 67.05 | 28.83 | 24.41 | 0.917 | 31.34 | 33.83 | 23.25 | 0.652 | 77.38 | 28.85 |
| Mamba ( Guo et al., 2024 ) | 22.33 | 0.863 | 63.39 | 20.17 | 21.97 | 0.840 | 56.09 | 24.46 | 25.75 | 0.958 | 17.95 | 20.37 | 21.14 | 0.656 | 154.76 | 32.72 |
| Configuration | PSNR | SSIM | FID | BIQI |
| RetiDiff (Traditional KD) | 25.35 | 0.866 | 49.14 | 17.75 |
| 1-Vel-Net RF(TC) + no FLEX | 21.10 | 0.762 | 52.19 | 20.95 |
| 1-Vel-Net RF(TC) + FLEX | 21.52 | 0.791 | 51.24 | 20.88 |
| RF(no TC) + no FLEX | 24.10 | 0.855 | 49.28 | 17.95 |
| RF(TC) + no FLEX | 24.27 | 0.891 | 44.75 | 9.02 |
| RF(TC) + FLEX(CN) | 25.64 | 0.913 | 42.18 | 8.73 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Acronym | Full Form |
|---|---|
| Tasks & Methods | |
| LLIE | Low-Light Image Enhancement |
| UIE | Underwater Image Enhancement |
| FIE | Fundus Image Enhancement |
| SCLN | Spatial Channel Layer Normalization |
| FLEX | Feature Layer EXtraction Loss |
| Dataset | PSNR | SSIM | FID | NIQE | LPIPS | BRISQ | BIQI | UCIQE | UIQM | CLIPQ |
|---|---|---|---|---|---|---|---|---|---|---|
| LOL -v1 | 27.85 | 0.94 | 38.67 | 7.47 | 0.11 | 27.16 | 8.35 | 0.52 | 2.60 | 0.499 |
| LOL -v2 Real | 22.97 | 0.91 | 42.81 | 7.74 | 0.13 | 28.44 | 10.48 | 0.51 | 2.88 | 0.500 |
| LOL -v2 Syn | 27.70 | 0.97 | 16.75 | 5.74 | 0.06 | 15.68 | 11.68 | 0.55 | 2.77 | 0.498 |
| SID | 26.19 | 0.92 | 54.23 | 5.87 | 0.15 | 20.05 | 19.57 | 0.85 | 2.38 | 0.498 |
| UIEB | 25.89 | 0.95 | 20.26 | 6.49 | 0.11 | 17.89 | 13.99 | 0.58 | 3.12 | 0.501 |
| LSUI | 28.10 | 0.94 | 17.83 | 5.04 | 0.18 | 21.82 | 16.06 | 0.57 | 3.23 | 0.499 |
Image Restoration
Image restoration uses computational methods to recover useful visual content from noisy, blurred, low-resolution, or otherwise degraded images.
See all 364 papers