Learning to See What You Need: Gaze Attention for Multimodal Large Language Models

Junha Song, Byeongho Heo, Geonmo Gu, Jaegul Choo, Dongyoon Han, Sangdoo Yun

TL;DR

Gaze Attention is a novel, dynamic attention mechanism for Multimodal Large Language Models (MLLMs) that mimics human vision by selectively focusing on task-relevant image or video regions at each decoding step. By routing queries to spatially grouped "gaze regions" and pairing them with learnable global context tokens, the method slashes visual KV cache entries by up to 90% and attention FLOPs by over 80% while matching or exceeding the performance of dense-attention baselines.

What Problem Does This Paper Address?

When humans describe a scene, we don't stare blankly at the entire image at once; our eyes dart dynamically to the specific regions relevant to what we are saying. In contrast, standard MLLMs suffer from "diluted focus" because they attend to every single visual token at every single generation step. This creates massive computational overhead, particularly for high-resolution images and long videos.

Prior attempts to fix this fall into two main camps: token compression (shrinking the visual tokens before they hit the LLM) and static KV cache eviction (dropping low-importance visual cache entries based on the initial question). However, both approaches lock in their visual choices upfront. If the model needs fine-grained details later in a long generation sequence, that information is already lost.

Overview of visual attention approaches compared to Gaze Attention.

Methods

The authors introduce Gaze Attention, which dynamically updates what the model "looks at" during each step of text generation. The architecture consists of three core components:

  1. Gaze Regions & Descriptors: Visual key-value (KV) caches are reshaped into their original spatial/temporal grids and partitioned into small blocks (e.g., $6 \times 6$ patches). Each region is summarized by a lightweight descriptor computed via mean-pooling the keys in that block.
  2. Dynamic Visual Routing: At each decoding step, the text query computes a similarity score against these region descriptors. The model then selects only the top-$K$ most relevant regions to attend to, ignoring the rest of the visual cache for that step.
  3. Learnable Context Tokens: Restricting focus to local regions can cause the model to lose the "big picture." To fix this, a small set of learnable context tokens are appended to each frame. These tokens compress global visual information and remain permanently visible to all text queries.
The Gaze Attention mechanism workflow, showing region summarization, routing, and global context preservation.

To ensure stable training, the authors also utilize a Progressive Top-K Schedule. Because the relationship between text queries and visual descriptors is weak early in training, the model starts with dense attention and gradually decreases $K$ (the number of active regions) as training progresses.

Datasets

The models were trained and evaluated using the Cambrian codebase framework:

  • Training: Pretrained on the Cambrian-Align dataset for projector alignment, followed by full-parameter fine-tuning on Cambrian-7M (for images) and a 20% subset of Cambrian-S-3M (for videos).
  • Evaluation: The authors tested their approach across 13 image benchmarks (including MME, MMMU, MathVista, GQA, and ChartQA) and 6 video benchmarks (including VideoMME, MLVU, EgoSchema, and LongVideoBench).

Key Insights and Ideas

  • Emergent Human-Like Gaze: Remarkably, without any explicit gaze annotations or supervision, the model naturally learns to shift its focus based on the next-token prediction signal. For example, when generating the word "dog," it routes attention to the dog patch; when generating "cat," its attention shifts to the cat patch.
  • Global Context is a Safety Net: Completely removing the global context tokens causes a significant performance drop (-1.5 points). The global tokens act as a persistent summary that guides the local routing mechanism.
  • Static Eviction Fails on Single Images: While prior methods like HERMES or InfiniPot-V work well on long videos where they can afford to drop frames, they suffer severe performance degradation on single-image tasks because their upfront pruning is too aggressive. Gaze Attention maintains the full cache in memory (or offloaded) and dynamically indexes it, preserving fine-grained details.
Visualization showing concentrated, interpretable attention maps generated by Gaze Attention compared to diffuse dense attention.

Key Results

  • Efficiency Gains: In an 8-frame video profiling setup, Gaze Attention reduced attention FLOPs by 81.6% and KV-cache memory usage by 79.8% compared to dense attention.
  • Image QA Performance: On Cambrian-4B, Gaze Attention with only 144 attended visual tokens achieved a 69.0% average score across 13 benchmarks, actually outperforming the dense baseline (68.6% with 576 tokens).
  • Video QA Performance: On Cambrian-7B, Gaze Attention achieved an average score of 60.4% using a restricted 1.5K KV cache budget, outperforming both the dense baseline (60.0%) and HERMES (60.1%).

Limitations and Future Work

The authors note three primary areas for improvement:

  1. Fixed-Size Regions: The current spatial grid partitioning is rigid and may cut across semantic object boundaries. Implementing content-adaptive region partitioning could improve routing accuracy.
  2. Simple Descriptor Design: Mean-pooling treats all tokens within a region equally. Incorporating entropy-based importance weighting could yield more discriminative descriptors.
  3. Lack of Explicit Gaze Supervision: While the model learns gaze implicitly, providing explicit pointing signals during training (e.g., via automated sentence parsing combined with open-vocabulary object detectors) could further ground the model's vision-language alignment.

Summary updated

Abstract

When humans describe a visual scene, they do not process the entire image uniformly; instead, they selectively fixate on regions relevant to their intended description. In contrast, current multimodal large language models (MLLMs) attend to all visual tokens at each generation step, leading to diluted focus and unnecessary computational overhead. In this work, we introduce Gaze Attention, a novel mechanism that enables MLLMs to selectively attend to task-relevant visual regions during generation. Specifically, we spatially group visual embeddings-stored as key-value caches-into compact gaze regions, each represented by a lightweight descriptor. At each decoding step, the model dynamically selects the most relevant regions and restricts attention to them, reducing redundant computation while enhancing focus. To mitigate the loss of global context caused by localized attention, we further propose learnable context tokens appended to each image or frame, allowing the model to maintain holistic visual awareness. Extensive experiments on image and video understanding benchmarks demonstrate that Gaze Attention matches or surpasses dense-attention baselines, while using up to 90% fewer visual KV entries in the attention computation.
BibTeX
@inproceedings{song2026learning,
  author = {Junha Song and Byeongho Heo and Geonmo Gu and Jaegul Choo and Dongyoon Han and Sangdoo Yun},
  title = {{Learning to See What You Need: Gaze Attention for Multimodal Large Language Models}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=92jaLnyre7},
}
Figure