AdaGlimpse: Active Visual Exploration with Arbitrary Glimpse Position and Scale

Adam Pardyl, Michal Wronka, Maciej Wolczyk, Kamil Adamczewski, Tomasz Trzcinski, Bartosz Zielinski

Abstract

Active Visual Exploration (AVE) is critical for embodied agents operating under resource constraints. Traditional AVE frameworks typically restrict agents to sampling from a rigid grid of fixed-size patches, failing to leverage the full potential of modern pan-tilt-zoom hardware. We introduce AdaGlimpse, a novel framework that enables agents to select glimpses at arbitrary positions and scales. By integrating an input-elastic Vision Transformer with a Soft Actor-Critic reinforcement learning agent, AdaGlimpse learns task-specific exploration strategies. Our results demonstrate that AdaGlimpse matches or exceeds state-of-the-art performance in classification and reconstruction while utilizing up to 40% fewer pixels.

Introduction

In real-world scenarios, agents such as drones or autonomous robots must process high-resolution visual data under strict hardware limitations, including battery life and computational bandwidth. Active Visual Exploration (AVE) addresses this by teaching agents to selectively sample informative "glimpses" of a scene. However, existing software often imposes a "stiff" sampling regime, forcing selections from a pre-defined grid. This creates a disconnect with hardware like pan-tilt-zoom (PTZ) cameras that can smoothly adjust focus and scale.

AdaGlimpse bridges this gap by providing a continuous action space for exploration. As shown in Figure 1, the model can iteratively refine its focus, starting from a low-resolution global view and zooming into specific regions of interest to confirm a classification or detail a reconstruction.

Figure 1: Iterative active exploration process where the agent zooms in on a dog to achieve high-confidence classification.

Methodology

The AdaGlimpse framework is built upon two primary components: an input-elastic vision backbone and a reinforcement learning (RL) agent.

Input-Elastic Vision Transformer

Standard Vision Transformers (ViTs) typically operate on a fixed grid. AdaGlimpse utilizes a modified ViT architecture capable of processing patches of arbitrary sizes and locations. This is facilitated by "ElasticViT" positional encodings, which map each glimpse to its precise global coordinates, allowing the model to maintain spatial context regardless of the sampling scale.

Reinforcement Learning for Glimpse Selection

To determine the optimal sequence of glimpses, AdaGlimpse employs a Soft Actor-Critic (SAC) RL agent. Unlike discrete models, the SAC agent operates in a continuous action space, outputting a tuple $(x, y, z)$ representing the coordinates and the zoom level (scale) of the next glimpse. The agent is trained to maximize a reward based on the reduction of task loss (e.g., classification error or reconstruction RMSE).

Figure 2: The AdaGlimpse architecture, featuring an encoder-task head pipeline and an RL agent that determines the next glimpse based on patch importance and latent representations.

Experiments and Results

The model was evaluated on several standard computer vision benchmarks, including ImageNet-1k, SUN360, ADE20K, and MS COCO.

Performance and Efficiency

AdaGlimpse demonstrates superior "pixel economy," achieving high accuracy with significantly less data:

  • Classification: On ImageNet-1k, AdaGlimpse reached 77.54% accuracy, matching the STAM baseline while requiring 40% fewer pixels.
  • Reconstruction: In zero-shot scenarios on SUN360, the model achieved lower RMSE using only 6% of total pixels, compared to 18% used by competing methods.
  • Segmentation: The model performed on par with state-of-the-art AME while requiring 35% less visual information.

Task-Specific Strategies

The RL agent learns distinct strategies based on the objective. For reconstruction, it tends to sample broadly across the image to maximize coverage. For classification, it identifies salient features and quickly "snaps" to the center of objects to confirm labels, mimicking human foveal vision.

Discussion and Limitations

While AdaGlimpse offers a significant leap in efficiency, challenges remain. The Vision Transformer backbone's computational cost scales quadratically with the number of patches, suggesting a need for more efficient architectures like Selective Structured State-Space Models (e.g., Mamba) in future iterations. Additionally, while the model excels on static images, extending this "zoom and explore" logic to dynamic video feeds and real-world robotic hardware is a key area for future research.

Summary updated

BibTeX
@inproceedings{pardyl2024adaglimpse,
  author = {Adam Pardyl and Michal Wronka and Maciej Wolczyk and Kamil Adamczewski and Tomasz Trzcinski and Bartosz Zielinski},
  title = {{AdaGlimpse: Active Visual Exploration with Arbitrary Glimpse Position and Scale}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72664-4\_7},
}
Figure