S3Mamba: Arbitrary-Scale Super-Resolution via Scaleable State Space Model

Peizhe Xia, Long Peng, Xin Di, Renjing Pei, Yang Wang, Yang Cao, Zheng-Jun ZhaarXiv 2024 · DOI

Abstract

Arbitrary-Scale Super-Resolution (ASSR) aims to reconstruct high-resolution (HR) images at any magnification factor using a single model. Current methods based on Implicit Neural Representations (INR) face significant trade-offs: MLP-based approaches lack global context, while Transformer-based models suffer from quadratic computational complexity. This paper introduces $S^3$Mamba, a Scalable State Space Model designed for efficient and effective ASSR. By redesigning the discretization process to be scale-aware, $S^3$Mamba achieves state-of-the-art image reconstruction with linear computational complexity.

Introduction

Traditional image super-resolution (SR) models are typically "factor-fixed," requiring separate training for specific scales like 2x or 4x. Arbitrary-Scale Super-Resolution (ASSR) addresses this limitation by treating an image as a continuous function, a paradigm known as Implicit Neural Representation (INR).

However, existing INR methods encounter two primary bottlenecks. MLP-based methods, such as LIIF, operate on a point-to-point basis, which limits their receptive field and makes them sensitive to noise. Conversely, Transformer-based methods like CiaoSR capture global context but are hindered by $O(N^2)$ complexity, making them impractical for high-resolution outputs. $S^3$Mamba bridges this gap by leveraging State Space Models (SSMs) to provide global awareness with linear efficiency.

Comparison of imaging processes and super-resolution paradigms, highlighting the transition from discrete grids to continuous space.

Methodology: Scalable State Space Model

The core innovation of $S^3$Mamba is the Scalable State Space Model (SSSM). SSMs are mathematically rooted in continuous-time differential equations, making them inherently suited for INR-based tasks.

Scale-Aware Discretization

In a standard SSM, a continuous signal is discretized using a sampling step size ($\Delta$). In $S^3$Mamba, the authors recognize that the spatial distance between pixels varies with the magnification scale. Consequently, they modulate the state transition matrix and the sampling step size ($\Delta$) based on the target scale and coordinates. This ensures the model maintains a consistent representation space across arbitrary magnification factors, from 2x to 30x.

Architecture and Attention

The $S^3$Mamba architecture functions as a plug-in module for standard feature extractors like EDSR or RDN. It incorporates:

  1. Local and Global SSSM Blocks: To capture both fine-grained details and broad structural information.
  2. Scale-Aware Self-Attention: A novel mechanism that uses SSSM to generate a global attention map. Unlike heavy dot-product attention, this map is guided by the current scale, allowing for adaptive refinement of high-resolution features with minimal overhead.
Detailed architecture of S3Mamba, showing the SSSM block and the scale-aware self-attention mechanism.

Experimental Results

The model was evaluated on the DIV2K dataset for synthetic benchmarks and the COZ dataset for real-world arbitrary-scale SR.

  • Performance: $S^3$Mamba consistently outperformed existing methods (LIIF, LTE, CiaoSR) across all scales. On the COZ dataset at x3.5 scale, it achieved a PSNR improvement of 0.06dB over previous SOTA methods.
  • Efficiency: The model maintains linear complexity, utilizing approximately half the computational resources of leading Transformer-based competitors.
  • Generalization: Despite being trained on scales up to x4, $S^3$Mamba demonstrates remarkable "out-of-scale" generalization, producing sharp results even at extreme factors like x30.

Conclusion

$S^3$Mamba represents a significant step forward in ASSR by harmonizing global modeling with computational efficiency. By making the discretization step of SSMs scale-aware, the model effectively captures the continuous nature of the physical world. Future research directions include optimizing hardware performance via specialized CUDA kernels and extending the architecture to arbitrary-scale video super-resolution.

Summary updated

BibTeX
@misc{xia2024s,
  author = {Peizhe Xia and Long Peng and Xin Di and Renjing Pei and Yang Wang and Yang Cao and Zheng-Jun Zha},
  title = {{S3Mamba: Arbitrary-Scale Super-Resolution via Scaleable State Space Model}},
  year = {2024},
  eprint = {2411.11906},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.11906},
}
Figure