NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Topical Word Embeddings

Yang Liu, Zhiyuan Liu, Tat-Seng Chua, Maosong Sun

Abstract

Traditional word embedding models like Word2Vec assign a single static vector to each word, failing to account for polysemy and homonymy. This paper introduces Topical Word Embeddings (TWE), a framework that leverages Latent Dirichlet Allocation (LDA) to assign topics to word tokens. By incorporating global topical context, TWE learns multiple representations for a single word, significantly improving performance in word similarity and text classification tasks.

Introduction: The "One-Word, One-Vector" Problem

In Natural Language Processing (NLP), word embeddings serve as the fundamental building blocks for representing semantic meaning. However, most popular models suffer from a significant limitation: they assign a single vector to each word in the vocabulary. This "one-word, one-vector" approach fails to capture the nuances of polysemy (words with multiple related meanings) and homonymy (words with multiple unrelated meanings).

For instance, the word "bank" in a standard Skip-Gram model is represented by a single vector that averages its financial context ("investment bank") and its geographic context ("river bank"). This "muddying" of semantics limits the precision of downstream tasks. While previous "multi-prototype" models attempted to cluster local contexts, they often ignored broader global correlations. The Topical Word Embeddings (TWE) framework addresses this by using document-level topical information to disambiguate word meanings.

Methodology: Integrating LDA with Skip-Gram

The authors propose a two-stage framework to generate context-aware embeddings. First, Latent Dirichlet Allocation (LDA) is applied to a large corpus to assign a specific topic ($z$) to every word token ($w$). This provides a global topical environment for each word instance.

Following topic assignment, the authors adapt the Skip-Gram architecture to learn three distinct variations of Topical Word Embeddings:

Architectures of Skip-Gram and the proposed TWE models
  1. TWE-1: This model learns word embeddings and topic embeddings independently. A "topical word" representation is formed by simply concatenating the word vector and the topic vector.
  2. TWE-2: This version treats each unique word-topic pair (e.g., "apple" in a "food" topic vs. "apple" in an "IT" topic) as a distinct "pseudo-word" in the vocabulary, learning a unique vector for every pair.
  3. TWE-3: A hybrid approach where word and topic embeddings are maintained separately but concatenated during the learning process, allowing the topic to directly influence the word's representation and vice versa.

To handle new text, the model infers the topic distribution of the context and calculates a weighted average of the learned topical embeddings.

Experimental Setup

The models were trained on a 2010 dump of Wikipedia. Evaluation focused on two primary benchmarks:

  • Word Similarity: The SCWS (Stanford Contextual Word Similarity) dataset, which includes 2,003 word pairs in sentential contexts, allowing for human-judged similarity scores.
  • Text Classification: The 20NewsGroup dataset, consisting of approximately 20,000 documents across 20 categories.

Key Results and Insights

The experiments revealed that TWE models consistently outperform standard word embeddings and traditional topic models.

Quantitative Performance

On the SCWS similarity task, TWE-1 achieved a Spearman correlation of 68.1, surpassing standard Skip-Gram (65.7) and previous state-of-the-art multi-prototype models (65.3). In text classification on the 20NewsGroup dataset, TWE-1 reached an accuracy of 81.5%, a substantial improvement over standard LDA (72.2%) and Skip-Gram (75.4%).

Interestingly, the simplest model, TWE-1, often yielded the best results. The authors attribute this to the avoidance of "sparsity" issues found in TWE-2, where rare word-topic pairs lack sufficient data to form robust vectors.

Qualitative Disambiguation

The qualitative strength of TWE is most evident in its ability to separate distinct word senses based on topics. The model successfully identifies different neighbors for polysemous words like "bank," "left," and "apple."

Qualitative examples of topical word disambiguation

For example, "bank" under one topic is associated with "insurance" and "stock," while under another, it relates to "river" and "edge." This demonstrates that TWE effectively captures the "global vibe" of the document to select the appropriate semantic representation.

Conclusion and Future Directions

Topical Word Embeddings provide a principled and efficient way to incorporate global context into word representations. By reducing the feature space of Bag-of-Words models by over 99% while improving accuracy, TWE proves to be a powerful tool for NLP.

Future work may involve exploring non-parametric topic models to automatically determine the number of topics ($T$), which is currently a fixed hyperparameter. Additionally, integrating structured knowledge bases like WordNet or utilizing document metadata could further refine the assignment of word senses to topics.

Summary updated

BibTeX
@inproceedings{liu2015topical,
  author = {Yang Liu and Zhiyuan Liu and Tat-Seng Chua and Maosong Sun},
  title = {{Topical Word Embeddings}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2015},
  doi = {10.1609/aaai.v29i1.9522},
}
Figure