Dynamic Topic Models for Temporal Document Networks

Delvin Ce Zhang, Hady W. LauwICML 2022

Understanding how topics evolve within document networks that grow over time is a complex challenge. By combining neural topic modeling with advanced techniques from optimal transport and point processes, this paper introduces a holistic approach to modeling how content and connectivity co-evolve in dynamic networks.

The authors propose NetDTM and NetDTM++, two neural topic models designed specifically for temporal document networks. These models jointly capture document content, time evolution, and network structure by using a novel Time-Aware Optimal Transport mechanism and a Hawkes Process to model how historical connections influence future links.

What Problem Does This Paper Address?

Most documents do not exist in a vacuum; they are part of interconnected networks, such as academic citation graphs or web page hyperlinks. Furthermore, these networks are dynamic—new documents are published, and new links are formed continuously over time.

Evolution of a temporal document network over time.

Existing research typically falls into two distinct camps:

  1. Dynamic Topic Models (DTM): These track how topics change over time in a corpus but treat documents as independent entities, ignoring the rich structural information contained in their links.
  2. Relational Topic Models (RTM): These use network links to improve topic discovery but usually treat the network as a static snapshot, ignoring the temporal process of how those links formed.

The gap lies in jointly modeling all three dimensions: textual content, network structure, and temporal dynamics. The authors argue that the time a document is created influences not just its content, but also its likelihood of connecting to other documents. For instance, an academic paper is far more likely to cite recent, semantically related work than older, unrelated work.

Methods

To bridge this gap, the authors propose two hierarchical models that capture both semantic and structural network dynamics.

1. NetDTM (Semantic-Level Modeling)

NetDTM focuses on how semantic similarity and time proximity drive link formation.

  • Time-Aware Attention: When representing a document, the model aggregates information from its neighbors. It uses an attention mechanism that considers both semantic similarity and a "time embedding" (using sine and cosine functions). This ensures that documents published closer in time receive higher attention weights.
  • Time-Aware Optimal Transport (OT): This is the core innovation of NetDTM. Standard OT measures the distance between two distributions. The authors extend this by adding a time dimension, measuring the "cost" of transporting a document's topic distribution to its neighbors' word distributions across a specific timespan. This allows the model to use links as a strong signal for semantic alignment.

2. NetDTM++ (Network-Level Modeling)

NetDTM++ builds on NetDTM by acknowledging that links are driven not just by content, but also by existing network topology.

  • Hawkes Process: The authors use a Hawkes process (a type of temporal point process) to model "network momentum." It captures the idea that if two documents share many common neighbors (second-order proximity), they are more likely to form a link themselves. This allows the model to capture higher-order structural influences that simple semantic similarity might miss.
Illustration of the modeling process, showing neighbor aggregation and the Hawkes process for link formation.

Key Insights and Ideas

  • Time as a Connectivity Dimension: Time isn't just a metadata tag; it's a fundamental constraint on connectivity. The model's use of relative time differences in its attention and OT mechanisms reflects the reality that "recentness" matters heavily in network growth.
  • Links as Semantic Anchors: By using Time-Aware OT to align a document's topics with its neighbors' actual words, the model forces the latent topics to be more grounded and predictive of actual network structure.
  • The "Gravity" of Network Structure: NetDTM++ demonstrates that semantics alone aren't enough. The historical state of the network (who is already connected to whom) acts as a powerful predictor for future growth, which the Hawkes process captures effectively.

Key Results

The models were evaluated on four diverse dynamic document networks: two subsets of the Cora citation network (Machine Learning and Programming Languages), a High Energy Physics citation network (HEP-TH), and a network of news articles (Web). The authors compared their models against a wide array of baselines, including static topic models, standard dynamic topic models, and static network-based topic models.

  • Document Classification: NetDTM and NetDTM++ consistently outperformed baselines in predicting document labels (e.g., the sub-field of a paper), especially as more temporal data became available for training.
  • Link Prediction: In predicting future links, the proposed models showed significant gains. NetDTM++ generally performed best, proving the value of modeling higher-order network dynamics.
  • Topic Quality: Using metrics like Perplexity and Topic Coherence (NPMI), the authors showed that incorporating Optimal Transport leads to more distinct and human-interpretable topics.
  • Topic Evolution: The models successfully tracked how specific terms wax and wane in importance over decades within a given field.

Limitations and Future Work

While highly effective, the proposed models are computationally expensive. Modeling the full Hawkes process and performing Sinkhorn iterations for Optimal Transport requires significant resources, especially on very large networks. Additionally, the choice of time granularity (e.g., yearly vs. monthly) is currently a fixed hyperparameter. Future work could explore adaptively learning the optimal time scale for different datasets, as well as developing online learning versions that can update topics as new documents arrive in real-time.

Summary updated

BibTeX
@inproceedings{zhang2022dynamic,
  author = {Delvin Ce Zhang and Hady W. Lauw},
  title = {{Dynamic Topic Models for Temporal Document Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=nGTJeiZZ0sx},
}
Figure