OAT: Object-Level Attention Transformer for Gaze Scanpath Prediction
Yini Fang, Jingling Yu, Haozheng Zhang, Ralf van der Lans, Bertram Shi
TL;DR
This work tackles gaze scanpath prediction in cluttered visual scenes by shifting from pixel-level saliency to object-level attention. It introduces the Object Attention Transformer (OAT), an encoder–decoder transformer that embeds objects, includes the target as a token in the encoder, and uses a memory-enabled cross-attention object attention module to predict the next fixated object. Key innovations include a distance-based 2D positional encoding and an object-centric attention mechanism that scales to varying scene sizes and target objects, enabling accurate sequence modeling of gaze. Evaluated on the Amazon book cover dataset and a collected yogurt/wine dataset, OAT achieves state-of-the-art alignment with human scanpaths and demonstrates strong generalization, supported by a novel behavioural-based metric and comprehensive ablations.
Abstract
Visual search is important in our daily life. The efficient allocation of visual attention is critical to effectively complete visual search tasks. Prior research has predominantly modelled the spatial allocation of visual attention in images at the pixel level, e.g. using a saliency map. However, emerging evidence shows that visual attention is guided by objects rather than pixel intensities. This paper introduces the Object-level Attention Transformer (OAT), which predicts human scanpaths as they search for a target object within a cluttered scene of distractors. OAT uses an encoder-decoder architecture. The encoder captures information about the position and appearance of the objects within an image and about the target. The decoder predicts the gaze scanpath as a sequence of object fixations, by integrating output features from both the encoder and decoder. We also propose a new positional encoding that better reflects spatial relationships between objects. We evaluated OAT on the Amazon book cover dataset and a new dataset for visual search that we collected. OAT's predicted gaze scanpaths align more closely with human gaze patterns, compared to predictions by algorithms based on spatial attention on both established metrics and a novel behavioural-based metric. Our results demonstrate the generalization ability of OAT, as it accurately predicts human scanpaths for unseen layouts and target objects.
