Learning Neural Models for Continuous-Time Sequences

Vinayak GuptaarXiv 2021

Abstract

The large volumes of data generated by human activities such as online purchases, health records, and spatial mobility are stored as sequences of events over continuous time. Learning deep learning methods over such sequences is a non-trivial task as it involves modeling ever-increasing event timestamps, inter-event time gaps, event types, and the influences between events. This situation is further exacerbated by constraints such as limited data, incomplete sequences, and privacy restrictions. This work studies the properties of continuous-time event sequences (CTES) and designs robust, scalable neural network-based models using marked temporal point processes (MTPP) to address these real-world challenges.

Introduction

Most real-world data—from health records and financial transactions to social media posts—arrives as a sequence of events in continuous time. Traditionally, researchers model these using Marked Temporal Point Processes (MTPP). However, standard MTPP models often fail in practical applications because they assume perfect data availability and explicit feature labeling. This research identifies and addresses three primary hurdles in the field: incomplete sequences, limited training data, and hidden latent features.

Methodological Framework

To overcome the limitations of traditional models, three distinct neural architectures were developed, combining MTPP with advanced techniques like Normalizing Flows and Variational Inference.

1. IMTPP: Addressing Incomplete Sequences

Real-world data collection is rarely perfect; events are often missed due to technical glitches or privacy restrictions (e.g., GDPR). The Intermittently-observed MTPP (IMTPP) treats missing events as latent random variables. By utilizing a coupled-MTPP approach and variational inference, the model jointly learns the distribution of both observed and missing events. This allows the model to effectively "fill in the gaps" while learning underlying generative patterns, significantly improving training stability.

2. REFORMD: Overcoming Data Scarcity

Deep learning models are typically data-hungry, yet many domains—such as specific geographic regions in mobility studies—suffer from data scarcity. REFORMD (Reusable Flows for Mobility Data) utilizes Transfer Learning combined with Normalizing Flows (NFs). The core innovation is making the model "region-invariant" by training it to focus on relative features, such as inter-event time gaps and spatial distances, rather than absolute coordinates. This allows a model trained on a data-rich city to be fine-tuned for a data-poor region with high efficacy.

3. Self-Exciting MTPP for Latent Feature Discovery

Important relationships, such as social influences or community memberships, are often hidden in raw event streams. This research employs a spatial-temporal point process that models how events "trigger" or influence one another. By learning a shared excitation matrix across users, the model can group individuals into communities based on mobility preferences without requiring an explicit social graph.

Key Insights and Results

The research was validated across a diverse range of datasets, including Amazon (Movies and Toys), Twitter, Foursquare, Stack-Overflow, and eight distinct mobility datasets from the US and Japan.

  • Predictive Accuracy: IMTPP achieved up to an 8% improvement in predicting event marks and times. REFORMD outperformed baseline models by up to 20% in location recommendation and 23% in event-time prediction during knowledge transfer.
  • Computational Efficiency: Neural approaches proved significantly faster than traditional baselines. The IMTPP model trained in under 5 hours on datasets where previous state-of-the-art models required up to 24 hours—a nearly 80% reduction in training time.
  • Latent Discovery: The community detection approach showed a 27% improvement in location prediction and an 8% gain in community identification compared to existing neural models.

Conclusion and Future Work

This research demonstrates that treating missing data as a generative process and focusing on feature invariance are key to making CTES models robust. However, challenges remain, such as accurately estimating the total number of missing events between observations. Future directions include transitioning from standard transfer learning to meta-learning for faster adaptation and representing time series as temporal graphs with self-attention mechanisms for large-scale sequence retrieval.

Summary updated

BibTeX
@misc{gupta2021learning,
  author = {Vinayak Gupta},
  title = {{Learning Neural Models for Continuous-Time Sequences}},
  year = {2021},
  eprint = {2111.07189},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.07189},
}
Figure