Learning Zero-Shot Multifaceted Visually Grounded Word Embeddings via Multi-Task Training

Hassan Shahmohammadi, Hendrik P. A. Lensch, R. Harald BaayenCoNLL 2021

Introduction

The distributional hypothesis—that words appearing in similar contexts share similar meanings—has underpinned the success of modern word embeddings like GloVe and fastText. However, these models often lack "grounding"; they understand linguistic relationships but lack a connection to the physical world. For instance, a model might know that "apple" and "pear" are related to "eat," but it does not "know" what an apple looks like. This paper introduces a multi-task training framework designed to ground textual embeddings in visual data without compromising the semantic integrity of the entire vocabulary.

The Grounding Challenge

Previous attempts at visual grounding have struggled with two primary issues. First, the Abstract Gap: human cognition processes concrete words (e.g., "cat") and abstract words (e.g., "justice") differently. Many grounding models inadvertently degrade the semantic relationships of abstract words while focusing on concrete objects. Second, the Vocabulary Limit: image-caption datasets are relatively small compared to massive text corpora. Consequently, most models only ground the subset of words present in training captions, leaving the vast majority of the vocabulary ungrounded.

Proposed Methodology: Zero-Shot Multifaceted Grounding

The researchers propose a zero-shot multifaceted grounding model that utilizes a reversible mapping matrix ($M$) to translate pre-trained textual embeddings into a grounded visual space and back. Unlike rigid shared-space models, this approach allows the model to "distill" visual knowledge into the embeddings while preserving the linguistic statistics inherent in the original vectors.

Architecture of the zero-shot multifaceted grounding model featuring the reversible mapping matrix and multi-task training objectives.

The model is trained via three simultaneous tasks:

  1. Forward Language Modeling: Predicting the next word in a caption, initialized with image features.
  2. Backward Language Modeling: Predicting the previous word in a caption.
  3. Image-Sentence Discrimination: A matching task where the model determines if a caption accurately describes a given image.

The core innovation is the Mapping Matrix ($M$). By learning this linear transformation on a subset of the vocabulary (words found in MSCOCO captions), the model can then apply $M$ to the entire pre-trained vocabulary. This enables "zero-shot" grounding for words that never appeared in the visual training set.

Experimental Setup

The model was trained on the Microsoft COCO (MSCOCO) 2017 dataset. Evaluation was conducted across two dimensions:

  • Intrinsic Evaluation: Word-level similarity benchmarks including MEN, SimLex999, SimVerb3500, and WordSim353.
  • Extrinsic Evaluation: Sentence-level Semantic Textual Similarity (STS) benchmarks from 2012–2016.

Results and Discussion

The grounded embeddings, designated VGE_G (for GloVe) and VGE_F (for fastText), consistently outperformed their text-only counterparts across almost all benchmarks.

Performance comparison of grounded embeddings (VGE) against text-only baselines across standard word similarity benchmarks.

Key Findings

  • Improved Similarity Metrics: On SimLex999, which specifically measures semantic similarity rather than mere relatedness, the grounded GloVe model saw a significant jump in Spearman correlation from 40.8 to 51.8.
  • The Abstract Word Advantage: Surprisingly, visual grounding improved the representation of abstract words. By aligning the vector space with real-world relations found in images, the model refined irregularities in the purely text-based spaces. Testing showed significant gains even in the "most abstract" quartile of words.
  • Sentence-Level Gains: On STS benchmarks, the grounded models achieved an approximate 10% performance boost over baselines, demonstrating that word-level grounding translates effectively to sentence-level tasks.

Conclusion

This work demonstrates that multi-task training with a reversible mapping matrix provides a robust pathway for grounding large-scale vocabularies in visual data. By addressing the abstract gap and the vocabulary limit, the VGE models offer a more nuanced and "human-like" semantic space. Future work may explore replacing the current GRU architecture with Transformer blocks or incorporating object-level features for even finer-grained grounding.

Summary updated

BibTeX
@inproceedings{shahmohammadi2021learning,
  author = {Hassan Shahmohammadi and Hendrik P. A. Lensch and R. Harald Baayen},
  title = {{Learning Zero-Shot Multifaceted Visually Grounded Word Embeddings via Multi-Task Training}},
  booktitle = {CoNLL},
  year = {2021},
  doi = {10.18653/v1/2021.conll-1.12},
}
Figure