Connecting Gaze, Scene, and Attention: Generalized Attention Estimation via Joint Modeling of Gaze and Scene Saliency

Eunji Chong, Nataniel Ruiz, Yongxin Wang, Yun Zhang, Agata Rozga, James Rehg

TL;DR

This paper introduces a multi-task learning framework for generalized attention estimation, which jointly models 3D gaze direction and scene saliency to predict where a person is looking. Unlike previous methods that assume a subject is always looking at something within the image, this model explicitly identifies when a gaze target is out-of-frame, achieving state-of-the-art results on gaze-following benchmarks and naturalistic social interaction datasets.

What Problem Does This Paper Address?

Traditional gaze estimation research has largely operated in "silos." Some models focus on predicting 3D gaze vectors in controlled lab settings, while others (gaze-following) try to pinpoint which object in a photo a person is attending to.

However, real-world social scenarios are messy. As shown in the figure below, a person might be looking at a salient object in the scene (a), looking at something entirely outside the camera's field of view (b), or looking directly at the camera/viewer (c).

Fig. 1. We present a model which aims to understand different aspects of the gener- alized attention prediction problem which are exemplified above. In (a) subjects are looking at a salient object in the scene, in (b) the subject is looking somewhere outside of the frame and in (c) the subject is looking at or around the camera. Our model predicts the 3D gaze vector of subjects in each of these images, along with the location of the gaze fixation in the image, if it exists. Our model explicitly determines if the subject’s gaze target lies outside the frame.

Existing models often fail in cases (b) and (c) because they are trained under the assumption that a fixation point must exist within the image boundaries. The authors tackle this "generalized visual attention prediction" problem by creating a system that understands both the geometric "where" (gaze angle) and the semantic "what" (scene saliency), while also estimating the "strength" or likelihood that the fixation is actually occurring within the frame.

Methods

The authors propose a deep neural network with two primary pathways using ResNet-50 backbones:

  1. Face Pathway: Processes a crop of the subject's face to estimate the 3D gaze angle (yaw and pitch).
  2. Scene Pathway: Processes the entire image to generate a subject-dependent saliency heatmap.

These pathways are integrated to produce three outputs:

  • 3D Gaze Vector: The "where" component.
  • Heatmap: The "what" component, representing potential fixation targets.
  • Fixation Likelihood: A single-valued measure (0 to 1) indicating if the subject is looking inside or outside the frame.
Fig. 2. Overview of our approach. Full scene image, a person’s face location whose visual attention we want to predict, and the corresponding close-up face image is pro- vided as input. Scene and face images go through separate convolutional layers in such a way that (a) (b) and (c) contribute to person-centric saliency, and (b) and (d) con- tribute to gaze angle prediction. In the very last layer, the final feature vectors for these two tasks are combined to estimate how likely the person is actually fixating at a gaze target within the observable scene.

A key innovation is the "project and compare" loss. The model projects the estimated 3D gaze ray onto the 2D image plane and compares it to the vector connecting the subject's head to the ground-truth gaze target. By minimizing the cosine distance between these two vectors, the model enforces geometric consistency between the predicted gaze angle and the predicted fixation point.

The project and compare loss enforces geometric consistency between the 3D gaze ray and the 2D fixation target.

Datasets

Because no single dataset covers all aspects of generalized attention, the authors employ a cross-domain learning approach, training on three distinct sources:

  • GazeFollow: Real-world images with 2D fixation annotations. The authors added new binary labels (14,564 images) to identify "looking outside" cases.
  • EYEDIAP: A lab dataset providing precise 3D gaze angles.
  • SynHead: A synthetic dataset with large head pose variations, used to complement the limited range of lab-based datasets.
Fig. 4. Examples of datasets used to train our model. Left two: SynHead, middle two: EYEDIAP, right two: GazeFollow.

For evaluation, they also used the Multimodal Dyadic Behavior (MMDB) dataset, which contains video of toddlers in social interactions, providing a rigorous test for generalized attention in unconstrained scenarios.

Key Insights and Ideas

  • Gaze as a Geometric Constraint: Saliency alone is insufficient because a scene might have many interesting objects. By using the 3D gaze vector as a directional prior, the model can "filter" the scene saliency to find the specific object the subject is attending to.
  • The Importance of "Looking Outside": In natural social interactions (like the MMDB toddler data), subjects look out-of-frame more than 50% of the time. Modeling this explicitly is a requirement for any system intended for real-world deployment.
  • Multi-Task Synergy: Training on 3D gaze (EYEDIAP) actually improves 2D fixation prediction (GazeFollow). The auxiliary task of angle regression provides a stronger supervisory signal for the shared features in the face pathway.

Key Results

  • Gaze-Following: On the GazeFollow benchmark, the model achieved a state-of-the-art AUC of 0.896, outperforming the original GazeFollow model (0.878).
  • 3D Gaze Estimation: The model achieved an angular error of 6.4° on EYEDIAP, which is competitive with models trained exclusively for gaze estimation, despite being a multi-task generalist.
  • Generalized Attention (MMDB): In the challenging task of classifying whether a subject is looking at a specific grid square or looking out-of-frame, the proposed model achieved an Average Precision of 0.902, significantly higher than baselines like Random Forest (0.773) or SVM (0.624).

Limitations and Future Work

The authors identify two main failure modes:

  1. Occlusion: The model struggles when a target is within the frame but hidden behind another object.
  2. Depth Ambiguity: Without explicit 3D scene understanding, the model sometimes predicts fixations on background objects that happen to align with the gaze ray, even if the subject is looking at something much closer.
Failure cases involving occlusion and lack of depth understanding.

Future work could involve integrating depth maps or 3D scene reconstruction to resolve these ambiguities and further improving datasets with more diverse "looking outside" annotations.

Summary updated

BibTeX
@inproceedings{chong2018connecting,
  author = {Eunji Chong and Nataniel Ruiz and Yongxin Wang and Yun Zhang and Agata Rozga and James Rehg},
  title = {{Connecting Gaze, Scene, and Attention: Generalized Attention Estimation via Joint Modeling of Gaze and Scene Saliency}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01228-1\_24},
}
Figure