Introduction
Predicting human eye movements, or scanpaths, during goal-directed visual search is a cornerstone of developing intuitive Augmented Reality (AR) and Human-Computer Interaction (HCI) systems. However, existing models face two significant hurdles. First is scalability: traditional models rely on fixed object detectors, requiring specific training data for every possible search target. Second is speed: most current architectures generate fixations sequentially (autoregressively), which is too slow for real-time edge applications.
This paper introduces Gazeformer, a transformer-based model that addresses these bottlenecks by enabling "ZeroGaze"—the prediction of gaze patterns for objects never encountered during training—while providing a massive leap in inference speed.
The Gazeformer Architecture
Gazeformer moves away from the traditional "detect-then-predict" paradigm toward a multimodal, end-to-end transformer approach.
The architecture consists of several key components:
- Language-Vision Fusion: Instead of discrete object labels, Gazeformer uses a pre-trained RoBERTa language model to encode search targets. This allows the model to generalize based on semantic similarity; for instance, it can infer search patterns for a "knife" based on its knowledge of "forks."
- Transformer Encoder-Decoder: A transformer encoder processes image features, while a decoder generates the scanpath.
- Parallel Decoding: Unlike sequential models, Gazeformer predicts the entire sequence of fixations—including coordinates $(x, y)$, duration, and termination—simultaneously. This parallelization is the primary driver of its efficiency.
- Continuous Regression: The model directly regresses fixation parameters using Gaussian distributions, capturing the natural variability of human gaze more effectively than discrete grid-based methods.
Experimental Evaluation
The authors evaluated Gazeformer using the COCO-Search18 dataset, focusing on two primary settings:
- GazeTrain: Standard training and testing on the same 18 object categories.
- ZeroGaze: A "leave-one-out" cross-validation where the model is tested on a category it has never seen before.
The model was also tested on "target-absent" trials to evaluate its reliance on scene context versus simple object detection.
Key Results
Gazeformer demonstrates significant improvements across three critical metrics: scalability, effectiveness, and speed.
- Zero-Shot Superiority: In the ZeroGaze task, Gazeformer outperformed state-of-the-art models by 19% to 70% in scanpath similarity. This confirms that the model learns general search strategies based on scene context rather than just memorizing object locations.
- Inference Speed: Gazeformer achieved a 5.7x speedup over previous leading models (e.g., Chen et al.), making it viable for real-time use on wearable devices.
- Robustness: The model successfully generalized to non-canonical names (searching for a "hatchback" after training on "car") and entirely novel objects like "pizza cutters."
Conclusion
Gazeformer represents a significant step forward in human attention modeling. By leveraging semantic language embeddings and parallel transformer decoding, it overcomes the scalability and latency issues of previous models. While some semantic confusion remains (e.g., mistaking a bottle for a cup), the model's ability to generalize to unseen targets and operate at high speeds opens new possibilities for responsive AR and intelligent user interfaces. Future work may extend this architecture to free-viewing tasks or more complex linguistic queries in Visual Question Answering (VQA).
Summary updated