Vector-based Models of Semantic Composition

Jeff Mitchell, Mirella LapataACL 2008

Abstract

This paper proposes a framework for representing the meaning of phrases and sentences in vector space. Central to our approach is vector composition which we operationalize in terms of additive and multiplicative functions. Under this framework, we introduce a wide range of composition models which we evaluate empirically on a sentence similarity task. Experimental results demonstrate that the multiplicative models are superior to the additive alternatives when compared against human judgments.

Introduction

Vector-based models of semantics have proven highly effective at capturing the meanings of individual words by analyzing their distributional contexts. However, a significant challenge remains in extending these models to represent the meaning of larger linguistic units, such as phrases and sentences. Because language is compositional, the meaning of a sentence is more than the sum of its parts; it depends on how words interact within specific syntactic structures. Traditional "bag-of-words" approaches, which typically average or add word vectors, fail to capture these nuances. This work introduces a formal framework for semantic composition to address these limitations.

Compositional Models

We define a general framework where the composition of two vectors, $u$ and $v$, is a function $p = f(u, v, R, K)$, where $R$ represents the syntactic relation and $K$ denotes background knowledge. We investigate two primary classes of composition functions:

  1. Additive Models: These models represent the composed vector as a linear combination, $p = Au + Bv$. In the simplest case, this reduces to element-wise addition ($p_i = u_i + v_i$).
  2. Multiplicative Models: These models derive the composed vector from the interaction of components. To maintain computational efficiency and avoid dimensionality explosion, we focus on element-wise multiplication ($p_i = u_i \cdot v_i$).

Theoretically, multiplication acts as a feature-selection mechanism. The components of one vector scale the components of another, effectively filtering out irrelevant features and amplifying those salient to the specific context.

Experimental Evaluation

To evaluate these models, we constructed a semantic space using the British National Corpus (BNC), utilizing a context window of five words and the 2,000 most frequent context words as dimensions.

The models were tested on a dataset of 120 subject-verb pairs. Each pair was evaluated against "high-similarity" and "low-similarity" landmarks. For instance, the pair "horse ran" is conceptually closer to the landmark "galloped" than to "dissolved." Human ground truth was established by collecting similarity ratings from 49 participants on a 1–7 scale.

Table 1: Example stimuli demonstrating how nouns contextualize verb meaning relative to landmarks.

Results and Discussion

Model performance was measured using Spearman’s correlation ($\rho$) between model-predicted similarity scores and human judgments. The results indicate a clear advantage for multiplicative approaches.

Table 2: Performance comparison of composition models using Spearman’s correlation.

As shown in Table 2, simple additive models achieved a correlation of only $\rho = 0.04$, which is not statistically significant compared to a non-compositional baseline. In contrast, the multiplicative model reached $\rho = 0.17$. A "Combined Model" ($p_i = \alpha u_i + \beta v_i + \gamma u_i v_i$), designed to mitigate information loss in sparse vectors, performed best with $\rho = 0.19$.

The success of multiplicative models stems from their ability to disambiguate words. In the example "horse ran," the "horse" vector filters the "ran" vector to emphasize features associated with animal movement, whereas in "water ran," it would emphasize fluid dynamics. This filtering creates a more precise semantic representation than simple addition, which merely aggregates all features of both words.

Conclusion

Our findings suggest that multiplicative functions provide a more robust basis for semantic composition in vector spaces than additive ones. By acting as a filter, multiplication captures the way words modify each other's meanings in context. While this study focused on simple subject-verb structures, the results provide a foundation for scaling vector-based compositional semantics to more complex syntactic forms.

Summary updated

BibTeX
@inproceedings{mitchell2008vector,
  author = {Jeff Mitchell and Mirella Lapata},
  title = {{Vector-based Models of Semantic Composition}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2008},
  url = {https://openreview.net/forum?id=H1V5WnguWH},
}
Figure