Abstract
Image restoration tasks, such as super-resolution, deraining, and low-light enhancement, are computationally demanding, particularly as resolutions scale to 4K and 8K. While State Space Models (SSMs) like Mamba offer linear complexity and long-range modeling, they often struggle with "catastrophic forgetting" of fine details and inefficient computation across uniform image regions. This paper introduces TAMambaIR, a texture-aware framework that prioritizes computation on complex image regions and modulates internal model memory based on local texture richness. By explicitly linking model parameters to local variance, TAMambaIR achieves state-of-the-art performance while significantly reducing computational overhead compared to previous Transformer and Mamba-based architectures.
1. Introduction
Traditional image restoration models, including Convolutional Neural Networks (CNNs) and Transformers, typically apply uniform computational effort across an entire image. However, image degradation is inherently non-uniform. Regions with rich, complex textures—such as fabric patterns or intricate architectural details—suffer more severe damage and are significantly harder to recover than "flat" regions like clear skies or smooth surfaces.
As shown in Figure 4, empirical analysis reveals that richer textures result in lower Peak Signal-to-Noise Ratio (PSNR) and higher residual errors. While the Mamba architecture provides an efficient alternative to Transformers, it faces two primary hurdles in restoration: it wastes resources on simple regions and tends to lose fine texture details during long-sequence processing. TAMambaIR addresses these by introducing "texture awareness" into the core SSM mechanism.
2. Methodology
The core of the proposed framework is the Texture-Aware State Space Model (TA-SSM), which optimizes both performance and efficiency through several key innovations.
2.1 Texture Area Filtering and Modulation
To avoid wasting computation, TAMambaIR employs Texture Area Filtering. The input image is divided into patches, and the statistical variance of each patch is calculated as a proxy for texture complexity. The model then directs heavy-duty SSM processing primarily toward the top $p\%$ (empirically set to 50%) most complex patches, while flat areas are handled by lighter convolutional layers.
Furthermore, the model utilizes Texture-Aware Modulation. In standard SSMs, transition matrices are derived solely from the input. TAMambaIR modulates these matrices using local texture variance, forcing the model to better preserve high-frequency details in its hidden states and mitigating the "forgetting" effect.
2.2 Structural Enhancements
- Multi-Directional Perception Block (MDPB): To capture spatial context without the overhead of simultaneous multi-directional scanning, the authors designed a block that sequentially connects four scanning directions (Top-Left Horizontal, Bottom-Right Horizontal, etc.).
- Positional Embeddings: For the first time in an SSM-based restoration task, learnable positional embeddings are introduced to help the model maintain global spatial structure, a feature typically reserved for Transformers.
3. Experiments and Results
TAMambaIR was evaluated across multiple standard benchmarks for Super-Resolution (SR), Image Deraining, and Low-Light Image Enhancement (LLIE).
3.1 Performance and Efficiency
In Super-Resolution tasks on the Manga109 dataset (x2 SR), TAMambaIR achieved a PSNR of 38.58 dB, outperforming the previous best Mamba-based model, MambaIR. Critically, it achieved this while using 18.5% fewer FLOPs and 21.3% fewer parameters. A streamlined version, TAMambaIR-S, outperformed the popular SRFormer while reducing computational cost by over 6G FLOPs.
3.2 Qualitative Analysis
Visual results demonstrate that TAMambaIR is significantly more effective at reconstructing sharp edges and fine repetitive patterns—such as hair or fabric—where competing models often produce blurred or "watery" artifacts. By focusing on texture, the model preserves the structural integrity of the most challenging regions of an image.
4. Conclusion
TAMambaIR demonstrates that "texture awareness" is a powerful inductive bias for image restoration. By linking model parameters to local statistical variance, the framework achieves a superior trade-off between restoration quality and computational efficiency. Future work will explore adaptive selection mechanisms for the filtering ratio and extend the texture-aware logic to other low-level vision tasks such as dehazing and deblurring.
Summary updated