MTGS: A Novel Framework for Multi-Person Temporal Gaze Following and Social Gaze Prediction

Anshul Gupta, Samy Tafasca, Arya Farkhondeh, Pierre Vuillecard, Jean-marc OdobezNeurIPS 2024

In the realm of computer vision, understanding where people are looking is a gateway to understanding human intent. Whether it's a robot navigating a crowded room or an AI analyzing social dynamics in a video, "gaze following" is a critical skill. However, most existing models treat this as an isolated task—calculating a single person's gaze vector from a static image.

Multi-person gaze prediction in action

A new paper from researchers at the Idiap Research Institute and EPFL, titled MTGS, argues that gaze is inherently social and temporal. By treating multiple people and time sequences as a unified problem, they’ve set a new state-of-the-art for understanding not just where we look, but why we look together.

TL;DR

MTGS (Multi-person Temporal Gaze and Social) is a transformer-based framework that jointly predicts gaze targets and social gaze labels (like eye contact or shared attention) for everyone in a video simultaneously. By introducing a unified dataset called VSGaze and a novel "person-token" architecture, the model leverages social context and temporal dynamics to outperform specialized, single-task models.

What Problem Does This Paper Address?

Current gaze-following research suffers from three main "silos":

  1. The Single-Person Limitation: Most models process one person at a time. If a scene has five people, the model runs five times, ignoring the fact that people often look at each other or the same objects.
  2. The Static Bias: Most systems look at individual frames. They struggle with "blink-and-miss-it" moments or subtle head movements that only make sense over time.
  3. Task Separation: Predicting a 2D gaze point (geometry) and predicting social labels like "Shared Attention" (semantics) are usually handled by different models or as an afterthought.

The authors tackle these gaps by asking: Can we build a single, unified architecture that understands the geometry and the social meaning of gaze for everyone in a scene at once?

Methods

The MTGS framework is built on a sophisticated transformer-based architecture designed specifically for video input and multi-agent interaction.

MTGS Architecture Diagram
  • Person-Specific Tokens: Instead of just processing image patches, the model's Person Module represents each person in the scene as a unique "token." These tokens carry information about the person’s head location and gaze embeddings.
  • Interaction Module: This is the heart of the system. It uses a series of transformer blocks to allow Person-to-Scene and Scene-to-People interactions. Person tokens "attend" to frame tokens to find salient objects, while frame tokens are updated with person-specific information.
  • Temporal Gaze Processor: The model doesn't just look at the current frame; it uses a temporal encoder to capture gaze dynamics (e.g., distinguishing between a person looking down and a person simply blinking).
  • Joint Prediction: The Prediction Module features multiple "heads" that branch off the interaction module. One predicts a Gaze Heatmap (where the target is), while others predict Social Gaze Labels:
  • LAH (Looking at Humans): Is Person A looking at Person B?
  • LAEO (Looking at Each Other): Is there mutual eye contact?
  • SA (Shared Attention): Are two or more people looking at the same object?

Datasets

To train such a versatile model, the researchers needed a better "source of truth." They introduced VSGaze, a massive unified dataset created by merging and cleaning several existing benchmarks (GazeFollow, VAT, ChildPlay, VideoCoAtt, and UCO-LAEO).

They used automated tools (YOLOv5 and ByteTrack) to fill in missing head tracks and manually verified the data to ensure that social labels (like who is looking at whom) were consistent across all sources. This resulted in a dataset with over 700k gaze points and hundreds of thousands of social interaction labels.

Key Insights and Ideas

  • Social Cues Improve Geometry: One of the most significant findings is that adding a "social loss" during training actually makes the 2D gaze point prediction more accurate. Knowing that a person is likely looking at another human helps the model refine the geometric gaze vector.
  • The Power of Tokens: By representing people as tokens, the model can handle a variable number of people in a single inference pass. This is not only more efficient but allows the transformer to naturally model the relationships between those tokens (people).
  • Semantic vs. Geometric Metrics: The paper highlights that a "good" gaze model shouldn't just be measured by pixel distance. If a model's predicted gaze point is 5 pixels off but lands on a person's face, it is semantically "better" than a model that is 3 pixels off but lands on a blank wall.

Key Results

MTGS achieved state-of-the-art results across multiple benchmarks:

  • Multi-Person Efficiency: It outperforms previous multi-person models and remains competitive with (or beats) expensive single-person models.
  • Social SOTA: On the UCO-LAEO dataset (mutual gaze), it achieved an AP of 0.974, significantly higher than previous specialized models (which hovered around 0.86).
  • Shared Attention: The model showed a massive jump in "Shared Attention" accuracy because it treats SA as a direct classification task between people rather than a geometric post-processing step.

Limitations and Future Work

While MTGS is a leap forward, the authors note a few hurdles:

  • Output Alignment: In about 13% of cases, the geometric gaze target and the social label don't perfectly align (e.g., the heatmap points to a person, but the social decoder says they aren't "Looking at a Human").
  • Temporal Gains: While temporal information helped significantly with Shared Attention, it provided only modest gains for standard distance metrics. The authors suggest that more complex temporal architectures or better metrics for "gaze shifts" are needed.
  • Auxiliary Signals: A brief experiment in the appendix showed that adding "speaking status" (who is talking) further improved results, suggesting that future versions could incorporate audio or body pose for even deeper social understanding.

MTGS represents a shift toward "socially aware" computer vision, moving us closer to machines that can truly read a room.

Summary updated

BibTeX
@inproceedings{gupta2024mtgs,
  author = {Anshul Gupta and Samy Tafasca and Arya Farkhondeh and Pierre Vuillecard and Jean-marc Odobez},
  title = {{MTGS: A Novel Framework for Multi-Person Temporal Gaze Following and Social Gaze Prediction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=ALU676zGFE},
}
Figure