LookWhere? Efficient Visual Recognition by Learning Where to Look and What to See from Self-Supervision

Anthony Fuller, Yousef Yassin, Junfeng Wen, Tarek Ibrahim, Daniel Kyrollos, James R Green, Evan Shelhamer

Abstract

Vision Transformers (ViTs) are powerful but computationally expensive, particularly as image resolution increases due to the quadratic growth of tokens. We present LookWhere?, a framework that significantly reduces the computational burden of ViTs by learning to selectively process only the most informative regions of an image. By employing a "What-Where Distillation" strategy, a lightweight "selector" model identifies critical patches from a low-resolution thumbnail, allowing a larger "extractor" model to focus its capacity on a small subset of high-resolution patches. Our method achieves up to a 34× reduction in FLOPs and a 6× inference speedup on high-resolution tasks without compromising accuracy.

Introduction

The success of Vision Transformers in computer vision is tempered by their high computational cost. Because the number of tokens grows quadratically with input resolution, processing high-definition data—such as satellite imagery, medical scans, or fine-grained classification images—is often prohibitively slow.

Existing efficiency methods typically fall into two categories: token reduction, which prunes redundant tokens after initial processing, and token selection, which often requires expensive task-specific optimization. Both approaches suffer from a "pay to save" problem: significant computation is spent just to determine which parts of the image to discard. LookWhere? sidesteps this by being "economical from the start," avoiding the processing of full high-resolution inputs entirely.

Methodology: The Selector-Extractor Architecture

The core of LookWhere? is a decoupled architecture trained via What-Where Distillation. This process leverages the inherent knowledge of large, self-supervised models to guide a more efficient system.

1. The Teacher Oracle

A heavy, pre-trained self-supervised model (e.g., DINOv2) serves as the teacher. When presented with a full high-resolution image, the teacher provides two critical signals: where it focuses its attention (attention maps) and what features it extracts (token representations).

2. The Selector

The selector is a lightweight model (e.g., a tiny CNN like EfficientNetV2 or a small ViT) that processes only a downscaled, low-resolution version of the input. It is trained to predict the teacher’s high-resolution attention map. The output is a "selector map" that identifies the top-$k$ most important patches for further analysis.

Comparison of teacher attention maps and the predicted selector maps for urban and natural scenes.

3. The Extractor

The extractor is a high-capacity ViT that receives only the $k$ high-resolution patches identified by the selector, supplemented by low-resolution global context. It is trained to reconstruct the teacher's deep representations using this sparse input. During inference, the heavy teacher is discarded, and the system runs only the efficient selector and the sparse extractor.

Experimental Evaluation

The authors evaluated LookWhere? across a wide array of tasks to demonstrate its versatility and efficiency.

  • Standard Benchmarks: On ImageNet-1K, LookWhere? outperformed existing adaptive methods like DTEM and PiToMe, achieving higher accuracy while being 1.36× faster.
  • High-Resolution Tasks: In the Swedish Traffic Signs dataset (994px resolution), the model maintained accuracy while reducing FLOPs by 34× and increasing inference speed by 6×.
  • Fine-Grained & Specialized Domains: The framework showed strong performance on CUB-200-2011 (birds), AID (aerial imagery), and NIH Chest X-ray datasets, proving its ability to generalize across domains.
  • Semantic Segmentation: Unlike many token-pruning methods that degrade local spatial information, LookWhere? improved accuracy on ADE20K while simultaneously reducing compute time.

Key Insights

  • Self-Supervision as a Guide: Large self-supervised models naturally learn to identify salient regions without human labels. Their attention maps provide a robust, task-agnostic supervisory signal for "where to look."
  • Zero-Cost Transfer: A selector trained on ImageNet attention maps generalizes remarkably well to unseen domains, such as medical imaging or remote sensing, without requiring task-specific retraining.
  • Real-World Speedups: By performing selection before heavy processing, LookWhere? achieves actual wall-clock time savings, avoiding the overhead associated with mid-network token pruning.
  • Enhanced Robustness: Interestingly, sparse processing can make the model more robust to certain adversarial attacks, as the selector tends to ignore noisy or irrelevant background pixels.

Conclusion and Future Work

LookWhere? demonstrates that we can achieve massive efficiency gains in ViTs by decoupling the "where" from the "what." By leveraging self-supervised distillation, the model learns to focus its computational budget on the most informative parts of an image. Future research may extend this spatial selection to temporal (video) or spectral (multi-band) dimensions and explore task-specific fine-tuning of the selector to further optimize performance.

Summary updated

BibTeX
@inproceedings{fuller2025lookwhere,
  author = {Anthony Fuller and Yousef Yassin and Junfeng Wen and Tarek Ibrahim and Daniel Kyrollos and James R Green and Evan Shelhamer},
  title = {{LookWhere? Efficient Visual Recognition by Learning Where to Look and What to See from Self-Supervision}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=a1fWrvr72O},
}
Figure