cs.CLFeb 20, 2026

Improving Topic Modeling by Distilling Soft Labels from Language Models

Authors: Raymond Li, Amirhossein Abaskohi, Chuyuan Li, Gabriel Murray, Giuseppe Carenini

Organizations: University of British Columbia, Vancouver, Canada.

Abstract

Traditional neural topic models are typically optimized by reconstructing the document's Bag-of-Words (BoW) representations, overlooking contextual information and struggling with data sparsity. In this work, we introduce a novel topic model training framework by Distilling Soft Labels (DSL) from Language Models (LMs). To construct the contextually enriched reconstruction signals, we project the next token probabilities, conditioned on a specialized prompt, onto a pre-defined vocabulary, and train the topic models to reconstruct the soft labels using the LM hidden states. This produces higher-quality topics that are more closely aligned with the underlying thematic structure of the corpus. Extensive experiments demonstrate that DSL achieves substantial improvements in topic coherence and assignment accuracy over existing baselines. Additionally, we also introduce a retrieval-based metric, which shows that our approach significantly outperforms existing methods in identifying semantically similar documents, highlighting its effectiveness for retrieval-oriented applications.

Figures & tables

Appendix figures & tables8 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Model Directions, Not Words: Mechanistic Topic Models Using Sparse Autoencoders

    Jul 31, 2025Carolina Zheng, Nicolas Beltran-Velez, Sweta Karlekar +5Topic Modeling

  2. From Documents to Segments: A Contextual Reformulation for Topic Assignment

    May 18, 2026Hoonsang Yoon, Takyoung Kim, Wonkee Lee +3Topic Modeling