Research

GazeFS: Target-Centered Gaze-Trajectory Forecasting and Stabilization from Gaze-Head History

Yaozheng Xia, Zaiping Zhu, Bo Pang, Minghao Xie, Hui Li, Shaorong Wang, Sheng Li

AAAI 2027, Accepted (CCF A).

publications

Contribution. GazeFS estimates where a user is trying to point and whether the upcoming frames will contain a Focus phase. It makes both predictions online from gaze and head-motion history, with no target geometry or future samples available at inference.

Overview

The study analyzes 7,960 target acquisitions recorded at 60 Hz from 30 HoloLens 2 users. Each acquisition has two task-defined phases. Search covers the approach to a target. Focus starts at the estimated onset of a stable, target-centered segment leading to the user's confirmation. These labels describe progress through the acquisition task.

Research Problem

A gaze pointer can settle near a target while remaining consistently off-center. Smoothing reduces fluctuations around the measured gaze direction, so a persistent offset can survive filtering. GazeFS addresses the offset by estimating the direction from the user's head to the center of the intended target.

Core Idea

The input is a growing history of seven signals in the head's coordinate frame: two gaze angles, their two rates of change, and three head rotation rates. A shared causal Transformer feeds two parallel heads. One predicts the next-frame target-center direction as yaw and pitch. The other estimates whether Focus will occur in the next short interval.

Key Components

Multi-scale temporal patches

Separate projections encode gaze and head motion in two- and four-frame patches. The shorter patch captures rapid changes, while the longer patch provides more local motion context. The two scales are fused before encoding.

Shared causal encoder

Attention is restricted to available history. A padding mask excludes positions beyond the observed prefix, so the same encoder can process both a nearly empty history and a full window.

Trajectory head and short-history refinement

A causal decoder produces the direction estimate. In the first few outputs after startup or reset, two residual modules refine it using the observed gaze direction and the available history. Their influence fades as the history grows.

Motion-aware phase head

The classifier combines encoded context with pooled gaze and head-motion magnitudes. During training, the labeled phase changes how direction errors are weighted. At inference, both heads produce their outputs in parallel from the shared encoding.
Figure 1. The inputs and outputs of GazeFS, the change from Search to Focus, and the reduction in Focus errors observed across held-out participants.
Figure 1. The inputs and outputs of GazeFS, the change from Search to Focus, and the reduction in Focus errors observed across held-out participants. View full size

The middle panel illustrates a stable gaze cluster that is still displaced from the target. The right panel summarizes the measured reduction in that displacement and spread during Focus.

Figure 2. Offline construction of Search and Focus labels from the user's confirmation and the angular gaze error.
Figure 2. Offline construction of Search and Focus labels from the user's confirmation and the angular gaze error. View full size

A backward scan starts at confirmation and finds the earliest frame in the stable target-centered segment. That frame marks the Search-to-Focus boundary. The target position is available for this offline labeling step and for supervision and evaluation.

Figure 3. GazeFS architecture. The fused temporal patches feed the shared encoder, and the encoder feeds the trajectory and Search/Focus heads.
Figure 3. GazeFS architecture. The fused temporal patches feed the shared encoder, and the encoder feeds the trajectory and Search/Focus heads. View full size

Solid arrows show the inference path. Dashed blue arrows show training-only masking. Deployment uses one encoder pass, and the phase prediction does not feed into the trajectory head.

Results

Fixed-window Focus · episode bias
0.828°
↓ 0.182° vs. raw hold
Magnitude of the average target-relative offset within an episode.
Fixed-window Focus · within-episode dispersion
0.520°
↓ 0.257° vs. raw hold
Spatial spread of residuals around the episode's average offset.
Fixed-window Focus · 90th-percentile target error
1.415°
↓ 0.400° vs. raw hold
Upper tail of angular distance to the target center.
Replay from empty history · phase prediction
0.925 balanced accuracy
0.993 area under the precision–recall curve
Computed from raw phase outputs as the history grows and then slides.
Fixed-window Focus (°)Episode bias ↓Dispersion ↓Median error ↓P90 error ↓
Raw hold1.0100.7771.0161.814
One Euro filter1.0040.7611.0081.802
Current observation only1.0450.8201.0701.907
Causal Transformer baseline0.9680.5701.0481.599
GazeFS without phase-aligned training0.9080.6421.0031.626
Full GazeFS0.8280.5200.9061.415

The table compares methods on the same valid Focus frames from five participant-grouped test folds and three training seeds. Raw hold carries the latest gaze measurement forward by one frame. All four spatial improvements over raw hold had simultaneous 95% bootstrap intervals that excluded zero. Replay from an empty history preserved the Focus advantage. In a separate 12-participant live study, GazeFS was 0.196 s faster than One Euro on the all-trial measure with a five-second cap. The intervals for comparisons with the native pointer and Weighted Pointing included zero.

Conclusion

The clearest benefit was during sustained Focus. Search and the transition into Focus did not improve consistently, and frame-to-frame residual motion increased relative to raw hold. This separates the demonstrated gain in spatial centering from temporal smoothness. The main evaluation used segmented successful acquisitions from one headset and task, so performance on continuous streams and other devices remains open.