Reinforcement Learning with Policy Mixture Model for Temporal Point Processes Clustering

Weichang Wu, Junchi Yan, Xiaokang Yang, Hongyuan ZhaarXiv 2019

Introduction

Temporal Point Processes (TPP) are the standard mathematical tools used to model event sequences in continuous time, such as online purchases, seismic activity, or medical treatments. While significant progress has been made in predicting the next event in a sequence, clustering these sequences—grouping them by their underlying generative patterns—remains a challenge.

Traditional methods often suffer from two main drawbacks: they rely on rigid parametric forms (like Hawkes processes) that fail to capture real-world complexity, or they utilize two-step pipelines where feature extraction is decoupled from the clustering objective. This paper introduces RLPMM, a framework that addresses these issues by treating event sequence clustering as a reinforcement learning problem.

Methodology: The RLPMM Framework

RLPMM assumes that observed sequences are generated by a mixture of latent "expert policies." To discover these policies and their associated clusters, the authors employ an Expectation-Maximization (EM) approach combined with Inverse Reinforcement Learning (IRL).

The RLPMM framework uses an Expectation-Maximization (EM) approach to jointly cluster sequences and learn latent policies.

The EM Loop

  • Expectation (E-Step): A neural network classifier assigns each observed sequence to one of $N$ possible clusters. It determines which of the currently learned policies is most likely to have produced a given sequence.
  • Maximization (M-Step): For each cluster, the model learns a "policy" (a generator) that mimics the sequences in that group. Instead of a fixed formula, the model uses a Recurrent Neural Network (RNN) with stochastic neurons to model event intensity.

To handle the difficulty of defining reward functions for sequences of varying lengths, RLPMM utilizes Generative Adversarial Imitation Learning (GAIL). A discriminator network learns to distinguish between real sequences and those generated by the policy, effectively automating the discovery of the underlying reward function.

Experimental Evaluation

The model was evaluated on both synthetic and real-world datasets:

  • Synthetic Data: Sequences were generated using both structured Hawkes processes and non-Hawkes processes (e.g., Sine-like, Constant, and Bimodal intensity functions) to test the model's flexibility.
  • MemeTracker: A massive dataset tracking the diffusion of information across 172 million news articles and blog posts. The goal was to cluster patterns of how information spreads over time.

Key Results and Insights

RLPMM consistently outperformed state-of-the-art baselines, including DMMHP and GMM-based methods, across several key metrics.

Performance comparison of RLPMM against baselines across Clustering Purity (CP), Rand Index (RI), and Empirical Intensity Deviation (EID).
  • Superior Accuracy and Flexibility: RLPMM achieved higher Clustering Purity (CP) and Rand Index (RI) scores. Notably, on non-Hawkes synthetic data where traditional parametric models failed, RLPMM maintained high performance, proving its adaptability to diverse data patterns.
  • Computational Efficiency: RLPMM is significantly faster than recent GAN-based mixture models (WGANMM), achieving roughly a tenfold speedup (e.g., ~1.1s vs. ~10.3s per iteration on synthetic data).
  • Real-World Discovery: On the MemeTracker dataset, RLPMM successfully identified distinct diffusion patterns, such as "short-lived catchwords" versus "long-term policy discussions," which were validated through textual analysis of the clusters.

Conclusion

By viewing clustering through the lens of reinforcement learning, RLPMM avoids the pitfalls of rigid parametric modeling and disjointed two-step pipelines. The framework's likelihood-free learning approach makes it robust to noise and capable of handling complex, real-world temporal data. Future work may explore incorporating event types (multi-typed events) and integrating temporal clustering with NLP topic models for a more holistic understanding of information dynamics.

Summary updated

BibTeX
@misc{wu2019reinforcement,
  author = {Weichang Wu and Junchi Yan and Xiaokang Yang and Hongyuan Zha},
  title = {{Reinforcement Learning with Policy Mixture Model for Temporal Point Processes Clustering}},
  year = {2019},
  eprint = {1905.12345},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.12345},
}
Figure