Enabling True Global Perception in State Space Models for Visual Tasks

Jie Hui, Zhenxiang Zhang, Wenyu Mi, Jianji WangICLR 2026

TL;DR

This paper proposes a formal mathematical definition for "global perception" in images and introduces GMamba, a module that uses frequency-domain modulation to give State Space Models (SSMs) true global awareness. By leveraging Fast Fourier Transforms, this approach achieves superior performance in visual tasks like segmentation and detection with efficient linear-logarithmic complexity, effectively overcoming the "local bias" of traditional recursive models.

The Challenge of Global Context

In computer vision, "global context"—the ability of a model to understand how a pixel on one side of an image relates to a pixel on the other—is a critical capability. However, the field has historically lacked a rigorous mathematical definition of what "global modeling" actually means, often relying on heuristic descriptions or empirical results rather than theoretical proofs.

Currently, the two dominant paradigms for capturing context face a strict trade-off between reach and efficiency:

  1. Transformers (Self-Attention): These models achieve "true" global reach because every pixel attends to every other pixel simultaneously. However, this parallel modeling comes with a computationally expensive $O(N^2)$ complexity, making it difficult to process high-resolution images efficiently.
  2. State Space Models (SSMs like Mamba): These models are much faster, boasting $O(N)$ complexity, but they are inherently recursive. They process pixels sequentially, relying on "hidden states" that update step-by-step. Consequently, the influence of distant pixels decays exponentially, creating a "local perception" bottleneck where the model effectively "forgets" earlier parts of the sequence.
Comparison of spatial modeling paradigms: Self-Attention, Vanilla Mamba, Vim, and the proposed GMamba.

Methodology: Achieving True Global Perception

The authors tackle this fundamental limitation with a three-pronged strategy:

  • A Formal Mathematical Definition: They define global perception based on gradient dependency. For a model to be truly "global," the gradient of any output pixel with respect to any input pixel must remain above a specific threshold. If the gradient vanishes as spatial distance increases, the model is only exhibiting local perception.
  • Frequency-Domain Modulation (GSSM): To overcome the local bias of SSMs, the authors introduce the Global-aware SSM (GSSM). Instead of feeding raw spatial pixels directly into the SSM, they utilize a Frequency Encoding Module. By applying a 2D Discrete Fourier Transform (DFT), the image is converted into the frequency domain. In this domain, every single coefficient inherently contains information aggregated from the entire spatial image.
  • The GMamba Block: The GSSM is wrapped into a plug-and-play "GMamba" block. It employs an adaptive modulation mechanism to fuse these global frequency features with local spatial features before passing them into the SSM. This injects global awareness into the model's front end, relieving the recursive SSM from having to "discover" long-range context on its own.

Key Insights

  • The Frequency "Aha" Moment: The Fourier Transform acts as a natural "globalizer." Because a single frequency component is calculated using every pixel in the image, modulating an SSM with frequency data mathematically guarantees that every pixel "sees" every other pixel from the very first layer.
  • Linear-Logarithmic Efficiency: By utilizing the Fast Fourier Transform (FFT), the computational complexity becomes $O(N \log N)$. This is only slightly more demanding than Mamba's $O(N)$ but significantly more efficient than the Transformer's $O(N^2)$, hitting a "sweet spot" for high-resolution visual processing.
  • Overcoming Causality: Standard SSMs are causal (they only look at the past), but static images are non-causal (context flows in all directions). Frequency domain modeling is inherently non-causal, making it a much better fit for image data than pure sequence modeling.

Experimental Results

The authors evaluated GMamba across several demanding benchmarks, proving its versatility and power:

  • Superior Segmentation: On the Vaihingen remote sensing dataset—which features complex, large-scale structures requiring broad context—adding GMamba to a ResNet34 baseline boosted the mIoU (mean Intersection over Union) from 81.65% to 84.74%, outperforming specialized models like VMamba and ViM.
  • Plug-and-Play Gains: When integrated into standard CNNs (like ConvNeXt) for general vision tasks on MS-COCO, GMamba consistently provided a ~2-3% performance boost across object detection and instance segmentation with only a marginal increase in parameters.
  • Robustness: GMamba demonstrated significantly better resilience to image noise, blur, and occlusions compared to vanilla SSMs and Transformers. This is likely because the frequency domain captures underlying structural information that survives local pixel-level distortions.

Limitations and Future Work

Despite its robust performance, the paper notes a specific failure case: Tiny Objects. In scenes with dense crowds or very small, closely packed items, GMamba sometimes struggles. The authors hypothesize that the global frequency modulation might "dilute" the sharp, localized high-frequency details necessary for tiny object recognition.

Future work will explore hybrid mechanisms designed to balance this new "True Global Perception" with high-intensity local feature enhancement, ensuring that models can see the forest without losing sight of the smallest trees.

Summary updated

BibTeX
@inproceedings{hui2026enabling,
  author = {Jie Hui and Zhenxiang Zhang and Wenyu Mi and Jianji Wang},
  title = {{Enabling True Global Perception in State Space Models for Visual Tasks}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=96p1eBUVaN},
}
Figure