Abstract
Traditional topic models like Latent Dirichlet Allocation (LDA) often struggle to incorporate human intuition without requiring rigid categorical labels. This paper introduces a regularized LDA framework that leverages "relative similarities"—triplet constraints stating that document $d_i$ is more similar to $d_i^+$ than to $d_i^-$. By incorporating these constraints through a hinge loss function and optimizing via a hybrid Gibbs-EM approach, the model achieves higher topic coherence and classification accuracy than standard unsupervised and supervised LDA variants.
Introduction
Topic modeling is a cornerstone of text analysis, yet standard unsupervised methods like LDA frequently produce topics that do not align perfectly with human conceptual frameworks. While supervised variants exist, they typically demand absolute labels (e.g., "this document belongs to category X"), which can be difficult or expensive to obtain. In contrast, humans find it much easier to provide relative judgments: "these two articles are more related to each other than to this third one." This paper addresses the challenge of integrating such flexible, relative human intuitions directly into the topic discovery process.
Methodology
The authors propose a regularized version of LDA that maintains the original graphical structure while adding a penalty for violating relative similarity constraints.
The Triplet Constraint and Loss Function
The model utilizes triplets $(d_i, d_i^+, d_i^-)$ to represent relative similarity. A hinge loss function is added to the standard log-likelihood objective of LDA to encourage the distance between $d_i$ and $d_i^+$ to be smaller than the distance between $d_i$ and $d_i^-$ in the topic distribution space ($\theta$).
Distance Metrics and Optimization
Two distance metrics are explored for measuring the divergence between document-topic distributions:
- Squared Euclidean distance (DRS-SE)
- Symmetric KL-divergence (DRS-KL)
The model is fitted using a Gibbs-EM algorithm. The E-step employs collapsed Gibbs sampling to estimate hidden topic assignments, while the M-step uses gradient descent to optimize the document-topic distributions based on the similarity constraints. A softmax transformation ensures that the resulting distributions remain valid on the topic simplex.
Experimental Evaluation
The model was evaluated on the 20 Newsgroups and TDT2 datasets. To simulate human intuition, triplets were generated based on ground-truth labels. For instance, two documents from the same category were paired against a third from a different category.
Results and Discussion
The proposed models, DRS-KL and DRS-SE, demonstrated significant improvements over baseline methods.
Topic Quality and Coherence
Qualitatively, the model produced highly coherent topics. For example, in the 20 Newsgroups dataset, the model successfully isolated distinct themes such as gun control, religion, and computer hardware.
Classification Performance
Quantitatively, the learned topic distributions were used as features for an SVM classifier. As shown in the table below, the DRS models consistently outperformed both standard LDA and Supervised LDA (sLDA), even though sLDA had access to the full set of category labels during training.
The symmetric KL-divergence (DRS-KL) generally provided the best performance, suggesting it is a more effective metric for capturing document relationships in topic space.
Conclusion and Future Work
By treating human intuition as a regularizer rather than a structural constraint, this approach provides a flexible and powerful way to guide topic modeling. While the computational cost increases with the number of triplets, the gains in classification accuracy and topic coherence are substantial. Future research will explore active learning strategies for triplet selection and the integration of distance metric learning to further refine the document space geometry.
Summary updated