TL;DR
Predicting where a person is looking in first-person video usually results in jittery, unrealistic paths because models guess gaze frame-by-frame or step-by-step. GazeFlow reframes gaze prediction as a trajectory-generation problem: using conditional flow matching, it transforms random noise into smooth, human-like eye-movement paths guided by both visual saliency and overarching task goals. The result is state-of-the-art spatial accuracy and eye movements that actually move like human eyes—unlocking hardware-free eye tracking for VR, robotics, and video compression.
What Problem Does This Paper Address?
First-person (egocentric) video shows us what a camera-wearer sees, but knowing where they are actually looking requires dedicated, fussy eye-tracking hardware. Inferring gaze directly from video pixels—egocentric gaze prediction—is notoriously tricky because human gaze is inherently stochastic. Show the same person the same scene twice, and their eyes won't trace the exact same path.
However, this randomness isn't pure chaos. Human eye movement is shaped by three biological constraints:
- Oculomotor dynamics: Structured temporal rhythms alternating between steady fixations and rapid jumps (saccades).
- Bottom-up saliency: Reflexive attraction to local contrast, motion, or bright objects.
- Top-down task control: Looking ahead at a knife because you are about to chop a tomato.
Existing models struggle to capture all three simultaneously. Per-frame heatmaps ignore temporal smoothness across frames, single-point regression collapses multimodal possibilities into a blurry average, and autoregressive (step-by-step) models accumulate errors over time. The authors ask: how can we generate an entire gaze trajectory at once as a unified, task-aware probability distribution?
Methods
GazeFlow models an entire gaze trajectory across a $T$-frame video clip as a single sample drawn from a joint distribution, built on Conditional Flow Matching (CFM). Instead of predicting coordinates frame by frame, CFM learns a velocity field that iteratively pushes a cloud of $2T$-dimensional Gaussian noise along an Ordinary Differential Equation (ODE) path until it settles into a clean, plausible sequence of $(x, y)$ gaze coordinates.
To guide this transport process, GazeFlow extracts two distinct conditioning signals from a pretrained, LoRA-adapted V-JEPA 2 video backbone:
- Bottom-up pathway (Visual Saliency): Frame-local spatial tokens that capture immediate visual details within each individual frame.
- Top-down pathway (Task Token Bank): A clip-level summary combining a globally pooled video token with $M=4$ learnable task queries (via multi-head cross-attention) that scan the entire video clip to extract high-level intent.
A 6-block Diffusion Transformer (DiT) acts as the velocity network. Inside each block, latent gaze tokens interact across time via time-aware self-attention (using 1D Rotary Position Embeddings, or RoPE, to track relative frame distances), read frame-local visual saliency, and query the global task bank. For videos longer than 64 frames, GazeFlow processes overlapping windows and linearly blends trajectories in the overlap.
Datasets
The authors train and evaluate GazeFlow on two standard egocentric video benchmarks featuring ground-truth eye-tracker recordings (no new datasets are introduced):
- EGTEA Gaze+: First-person cooking videos (640×480 at 24 fps), comprising 8,299 training and 2,022 validation clips, annotated with fine-grained verb-noun actions (e.g., "cut tomato").
- Ego4D: A diverse collection of daily activities; the authors use the gaze-annotated subset (1088×1080 at 30 fps) with 12,178 training and 5,202 validation clips.
Key Insights and Ideas
- Emergent task understanding without supervision: Even though GazeFlow is only trained to predict eye coordinates—never action labels—linear probing reveals its learned task-token bank predicts 19 cooking verbs with 76.0% Top-1 accuracy (and 98.7% Top-5). Knowing where someone looks naturally forces the network to figure out what they are doing.
- Attention heads mimic human cognitive modes: Inspecting the network's temporal self-attention reveals specialized "look-ahead" heads (anticipating future actions) and "look-back" heads (verifying completed actions)—directly mirroring well-known phenomena in human cognitive neuroscience.
- Relative timing beats absolute timing: Swapping relative temporal RoPE for standard absolute positional embeddings barely dents per-frame spatial accuracy, yet degrades gaze displacement dynamics (JSD) by ~2.5×. Oculomotor physics depend on how far apart two moments are in time, not where they sit in an arbitrary video clip.
- Flow matching outpaces diffusion at low steps: Compared to a standard diffusion objective on the exact same architecture, CFM maintains strong performance even when Euler integration steps are slashed from 50 down to 5 (F1 of 0.506 vs. diffusion's collapse to 0.359), enabling a 4.6× inference speedup with no accuracy loss.
Key Results
By sampling $K=50$ trajectories in parallel (~3.4 seconds per 64-frame clip on an H100, or ~0.74 seconds in the fast 5-step configuration) and averaging them with Gaussian kernels into heatmaps, GazeFlow outperforms marginal density and autoregressive baselines across the board:
- Per-frame Spatial Accuracy: On EGTEA Gaze+ and Ego4D, GazeFlow boosts F1 scores by 16.6% (0.491 vs. 0.421) and 10.4% (0.392 vs. 0.355) over the strongest baselines, while cutting Average Angular Error (AAE) by 8.8% (down to 9.01°) and 9.2% (down to 10.46°).
- Human-like Temporal Dynamics: Prior methods suffer from erratic frame-to-frame jumping—GLC and AT exhibit median step displacements 11.75× and 24.55× larger than real human eyes. GazeFlow hits 1.08× the human reference, achieving a displacement distribution Jensen–Shannon Divergence (JSD) of just 0.002 (vs. 0.058 for EgoM2P) and cutting best-of-$K$ trajectory error (ADE) by roughly 1.6×.
Limitations and Future Work
- Out-of-bounds saccades: When a user's eyes dart to an object outside the camera's field of view, there is zero visual evidence in the video clip, causing predictions to fail.
- Fixed head motion: Because the input video is fixed, GazeFlow only models residual eye movement conditioned on a pre-existing head trajectory, rather than jointly generating coupled head-and-eye behavior.
- Offline conditioning: GazeFlow peeks at the entire video clip (including future frames) to infer top-down task context. This makes the default model unsuitable for real-time, zero-latency applications like VR foveated rendering—though the authors note a causal (past-only) variant works online at some cost to accuracy.
Summary updated