Introduction
Understanding human visual attention is a cornerstone of advanced computer vision, providing critical context for tasks such as action recognition and human-robot interaction. While significant progress has been made in "ego-centric" gaze prediction (what a person sees through their own eyes), predicting "third-person" gaze—how an external observer perceives another's actions—remains a formidable challenge. Human gaze is inherently complex and influenced by top-down cognitive processes that filter task-relevant information from environmental noise. This paper presents a novel Reinforcement Learning (RL) agent based on the Decision Transformer architecture designed to simulate the eye movements of a human observer watching third-person videos.
Methodology
The proposed approach treats gaze prediction as a conditional sequence-modeling problem, leveraging the strengths of Transformers and RL.
Architecture and Visual Encoding
Instead of traditional RL frameworks that struggle with long-term temporal dependencies, the model utilizes a Decision Transformer. It predicts future gaze coordinates by processing a sequence of past states, actions, and "returns-to-go" (expected future rewards). To process visual input, a pretrained ResNet-50 serves as the encoder. To mimic human physiology, the model applies a "foveal" mask, focusing high-resolution processing on the area surrounding the predicted gaze point while blurring the periphery.
Reinforcement Learning Loop
The agent is trained to maximize a reward defined by the negative Euclidean distance between its predicted gaze and ground-truth human gaze. By conditioning the Transformer on high target returns, the model learns to generate gaze sequences that closely mirror human behavior rather than simply imitating individual points.
Experimental Setup
The model was evaluated using a dataset generated in the VirtualHome simulator, featuring 1,311 videos of 18 household activities (e.g., cooking, cleaning) across four room types. The ground truth consists of high-precision eye-tracking data (1200 Hz) from 13 participants watching these videos from multiple static, third-person perspectives.
Key Results and Analysis
Gaze Prediction Performance
The proposed model significantly outperformed existing baselines, including Behavioral Cloning (BC) and Structured Gaze Modeling. As shown in the performance comparison table, the model achieved a Mean Distance Error of 117 pixels on the X-axis and 55 pixels on the Y-axis, alongside a Mean Angular Error of 3.31°.
Downstream Impact on Action Recognition
A primary goal of this research was to determine if predicted gaze could serve as a viable proxy for real human gaze in automated systems. When integrated into a gaze-guided action recognition framework, the RL-predicted gaze achieved 40% accuracy and an 18% success rate. While this remains below the performance of actual human gaze (61% accuracy), it represents a massive improvement over standard video-based models like I3D, which achieved only 12% accuracy.
Discussion and Conclusion
The results demonstrate that treating gaze as a sequence-modeling task allows the model to capture the long-range temporal dependencies inherent in human attention. Furthermore, the superiority of the RL approach over simple Behavioral Cloning suggests that the agent's ability to explore and learn from errors is crucial for mastering nuanced visual attention patterns.
While the model excels in simulated environments, future work will focus on its generalizability to "messy" real-world videos, diverse camera angles, and more dynamic lighting conditions. Nonetheless, this research proves that automated gaze prediction can effectively replace human-in-the-loop requirements for complex computer vision tasks.
Summary updated