Unifying Top-down and Bottom-up Scanpath Prediction Using Transformers
Zhibo Yang, Sounak Mondal, Seoyoung Ahn, Ruoyu Xue, Gregory Zelinsky, Minh Hoai, Dimitris Samaras
TL;DR
The paper presents HAT, a unified transformer-based framework that predicts both top-down and bottom-up visual attention by integrating a foveated retina-inspired memory and dense per-pixel predictions. By formulating scanpath prediction as sequential dense heatmaps with termination signals, and by maintaining a dynamic working memory updated at each fixation, HAT achieves state-of-the-art performance across target-present, target-absent, and free-viewing tasks, while offering interpretable insights through peripheral contributions. The approach demonstrates strong generalization to unseen scenes and shows competitive results on OSIE and MIT1003, highlighting its robustness and applicability to diverse attention-demanding scenarios. The authors provide extensive ablations, qualitative analyses, and implementation details to validate the architecture's components and its advantages over previous fixation-discretization methods. Overall, HAT advances computational attention by unifying distinct attention controls under a single, interpretable, high-resolution, dense-prediction framework with practical implications for AR/VR and attention-aware processing.
Abstract
Most models of visual attention aim at predicting either top-down or bottom-up control, as studied using different visual search and free-viewing tasks. In this paper we propose the Human Attention Transformer (HAT), a single model that predicts both forms of attention control. HAT uses a novel transformer-based architecture and a simplified foveated retina that collectively create a spatio-temporal awareness akin to the dynamic visual working memory of humans. HAT not only establishes a new state-of-the-art in predicting the scanpath of fixations made during target-present and target-absent visual search and ``taskless'' free viewing, but also makes human gaze behavior interpretable. Unlike previous methods that rely on a coarse grid of fixation cells and experience information loss due to fixation discretization, HAT features a sequential dense prediction architecture and outputs a dense heatmap for each fixation, thus avoiding discretizing fixations. HAT sets a new standard in computational attention, which emphasizes effectiveness, generality, and interpretability. HAT's demonstrated scope and applicability will likely inspire the development of new attention models that can better predict human behavior in various attention-demanding scenarios. Code is available at https://github.com/cvlab-stonybrook/HAT.
