Learning Functional Distributional Semantics with Visual Data

Yinhong Liu, Guy Emerson

Abstract

Traditional distributional semantics models represent word meanings as vectors in a high-dimensional space, often suffering from the symbol grounding problem and a lack of logical interpretability. This paper presents a framework for Functional Distributional Semantics (FDS) grounded in visual data. By modeling words as binary classifiers (semantic functions) over visual features, the proposed model achieves state-of-the-art results in grounded semantics and demonstrates superior data efficiency compared to large-scale text-based models like GloVe.

1. Introduction

Distributional semantics has seen significant success through models like Word2vec and BERT, which learn word representations from text co-occurrence. However, these models are inherently ungrounded; they learn the meaning of "apple" through its proximity to "fruit" or "red" without any connection to the physical world. Furthermore, vector-based representations are difficult to reconcile with formal logic.

Functional Distributional Semantics (FDS) addresses these issues by treating word meanings as truth-conditional functions. In this work, we extend FDS to the visual domain, training these functions directly on image features to bridge the gap between language and perception.

2. Methodology

The proposed system consists of two primary components: a World Model and a Lexicon Model, integrated within a probabilistic graphical framework.

2.1 The World Model

The World Model represents "situations" using a Gaussian Markov Random Field (MRF). It models the joint distribution of "pixies"—high-dimensional feature vectors extracted from images using a ResNet-101 backbone. These pixies represent individuals (objects or events) and their relationships within a scene.

2.2 The Lexicon Model

The Lexicon Model defines word meanings as semantic functions. Each word in the vocabulary is represented as a logistic regression classifier. Given a pixie's visual features, the function outputs the probability that the word accurately describes that individual.

The FDS framework grounded in visual data, mapping latent visual features (pixies) to semantic functions and word labels.

To perform inference in the absence of images (e.g., for text-only tasks), the authors employ Variational Inference to estimate the latent visual features that would most likely correspond to a given linguistic description.

3. Experimental Setup

The model was trained on the Visual Genome dataset, utilizing approximately 108,000 images annotated with relation triples (e.g., [subject, predicate, object]). Evaluation was conducted across several benchmarks:

  • Lexical Similarity: MEN (word relatedness) and SimLex-999 (word similarity).
  • Contextual Semantics: GS2011 (verb similarity in context) and RELPRON (compositional properties).

4. Results and Discussion

The visually grounded FDS model demonstrated remarkable data efficiency. Despite being trained on only 2.8 million triples, it achieved a Spearman correlation of 0.431 on SimLex-999, outperforming GloVe-6B (0.409), which was trained on 6 billion tokens. Furthermore, the Gaussian MRF proved to be an effective world model, exhibiting a mean fitting error of only 7% across the dimensions of the latent feature space.

4.1 Similarity vs. Relatedness

A key finding was the model's ability to distinguish between similarity (visual resemblance, e.g., "cup" vs. "mug") and relatedness (co-occurrence, e.g., "cup" vs. "coffee"). Visual features provide a dense signal for intrinsic properties, whereas text-based models often conflate these two distinct semantic relations.

4.2 Logical Grounding

Because words are modeled as functions, the framework naturally supports first-order logic. This allows for calculating the probability of complex logical statements, such as determining if an individual described as an "animal with a tail" is likely to be a "horse."

Illustration of logical inference within the FDS framework, showing the probability of word application based on shared features.

5. Conclusion

This work demonstrates that grounding distributional semantics in visual data via functional representations provides a path toward more interpretable and data-efficient language models. While the model currently faces challenges with abstract concepts and complex events, future research into joint training on both text and visual data promises to combine the broad coverage of large language models with the logical rigor of FDS.

Summary updated

BibTeX
@inproceedings{liu2022learning,
  author = {Yinhong Liu and Guy Emerson},
  title = {{Learning Functional Distributional Semantics with Visual Data}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=mClaBlDZtj},
}
Figure