Introduction
When humans observe an image, our eyes do not merely jump between static points; they move in fluid, continuous trajectories. Traditionally, researchers have simplified this complex behavior into "scanpaths" (sequences of discrete fixations) or "saliency maps" (heatmaps indicating where people look). While useful, these simplifications discard the rich temporal and dynamic information found in raw eye-tracking data. Furthermore, most existing models are deterministic, predicting a single "average" path for an image. In reality, human vision is highly variable and stochastic—different individuals will explore the exact same scene in vastly different ways.
To address these limitations, researchers have introduced DiffEye, the first diffusion-based framework capable of generating continuous, raw eye-tracking trajectories from natural images. By leveraging a novel positional embedding strategy to align gaze coordinates with semantic image features, DiffEye captures the inherent stochasticity of human attention and achieves state-of-the-art performance, even when trained on relatively small datasets.
Methodology
At its core, DiffEye utilizes a Denoising Diffusion Probabilistic Model (DDPM). However, instead of generating pixels to form an image, this model generates a 1D sequence of $(x, y)$ coordinates representing gaze over time.
The architecture introduces several key technical innovations:
- Corresponding Positional Embedding (CPE): This is the framework's critical architectural breakthrough. To help the model understand the relationship between a gaze coordinate and the underlying image, DiffEye uses a shared sinusoidal positional grid. Both the image patches and the gaze coordinates are embedded using this same grid, ensuring that a gaze point at $(x, y)$ is mathematically aligned with the semantic features of the image at that exact location.
- High-Resolution Conditioning: The model extracts semantic features using DINOv2, which are then augmented by FeatUp, a framework that restores fine-grained spatial details. This high-resolution conditioning allows the model to "see" small, salient objects that standard low-resolution feature maps might miss.
- U-Net with Cross-Attention: The noise prediction network employs a 1D U-Net architecture. Cross-attention layers are integrated into every block of the U-Net to ensure deep, multi-scale interaction between the visual stimulus and the evolving gaze trajectory.
Datasets and Key Insights
DiffEye was primarily trained and evaluated on the MIT1003 dataset, which contains raw eye-tracking data recorded at 240Hz for 1,003 images viewed by 15 subjects. The OSIE dataset was used as an unseen test set to evaluate zero-shot generalization. Notably, while competing models often rely on massive datasets like SALICON (10k+ images), DiffEye achieves superior results using only the ~1,000 images in MIT1003 by leveraging the high information density of raw trajectories.
A core insight from the research is that raw data is a feature, not a bug. Training on "noisy" raw trajectories actually improves the accuracy of derived scanpaths. The high-frequency jitter and fluid motion of raw data provide a stronger signal for learning human attention dynamics than cleaned-up, discrete points. Furthermore, because it is a generative diffusion model, DiffEye models the distribution of possible paths. By sampling the model multiple times, researchers can simulate a population of "virtual subjects," each exploring the image differently.
Key Results
- State-of-the-Art Scanpaths: When its continuous trajectories are converted to discrete scanpaths for comparison, DiffEye outperforms existing models (such as HAT and DeepGaze III) across standard metrics, including Levenshtein Distance and Time Delay Embedding (TDE).
- Zero-Shot Generalization: The model maintains high performance on the unseen OSIE dataset, proving it learns generalizable rules of human vision rather than merely memorizing its training set.
- Statistical Realism: The generated trajectories closely match the statistical properties of real human eye movements, accurately capturing phenomena like the "horizontal bias" (the tendency to look left-to-right) and the natural distribution of saccade amplitudes.
- Competitive Saliency: Even though it was not explicitly trained to produce heatmaps, saliency maps derived from DiffEye's generated trajectories are visually and quantitatively competitive with models specifically engineered for saliency prediction.
Limitations and Future Work
While groundbreaking, DiffEye has a few limitations. Currently, the model generates trajectories of a fixed length (e.g., 720 timesteps), whereas real human viewing sessions naturally vary in duration. Additionally, the current model focuses entirely on "free viewing" tasks. Future iterations could be conditioned on specific tasks, such as visual search ("find the person in the red shirt") or image captioning. Finally, the model is limited by the scarcity of raw eye-tracking datasets for natural images, though DiffEye itself could eventually be used to synthesize high-quality training data to help bridge this gap for the broader research community.
Summary updated