Stick-Breaking Embedded Topic Model with Continuous Optimal Transport for Online Analysis of Document Streams
Federica Granese, Serena Villata, Charles Bouveyron
TL;DR
This paper tackles online topic modeling for document streams by removing the need to fix the number of topics and by preserving the geometric integrity of topic embeddings over time. It introduces SB-SETM, which combines a truncated stick-breaking prior (replacing the logistic–normal prior) with a continuous optimal transport-based merging mechanism that transports current topic embeddings into the latent space of the previous timestep. Theoretical contributions include a reparameterizable variational family using Kumaraswamy sticks and a low-rank Monge map for high-dimensional OT, guarded by a balanced ELBO with reconstruction and regularization terms. Empirically, SB-SETM demonstrates improved topic activation accuracy and coherent evolution on both synthetic data and real-world corpora, including 20kNewsGroupOnline and UkRuWarNews22-23, with evidence that COT-based merging yields better coherence, diversity, and temporal alignment than DOT-based alternatives. The work advances online topic modeling by enabling scalable, adaptive topic discovery and stable topic trajectories in evolving document streams, with practical implications for real-time analysis of news and other streaming sources.
Abstract
Online topic models are unsupervised algorithms to identify latent topics in data streams that continuously evolve over time. Although these methods naturally align with real-world scenarios, they have received considerably less attention from the community compared to their offline counterparts, due to specific additional challenges. To tackle these issues, we present SB-SETM, an innovative model extending the Embedded Topic Model (ETM) to process data streams by merging models formed on successive partial document batches. To this end, SB-SETM (i) leverages a truncated stick-breaking construction for the topic-per-document distribution, enabling the model to automatically infer from the data the appropriate number of active topics at each timestep; and (ii) introduces a merging strategy for topic embeddings based on a continuous formulation of optimal transport adapted to the high dimensionality of the latent topic space. Numerical experiments show SB-SETM outperforming baselines on simulated scenarios. We extensively test it on a real-world corpus of news articles covering the Russian-Ukrainian war throughout 2022-2023.
