Caption-Driven Explorations: Aligning Image and Text Embeddings through Human-Inspired Foveated Vision

Dario Zanca, Andrea Zugarini, Simon Dietz, Thomas R. Altstidl, Mark A. Turban Ndjeuha, Leo Schwinn, Björn M. EskofierarXiv 2024 · DOI

Introduction

When humans observe a scene, our visual system does not process the entire field of view with uniform clarity. Instead, our eyes engage in a series of rapid movements called saccades, punctuated by brief fixations. This sequence, known as a scanpath, is driven by both low-level visual cues (bottom-up saliency) and high-level cognitive goals (top-down attention). While traditional AI models have focused on predicting "free-viewing" patterns—where a viewer simply looks at an image without a specific goal—modeling task-driven attention remains a significant challenge.

This research introduces NevaClip, a zero-shot model designed to predict human scanpaths by aligning foveated visual glimpses with descriptive text captions. By leveraging the semantic power of CLIP (Contrastive Language-Image Pretraining), the researchers demonstrate how language serves as a critical guide for visual exploration.

The NevaClip Model: Simulating Human Vision

NevaClip is a zero-shot algorithm that requires no specific training on human gaze data. It operates by simulating two core components of human perception: foveated vision and semantic alignment.

1. Foveated Vision Simulation

Human vision is sharpest at the center of the retina (the fovea) and increasingly blurred toward the periphery. NevaClip mimics this by starting with a blurred version of an input image. When the model "fixes" on a specific coordinate, it applies a sharp "Gaussian blob" to that area, creating a foveated representation that prioritizes local detail while maintaining global context.

2. CLIP-Based Semantic Alignment

To determine where to look next, the model utilizes CLIP to bridge the gap between visual input and linguistic goals. The foveated image and the target caption are converted into mathematical embeddings. The model then employs an optimization process: it uses backpropagation to calculate the cosine similarity between these embeddings and updates the fixation coordinates to maximize this similarity. Essentially, the model moves its "eye" to the location that most effectively aligns the visual evidence with the provided text description.

Data Collection: The CapMIT1003 Dataset

To validate the model, the researchers developed CapMIT1003, a novel dataset specifically designed to capture task-driven visual exploration. Unlike standard eye-tracking datasets, CapMIT1003 focuses on the relationship between vision and language.

Participants were presented with blurred images and used a web application to click on specific areas to reveal sharp details. Their goal was to gather enough information to write an accurate caption. This "click-contingent" methodology resulted in a dataset of 27,865 clicks across 4,573 observations, providing a proxy for how humans prioritize visual information when tasked with verbal description.

Key Results and Insights

The researchers evaluated NevaClip using ScanPath Plausibility (SPP), a metric that measures the similarity between predicted paths and actual human behavior.

Performance on Captioning Tasks

On the new CapMIT1003 dataset, NevaClip achieved an SPP of 0.35, outperforming the previous state-of-the-art model, G-Eymol (0.34), and significantly exceeding the random baseline of 0.26. Crucially, when the model was provided with an incorrect caption (one belonging to a different image), its performance dropped sharply. This confirms that the alignment with specific linguistic content is the primary driver of the model's predictive accuracy.

The "Mental Captioning" Hypothesis

One of the most surprising findings occurred when testing NevaClip on the standard MIT1003 free-viewing dataset. Despite being designed for caption-driven tasks, NevaClip set a new benchmark with an SPP of 0.50, surpassing both G-Eymol (0.46) and the original NeVA model (0.47).

This suggests a provocative cognitive hypothesis: even when humans are not explicitly asked to describe a scene, our brains may be performing a form of internal "mental captioning." We naturally seek out semantically meaningful objects to make sense of our environment, a process that NevaClip’s language-vision alignment effectively captures.

Conclusion and Future Directions

NevaClip demonstrates that language is not just an output of visual processing, but a fundamental driver of visual exploration. By treating gaze as an optimization problem—where the goal is to maximize the similarity between what we see and what we say—the researchers have provided a new framework for understanding human attention.

While the current study relies on click-contingent data, which is more conscious and slower than natural eye movements, it provides a robust foundation for future work. The researchers plan to validate these findings using high-speed eye-tracking hardware and explore how different types of cognitive tasks, such as visual search or navigation, influence the optimization landscape of human vision.

Summary updated

BibTeX
@misc{zanca2024caption,
  author = {Dario Zanca and Andrea Zugarini and Simon Dietz and Thomas R. Altstidl and Mark A. Turban Ndjeuha and Leo Schwinn and Björn M. Eskofier},
  title = {{Caption-Driven Explorations: Aligning Image and Text Embeddings through Human-Inspired Foveated Vision}},
  year = {2024},
  eprint = {2408.09948},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.09948},
}
Figure