MatIR: A Hybrid Mamba-Transformer Image Restoration Model
Juan Wen, Weiyan Hou, Luc Van Gool, Radu Timofte
TL;DR
MatIR addresses image restoration by uniting Mamba's linear-time state-space processing with Transformer-based contextual learning. The architecture interleaves Transformer and Mamba layers, augmented by IRSS for long-range sequencing and attention-enhancement modules TWLA and CGA, followed by a reconstruction stage. Across SR, denoising, and deblurring tasks, MatIR delivers state-of-the-art results with improved efficiency and reduced memory footprint, validating the practical value of hybrid Mamba-Transformer designs. This work highlights a promising direction for high-resolution restoration where global context and scalable computation must coexist.
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.
