A Markovian approach to distributional semantics with application to semantic compositionality

Édouard Grave, Guillaume Obozinski, Francis Bach2014 · DOI

TL;DR

This paper introduces a novel probabilistic approach to distributional semantics that leverages syntactic dependency trees to model word meaning. By representing words as probability distributions over latent semantic classes, the model can naturally generate both context-independent and context-dependent word representations, demonstrating strong performance on semantic compositionality tasks.

What Problem Does This Paper Address?

Traditional distributional semantics models often represent words as fixed vectors in a high-dimensional space. While effective for capturing general word meaning, these models struggle with the nuances of how word meaning changes based on context and how word meanings combine to form phrase or sentence meanings (semantic compositionality). Existing approaches often rely on linear algebra operations to combine word vectors, which can be simplistic. This paper aims to bridge this gap by proposing a probabilistic model that explicitly incorporates syntactic structure and can generate context-aware word representations, leading to better semantic composition.

Methods

The core of this paper is a generative model of sentences that incorporates syntactic dependency trees. This model, an extension of previous work by the authors, views sentences as sequences of words generated from underlying latent semantic classes. The key innovation is how word representations are derived:

  • Generative Model: A hidden Markov model on a tree structure is used. Each word's semantic class is conditioned on its parent's semantic class in the dependency tree, and the word itself is generated from its semantic class. This allows the model to learn how syntax influences semantic class assignments.
  • In-Context Word Representations: For a word within a specific sentence, its representation is its posterior probability distribution over the latent semantic classes, computed using the message passing algorithm (forward-backward algorithm for HMMs). This captures the word's meaning as influenced by its syntactic context.
  • Out-of-Context Word Representations: To get a general, context-independent representation, the in-context representations for all occurrences of a word type in a large corpus are averaged. This results in a probability distribution over latent classes that represents the word's typical meaning.
  • Compositionality: The paper explores how these in-context and out-of-context representations can be used to model phrase meaning, comparing simple averaging with using the in-context representation of the head word.

Datasets

  • Training: The ukWac corpus (approx. 1.9 billion tokens) was used for training the generative model.
  • Evaluation:
    • Similarity Judgements: RG65 and WORDSIM353 datasets were used to evaluate out-of-context word representations on predicting human similarity ratings.
  • Semantic Relations: The BLESS dataset was used to investigate which types of semantic relations (e.g., co-hyponymy, hypernymy) are best captured by the model.
  • Compositionality: Two datasets were used for evaluating semantic compositionality:
  • Mitchell and Lapata (2010) dataset: Pairs of adjective-noun, compound-noun, and verb-object phrases with human similarity scores.
  • Grefenstette and Sadrzadeh (2011) dataset: Subject-verb-object triples, evaluating similarity between the verb and a landmark.

Key Insights and Ideas

  • Syntax Matters for Semantics: Explicitly modeling syntactic dependency trees significantly improves the ability to capture word meaning and its contextual variations.
  • Probabilistic Representations are Powerful: Representing words as probability distributions over latent classes, rather than fixed vectors, naturally handles ambiguity and allows for direct comparison of context-dependent and independent meanings.
  • Disambiguation Boosts Compositionality: Using in-context (disambiguated) word representations for phrase composition generally leads to better performance than using out-of-context representations, highlighting the importance of context for accurate semantic composition.
  • Transition Matrix Captures Selectional Preferences: The learned transition matrix (which models how semantic classes relate across syntactic dependencies) effectively captures selectional preferences, such as which adjectives are likely to modify which nouns.

Key Results

  • Similarity Prediction: The model, using probability distribution-aware distances (Jensen-Shannon, Hellinger), achieved strong Spearman's rank correlation coefficients on the RG65 and WORDSIM353 datasets, outperforming baselines and even achieving competitive results against models trained on much larger corpora.
  • Semantic Relations: The model excels at capturing co-hyponymy and hypernymy relations. It struggles with attribute and event relations when comparing words of different parts-of-speech, but this is improved by using the learned transition matrix to align representations.
  • Compositionality: In-context representations generally outperformed out-of-context ones on both the Mitchell and Lapata (2010) and Grefenstette and Sadrzadeh (2011) datasets. For adjective-noun and verb-object pairs, using the in-context representation of the head word was as good as or better than adding representations. The model also outperformed previous state-of-the-art methods on the SVO dataset.

Limitations and Future Work

  • Dependency Labels Ignored: A significant limitation is that the current model does not utilize the labels of the dependency edges, only the tree structure. Future work aims to incorporate these labels.
  • Initialization Sensitivity: The expectation-maximization algorithm used for learning parameters can be sensitive to initialization. The authors plan to explore spectral methods for better initialization to speed up learning and improve results.
  • Exploration of Spectral Methods: Further research into spectral methods is planned for initialization.
  • Code Availability: The code for the paper will be made available.

Summary updated

Abstract

In this article, we describe a new approach to distributional semantics. This approach relies on a generative model of sentences with latent variables, which takes the syntax into account by using syntactic dependency trees. Words are then represented as posterior distributions over those latent classes, and the model allows to naturally obtain in-context and out-of-context word representations, which are comparable. We train our model on a large corpus and demonstrate the compositionality capabilities of our approach on different datasets.
BibTeX
@misc{grave2014markovian,
  author = {Édouard Grave and Guillaume Obozinski and Francis Bach},
  title = {{A Markovian approach to distributional semantics with application to semantic compositionality}},
  year = {2014},
  doi = {10.60692/63qrk-swd65},
}
Figure