Skip to main content
QUICK REVIEW

[Paper Review] SenGen: Sentence Generating Neural Variational Topic Model

Ramesh Nallapati, Igor Melnyk|arXiv (Cornell University)|Aug 1, 2017
Topic ModelingComputer Science13 references8 citations
TL;DR

SenGen proposes a neural variational topic model that assigns topics to entire sentences rather than individual words, using an RNN decoder conditioned on sentence-level topics to generate coherent, interpretable sentences. The model employs a VAE framework with separate variational encoders for document-level topic mixtures and sentence-level topic assignments, enabling better modeling of topical discourse structure and improved topic interpretability through generated sentences.

ABSTRACT

We present a new topic model that generates documents by sampling a topic for one whole sentence at a time, and generating the words in the sentence using an RNN decoder that is conditioned on the topic of the sentence. We argue that this novel formalism will help us not only visualize and model the topical discourse structure in a document better, but also potentially lead to more interpretable topics since we can now illustrate topics by sampling representative sentences instead of bag of words or phrases. We present a variational auto-encoder approach for learning in which we use a factorized variational encoder that independently models the posterior over topical mixture vectors of documents using a feed-forward network, and the posterior over topic assignments to sentences using an RNN. Our preliminary experiments on two different datasets indicate early promise, but also expose many challenges that remain to be addressed.

Motivation & Objective

  • To improve topic interpretability by generating representative sentences per topic instead of relying on bag-of-words representations.
  • To model topical discourse structure by assigning topics at the sentence level, capturing phenomena like topic drift and switch across sentences.
  • To extend variational auto-encoding for topic modeling by explicitly modeling posteriors over sentence-level topic assignments, not just document-level mixtures.
  • To enable more coherent and semantically meaningful document generation by leveraging RNNs to model within-sentence word dependencies conditioned on topic.
  • To address limitations of existing VAE-based topic models that focus only on document-level posteriors and ignore local topic assignment modeling.

Proposed method

  • The model generates documents by first sampling a document-level topic mixture vector θd from a standard normal distribution, then assigning a topic zₛ to each sentence s via a softmax over θd.
  • For each sentence, a topic-specific GRU-RNN decoder generates words conditioned on a learned topic-embedding vector EmbZ, capturing within-sentence dependencies.
  • A factorized variational inference framework is used: a feed-forward network encodes the posterior over document-level topic mixtures, while an RNN encoder models the posterior over sentence-level topic assignments.
  • The model uses reparameterization gradients for end-to-end training, enabling backpropagation through the stochastic topic assignments to optimize both document and sentence-level posteriors.
  • The decoder generates sequences via beam search or greedy sampling from the RNN’s softmax output, with attention to handling frequent words and improving coherence.
  • The framework allows visualization of topic transitions across sentences, enabling analysis of topical discourse structure in documents.

Experimental results

Research questions

  • RQ1Can assigning topics at the sentence level instead of word level lead to more interpretable and coherent topics compared to traditional bag-of-words models?
  • RQ2Does modeling sentence-level topic posteriors explicitly via an RNN encoder improve the quality and coherence of generated documents?
  • RQ3Can RNN-based decoders conditioned on topic embeddings generate grammatically correct and semantically meaningful sentences that reflect topic content?
  • RQ4How does the model’s performance compare to existing VAE-based topic models in terms of perplexity and topic interpretability?
  • RQ5What challenges arise in training such a high-parameter model, particularly regarding overfitting and the generation of non-informative or repetitive sequences?

Key findings

  • The model generates grammatically well-formed sentences via beam search, but these sequences often become repetitive and non-informative after a few time-steps.
  • Stochastic sampling from the RNN decoder produces less coherent, non-grammatical sequences, but they contain more topical words, suggesting a trade-off between fluency and topic relevance.
  • Preliminary quantitative results show higher perplexity than baseline models, likely due to dataset preprocessing differences and model overfitting from high parameter count.
  • The model’s ability to generate representative sentences per topic enhances topic interpretability compared to traditional bag-of-words topic representations.
  • The framework enables visualization of topic transitions across sentences, offering a pathway to model topical discourse phenomena like drift and switch.
  • The authors identify stop words and frequent terms as a major issue, suggesting that future work should handle them separately, possibly by initializing with pre-trained bag-of-words models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.