Connecting What To Say With Where To Look by Modeling Human Attention Traces

Zihang Meng, Licheng Yu, Ning Zhang, Tamara L. Berg, Babak Damavandi, Vikas Singh, Amy Bearman

Introduction: The Challenge of Dense Temporal Alignment

While AI has made significant progress in image captioning and visual grounding, these tasks are typically treated as disjoint problems. Traditional grounding is often "sparse," linking individual words to static bounding boxes. However, human perception is dynamic; as we describe a scene, our attention follows a trajectory.

Overview of the vision-and-language tasks involving images, captions, and human attention traces.

This research addresses the challenge of modeling dense, temporal alignment by treating human attention traces—sequential movements recorded while describing an image—as a primary modality alongside pixels and text. By bridging the gap between "what we say" and "where we look," the authors aim to create models that better mimic human narrative flow.

The Mirrored Transformer (MITR) Framework

The core innovation is the Mirrored Transformer (MITR), an architecture designed to exploit the symmetry between generating text from visual focus and predicting visual focus from text. Unlike standard architectures that use a one-way pipeline, MITR is built with symmetry in mind.

The Mirrored Transformer architecture showing the joint modeling of captions, images, and traces with task-specific masking.

Architecture and Training

MITR consists of three integrated modules: an image encoder, a caption encoder-decoder, and a trace encoder-decoder. Because the tasks of generating a caption from a trace and generating a trace from a caption are structurally similar, the model shares parameters across these modules to enhance learning efficiency.

Key methodological contributions include:

  • Trace Encoding: Converting raw (x, y) coordinates into word-aligned bounding box sequences. This smooths out the "jitter" of human movement while maintaining temporal order.
  • Cycle Consistency: A "cycle loss" mechanism ensures that a trace reconstructed from a generated caption matches the original, enabling the model to learn from unpaired data.
  • Local Bipartite Matching (LBM): A new metric using linear programming to evaluate trace similarity within local windows, providing a fairer evaluation than simple point-to-point distance by accounting for variations in length and timing.

Dataset: Localized Narratives

The model was trained and evaluated using the Localized Narratives dataset, encompassing nearly 1 million images from COCO, Flickr30k, ADE20k, and Open Images. This dataset provides a "gold standard" where every word in a long-form caption is timestamped and paired with a corresponding segment of a mouse trace, capturing the dynamic nature of human attention.

Key Insights and Results

The study reveals that modeling attention as a trajectory, rather than a static heatmap, allows the AI to capture the narrative flow of human scene digestion. The authors found that handling "ungroundable" words (like "there are" or "in this image")—which account for roughly 20% of human descriptions—is crucial for effective trace modeling.

Performance Metrics

MITR consistently outperformed standard Transformer baselines across all tasks:

  • Trace Generation: On the COCO dataset, MITR achieved an LBM score of 0.154, a significant improvement over the baseline's 0.204 (lower is better).
  • Captioning Quality: In joint generation tasks, MITR improved the CIDEr score by over 1% absolute and boosted trace generation accuracy by nearly 20% relative compared to non-mirrored models.
  • Symmetry Benefits: Training on Controlled Trace Generation, Controlled Caption Generation, and Joint Generation simultaneously makes the model more robust, proving highly beneficial for downstream tasks like Guided Image Captioning.

Limitations and Future Directions

Human traces are inherently noisy due to imperfect synchronization between speech and movement during data collection. Qualitatively, the model occasionally exhibits repetition in joint generation, describing the same object multiple times because it lacks a "memory" of which parts of the image it has already visited. Future research may explore explicit "coverage" mechanisms to track previously narrated image regions, ensuring more diverse and natural descriptions.

Summary updated

BibTeX
@inproceedings{meng2021connecting,
  author = {Zihang Meng and Licheng Yu and Ning Zhang and Tamara L. Berg and Babak Damavandi and Vikas Singh and Amy Bearman},
  title = {{Connecting What To Say With Where To Look by Modeling Human Attention Traces}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.01249},
}
Figure