MAXIM: Multi-Axis MLP for Image Processing

Zhengzhong Tu, Hossein Talebi, Han Zhang, Feng Yang, Peyman Milanfar, Alan C. Bovik, Yinxiao Li

Introduction

Low-level vision tasks—such as denoising, deblurring, and dehazing—require a delicate balance between preserving local details and capturing global context. Traditionally, Convolutional Neural Networks (CNNs) have dominated this domain. However, their limited receptive fields often struggle to capture the long-range dependencies necessary for complex restoration tasks.

Recently, Vision Transformers (ViTs) and MLP-based models have emerged as powerful alternatives due to their inherent ability to model global interactions. Despite their success, they face two significant hurdles in image processing:

  1. Computational Complexity: Standard self-attention mechanisms exhibit quadratic complexity ($O(N^2)$) relative to image size, making them prohibitively expensive for high-resolution images.
  2. Inflexibility: Many global models require fixed input sizes or utilize window-based attention that can introduce "patch boundary artifacts" when images are processed in tiles.

MAXIM introduces a "fully-convolutional" MLP architecture designed to be efficient, scale linearly with image size, and support arbitrary resolutions.

The MAXIM Architecture

The core innovation of MAXIM is the Multi-Axis Gated MLP (MAB). Instead of performing computationally expensive global attention, the MAB decomposes spatial mixing into two parallel branches to achieve a global receptive field with linear complexity ($O(N)$):

  • Local Branch: Partitions the image into non-overlapping windows (blocks) to capture local interactions.
  • Global Branch: Employs a "grid" approach (dilated sampling) to capture long-range interactions across the entire image.

By applying 1D gated MLP (gMLP) operators independently to these axes, the model effectively covers the entire image area.

The MAXIM architecture consists of a multi-scale backbone (a) utilizing specialized Encoder/Decoder blocks (b) and Cross-Gating Blocks (c) for feature fusion.

Beyond the MAB, the paper introduces the Cross-Gating Block (CGB). Acting as an alternative to cross-attention for skip-connections in the UNet-style backbone, the CGB allows features from the encoder to adaptively gate features in the decoder, significantly improving feature conditioning. The overall framework is multi-stage and multi-scale (e.g., MAXIM-3S), progressively refining the image and using supervised attention modules to pass information between stages.

Experimental Results

The authors evaluated MAXIM across 17 datasets covering five major tasks: denoising (SIDD, DND), deblurring (GoPro, HIDE, etc.), deraining, dehazing, and image enhancement.

MAXIM achieves state-of-the-art performance across various image restoration and enhancement tasks compared to previous leading models.

MAXIM achieved State-of-the-Art (SOTA) performance on more than ten benchmarks. Key highlights include:

  • Denoising: A +0.24 dB PSNR gain on the SIDD dataset.
  • Deraining: A significant +0.86 dB improvement on Rain100L.
  • Retouching: A +1.15 dB gain on the MIT-Adobe FiveK dataset.

Remarkably, these performance gains come with improved efficiency. For denoising, MAXIM-3S uses only 21% of the FLOPs and 70% of the parameters of the previous leading model, MIRNet. In deblurring tasks, it requires only 25% of the parameters of HINet.

Discussion and Key Insights

The success of MAXIM stems from several key design choices:

  • Efficient Decomposition: Global context does not require a full $N \times N$ attention matrix. Parallel mixing along "blocked" and "gridded" axes provides comprehensive coverage with far fewer operations.
  • Fully-Convolutional Design: Unlike previous MLP-Mixers restricted to fixed-size patches, MAXIM’s multi-axis approach is "fully-convolutional" in spirit, processing images of any size without boundary artifacts.
  • Gating vs. Attention: The results suggest that simple gating mechanisms can be as effective as complex dot-product attention for spatial mixing in restoration tasks.

While highly effective, the authors note that MAXIM can struggle with real-world images that differ significantly from training distributions and shows a slight tendency toward overfitting on specific benchmarks. Future work may explore even more efficient single-stage variants to further reduce the computational weight of the multi-stage architecture.

In conclusion, MAXIM demonstrates that with a multi-axis design, MLPs can serve as highly efficient and effective tools for state-of-the-art image restoration and enhancement.

Summary updated

BibTeX
@inproceedings{tu2022maxim,
  author = {Zhengzhong Tu and Hossein Talebi and Han Zhang and Feng Yang and Peyman Milanfar and Alan C. Bovik and Yinxiao Li},
  title = {{MAXIM: Multi-Axis MLP for Image Processing}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  doi = {10.1109/cvpr52688.2022.00568},
}
Figure