NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Visually Grounded Sentence Representations

Douwe Kiela, Alexis Conneau, Allan Jabri, Maximilian Nickel

Abstract

This paper investigates the "grounding problem" in Natural Language Processing (NLP), where models learn language solely from text without connection to the physical world. The authors propose a method to learn visually grounded sentence representations by training a BiLSTM encoder to predict image features (Cap2Img) or related captions (Cap2Cap). Results on the SentEval benchmark demonstrate that these grounded embeddings, particularly when combined with text-only representations (GroundSent), significantly outperform purely distributional models across various tasks, especially those involving concrete language.

Introduction

Most modern NLP models rely on the distributional hypothesis: the idea that the meaning of a word or sentence can be inferred entirely from its context in a text corpus. However, this leads to a fundamental limitation known as the "grounding problem." If symbols (words) are only defined by other symbols, the system lacks a connection to the external, physical world. While humans learn language through a multi-modal experience—seeing, touching, and hearing—most AI models are effectively "blind." This research investigates whether forcing a sentence encoder to capture visual semantics leads to more robust, universal representations that transfer better to downstream tasks.

Methodology

The authors propose a system that learns sentence representations by aligning text with paired visual data using a Bidirectional LSTM (BiLSTM). The model processes a sentence and uses element-wise maximum pooling over the hidden states to produce a fixed-size sentence vector.

The grounding architecture illustrating the Cap2Img and Cap2Cap strategies.

Grounding Strategies

Three distinct strategies were explored to ground the encoder:

  1. Cap2Img (Strong Perceptual Grounding): The model is trained to predict the latent feature representation of an actual image (extracted from a pre-trained ResNet-101) given its caption. A ranking loss ensures the caption's vector is closer to its corresponding image than to random negative samples.
  2. Cap2Cap (Weak Grounding): The model learns to predict an alternative caption for the same image using a sequence-to-sequence approach, exploiting the implicit association between different descriptions of the same visual scene.
  3. Cap2Both: A multi-task learning approach combining both objectives.

To bridge the gap between concrete and abstract language, the authors introduced GroundSent (GS). This approach concatenates grounded representations with standard text-only representations (like SkipThought) to create a multi-modal embedding that captures both visual and linguistic nuances.

Experimental Setup

The models were trained on the MS COCO dataset, which contains over 113,000 images, each paired with five human-written captions. Image features were extracted using a ResNet-101 trained on ImageNet. For comparison, a text-only baseline was trained on the Toronto Books Corpus. Evaluation was conducted using the SentEval framework, covering tasks such as sentiment classification (MR, SST), subjectivity (SUBJ), and natural language inference (SNLI, SICK).

Key Results and Analysis

The grounded models demonstrated superior performance across nearly all benchmarks. The Cap2Img model proved highly effective at image-caption retrieval, outperforming established baselines like DVSA and Fisher Vectors on the COCO5K benchmark.

Performance comparison of GroundSent models against the text-only ST-LN baseline on SentEval tasks.

Transfer Task Performance

As shown in the results table, the grounded GroundSent-Both model consistently outperformed the text-only SkipThought (ST-LN) baseline. Specifically, on the SST (Stanford Sentiment Treebank), accuracy rose from 82.9% to 84.8%. On the SICK (Entailment) task, performance jumped from 78.5% to 81.6%.

The Concreteness Factor

Grounding proved most effective for datasets containing "concrete" language. Datasets like SNLI and SICK, which are derived from image captions, saw the most significant boosts. Furthermore, the process of learning to ground sentences improved underlying word embeddings; the model's internal projection of GloVe vectors into a grounded space outperformed standard GloVe on word-similarity benchmarks.

Conclusion

This work demonstrates that "mental imagery"—the ability of a model to imagine a visual scene from text—provides a qualitatively different type of information that text-only models cannot capture. While the current approach relies on concatenation to handle abstract language, future work may involve jointly learning grounded and linguistic representations from the start to better handle specialized domains and abstract concepts like "justice" or "inflation."

Summary updated

BibTeX
@inproceedings{kiela2018learning,
  author = {Douwe Kiela and Alexis Conneau and Allan Jabri and Maximilian Nickel},
  title = {{Learning Visually Grounded Sentence Representations}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/n18-1038},
}
Figure