Mamba-Based Light Field Super-Resolution with Efficient Subspace Scanning

Ruisheng Gao, Zeyu Xiao, Zhiwei Xiong

Introduction

Light field (LF) imaging represents a significant advancement over traditional 2D photography by capturing both the spatial intensity and the angular direction of light rays. This 4D information ($U \times V$ angular views and $H \times W$ spatial pixels) enables sophisticated post-processing capabilities such as depth estimation, 3D reconstruction, and digital refocusing. However, physical constraints in sensor design often necessitate a trade-off between spatial and angular resolution. Light Field Super-Resolution (LFSR) aims to overcome these hardware limitations computationally, restoring high-resolution details across all dimensions.

The Challenge of 4D Complexity

Existing LFSR methods primarily rely on Convolutional Neural Networks (CNNs) or Transformers. While CNNs are computationally efficient, their limited receptive fields struggle to capture the long-range correlations necessary for consistent reconstruction across distant views. Conversely, Transformers excel at modeling global context but are hindered by quadratic complexity ($O(N^2)$).

For high-dimensional 4D light fields, the sequence length $N$ grows rapidly, leading to "Out of Memory" (OOM) errors on standard hardware. To circumvent this, most Transformer-based models employ a patch-based approach. While functional, this strategy introduces boundary artifacts and fails to leverage global geometric information, which is critical for maintaining the structural integrity of the light field.

The MLFSR Framework

To address these limitations, the authors propose MLFSR, a novel framework that replaces the Transformer backbone with the Mamba state-space model (SSM). Mamba offers linear complexity ($O(N)$) relative to sequence length while maintaining the ability to model long-range dependencies.

Efficient Subspace Scanning

A primary innovation in MLFSR is the subspace scanning strategy. Directly flattening a 4D light field into a single 1D sequence would create a massive input that exceeds the capacity of the SSM's hidden state. Instead, MLFSR decomposes the 4D structure into manageable 2D subspaces:

  • Spatial-Angular (SA) Scanning: Captures the relationships within a single view and across adjacent views.
  • Epipolar Plane Image (EPI) Scanning: Focuses on the "slope" of light rays, which contains vital information regarding the scene's depth and geometry.

By scanning these planes bi-directionally, the model effectively captures global 4D dependencies without the computational burden of a full 4D sequence.

MGI and SAM Modules

The architecture is built around two core components:

  1. Mamba-based Global Interaction (MGI): This module serves as the primary engine for learning non-local correspondences across the decomposed subspaces.
  2. Spatial-Angular Modulator (SAM): Recognizing that the compression inherent in SSMs can sometimes lose fine-grained local details, the authors introduced SAM. This lightweight convolutional gating mechanism preserves local textures and high-frequency structures that might otherwise be smoothed out.

Transformer-to-Mamba (T2M) Distillation

To ensure that the Mamba-based architecture matches the performance of state-of-the-art Transformers, the authors implemented a Transformer-to-Mamba (T2M) distillation loss. By using a pre-trained Transformer model (EPIT) as a "teacher," the MLFSR "student" is trained to align its deep feature representations with the high-quality outputs of the Transformer. This hybrid approach combines the representational power of Transformers with the inference efficiency of Mamba.

Experimental Evaluation

The model was rigorously evaluated using the BasicLFSR benchmark, encompassing synthetic (HCI-new, HCI-old) and real-world (EPFL, INRIA, STFGantry) datasets.

Efficiency and Scalability

The most striking result is the model's scalability. When processing a $384 \times 384$ resolution input, MLFSR utilized approximately 23.5 GB of VRAM. In contrast, every major Transformer competitor (including DPT, LFT, and EPIT) failed due to OOM errors on a single NVIDIA RTX 3090. Furthermore, MLFSR demonstrated a 2x to 5x speedup in inference time compared to Transformer-based methods.

Reconstruction Quality

MLFSR achieved state-of-the-art performance, outperforming all CNN-based methods and rivaling or exceeding the best Transformers. On the STFGantry dataset for $4\times$ super-resolution, it achieved a PSNR of 32.21 dB. Visually, because the model processes the full image rather than patches, it eliminates the "grid" or "line" artifacts common in previous high-resolution reconstructions.

Conclusion and Future Work

MLFSR demonstrates that linear-complexity state-space models are a viable and efficient alternative to Transformers for high-dimensional imaging tasks. By enabling full-image processing of 4D light fields, it sets a new standard for both speed and quality in LFSR.

While the memory footprint is significantly reduced compared to Transformers, 23GB of VRAM remains high for consumer applications. Future research will likely focus on even more efficient scanning patterns and the application of this Mamba-based architecture to other high-dimensional domains, such as volumetric medical imaging and video processing.

Summary updated

BibTeX
@inproceedings{gao2024mamba,
  author = {Ruisheng Gao and Zeyu Xiao and Zhiwei Xiong},
  title = {{Mamba-Based Light Field Super-Resolution with Efficient Subspace Scanning}},
  booktitle = {ACCV},
  year = {2024},
  doi = {10.1007/978-981-96-0917-8\_24},
}
Figure