NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Mind the GAP: Glimpse-based Active Perception improves generalization and sample efficiency of visual reasoning

Oleh Kolner, Thomas Ortner, Stanisław Woźniak, Angeliki Pantazi

Standard Artificial Neural Networks (ANNs) typically process images "holistically"—looking at every pixel in parallel. While highly effective for object recognition, this approach struggles with visual reasoning: understanding abstract relationships between objects (e.g., "Are these two shapes the same?" or "Is object A inside object B?").

Consequently, current AI models often fail to generalize these rules to Out-of-Distribution (OOD) scenarios. For instance, a model trained to recognize "sameness" using circles might fail when shown squares. Humans, however, excel at this through active vision. We do not process everything at once; instead, we move our eyes to "glimpse" salient parts of a scene. This paper argues that the low-dimensional spatial information of where we look provides a structural scaffold that helps us understand relations independently of what the objects actually look like.

To bridge this gap, researchers have developed Glimpse-based Active Perception (GAP), a brain-inspired vision system that factorizes an image into visual content and spatial locations, achieving state-of-the-art performance in visual reasoning.

The GAP Framework

The authors introduce the GAP framework to mimic human visual processing. Instead of analyzing the entire image simultaneously, GAP sequentially extracts high-resolution glimpses from salient regions.

Overview of the Glimpse-based Active Perception (GAP) architecture, separating visual processing into 'What' and 'Where' pathways.

The architecture relies on separating the visual stream into two distinct pathways:

  • "What" (Visual Content): A glimpse sensor extracts high-resolution visual features around a fixated point.
  • "Where" (Spatial Locations): The raw 2D coordinates of the glimpse are recorded.

These dual sequences are then fed into a specialized downstream architecture called an Abstractor. The Abstractor uses "Relational Cross-Attention," where the visual "what" information determines how much attention to pay, but the actual relational reasoning is performed on the spatial "where" information.

Saliency and the Glimpsing Process

To determine where to look, GAP employs a biologically inspired saliency mechanism rather than relying on pre-trained object segmenters.

Detailed mechanisms of GAP: (a) saliency extraction, (b) sequential glimpsing with Inhibition of Return, and (c, d) glimpse sensor types.
  1. Saliency Extraction: The model uses "error neurons" (inspired by the primary visual cortex) to identify interesting areas, such as corners or edges.
  2. Winner-Takes-All (WTA) & Inhibition-of-Return (IoR): A WTA strategy picks the single most salient spot to glimpse. To ensure the model explores the whole scene rather than getting stuck on one feature, an IoR mechanism "masks" the fixated spot, preventing the model from looking there again immediately.
  3. Glimpse Sensors: The system can utilize different sensor types, such as multi-scale (capturing varying resolutions) or log-polar/foveal sensors, to extract the "what" features.

Key Insights and Results

The model was evaluated on several rigorous visual reasoning benchmarks, including the Synthetic Visual Reasoning Test (SVRT), Abstract Reasoning Tasks (ART), and more complex variants like CLEVR-ART and Super-CLEVR.

  • State-of-the-Art Accuracy: On the SVRT benchmark, the GAP-Abstractor reached 95.4% accuracy, outperforming prior models like OCRA and Slot-Abstractor.
  • Superior Generalization: The most significant breakthrough is in OOD testing. In SVRT #1-OOD (featuring novel, unseen shapes), GAP achieved 89.6%, crushing the previous best model (GAMR), which trailed at 79.8%.
  • Massive Sample Efficiency: GAP models trained on just 100 samples frequently outperformed standard Transformers trained on 10,000 samples.

Why does it work so well? The factorization is key. Because the reasoning happens primarily on the 2D coordinates ("where"), the model does not care if the object is a circle or a complex polygon—the underlying spatial relation remains the same. By ignoring uninformative background pixels and focusing only on salient glimpses, the model avoids the "superfluous information" that often causes standard Transformers to overfit.

Limitations and Future Directions

While highly effective, the GAP framework has a few limitations. The current "error neuron" saliency map is relatively simple; in highly complex scenes (like CLEVR-ART), it can sometimes be distracted by high-contrast shadows or reflections rather than the objects themselves. Additionally, because the model processes glimpses sequentially, it is inherently slower in "wall-clock time" per image compared to parallel holistic models, despite being vastly more data-efficient.

Future work will explore integrating more advanced, bio-plausible saliency models and scaling the GAP concept to work within Large Language Models (LLMs) to enhance their foundational visual reasoning capabilities.

Summary updated

BibTeX
@inproceedings{kolner2025mind,
  author = {Oleh Kolner and Thomas Ortner and Stanisław Woźniak and Angeliki Pantazi},
  title = {{Mind the GAP: Glimpse-based Active Perception improves generalization and sample efficiency of visual reasoning}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=iXCeQ2m6vT},
}
Figure