[Paper Review] Discriminative Topic Modeling with Logistic LDA
This paper proposes Logistic LDA, a discriminative topic model that extends LDA to arbitrary input types—such as images, text embeddings, and multimodal data—by replacing LDA’s generative component with a neural network while preserving its interpretability and group-structure inductive bias. The model achieves competitive performance on document classification (84.4% accuracy on 20-Newsgroups) using only word embeddings and unsupervised training, outperforming simpler baselines and matching complex LSTM models.
Despite many years of research into latent Dirichlet allocation (LDA), applying LDA to collections of non-categorical items is still challenging. Yet many problems with much richer data share a similar structure and could benefit from the vast literature on LDA. We propose logistic LDA, a novel discriminative variant of latent Dirichlet allocation which is easy to apply to arbitrary inputs. In particular, our model can easily be applied to groups of images, arbitrary text embeddings, and integrates well with deep neural networks. Although it is a discriminative model, we show that logistic LDA can learn from unlabeled data in an unsupervised manner by exploiting the group structure present in the data. In contrast to other recent topic models designed to handle arbitrary inputs, our model does not sacrifice the interpretability and principled motivation of LDA.
Motivation & Objective
- To develop a topic model that generalizes LDA beyond discrete words to richer data types such as images, text embeddings, and multimodal collections.
- To preserve the interpretability and structured inductive bias of LDA while adopting a discriminative learning approach for better scalability and performance.
- To enable unsupervised training by leveraging the group structure of items (e.g., tweets, pins, videos) as weak supervision.
- To integrate seamlessly with deep neural networks and pre-trained embeddings like GloVe.
- To provide a lightweight, efficient alternative to complex sequence models like LSTMs for document classification.
Proposed method
- Logistic LDA replaces LDA’s generative component with a neural network that maps input features (e.g., word embeddings) to topic distributions, enabling application to arbitrary input types.
- The model uses a conditional factorization $ p(m{c}, m{ heta} vert m{x})p(m{x}) $, where $ m{c} $ is the topic assignment, $ m{ heta} $ the model parameters, and $ m{x} $ the input, making it discriminative yet preserving LDA’s structural inductive bias.
- Mean-field variational inference is used to train the model in unsupervised, semi-supervised, or supervised settings by optimizing a variational lower bound on the log-likelihood.
- An empirical risk minimization approach is introduced for supervised training, allowing optimization of arbitrary loss functions (e.g., cross-entropy) when labels are available.
- The model uses a neural network to parameterize the conditional distribution $ p(m{k}_{dn} vert m{x}_{dn}, m{ heta}) $, replacing the categorical topic assignment in LDA with a differentiable, learnable function.
- Topic interpretability is maintained by extracting top words per topic, and model performance is evaluated via topic coherence scores and classification accuracy.
Experimental results
Research questions
- RQ1Can a discriminative topic model be designed to handle arbitrary input types such as images, text embeddings, and multimodal data while preserving LDA’s interpretability?
- RQ2Does leveraging group-level structure (e.g., collections of tweets or pins) enable effective unsupervised training of a topic model without explicit labels?
- RQ3How does Logistic LDA compare in performance to deep learning baselines like LSTMs on standard NLP benchmarks such as 20-Newsgroups?
- RQ4Can a lightweight, non-generative model achieve competitive results with complex models like oh-2LSTMp while providing explicit topic representations?
- RQ5Does optimizing the inference objective for the downstream task (e.g., cross-entropy) yield better performance than a loss-insensitive objective?
Key findings
- Logistic LDA achieves 84.4% accuracy on the 20-Newsgroups document classification benchmark using only 300-dimensional GloVe word embeddings and a lightweight neural network.
- The model performs comparably to SA-LSTM, a complex LSTM classifier initialized with a pretrained autoencoder, but trains in hours rather than days.
- Unsupervised training with mean-field variational inference successfully discovers coherent topics, such as 'automobiles' (e.g., bmw, car, engine) and 'space exploration' (e.g., spacecraft, rocket, orbit).
- Optimizing the inference objective with cross-entropy loss yields significantly better accuracy (84.4%) than a loss-insensitive objective (82.2%), confirming the benefit of task-specific optimization.
- The model demonstrates strong performance on unsupervised topic discovery, with NPMI coherence scores comparable to state-of-the-art models like those of Srivastava and Sutton.
- Logistic LDA maintains interpretability through explicit topic representations while enabling end-to-end training with deep neural networks and arbitrary input modalities.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.