Evaluating Multimodal Representations on Visual Semantic Textual Similarity

Oier Lopez de Lacalle, Ander Salaberria, Aitor Soroa, Gorka Azkune, Eneko Agirre

TL;DR

This paper introduces Visual Semantic Textual Similarity (vSTS), a new task and dataset that benchmarks how well AI models can judge the semantic equivalence of two items when provided with both a text caption and its corresponding image. The researchers demonstrate that adding visual context to language models significantly improves their inference capabilities, achieving up to a 24% error reduction compared to text-only baselines.

What Problem Does This Paper Address?

In natural language processing, Semantic Textual Similarity (STS) is a standard task where models must determine how similar two sentences are on a scale (usually 0 to 5). However, human language understanding often relies on information that isn't explicitly written down—common sense, spatial relationships, and visual context.

Existing multimodal tasks like Image Captioning or Visual Question Answering (VQA) use both images and text, but they don't specifically benchmark a model's ability to perform inference (logical reasoning about meaning). The authors argue that a "multimodal" version of STS is needed to see if visual information actually helps models understand the underlying meaning of sentences better than text alone.

Methods

The authors evaluate several state-of-the-art representations in two scenarios:

  1. Unsupervised: Similarity is calculated using the simple cosine distance between the vectors (embeddings) of two items.
  2. Supervised: A Siamese Regression model is trained. It takes the representations of two items, calculates their distance and angle, and passes them through a non-linear hidden layer to predict a similarity score.

Multimodal Fusion: To combine text and images, they tested two simple but effective methods:

  • CONCAT: Normalizing and then concatenating the text vector (e.g., from BERT) and the image vector (from ResNet).
  • PROJECT: Learning a shared mathematical space where both text and image vectors are projected before being combined.

Datasets

The core contribution is the vSTS dataset, which consists of 2,677 pairs of image-caption items.

  • Sources: Images and captions were pulled from the well-known Flickr30K and Microsoft COCO datasets.
  • Annotation: Human workers on Amazon Mechanical Turk scored the pairs. Crucially, they were asked to judge the similarity of the captions given the context of the images.
  • Sampling Strategy: To avoid a dataset full of "easy" examples (where sentences are either identical or totally different), the authors used an automatic system to ensure a balanced distribution of similarity scores and a "difficulty" metric to filter out trivial cases.

Key Insights and Ideas

  • Visual Grounding Matters: The same sentence can have different nuances depending on the image. The authors found that annotators often changed their similarity scores when they could see the images versus just reading the text.
  • Images are Highly Predictive: Surprisingly, using only image representations (ResNet) to predict caption similarity yielded a Pearson correlation of 0.627. This suggests that in these datasets, visual similarity is a very strong proxy for semantic similarity.
  • Complementarity: The best results came from combining modalities. Visual information helps most when the text uses different words to describe the same scene (lexical divergence).
  • The "Easiness" Filter: By removing 30% of the "easiest" examples (where word overlap alone predicted the score), the authors created a much more rigorous test for multimodal reasoning.

Key Results

  • Multimodal > Unimodal: In every test, multimodal models outperformed their text-only counterparts.
  • Error Reduction: Adding visual information led to an error reduction of up to 24.4% for unsupervised models (like GloVe) and smaller but significant gains for supervised models.
  • Top Performers: The VSE++ (Visual-Semantic Embedding) and USE (Universal Sentence Encoder) models, when combined with ResNet image features, achieved the highest correlations with human judgments (reaching a Pearson $\rho$ of 0.852 in the supervised test).
  • GPT-2 vs. BERT: While BERT performed well, GPT-2 representations were notably poor for this similarity task, likely because GPT-2 is optimized for predicting the next token rather than capturing overall sentence meaning.

Limitations and Future Work

  • Dataset Size: At 2,677 pairs, the dataset is relatively small for training massive deep-learning models from scratch. It serves better as a benchmark for transfer learning.
  • Global vs. Local Features: The study used "global" image features (the whole image as one vector). The authors suggest that future work should use fine-grained grounding, where specific words in a sentence are linked to specific regions or objects in an image.
  • Misleading Visuals: The paper notes that very similar images can sometimes mislead a model if the captions focus on different, subtle details that the global image vector ignores. Refining how models attend to these details is a key next step.

Summary updated

BibTeX
@inproceedings{lacalle2020evaluating,
  author = {Oier Lopez de Lacalle and Ander Salaberria and Aitor Soroa and Gorka Azkune and Eneko Agirre},
  title = {{Evaluating Multimodal Representations on Visual Semantic Textual Similarity}},
  booktitle = {ECAI},
  year = {2020},
  url = {https://openreview.net/forum?id=7s_4l-cr5x},
}

Loading related content...

Figure