Pathformer3D: A 3D Scanpath Transformer for $360^{\circ }$ Images

Rong Quan, Yantao Lai, Mengyu Qiu, Dong LiangECCV 2024 · DOI

TL;DR

Pathformer3D is a novel Transformer-based framework that predicts human gaze paths (scanpaths) in 360° images by operating directly in a 3D spherical coordinate system. By moving away from distorted 2D projections, the model achieves state-of-the-art performance across multiple panoramic eye-tracking datasets, effectively mimicking human visual working memory.

What Problem Does This Paper Address?

Predicting where a human will look when immersed in a Virtual Reality (VR) or Augmented Reality (AR) environment is crucial for optimizing rendering (foveated rendering) and improving user interfaces. However, most existing models treat 360° images as 2D "Equirectangular Projections" (ERP)—essentially flattening the globe into a rectangle, much like a world map.

This 2D approach introduces two major flaws:

  1. Distortion: Regions near the "poles" of the image are stretched significantly compared to the "equator."
  2. Coordinate Discontinuity: The left and right edges of a 2D map are actually adjacent in 3D space. A model looking at a 2D plane sees a "seam" at ±180° longitude, leading to massive computation errors when a gaze shifts across that boundary.

Pathformer3D addresses these issues by performing all calculations in a 3D Cartesian coordinate system $(x, y, z)$, ensuring that the geometry of the sphere is preserved and the "seam" disappears.

Methods

The authors propose a multi-stage architecture designed to handle the unique geometry of omnidirectional images:

  • 3D Feature Extraction: Instead of standard 2D convolutions, the model uses SphereNet, a specialized architecture that applies filters directly to the spherical surface to extract visual features without distortion.
  • 3D Transformer Encoder: This module learns "contextual" representations of the image. By using self-attention, it captures long-range spatial dependencies between different regions of the 360° environment.
  • Autoregressive Transformer Decoder: To predict the next gaze point, the decoder looks at both the image features and the history of previous fixations. This design is intended to mimic the human visual working memory, where our current focus is heavily influenced by where we just looked.
  • 3D Mixture Density Network (MDN): Rather than predicting a single $(x, y, z)$ point, the model outputs the parameters for a mixture of 3D Gaussian distributions. This allows the model to represent the inherent uncertainty and individual variations in human gaze behavior. The final fixation is sampled probabilistically from this distribution.

Datasets

The model was evaluated on four diverse panoramic eye-tracking datasets:

  1. Sitzmann: 22 images with 1,920 scanpaths.
  2. Salient360!: 85 images with 3,036 scanpaths.
  3. AOI: 600 high-resolution images with ~18,000 scanpaths.
  4. JUFE: 1,032 images with 30,960 scanpaths.

The authors used data augmentation by rotating images along the longitude to increase the training set size.

Key Insights and Ideas

  • The 3D Advantage: Ablation studies showed that replacing the 3D spherical extractor with a standard 2D CNN or a patch-based Vision Transformer (ViT) significantly degraded performance. Geometry matters.
  • Memory Matters: The autoregressive decoder outperformed a "parallel" version. This confirms that scanpath prediction is a sequential task where the order and history of fixations are vital, much like natural language processing.
  • Probabilistic Sampling vs. Max Likelihood: The authors found that always picking the "most likely" next point caused the model to collapse into predicting the same path for every image. Using an MDN to sample fixations allows for the "diversity" seen in real human behavior.
  • Focus on Salience: Qualitatively, Pathformer3D is better at staying "locked on" to prominent objects compared to GAN-based models, which often produce more dispersed or "noisy" gaze maps.

Key Results

Pathformer3D achieved State-of-the-Art (SOTA) results across all four datasets.

  • Quantitative: On the Salient360! dataset, it achieved a Levenshtein Distance (LEV) of 36.277 and a Dynamic Time Warping (DTW) score of 1515.88, outperforming previous leaders like ScanDMM and ScanGAN.
  • Human-Level Performance: In many metrics, Pathformer3D's scores were remarkably close to the "Human" baseline (the average similarity between different real human scanpaths), suggesting it is nearing the upper bound of predictable human behavior.
  • Efficiency: Despite the complexity of 3D operations, the model can generate approximately four scanpaths (each 30 fixations long) per second on a single RTX 3090.

Limitations and Future Work

  • Semantic Gap: The current model relies primarily on visual features. The authors note that incorporating high-level semantic information (e.g., "that is a person," "that is a doorway") could further improve accuracy, as humans are naturally drawn to meaningful objects.
  • Component Swapping: While SphereNet and MDNs were effective, the authors acknowledge these are modular components that could be replaced by even more advanced 3D architectures as the field evolves.
  • Temporal Dynamics: The current work focuses on static 360° images; extending this to 360° video, where motion becomes a primary driver of attention, is a logical next step.

Summary updated

BibTeX
@inproceedings{quan2024pathformer,
  author = {Rong Quan and Yantao Lai and Mengyu Qiu and Dong Liang},
  title = {{Pathformer3D: A 3D Scanpath Transformer for $360^\{\textbackslash\{\}circ \}$ Images}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72761-0\_5},
}
Figure