Neural Discrimination-Prompted Transformers for Efficient UHD Image Restoration and Enhancement
Organizations: Shenzhen Campus of Sun Yat-Sen University, China · The Hong Kong Polytechnic University, Hong Kong · Nanjing University of Science and Technology, China · Dalian University of Technology, China · University of California, San Francisco, USA
Abstract
We propose a simple yet effective UHDPromer, a neural discrimination-prompted Transformer, for Ultra-High-Definition (UHD) image restoration and enhancement. Our UHDPromer is inspired by an interesting observation that there implicitly exist neural differences between high-resolution and low-resolution features, and exploring such differences can facilitate low-resolution feature representation. To this end, we first introduce Neural Discrimination Priors (NDP) to measure the differences and then integrate NDP into the proposed Neural Discrimination-Prompted Attention (NDPA) and Neural Discrimination-Prompted Network (NDPN). The proposed NDPA re-formulates the attention by incorporating NDP to globally perceive useful discrimination information, while the NDPN explores a continuous gating mechanism guided by NDP to selectively permit the passage of beneficial content. To enhance the quality of restored images, we propose a super-resolution-guided reconstruction approach, which is guided by super-resolving low-resolution features to facilitate final UHD image restoration. Experiments show that UHDPromer achieves the best computational efficiency while still maintaining state-of-the-art performance on UHD image restoration and enhancement tasks, including low-light image enhancement, image dehazing, and image deblurring. The source codes and pre-trained models will be made available at https://github.com/supersupercong/uhdpromer.
Figures & tables
| Dataset | Training | Testing | Resolution |
| UHD-LL | 2,000 | 150 | 3,840 2,160 |
| UHD-Haze | 2,290 | 230 | 3,840 2,160 |
| UHD-Blur | 1,964 | 300 | 3,840 2,160 |
| Method | Venue | PSNR | SSIM | LPIPS |
| Setting 1: Trained on LOL | ||||
| SwinIR ( Liang et al., 2021 ) | ICCVW’21 | 17.900 | 0.7379 | 0.5217 |
| Restormer ( Zamir et al., 2022 ) | CVPR’22 | 19.728 | 0.7703 | 0.4566 |
| Uformer ( Wang et al., 2022c ) | CVPR’22 | 18.168 | 0.7201 | 0.5593 |
| LLFlow ( Wang et al., 2022b ) | AAAI’22 | 19.596 | 0.7333 | 0.4606 |
| LLformer ( Wang et al., 2023b ) | AAAI’23 | 21.440 | 0.7763 | 0.4528 |
| Method | Venue | PSNR | SSIM | LPIPS |
| Setting 1: Trained on SOTS-ITS | ||||
| GridNet ( Liu et al., 2019 ) | ICCV’19 | 14.783 | 0.8466 | 0.2518 |
| MSBDN ( Dong et al., 2020 ) | CVPR’20 | 15.043 | 0.8570 | 0.2709 |
| UHD ( Zheng et al., 2021 ) | ICCV’21 | 11.708 | 0.6569 | 0.5948 |
| Restormer ( Zamir et al., 2022 ) | CVPR’22 | 13.875 | 0.6405 | 0.4477 |
| Uformer ( Wang et al., 2022c ) | CVPR’22 | 15.264 | 0.6724 | 0.4288 |
| Method | Venue | PSNR | SSIM | LPIPS |
| Setting 1: Trained on GoPro | ||||
| DMPHN ( Zhang et al., 2019 ) | CVPR’19 | 26.490 | 0.7985 | 0.2696 |
| MIMO-Unet++ ( Cho et al., 2021 ) | ICCV’21 | 24.290 | 0.7354 | 0.3723 |
| MPRNet ( Zamir et al., 2021 ) | CVPR’21 | 24.571 | 0.7426 | 0.3597 |
| Restormer ( Zamir et al., 2022 ) | CVPR’22 | 24.872 | 0.7484 | 0.3550 |
| Uformer ( Wang et al., 2022c ) | CVPR’22 | 24.382 | 0.7209 | 0.3901 |
| ID | Experiment | SR Branch | Main Branch | Parameters | ||
| PSNR | SSIM | PSNR | SSIM | |||
| (a) | w/o NDP in NDPA&NDPN | 26.487 | 0.8974 | 26.811 | 0.9282 | 0.5322M |
| (b) | w/o NDP in NDPA | 25.962 | 0.8952 | 26.183 | 0.9252 | 0.7348M |
| (c) | w/o NDP in NDPN | 26.745 | 0.8984 | 27.026 | 0.9283 | 0.5404M |
| (d) | NDP Direct Feature | 25.999 | 0.9021 | 26.138 | 0.9272 | 0.7430M |
| (e) | Using NDP before NDPTB | 25.790 | 0.8974 | 26.161 | 0.9263 | 0.5322M |
| ID | Experiment | SR Branch | Main Branch | Parameters | ||
| PSNR | SSIM | PSNR | SSIM | |||
| (a) | Cascaded Reconstruction | - | - | 26.375 | 0.9043 | 0.7414M |
| (b) | w/o Second Term in ( 5 ) | - | - | 27.125 | 0.9051 | 0.7425M |
| (c) | w/ SR Branch ( Ours ) | 26.859 | 0.8985 | 27.159 | 0.9285 | 0.7430M |
| Method | LMAR | UHD | UHDFour | FFTformer | DehazeFormer | UHDformer | UHDPromer |
| ( Yu et al., 2024 ) | ( Zheng et al., 2021 ) | ( Li et al., 2023 ) | ( Kong et al., 2023 ) | ( Song et al., 2023 ) | ( Wang et al., 2024b ) | ( Ours ) | |
| Parameters (M) | 1.314 | 34.5 | 17.5 | 16.6 | 2.5 | 0.3393 | 0.7430 |
| Reduction | 43.5% | 97.8% | 95.8% | 95.5% | 70.3% | 119.0% | - |
| Method | LMAR | UHD | UHDFour | FFTformer | DehazeFormer | UHDformer | UHDPromer |
| ( Yu et al., 2024 ) | ( Zheng et al., 2021 ) | ( Li et al., 2023 ) | ( Kong et al., 2023 ) | ( Song et al., 2023 ) | ( Wang et al., 2024b ) | ( Ours ) | |
| FLOPs (G) | 208.34 | 113.46 | 75.63 | 2107.94 | 375.40 | 51.63 | 32.56 |
| Reduction | 84.4% | 71.3% | 56.9% | 98.5% | 91.3% | 36.9% | - |
| Method | Restormer | LMAR | DehazeFormer | FFTformer | UHDformer | UHDPromer |
| ( Zamir et al., 2022 ) | ( Yu et al., 2024 ) | ( Song et al., 2023 ) | ( Kong et al., 2023 ) | ( Wang et al., 2024b ) | ( Ours ) | |
| RT (s) | 1.86 | 3.40 | 0.45 | 1.27 | 0.16 | 0.12 |
| Method | Venue | PSNR | SSIM | Parameters |
| Retinex-Net ( Wei et al., 2018 ) | BMVC’18 | 16.77 | 0.54 | 0.45M |
| Zero-DCE ( Guo et al., 2020 ) | CVPR’20 | 16.79 | 0.67 | 79.416K |
| AGLLNet ( Lv et al., 2021 ) | IJCV’21 | 17.52 | 0.77 | 3.438K |
| Zhao et al. ( Zhao et al., 2021 ) | ICCV’21 | 21.67 | 0.87 | 11.560M |
| RUAS ( Liu et al., 2021a ) | CVPR’21 | 16.44 | 0.70 | 3K |
| SCI ( Ma et al., 2022 ) | CVPR’22 | 14.78 | 0.62 | 0.258K |
| Method | Venue | PSNR | SSIM | Parameters |
| GridNet ( Liu et al., 2019 ) | ICCV’19 | 33.8244 | 0.9924 | 0.96M |
| MSBDN ( Dong et al., 2020 ) | CVPR’20 | 34.4219 | 0.9899 | 31.4M |
| UHD ( Zheng et al., 2021 ) | CVPR’21 | 18.7488 | 0.8486 | 34.5M |
| PFDN ( Dong and Pan, 2020 ) | ECCV’20 | 31.2308 | 0.9853 | 12M |
| D4 ( Yang et al., 2022 ) | CVPR’22 | 20.5449 | 0.9236 | 22.9M |
| DeHamer ( Guo et al., 2022 ) | CVPR’22 | 38.2672 | 0.9936 | 132.4M |
| Method | Venue | PSNR | SSIM | Parameters |
| SRN ( Tao et al., 2018 ) | CVPR’18 | 31.751 | 0.9144 | 6.8M |
| DMPHN ( Zhang et al., 2019 ) | CVPR’19 | 31.734 | 0.9130 | 21.7M |
| MIMO-Unet++ ( Cho et al., 2021 ) | ICCV’21 | 33.277 | 0.9348 | 16.1M |
| MPRNet ( Zamir et al., 2021 ) | CVPR’21 | 34.195 | 0.9454 | 20.1M |
| Restormer ( Zamir et al., 2022 ) | CVPR’22 | 34.483 | 0.9488 | 26.1M |
| Uformer ( Wang et al., 2022c ) | CVPR’22 | 34.668 | 0.9502 | 20.6M |