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

Graph-Sparse LDA: A Topic Model with Structured Sparsity

Finale Doshi-Velez, Byron C. Wallace, Ryan P. Adams

Abstract

Standard topic models often produce "word soup" topics that are difficult for domain experts to interpret, especially in fields with complex, structured vocabularies. We present Graph-Sparse LDA (GS-LDA), a hierarchical model that incorporates existing domain ontologies—such as medical taxonomies—to induce structured sparsity. By representing topics as distributions over "concept-words" within a Directed Acyclic Graph (DAG), GS-LDA achieves state-of-the-art predictive performance while reducing topic complexity by orders of magnitude. Our results on clinical and biomedical datasets demonstrate that GS-LDA recovers highly interpretable, clinically relevant topics that align with expert knowledge.

Introduction

Latent Dirichlet Allocation (LDA) and its variants typically treat words as an unstructured "bag," ignoring the rich hierarchical relationships often present in technical domains. In medicine, for instance, clinicians use controlled vocabularies like ICD-9 or MeSH, where terms like "Grand Mal" are known subtypes of "Epilepsy." Standard models must learn these relationships from scratch, often resulting in redundant or fragmented topics containing hundreds of words. This lack of interpretability is a significant barrier to the adoption of topic modeling in high-stakes environments like healthcare or finance.

Methodology: Graph-Sparse LDA

GS-LDA addresses the interpretability gap by adding a layer of hierarchy informed by a pre-existing ontology.

Concept-Words and Ontology-Informed Generation

Instead of defining topics directly over observed words, GS-LDA defines them over concept-words. These concept-words generate observed words through a noise process guided by a DAG or tree structure. A single concept-word (e.g., "Epilepsy") can explain the presence of any of its ancestors or descendants in the graph, allowing the model to handle varying levels of specificity in the data.

An example ontology for epilepsy, illustrating how concept-words can explain a cluster of related clinical terms.

Structured Sparsity and Inference

The model employs an Indian Buffet Process (IBP) prior to induce sparsity. Because a few concept-words can "explain" a large cluster of related terms, the resulting topics are much more concise. To handle the computational challenges of sparse hierarchical models, the authors introduce a novel Metropolis-Hastings (MH) procedure using "split-merge" moves. These moves allow the sampler to efficiently navigate the parameter space, favoring sparser representations without sacrificing likelihood.

Experimental Evaluation

The model was evaluated on three distinct datasets to test its robustness:

  1. Toy Problem: A synthetic 31-word vocabulary arranged in a binary tree.
  2. Autism Spectrum Disorder (ASD): 3,804 patient records with 3,626 unique ICD-9-CM diagnosis codes.
  3. Biomedical Abstracts: 1,218 documents annotated with 5,347 unique MeSH terms related to calcium-channel blockers.

Key Results and Discussion

GS-LDA demonstrates a unique ability to achieve extreme sparsity without a loss in predictive power.

Comparison of GS-LDA and Sparse LDA across three datasets. GS-LDA maintains comparable predictive likelihood while significantly reducing the number of non-zero dimensions per topic.

Predictive Parity and Massive Sparsity Gains

As shown in the results, GS-LDA matched or slightly exceeded the predictive log-likelihood of LIDA (a state-of-the-art sparse topic model) across all domains. However, the gains in interpretability were massive. In the ASD dataset, a topic that required 119 words in LIDA was summarized by GS-LDA using just 6 concept-words. This reduction allows experts to quickly grasp the essence of a topic without sifting through a "word soup."

Clinical Relevance

In the ASD application, the model recovered sparse topics that directly align with recent clinical findings, such as the link between severe ASD, intellectual disability, and epilepsy. By leveraging human wisdom codified in ontologies, GS-LDA produces outputs that are immediately recognizable and useful to domain experts.

Conclusion and Future Work

GS-LDA represents a significant step toward interpretable machine learning in structured domains. While currently dependent on fixed, pre-existing ontologies, future iterations could explore "noisy" ontologies where the model suggests structural edits based on observed data. Despite the computational intensity of MCMC inference, the benefits of structured sparsity make GS-LDA a powerful tool for analyzing complex, hierarchical data.

Summary updated

BibTeX
@inproceedings{doshivelez2015graph,
  author = {Finale Doshi-Velez and Byron C. Wallace and Ryan P. Adams},
  title = {{Graph-Sparse LDA: A Topic Model with Structured Sparsity}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2015},
  doi = {10.1609/aaai.v29i1.9603},
}
Figure