Do Vision and Language Models Share Concepts? A Vector Space Alignment Study

Jiaang Li, Yova Kementchedjhieva, Constanza Fierro, Anders Søgaard

TL;DR

This paper investigates whether large language models (LLMs) and computer vision models (VMs) learn similar internal representations of the world, despite being trained on independent data. The study finds that these models' representations become structurally similar as they scale, suggesting LLMs might implicitly develop "mental models" of the world.

What Problem Does This Paper Address?

There's an ongoing debate about whether LLMs truly "understand" or merely manipulate symbols. A key argument against LLM understanding is that they lack "mental models of the world" and cannot connect language to reality. This implies their internal representations should be unrelated to those of models trained on sensory data, like vision models. This paper directly challenges this by exploring the structural similarities between the representations learned by LLMs and VMs. If these representations are similar, it suggests LLMs might be modeling the world in a way that aligns with how vision models do, even without explicit grounding.

Methods

The core of the study involves comparing the "geometries" of vector spaces learned by LLMs and VMs. They use a linear projection technique, specifically Procrustes analysis, to align the representation spaces of VMs to those of LMs. This involves finding an orthogonal matrix that best maps one space onto the other. The alignment is trained on a bimodal dictionary of image-text pairs and then evaluated on held-out data using retrieval precision metrics (P@k). They also employ Principal Component Analysis (PCA) to ensure dimensionality matching between the spaces.

Datasets

The study utilizes several datasets:

  • ImageNet-21K: Used to build bimodal dictionaries of image-text pairs.
  • Wikipedia: Used for obtaining word embeddings and frequency data.
  • English subset of CLDI (EN-CLDI): Used to evaluate the models on different parts of speech (verbs, adjectives) beyond the nouns typically found in ImageNet.

The authors also created specific bimodal dictionaries:

  • Exclude-1K: ImageNet-21K classes excluding ImageNet-1K concepts to avoid bias from pre-training.
  • Only-1K: ImageNet-21K classes including ImageNet-1K concepts.

Key Insights and Ideas

  • Emergent Structural Similarity: As LLMs and VMs increase in size, their internal representation spaces become increasingly similar, suggesting a shared underlying structure for modeling concepts.
  • Implicit World Models: The observed alignment implies that LLMs, even when trained solely on text, might implicitly develop representations that capture aspects of the physical world, akin to vision models.
  • Linear Projection Sufficiency: A simple linear transformation is often sufficient to align these representation spaces, indicating a strong structural correspondence.
  • Scaling Matters: Larger LLMs consistently show better alignment with vision models, highlighting the importance of scale in developing these shared representations.
  • Factors Influencing Alignment: Alignment precision is sensitive to factors like image and language dispersion, polysemy (multiple meanings of words), and word frequency.

Key Results

  • High Alignment Scores: The study reports alignment precision scores (P@100) of up to 64%, significantly outperforming random baselines (below 1%).
  • Model Size Correlation: Larger LLMs and VMs generally lead to better alignment. ResNet152 and OPT30B achieved some of the highest scores.
  • Part of Speech Generalization: The learned mappings generalize beyond nouns to verbs and adjectives, though with slightly lower precision.
  • Influence of Word Properties: Lower language dispersion, lower word frequency, and less polysemy generally correlate with higher alignment precision.

Limitations and Future Work

  • Supervised Alignment: The current study relies on supervised learning to induce the linear mapping. The authors acknowledge that unsupervised alignment would strengthen their claims, but current unsupervised methods suffer from degenerate solutions.
  • Concrete Nouns: The experiments primarily focus on concrete noun concepts. While some generalization to verbs and adjectives was shown, it's unclear if all concept subspaces are inherently (linearly) unalignable.
  • Future Work: The authors suggest exploring unsupervised alignment methods and investigating whether some concept subspaces are inherently unalignable. They also propose future models might achieve even better linear mappings.

Summary updated

BibTeX
@article{li2024do,
  author = {Jiaang Li and Yova Kementchedjhieva and Constanza Fierro and Anders Søgaard},
  title = {{Do Vision and Language Models Share Concepts? A Vector Space Alignment Study}},
  journal = {Trans. Assoc. Comput. Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=vU09MFouPb},
}
Figure