Abstract
Gaze following—identifying where someone is looking and what object they are focused on—is a fundamental task in human-centric computer vision. Traditional approaches rely on multi-stage cascaded pipelines that are slow and prone to error accumulation. We present GTR (Gaze following detection TRansformer), the first unified, single-stage framework that jointly detects human head locations and their gaze targets. By leveraging an end-to-end Transformer architecture, GTR achieves a 9x speedup in inference while significantly outperforming state-of-the-art methods in accuracy across multiple benchmarks, including GazeFollowing, VideoAttentionTarget, and GOO.
Introduction
Identifying a person's focus of attention involves two primary sub-tasks: Gaze-Location Detection (GL-D) and Gaze-Object Detection (GO-D). Historically, these have been treated as a three-step cascaded problem: detecting heads, cropping them for direction prediction, and running a separate object detector.
This traditional approach suffers from several flaws. It is computationally expensive, as it processes individuals sequentially. It is also brittle; a failure in the initial head detector cascades through the entire pipeline. Finally, it ignores the global context that connects people to their environment. GTR addresses these issues by reframing gaze following as a set-based prediction problem, predicting <head location, gaze location, gaze object> triplets simultaneously.
Methods
GTR utilizes a Transformer-based architecture to extract global features and capture long-range dependencies. Unlike previous methods that focus on local head crops, GTR processes the full image to maintain environmental context.
Architectural Components
- Visual Encoder: A hybrid CNN (ResNet) and Vision Transformer (ViT) backbone extracts global features.
- Two-Branch Decoder: The Human Decoder localizes individuals, while the Gaze-Following Decoder predicts gaze targets.
- Weight Guided Embedding (w-GE): This mechanism dynamically links human queries with global scene context, allowing the model to iteratively refine the relationship between a person and salient objects.
- Unified Loss: A bipartite matching loss (similar to DETR) enables end-to-end training without requiring manually cropped head images during inference.
Results and Evaluation
The model was evaluated on several standard benchmarks, including GazeFollowing, VideoAttentionTarget, and the Gaze On Objects (GOO) dataset.
Performance Gains
GTR established new state-of-the-art records:
- Accuracy: It achieved a 12.1 mAP gain on GazeFollowing and an 18.2 mAP gain on VideoAttentionTarget. On the GOO-Real dataset, it improved object detection by 19 mAP—a 45.2% relative improvement.
- Efficiency: GTR operates at approximately 27 FPS, representing a 9x speedup over previous cascaded models (which typically run at 1–3 FPS). This efficiency is particularly notable in crowded scenes, as GTR processes all individuals in parallel.
- Robustness: In "Real" settings where head locations are not pre-labeled, GTR maintains high performance, whereas traditional models suffer significant accuracy drops due to head-detection errors.
Discussion and Limitations
The success of GTR highlights that context is critical for gaze following. By using global attention, the model can associate a person with an object across a room as easily as one nearby. Furthermore, the joint detection approach makes the system more robust to image degradations like blur or noise.
However, limitations remain. GTR can struggle with extreme occlusions where facial features are completely hidden. Additionally, highly salient foreground objects can sometimes "distract" the gaze decoder from more distant true targets. Future work may involve incorporating depth information to better resolve spatial ambiguities in complex 3D environments.
Summary updated