Interpretable Topic Extraction and Word Embedding Learning using row-stochastic DEDICOM

Lars Hillebrand, David Biesner, Christian Bauckhage, Rafet SifaarXiv 2025 · DOI

TL;DR

This paper introduces a row-stochastic variant of the DEDICOM (DEcomposition into DIrectional COMponents) matrix factorization algorithm to simultaneously extract latent topics and learn highly interpretable word embeddings. By bridging the gap between topic modeling and representation learning, this approach provides a unified framework where embedding dimensions directly correspond to meaningful semantic categories.

What Problem Does This Paper Address?

In natural language processing, researchers typically face a trade-off between two worlds:

  1. Word Embeddings (like GloVe or word2vec), which excel at capturing rich semantic relationships but feature latent dimensions that are notoriously difficult to interpret.
  2. Topic Models (like LDA or Non-negative Matrix Factorization), which cluster vocabularies into clear thematic groups but fail to produce word vectors with robust semantic properties (such as reliable cosine similarity metrics).

The authors address this dichotomy by modifying DEDICOM, a matrix factorization technique uniquely suited for square matrices. Their goal is to generate low-dimensional word embeddings where each dimension represents a distinct, human-readable topic, while simultaneously mapping out how these topics interact with one another.

Methods

The core architecture relies on factorizing a square Positive Pointwise Mutual Information (PPMI) matrix $S$, derived from word co-occurrences in a text corpus. Standard DEDICOM factorizes this into a loading matrix $A$ and a square affinity matrix $R$:

$$S \approx A R A^T$$

Figure 1: The DEDICOM algorithm factorizes a square matrix S into a loading matrix A and an affinity matrix R.

To enforce interpretability, the authors introduce a novel row-stochastic constraint on the loading matrix $A$:

  • Column-wise Z-Normalization: Applied to $A$ to prevent a single latent topic from dominating the entire matrix.
  • Row-wise Softmax: Applied to the normalized matrix to ensure that each row (representing a word's embedding) sums to 1. This transforms the embedding vector into a valid probability distribution over the latent topics.

To overcome the traditional "Kronecker product bottleneck" of DEDICOM—which makes it computationally impossible to scale to large vocabularies—the authors train the model using alternating gradient descent with the Adam optimizer in PyTorch, leveraging automatic differentiation.

Figure 2: The affinity matrix R describes the relationships between the latent factors. Illustrated here are two word embeddings, corresponding to the words wi and wj. Darker shades represent larger values. In this example we predict a large co-occurrence at Sii and Sjj because of the large weight on the diagonal of the R matrix. We predict a low co-occurrence at Sij and Sji since the large weights on Ai1 and Aj3 interact with low weights on R13 and R31.

Datasets

The model was evaluated using a synthetically generated text corpus built from English Wikipedia articles. The authors concatenated triplets of articles to form documents across three distinct structural categories:

  • Different: Articles with no thematic overlap (e.g., "Soccer", "Bee", and "Johnny Depp").
  • Mixed: Two related articles and one unrelated article (e.g., "Donald Trump", "New York City", and "Michael Bloomberg").
  • Similar: Three highly related articles (e.g., "Shark", "Dolphin", and "Whale").

This controlled setup allowed the authors to verify whether the algorithm could accurately recover distinct, granular sub-topics from a blended text.

Key Insights and Ideas

  • Dual-Purpose Factorization: Word embedding and topic modeling do not need to be separate pipelines. Row-stochastic DEDICOM proves they can be optimized jointly without sacrificing the strengths of either.
  • Embeddings as Distributions: By forcing embedding rows to act as probability distributions, a vector explicitly communicates its composition (e.g., a word belonging $70\%$ to Topic A and $30\%$ to Topic B).
  • Inter-Topic Mapping via $R$: Unlike standard matrix factorizations, DEDICOM’s square affinity matrix $R$ explicitly captures how different topics interact or co-occur within the corpus (e.g., mapping the relationship between Johnny Depp's acting career and his personal life).

Key Results

  • High-Quality Topic Separation: On the "Soccer, Bee, Johnny Depp" dataset ($k=6$), the model successfully isolated distinct sub-topics, such as separating soccer game mechanics from soccer's organizational/professional aspects.
  • Superior Semantic Neighborhoods: When evaluating the nearest neighbors of words using cosine similarity, row-stochastic DEDICOM drastically outperformed NMF, LDA, and SVD. For example, the nearest neighbors for "ball" in DEDICOM were highly relevant words like "penalty" and "referee". In contrast, NMF yielded nonsensical neighbors like "invoke" and "replaced".
  • Parameter Efficiency: Although the row-stochastic constraints result in a slightly higher final reconstruction error compared to unconstrained NMF or SVD, DEDICOM achieves its results with significantly fewer parameters ($nk + k^2$ vs $2nk$), trading a small amount of reconstruction accuracy for total interpretability.

Limitations and Future Work

  • Qualitative Evaluation: The paper relies heavily on qualitative analysis, cluster visualizations, and nearest-neighbor inspections rather than standard downstream NLP benchmark tasks (e.g., word analogy or text classification datasets).
  • Scalability: While the gradient descent approach bypasses older computational bottlenecks, scaling the PPMI matrix factorization to massive, open-domain vocabularies remains a challenge.
  • Future Extensions: The authors propose extending this framework to analyze topic relationships across multiple documents over time. By stacking topic relationship matrices while sharing a single word embedding space, they aim to track temporal trends and discover how real-world topic interactions evolve.

Summary updated

Abstract

The DEDICOM algorithm provides a uniquely interpretable matrix factorization method for symmetric and asymmetric square matrices. We employ a new row-stochastic variation of DEDICOM on the pointwise mutual information matrices of text corpora to identify latent topic clusters within the vocabulary and simultaneously learn interpretable word embeddings. We introduce a method to efficiently train a constrained DEDICOM algorithm and a qualitative evaluation of its topic modeling and word embedding performance.
BibTeX
@misc{hillebrand2025interpretable,
  author = {Lars Hillebrand and David Biesner and Christian Bauckhage and Rafet Sifa},
  title = {{Interpretable Topic Extraction and Word Embedding Learning using row-stochastic DEDICOM}},
  year = {2025},
  eprint = {2507.16695},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.16695},
}
Figure