ST-DiffEye: Diffusion-based Continuous Gaze Generation via Joint Scanpath-Trajectory Modeling

Brian Nlong Zhao, Ozgur Kara, Junho Kim, James Matthew RehgNeurIPS 2026

TL;DR

When you look at an image, your eyes dance between semantic anchors (fixations) connected by rapid, jittery movements (saccades). ST-DiffEye is a generative diffusion model that synthesizes realistic human eye movements by jointly modeling both the discrete high-level map and the continuous, fine-grained motion trajectory—all by simply adding a single channel to the data. Along the way, the authors also fix a broken evaluation paradigm in gaze modeling by introducing a metric protocol that rewards both accuracy and natural human diversity.

What Problem Does This Paper Address?

Modeling where humans look—and in what order—is a surprisingly tricky generative problem. Show ten people the same picture of a crowded kitchen, and you’ll get ten different viewing patterns. Human gaze isn’t deterministic; it’s a stochastic process shaped by image features, personal habits, and whether the viewer is casually browsing (free-viewing) or hunting for their keys (visual search).

Historically, eye-tracking data comes in two flavors:

  1. Discrete Scanpaths: Compressed sequences of $(x, y)$ centroids and durations showing where attention dwells.
  2. Continuous Trajectories: High-frequency raw $(x, y)$ coordinates capturing how the eye moves, including saccade kinematics and microscopic drift.
Joint representation of trajectories and scanpaths

Existing generative models force a choice: supervise on scanpaths (losing fine-grained motion dynamics) or supervise on raw trajectories (losing explicit, high-level semantic structure).

To make matters worse, the field’s standard evaluation protocols have major blind spots. Comparing generated gaze to human ground truth using "mean" scores rewards mode collapse (predicting the boring average), while "best-match" scores let low-variance models skate by. Even histogram-based Kullback-Leibler Divergence (KLD) metrics can be fooled by shifted, mid-variance distributions that happen to produce similar summary statistics.

Methods

The authors hypothesize that scanpaths and trajectories are complementary scales of the same phenomenon—like low-res semantic anchors and high-res motion dynamics. Instead of building a sprawling multi-branch neural network to fuse them, they propose a remarkably clean data-level trick called the fixation index.

Here is how ST-DiffEye works:

  • Fixation Index Construction (Novel): For a given raw trajectory, each discrete scanpath fixation is anchored to its nearest trajectory point in time ($1, 2, \dots, M$). Points in between are assigned values via simple linear interpolation (so a value of $2.5$ means the eye is halfway through a saccade between fixation 2 and 3). This normalized scalar $\tilde{\rho}_t$ is concatenated directly to each trajectory token: $[x_t, y_t, \Delta t, \tilde{\rho}_t]$.
  • Diffusion Backbone (Adapted): Following recent scanpath diffusion work (ScanDiff), the authors use a Diffusion Transformer (DiT) conditioned on visual features and optional text prompts (e.g., "bottle" for visual search), alongside a length-prediction head to handle variable gaze durations. Because coupling happens via channel expansion, there is zero architectural overhead. At inference time, the denoised fixation index channel is discarded, and standard post-processing extracts final scanpaths from the generated continuous trajectory.
Figure 2: Overview of ST-DIFFEYE. (1) The visual stimulus I and task condition c are encoded by v and ψ and fused into a joint representation Vjoint. (2) Each trajectory point is assigned a continuous fixation index ˜ρt by anchoring fixations to their nearest trajectory points and linearly interpolating between anchors. (3) The augmented trajectory tokens are denoised by a DiT ϕθ conditioned on Vjoint, then decoded into a trajectory with a predicted valid length. (4) At sampling time, the generated trajectory ˆR is post-processed via fixation extraction to produce the final scanpath ˆS.
  • CRPS Evaluation Protocol (Novel to Gaze): Borrowing the Continuous Ranked Probability Score (CRPS) from probabilistic forecasting, the authors wrap existing sequence metrics (like Dynamic Time Warping or ScanMatch) into a two-term objective: the first term pulls generated samples toward human ground truth (accuracy), while the second penalizes pairwise similarity among generated samples (diversity).

Datasets

The authors evaluate across both major gaze regimes, pairing images with both discrete scanpaths and 240 Hz continuous trajectories:

  • COCO-Search18: Task-driven visual search (6,202 images, 18 target categories, ~300K fixations), split into Target-Present (TP) and Target-Absent (TA) scenarios.
  • COCO-FreeView: Unconstrained free-viewing on the same COCO images (>800K fixations).
  • MIT1003: Classical free-viewing benchmark (1,003 images, 15 subjects).

Note on data curation: Because public COCO gaze datasets only release discrete scanpaths, the authors went back to the raw eye-tracker EDF files to extract, trim, and align the continuous trajectories with the public scanpaths.

Key Insights and Ideas

  • Simplicity wins at the input layer: Ablation studies show that feeding the raw scalar fixation index directly into the input channels handily beats fancier alternatives like sinusoidal encodings, learnable embeddings, or latent-space concatenation.
  • Temporal progression beats spatial proximity: Linearly interpolating the fixation index over time outperforms distance-based weighting, proving that giving the model a sense of temporal pacing between anchors helps regularize chaotic saccades.
  • Fixing the scoreboard matters: On synthetic 2D Gaussian tests, Mean, Best, and KLD protocols are each won by a different degenerate generator. Only CRPS reliably crowns the true, multi-modal distribution.

Key Results

Evaluated under the CRPS protocol across 11 distance- and similarity-based metrics, ST-DiffEye achieves state-of-the-art performance:

  • Visual Search: Ranks first on 9 of 11 metrics in COCO-Search18 Target-Present and 8 of 11 in Target-Absent. For example, on COCO-TP, it drops Dynamic Time Warping (DTW, lower is better) from ScanDiff's 219.855 down to 196.631, and boosts duration-aware Semantic Sequence Score ($\text{SSS}^\dagger$) from 0.089 to 0.134.
  • Free-Viewing: Leads scanpath comparisons on 4 of 9 metrics on COCO-FreeView and 5 of 9 on MIT1003, outperforming ScanDiff on every duration-aware metric across both benchmarks—proof that continuous trajectories preserve temporal rhythms that scanpath-only models miss.
  • Better Raw Trajectories: Even before post-processing into scanpaths, ST-DiffEye outperforms the continuous-trajectory baseline (DiffEye) on 7 of 9 metrics on COCO-FreeView, showing that high-level fixation anchors genuinely improve fine-grained motion synthesis.

Limitations and Future Work

In the main text, the authors note two practical nuances:

  • Formal metric guarantees: While CRPS is mathematically guaranteed to be a strictly proper scoring rule when paired with negative-type distances (like Euclidean distance), applying it to specialized domain heuristics (like ScanMatch or MultiMatch) serves as a practical distribution-aware protocol rather than a formally proper rule.
  • Free-viewing ambiguity: Performance gains in free-viewing are noticeably more modest than in visual search, likely because unconstrained viewing has massive inter-subject variability with far weaker shared structure across humans.

(Note: Explicit dedicated sections on broader limitations and future work are deferred by the authors to Appendix Sections G–I, which are not included in the main paper text.)

Summary updated

Abstract

We study the problem of human gaze modeling, which aims to generate the gaze patterns a viewer produces while observing a visual stimulus. Gaze is primarily captured through two modalities: continuous eye-tracking trajectories, which describe fine-grained motion dynamics, and discrete scanpaths, which describe high-level fixation structure. Because gaze varies substantially across viewers and trials, we treat this variability as a defining property rather than noise and model gaze as a stochastic generative process. Existing generative gaze models supervise on only one of these two representations in isolation. We hypothesize that trajectories and scanpaths describe gaze at complementary scales and are jointly informative during training, and test this hypothesis through ST-DiffEye, a joint trajectory-scanpath diffusion framework that couples both modalities by concatenating them as an additional raw input channel, requiring no architectural overhead beyond an input and output channel expansion. We further introduce a principled evaluation framework based on the Continuous Ranked Probability Score (CRPS), which generalizes any existing sequence similarity metric into a proper scoring rule that jointly assesses the accuracy and diversity of generated gaze. Experiments on task-driven visual search, covering both target-present and target-absent scenarios, and on free-viewing benchmarks demonstrate state-of-the-art performance. These results, along with detailed ablations, confirm the benefit of joint modeling and the value of distribution-aware evaluation in capturing the intrinsic variability of human gaze.
BibTeX
@inproceedings{zhao2026st,
  author = {Brian Nlong Zhao and Ozgur Kara and Junho Kim and James Matthew Rehg},
  title = {{ST-DiffEye: Diffusion-based Continuous Gaze Generation via Joint Scanpath-Trajectory Modeling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=5MZl4W68FP},
}
Figure