In standard computer vision architectures, images are typically treated as static grids or flattened into sequences using a rigid, spatial logic—like a raster scan that reads pixels from top-left to bottom-right. While this approach is computationally convenient, it ignores a fundamental truth of visual perception: not all pixels are created equal.
A new line of research suggests that the order in which a model "sees" an image is just as important as the content itself. By reordering image patches based on their semantic importance—placing the most informative regions at the beginning of the sequence—models can learn more robust representations and avoid the "signal dilution" that plagues traditional sequence-based architectures.
The Failure of Spatial Scanning
When we use autoregressive models or State Space Models (SSMs) like Mamba for vision, we must convert a 2D image into a 1D sequence. The default choice is usually a raster scan. However, as Jun Chen and Wei Dong argue in ECMamba, this arbitrary ordering forces the model to spend significant computational energy on redundant background noise before it ever reaches the primary object of interest.
In recurrent or stateful architectures, the model’s internal "memory" (the hidden state) is finite. If a model processes thousands of "empty" sky pixels before reaching a small, critical object, the information from the beginning of the sequence may be diluted or forgotten by the time the object is fully processed. Kui Jiang and Xin Xu demonstrate this in RD-UIE, showing that standard scanning in underwater imagery often allows the vast, hazy background to overwhelm the features of specific targets like fish or coral.
Anchoring on Semantic Centers
The core intuition behind semantic ordering is to mimic human visual attention. When humans look at a photo, we don't scan it like a printer; we lock onto the "semantic center"—the most meaningful object—and then explore the context around it.
Kaiyou Song and Shan Zhang formalize this in SemAIM. Their approach identifies a semantic center by calculating the similarity between individual patches and a global image representation. The model then processes patches in a high-to-low importance sequence, moving from the central object outward to the background.
This "anchoring" effect is crucial for predictive learning. In DSeq-JEPA, Xiangteng He and Shivam Chandhok show that predicting missing image parts is significantly more effective when the model starts with the most discriminative regions. By establishing a strong semantic foundation first, the model can more accurately infer secondary details and background context.
Protecting the Hidden State
Beyond improving prediction, semantic reordering serves as a structural safeguard for the model's internal state. In dense or complex visual environments, signals from different categories can become "entangled" if processed in a simple spatial order.
Xiaoqi Zhao and Lihe Zhang address this in their work on Power Battery Detection. By semantically regrouping tokens by predicted category before they enter a Mamba-based sequence, they prevent the model's memory from being cluttered by alternating foreground and background signals. This ensures "category consistency" within the model's state.
Similarly, Shucong Li and Zijie Hong introduce a "Priority-Guided" mechanism in DEPFusion. They use a scoring network to identify regions of interest and rearrange the sequence so that high-value features are positioned where the architecture’s feature retention is highest.
Why It Works: The Intuition of Order
The success of these methods across diverse tasks—from person re-identification in CLIMB-ReID by Chenyang Yu to underwater enhancement—points to three key advantages:
- Noise Filtering: By placing semantically relevant tokens in close proximity, models like those proposed by Huchuan Lu can effectively ignore background noise that would otherwise interfere with the primary subject.
- Efficient Propagation: In SSMs, the hidden state acts as a compressed summary of everything seen so far. Prioritizing informative regions ensures that this summary is built from "high-value" data early on, making the subsequent processing of less important regions more context-aware.
- Hierarchical Alignment: Visual objects are naturally hierarchical. Semantic ordering aligns the model's intake of information with this hierarchy, allowing it to understand the "what" (the object) before trying to solve the "where" (the spatial context).
By breaking free from the grid and treating images as semantically ranked sequences, these researchers are moving vision models closer to the selective, priority-driven way that biological systems perceive the world.