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
Figure 5: Compared to existing scanning strategies, our proposed method is capable of producing content-aware paths with flexible curve start ( ∙ ), alleviating the inherent causal modeling limitation of Mamba. [Key: the input is down-scaled to 4×4 for curve generation]
Figure 6: Comparisons on adaptive scans. ∙ denotes our final selected curve start. Our content-aware scan works well with degraded inputs, avoiding discontinuous jumps in MambaIRv2 Guo et al. (2025) and repeated visits in DAMamba Li et al. (2025c) . Furthermore, our developed frequency-guided start selection strategy (Sec. 3.4 ) performs well in prefix organization by effectively selecting informative regions.
Figure 7: Dafner method and NeuralSFC struggle with degraded inputs. In contrast, our content-aware curves are capable of traversing informative regions before transiting to the background. In addition, the adaptive start selection algorithm allows informative regions to be maximally exploited, thereby alleviating the challenges of causal state-space modeling in Mamba. [Key: ★ : Start; ▲ : End]
Figure 8: Built upon our CoScan, we introduce a Content-Aware Mamba Module (CAMM) that integrates content-aware serialization into causal state-space modeling in a plug-and-play manner.
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
Table 1: Quantitative comparisons on the low-light task. Methods are evaluated on LOL Wei et al. (2018) test set and other four real-world datasets (MEF Ma et al. (2015) , DICM Lee et al. (2013) , LIME Guo (2016) , and NPE Wang et al. (2013) ).
Figure 10: Visual comparisons on the LLIE task. Compared with prior methods that may yield over-smoothing, color shifts, and residual noise or over-amplify bright areas, our method produces visually pleasing results with clearer structures, finer details and more faithful color and brightness.
Figure 11: Visual comparisons (deblurring task). The first row is from GoPro, and the second row from HIDE. Our method consistently recovers sharper structures with fewer artifacts.
Figure 12: Residual heatmaps between restored results and ground truth (raindrop removal). Baselines struggle to reconstruct occluded regions behind raindrops, leading to large deviations, whereas our CoScan + MaIR shows much less difference.
Figure 14: Visualizations for ablation corresponding to Tab. 4.4 a on LOL dataset. Each proposed implementation progressively reduces artifacts and improves color fidelity. More specifically, objects seen through the glass are noticeably brighter, while text appears clearer and more legible.
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 15: Visual comparison between an SFC curve and its downscaled counterpart. Downscaling the SFC leads to a large number of non-contiguous jumps.
Figure 16: Additional visualizations on GoPro dataset (deblurring task). Compared to other baselines, our method faithfully restores detailed object and facial features while avoiding ghosting artifacts. In contrast, ghosting in baselines obscure identity-relevant features such as hair and eyes in Rows 3 and 4.
Figure 17: More visualizations on the raindrop removal task. Raindrop occlusions in baseline methods produce smeared and dark artifacts, whereas our method more effectively preserves stronger edges and maintains original scene colors in the highlighted regions.
Deep state-space models (SSMs), like recent Mamba architectures, are emerging as a promising alternative to CNN and Transformer networks. Existing Mamba-based restoration methods process visual data by leveraging a flatten-and-scan strategy that converts image patches into a 1D sequence before scanning. However, this scanning paradigm ignores local pixel dependencies and introduces spatial misalignment by positioning distant pixels incorrectly adjacent, which reduces local noise-awareness and degrades image sharpness in low-level vision tasks. To overcome these issues, we propose a novel slice-and-scan strategy that alternates scanning along intra- and inter-slices. We further design a new Vision State Space Module (VSSM) for image deblurring, and tackle the inefficiency challenges of the current Mamba-based vision module. Building upon this, we develop XYScanNet, an SSM architecture integrated with a lightweight feature fusion module for enhanced image deblurring. XYScanNet, maintains competitive distortion metrics and significantly improves perceptual performance. Experimental results show that XYScanNet enhances KID by 17% compared to the nearest competitor.
Ultra-High-Definition (UHD) image restoration is trapped in a scalability crisis: existing models, bound to pixel-wise operations, demand unsustainable computation. While state space models (SSMs) like Mamba promise linear complexity, their pixel-serial scanning remains a fundamental bottleneck for the millions of pixels in UHD content. We ask: must we process every pixel to understand the image? This paper introduces C2SSM, a visual state space model that breaks this taboo by shifting from pixel-serial to cluster-serial scanning. Our core discovery is that the rich feature distribution of a UHD image can be distilled into a sparse set of semantic centroids via a neural-parameterized mixture model. C2SSM leverages this to reformulate global modeling into a novel dual-path process: it scans and reasons over a handful of cluster centers, then diffuses the global context back to all pixels through a principled similarity distribution, all while a lightweight modulator preserves fine details. This cluster-centric paradigm achieves a decisive leap in efficiency, slashing computational costs while establishing new state-of-the-art results across five UHD restoration tasks. More than a solution, C2SSM charts a new course for efficient large-scale vision: scan clusters, not pixels.
Chen Wu, Ling Wang, Zhuoran Zheng +6
National University of Defense Technology · HKUST(GZ) · Qilu University of Technology +3
Vision State Space Models (SSMs) like Vim, VMamba, and SiMBA rely on complex scanning strategies to adapt sequential SSMs to process 2D images, introducing computational overhead and architectural complexity. We propose HAMSA, a scanning-free SSM operating directly in the spectral domain. HAMSA introduces three key innovations: (1) simplified kernel parameterization-a single Gaussian-initialized complex kernel replacing traditional (A, B, C) matrices, eliminating discretization instabilities; (2) SpectralPulseNet (SPN)-an input-dependent frequency gating mechanism enabling adaptive spectral modulation; and (3) Spectral Adaptive Gating Unit (SAGU)-magnitude-based gating for stable gradient flow in the frequency domain. By leveraging FFT-based convolution, HAMSA eliminates sequential scanning while achieving O(L log L) complexity with superior simplicity and efficiency. On ImageNet-1K, HAMSA reaches 85.7% top-1 accuracy (state-of-the-art among SSMs), with 2.2 X faster inference than transformers (4.2ms vs 9.2ms for DeiT-S) and 1.4-1.9X speedup over scanning-based SSMs, while using less memory (2.1GB vs 3.2-4.5GB) and energy (12.5J vs 18-25J). HAMSA demonstrates strong generalization across transfer learning and dense prediction tasks.