Document Informed Neural Autoregressive Topic Models

Pankaj Gupta, Florian Buettner, Hinrich SchützearXiv 2018

TL;DR

This paper introduces iDocNADE, a novel neural topic model that leverages the full context of words (both preceding and succeeding) to better understand their meaning. By incorporating this bidirectional context, iDocNADE significantly improves document representation quality, leading to better performance in tasks like document retrieval and classification compared to existing state-of-the-art models.

What Problem Does This Paper Address?

Traditional topic models, like Latent Dirichlet Allocation (LDA), often struggle with word ambiguity because they primarily focus on word frequencies within a document without fully considering the surrounding words. For instance, the word "networks" can refer to vastly different concepts (e.g., neural networks vs. computer networks) depending on the context. While some advanced models like DocNADE consider preceding words, they don't utilize the full context. This paper aims to bridge this gap by developing a topic model that effectively captures the meaning of words by exploiting their complete surrounding context within a document. This enhanced understanding of word meaning is crucial for learning richer and more accurate document representations.

Methods

The core contribution of this paper is the iDocNADE (Document Informed Neural Autoregressive Topic Model). It builds upon the DocNADE architecture but enhances it by incorporating bidirectional context.

Here's a breakdown of the approach:

  • Neural Autoregressive Topic Modeling: Like DocNADE, iDocNADE uses a neural network to model the probability of words in a document. It decomposes the joint probability of a document into a product of conditional probabilities of each word given the preceding words.
  • Bidirectional Context: The key innovation is the integration of both forward (preceding words) and backward (succeeding words) language models. This is achieved by using separate hidden layers for processing forward and backward contexts.
  • Shared Parameters: Crucially, the parameters of the neural networks used for forward and backward passes are shared, promoting efficient learning and generalization.
  • Document Representation: The final document representation is derived by combining the hidden representations from both the forward and backward networks.
  • Hierarchical Softmax: To efficiently compute the conditional probabilities, the model employs a binary word tree, similar to DocNADE, which reduces the computational complexity.

Datasets

The authors evaluated their iDocNADE model on seven diverse datasets:

  1. NIPS: A collection of scientific articles.
  2. TREC: A set of questions.
  3. Reuters8: A collection of news stories.
  4. Reuters21578: Another collection of news stories.
  5. Polarity: Positive and negative text snippets from Rotten Tomatoes.
  6. 20NewsGroups: A collection of news stories.
  7. SiROBs (Sixxx Requirement Objects): Paragraphs extracted from industrial tender documents.

These datasets cover various domains, allowing for a comprehensive evaluation of the model's generalization capabilities.

Key Insights and Ideas

  • Context is King (Even for Topic Models): The paper strongly reinforces the idea that understanding word meaning requires looking beyond simple word counts. Full contextual information (both past and future words) is vital for disambiguating words and learning richer representations.
  • Bidirectional is Better: Simply using preceding words (unidirectional) is good, but incorporating succeeding words significantly boosts performance. This suggests that a more holistic view of word usage within a document leads to better topic inference.
  • Improved Generalization: The iDocNADE model demonstrates better generalization across different datasets, indicating that the learned representations are more robust and less prone to overfitting.
  • Meaningful Topics: The qualitative analysis shows that iDocNADE can capture more coherent and interpretable topics compared to its predecessor.

Key Results

The iDocNADE model consistently outperformed the baseline DocNADE across various tasks and metrics:

  • Perplexity (PPL): iDocNADE achieved lower perplexity on average across seven datasets, indicating better generative performance. For example, it showed an average improvement from 650 to 601 (for 50 topics) and 596 to 556 (for 200 topics).
  • Document Retrieval: The model showed significant gains in precision at retrieval fraction 0.02, with an average improvement of 9.6% (0.57 vs. 0.52).
  • Text Categorization: iDocNADE achieved a 7.2% improvement in F1 score (0.582 vs. 0.543) on average for text classification tasks.
  • Topic Coherence: The model produced more coherent topics, as indicated by higher average coherence scores.

Limitations and Future Work

  • Computational Cost: While the paper mentions techniques to speed up computation (like binary word trees), neural topic models can still be computationally intensive, especially for very large datasets. The paper briefly touches upon investigating approximate pseudo-likelihoods for further speed-up.
  • Hyperparameter Tuning: Like most neural models, iDocNADE's performance is sensitive to hyperparameter choices. The paper mentions using development sets to find optimal settings.
  • Transfer Learning: The paper explores transfer learning by training on one dataset and evaluating on another, showing promising results for out-of-domain generalization. This suggests future work could focus on more advanced transfer learning strategies.
  • Pseudo-likelihood: The authors mention the possibility of using pseudo-likelihoods to speed up computation, which could be explored further.

Summary updated

BibTeX
@misc{gupta2018document,
  author = {Pankaj Gupta and Florian Buettner and Hinrich Schütze},
  title = {{Document Informed Neural Autoregressive Topic Models}},
  year = {2018},
  eprint = {1808.03793},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1808.03793},
}
Figure