MatIR: A Hybrid Mamba-Transformer Image Restoration Model

Juan Wen, Weiyan Hou, Luc Van Gool, Radu Timofte
1/30/2025
cs.CV

No official code found. Best implementation: wenjuan7275/MatIR (20 stars, MIT, last commit 2025-02-06).

Abstract

In recent years, Transformers-based models have made significant progress in the field of image restoration by leveraging their inherent ability to capture complex contextual features. Recently, Mamba models have made a splash in the field of computer vision due to their ability to handle long-range dependencies and their significant computational efficiency compared to Transformers. However, Mamba currently lags behind Transformers in contextual learning capabilities. To overcome the limitations of these two models, we propose a Mamba-Transformer hybrid image restoration model called MatIR. Specifically, MatIR cross-cycles the blocks of the Transformer layer and the Mamba layer to extract features, thereby taking full advantage of the advantages of the two architectures. In the Mamba module, we introduce the Image Inpainting State Space (IRSS) module, which traverses along four scan paths to achieve efficient processing of long sequence data. In the Transformer module, we combine triangular window-based local attention with channel-based global attention to effectively activate the attention mechanism over a wider range of image pixels. Extensive experimental results and ablation studies demonstrate the effectiveness of our approach.

View on arXivView PDF

Code Implementations(1)

wenjuan7275/MatIRCommunity100%
MIT

MatIR: A Hybrid Mamba-Transformer Image Restoration Model

203Jan 30, 20251 years agoMIT

Similar Papers

Cite this paper

@article{wen2025matir,
  title  = {MatIR: A Hybrid Mamba-Transformer Image Restoration Model},
  author = {Juan Wen and Weiyan Hou and Luc Van Gool and Radu Timofte},
  year   = {2025},
  eprint = {2501.18401},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.18401v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.18401.svg)](https://codeofpaper.com/paper/2501.18401)

Discussion