Multi Sense Embeddings from Topic Models

Shobhit Jain, Sravan Babu Bodapati, Ramesh Nallapati, Anima Anandkumar

In the world of Natural Language Processing (NLP), word embeddings like Word2Vec and GloVe are the bedrock of most systems. However, they have a fundamental flaw: they assign a single vector to every word. This "one-vector-fits-all" approach fails miserably for polysemous words. For instance, the word "bank" in a document about fishing is semantically distant from "bank" in a financial report, yet standard models collapse them into the same point in space.

In this paper, researchers from Amazon Web Services (AWS) present ETMo (Embeddings from Topic Models), a framework that uses document-level global context to learn distinct embeddings for different word senses.

TL;DR

The authors propose ETMo, a method that leverages Latent Dirichlet Allocation (LDA) to identify document topics and use them as a proxy for word senses. By combining a structured skip-gram approach with a non-parametric pruning technique, they generate high-quality multi-sense embeddings that outperform state-of-the-art models on semantic similarity tasks.

What Problem Does This Paper Address?

The core challenge is lexical ambiguity. Most distributed representation models ignore the fact that words have multiple meanings. While some previous research attempted to solve this by clustering local contexts (the words immediately surrounding a target word), these methods often miss the "big picture"—the overall topic of the document.

Furthermore, existing multi-sense models often struggle with two things:

  1. Efficiency: Some require expensive external databases like WordNet.
  2. Noise: Many models assign a fixed number of senses to every word, forcing monosemous words (words with only one meaning) to have multiple, redundant, or noisy representations.

Methods

The authors introduce a two-stage approach to capture "global semantics":

  1. Topic Modeling as a Heuristic: They first train an LDA model on a large corpus to extract topic distributions for every document. They hypothesize that these topics correlate strongly with human notions of word senses.
  2. ETMo (Baseline): They modify the standard skip-gram architecture. Instead of predicting a context word based solely on a target word, the model predicts the context word based on the target word and the document's topic distribution. The final representation is a weighted sum of sense-specific vectors.
  3. Non-Parametric Pruning (ETMo + NP): To solve the "noise" problem, they introduce a threshold ($p_{thres}$). A word's sense embedding is only updated for a specific topic if that word has a high probability of appearing in that topic ($p(word|topic) > p_{thres}$). This allows the model to dynamically "prune" irrelevant senses, effectively letting the data decide how many meanings a word actually has.

The architecture uses a shared output vector space to ensure that different senses of the same word (and different words altogether) remain comparable within the same geometric space.

Datasets

  • Training: The English Wikipedia corpus dump (approx. 3.2 million documents and 1 billion tokens).
  • Evaluation:
    • WS-353 (WordSim-353): A standard benchmark for word similarity.
  • SCWS-2003: A dataset specifically designed for word similarity within a given context.
  • RG-65: Used for hyperparameter tuning (specifically for the number of topics and the pruning threshold).
  • Google Word Analogy Task: To ensure the embeddings maintain the linear relational properties (e.g., King - Man + Woman = Queen).

Key Insights and Ideas

  • Global Context Matters: By using LDA as a precursor, the model captures document-level themes that local context windows (usually 5-10 words) miss. This helps distinguish between a "network" in a computer science paper versus a "network" in a geography textbook.
  • Pruning is Essential: The non-parametric approach (ETMo + NP) was a major driver of performance. It prevents the model from "smearing" a word's meaning across topics where it doesn't belong, which is a common failure mode in earlier multi-sense models.
  • Precomputed vs. Contextual: Unlike heavy-duty transformer models (like BERT or ELMo) that generate embeddings on-the-fly, ETMo produces precomputed sense embeddings. This makes it much faster for certain downstream applications while still capturing multiple meanings.

Key Results

  • Quantitative: On the WS-353 dataset, ETMo + NP achieved a Spearman correlation of 69.3, outperforming GloVe (63.2) and other multi-sense models like NP-MSSG (69.1).
  • Qualitative: The paper provides a striking example with the word "Network". While GloVe only captured the "Television/Radio" sense, ETMo successfully identified three distinct senses:
  • Music/Television (e.g., "broadcast," "station")
    1. Technology (e.g., "computer," "system")
    2. Geography/Infrastructure (e.g., "railway," "commuter")
  • Analogy Task: The model maintained a 66-67% accuracy on word analogies, matching the performance of Word2Vec, proving that adding multiple senses doesn't degrade the structural integrity of the vector space.

Limitations and Future Work

  • Fixed Topic Count: Although the pruning helps, the underlying LDA still requires a predefined number of topics ($k=10$ was used here). Future work could explore hierarchical LDA or other methods to automate the discovery of the optimal number of global topics.
  • Comparison to Transformers: While the authors compare against ELMo and BERT, they note that these contextual models require a full sentence/document to generate an embedding. ETMo's advantage is its "static" multi-sense nature, but it may not capture the extreme nuance that a deep transformer can.
  • Downstream Validation: The authors suggest that the next logical step is integrating these sense-specific vectors into tasks like Named Entity Recognition (NER) and Part-Of-Speech (POS) tagging to see if the semantic clarity translates to higher task accuracy.

Summary updated

BibTeX
@inproceedings{jain2019multi,
  author = {Shobhit Jain and Sravan Babu Bodapati and Ramesh Nallapati and Anima Anandkumar},
  title = {{Multi Sense Embeddings from Topic Models}},
  booktitle = {ICNLSP},
  year = {2019},
  url = {https://openreview.net/forum?id=_v3JxBb9rOa},
}

Loading related content...

Figure