Abstract
Traditional neural topic modeling frameworks typically rely on Euclidean embeddings to represent words and topics. However, Euclidean space is fundamentally ill-suited for capturing the hierarchical relationships inherent in natural language. We propose HyperMiner, a novel framework that utilizes hyperbolic embeddings to mine interpretable topic taxonomies. By leveraging the "tree-like" geometry of hyperbolic space, HyperMiner naturally organizes semantics into hierarchies, placing general terms at the center and specific terms at the boundary. Furthermore, we introduce a knowledge-guided variant, HyperMiner-KG, which incorporates external structural knowledge through a hyperbolic contrastive learning loss. Our experiments across four standard benchmarks demonstrate that HyperMiner consistently outperforms state-of-the-art Euclidean models in both topic quality and document representation.
Introduction
Topic models are essential tools for discovering latent semantic structures in large text corpora. Modern Embedded Topic Models (ETMs) have advanced the field by representing words and topics in a shared continuous vector space. Despite their success, almost all existing ETMs operate in Euclidean space. This "flat" geometry poses a significant challenge for language modeling because language is inherently hierarchical (e.g., a "canary" is a "bird," which is an "animal").
In Euclidean space, representing complex tree structures requires high dimensionality to avoid significant distortion. Moreover, injecting external hierarchical knowledge, such as WordNet, into these models is difficult without disrupting their internal logic. HyperMiner addresses these limitations by shifting the embedding process into hyperbolic space, which possesses a geometry naturally suited for hierarchical data.
Methodology
Hyperbolic Embedding Space
Hyperbolic geometry is characterized by a "volume" that grows exponentially as one moves away from the center, mirroring the exponential growth of nodes in a tree as depth increases. HyperMiner builds upon the hierarchical "SawETM" architecture but replaces standard Euclidean inner products with hyperbolic distance functions, typically using the Poincaré ball or Lorentz models.
In this space, the model learns a spatial logic where general, high-frequency "root" words (e.g., "new," "does") gravitate toward the origin, while specific "leaf" words (e.g., "nasa," "moon") are pushed toward the boundary. This allows for a more efficient and interpretable representation of semantic hierarchies even in low-dimensional spaces.
Knowledge-Guided Mining (HyperMiner-KG)
To further enhance the model's ability to discover logical taxonomies, we introduce HyperMiner-KG. This variant incorporates prior structural knowledge from sources like WordNet. We employ a node-level hyperbolic contrastive loss to guide the embedding process. Positive pairs (a topic and its parent/child concepts) are pulled together, while negative pairs (unrelated concepts) are pushed apart. This contrastive approach acts as an inductive bias, "nudging" the model toward established knowledge while still allowing it to remain grounded in the specific patterns of the target corpus.
Experiments and Results
Datasets and Setup
We evaluated HyperMiner on four diverse benchmarks: 20Newsgroups (20NG), Tag My News (TMN), WikiText-103 (WIKI), and Reuters Corpus Volume II (RCV2). These datasets range from short snippets to large-scale Wikipedia articles, providing a robust test of the model's versatility.
Performance Analysis
The quality of the discovered topics was measured using two primary metrics: Topic Coherence (TC), which assesses the semantic consistency of words within a topic, and Topic Diversity (TD), which measures how unique the topics are from one another.
HyperMiner consistently outperformed Euclidean baselines like ETM and SawETM. Notably, HyperMiner-KG achieved the highest scores, particularly on the short-text TMN dataset where data sparsity often hinders traditional models. Beyond topic quality, HyperMiner showed significant gains in downstream tasks like document clustering and classification. For instance, on 20NG classification using only two dimensions, HyperMiner achieved approximately 20% accuracy, significantly higher than the 16% achieved by SawETM.
Discussion and Conclusion
The success of HyperMiner highlights the importance of matching the geometry of the embedding space to the structure of the data. By treating the origin as the root of a semantic tree, the model achieves high interpretability and efficiency in low dimensions. While the effectiveness of knowledge-guided mining depends on the alignment between the prior knowledge and the target corpus, HyperMiner represents a significant step forward in neural topic modeling. Future research will focus on developing heuristic strategies to construct more "qualified" priors and exploring hyperbolic embeddings in other NLP domains where hierarchy is a dominant feature.
Summary updated