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

Generative Topic Embedding: a Continuous Representation of Documents

Shaohua Li, Tat-Seng Chua, Jun Zhu, Chunyan Miao

Introduction

Document representation has traditionally been divided into two distinct paradigms: local word embeddings and global topic models. Word embeddings, such as Word2Vec, excel at capturing local semantic relationships but often fail to represent the broader thematic structure of a document. Conversely, topic models like Latent Dirichlet Allocation (LDA) capture corpus-wide themes but treat words as discrete, independent entities, ignoring the inherent semantic similarities between related terms like "cat" and "kitten."

TopicVec bridges this gap by representing topics as vectors in the same continuous $N$-dimensional space as word embeddings. This generative framework produces dense, semantically rich document representations that outperform traditional methods in classification tasks, particularly when data is scarce.

Methods: The TopicVec Framework

The core innovation of TopicVec is the Embedding Link Function, which integrates local context with global thematic structure. Unlike traditional models where a topic is a probability distribution over a discrete vocabulary, TopicVec defines a topic as a vector ($t$) in the embedding space.

Graphical representation of the TopicVec generative model showing the interaction between word embeddings, topic embeddings, and document structure.

In this model, the probability of a word appearing is influenced by:

  1. Local Context: The embeddings of neighboring words.
  2. Global Topic: The embedding of the latent topic assigned to that word.

Geometrically, a word's vector aligns with the direction of its assigned topic vector. To learn these parameters, the authors utilize a Variational GEM (Generalized Expectation-Maximization) algorithm. This process first establishes stable word embeddings and then iteratively refines topic embeddings and document-specific "mixing proportions."

Key Insights

  • Topics as Semantic Centroids: TopicVec treats topics as "centroids" in the embedding space. Words cluster around these points, making the model robust to synonyms and rare words that might otherwise be missed by discrete models.
  • The "Null Topic": To prevent common functional words from distorting thematic clusters, the model includes a "null topic" fixed at the origin.
  • Efficiency and Scalability: By leveraging pre-trained word embeddings (e.g., from Wikipedia), TopicVec can derive coherent topics from even a single document—a feat difficult for traditional LDA, which requires large corpora.

Experimental Results

The model was evaluated on the 20 Newsgroups and Reuters-21578 datasets. TopicVec consistently outperformed established baselines, including LDA, Doc2Vec, and Topical Word Embeddings (TWE).

Classification performance (Precision, Recall, and F1) comparison across various models on the 20News and Reuters datasets.

Beyond accuracy, TopicVec offers significant advantages in feature sparsity. On the 20 Newsgroups dataset, TopicVec achieved superior results using only 281 features, compared to the 50,381 features required by a standard Bag-of-Words (BOW) approach. This reduction in dimensionality makes downstream tasks significantly more efficient.

Limitations and Future Work

While TopicVec is highly effective, the authors noted potential "identifiability issues" where redundant, semantically similar topics might be learned if document subsets are disjoint. Future work may involve joint optimization of word and topic embeddings to further enhance performance, as well as extending the model to document retrieval and automated summarization.

Summary updated

BibTeX
@inproceedings{li2016generative,
  author = {Shaohua Li and Tat-Seng Chua and Jun Zhu and Chunyan Miao},
  title = {{Generative Topic Embedding: a Continuous Representation of Documents}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2016},
  doi = {10.18653/v1/p16-1063},
}
Figure