CoScan: Multi-Scale Content-Adaptive Space-Filling Scans for Causal State-Space Image Restoration
Organizations: McMaster University
Abstract
Selective state-space models (SSMs) have recently shown strong potential for efficient image restoration. A central difficulty, however, is that a 2D feature map typically needs to be linearized into a 1D token sequence for causal state-space updates, making restoration performance highly sensitive to the imposed scan order. Existing deterministic scans follow space-filling principles but remain fixed and content-agnostic, and can yield fragmented or semantically inconsistent contexts under degradations. We propose CoScan, a content-adaptive scan-order design for causal vision SSMs. CoScan learns image-dependent space-filling traversals via differentiable proxy supervision driven by scan-quality objectives that encourage short-range coherence and causal predictability, while preserving spatial adjacency. To support hierarchical restoration backbones, we introduce an efficient multi-scale scan construction by coarsening a fine-level minimum spanning tree, producing coherent scans across feature resolutions. In addition, a frequency-guided start selection strategy is designed to place informative structures early in the sequence prefix to strengthen causal context formation. Plugged into existing Mamba-based backbones, CoScan yields consistent improvements across several restoration benchmarks with minimal overhead and shows promising results on high-level vision tasks. Code will be released at https://github.com/dongw22/CoScan
Figures & tables
| Methods | LOL | MEF | DICM | LIME | NPE | Average (Real-world) | |||||||||
| PSNR | SSIM | LPIPS | MANIQA | MUSIQ | CLIP-IQA | NIQE | CLIP-IQA | NIQE | CLIP-IQA | NIQE | CLIP-IQA | NIQE | CLIP-IQA | NIQE | |
| HINet Chen et al. (2021b) | 22.4729 | 0.8453 | 0.1252 | 0.6343 | 70.7742 | 0.444 | 3.85 | 0.480 | 3.51 | 0.431 | 4.14 | 0.401 | 3.98 | 0.463 | 3.66 |
| NAFNet Chen et al. (2022) | 22.7489 | 0.8264 | 0.1374 | 0.4020 | 64.8988 | 0.449 | 3.61 | 0.430 | 3.98 | 0.420 | 4.50 | 0.373 | 4.61 | 0.427 | 4.01 |
| SwinIR Liang et al. (2021) | 17.6107 | 0.7377 | 0.2591 | 0.6072 | 59.2487 | 0.402 | 3.43 | 0.436 | 3.85 | 0.436 | 4.63 | 0.329 | 4.06 | 0.422 | 3.87 |
| UFormer Wang et al. (2022b) | 18.4094 | 0.7369 | 0.3149 | 0.5228 | 47.9613 | 0.354 | 3.89 | 0.330 | 3.66 | 0.336 | 4.55 | 0.279 | 4.02 | 0.330 | 3.81 |
| Restormer Zamir et al. (2022a) | 23.5068 | 0.8379 | 0.1225 | 0.6255 | 67.9454 | 0.484 | 3.62 | 0.503 | 3.58 | 0.459 | 4.84 | 0.367 | 3.93 | 0.485 | 3.73 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
Image Restoration
Image restoration uses computational methods to recover useful visual content from noisy, blurred, low-resolution, or otherwise degraded images.
See all 418 papers