Skip to main content
QUICK REVIEW

[Paper Review] Time-Dependent Representation for Neural Event Sequence Prediction

Yang Li, Nan Du|arXiv (Cornell University)|Jul 31, 2017
Topic ModelingComputer Science5 citations
TL;DR

This paper proposes time-dependent event representations for neural sequence prediction using RNNs, introducing time masking and joint embedding to encode temporal intervals more effectively than raw timestamps. It also introduces duration-based regularization, achieving consistent accuracy gains across diverse datasets like app usage and music recommendation, with TimeJoint outperforming baselines including RMTPP.

ABSTRACT

Existing sequence prediction methods are mostly concerned with time-independent sequences, in which the actual time span between events is irrelevant and the distance between events is simply the difference between their order positions in the sequence. While this time-independent view of sequences is applicable for data such as natural languages, e.g., dealing with words in a sentence, it is inappropriate and inefficient for many real world events that are observed and collected at unequally spaced points of time as they naturally arise, e.g., when a person goes to a grocery store or makes a phone call. The time span between events can carry important information about the sequence dependence of human behaviors. In this work, we propose a set of methods for using time in sequence prediction. Because neural sequence models such as RNN are more amenable for handling token-like input, we propose two methods for time-dependent event representation, based on the intuition on how time is tokenized in everyday life and previous work on embedding contextualization. We also introduce two methods for using next event duration as regularization for training a sequence prediction model. We discuss these methods based on recurrent neural nets. We evaluate these methods as well as baseline models on five datasets that resemble a variety of sequence prediction tasks. The experiments revealed that the proposed methods offer accuracy gain over baseline models in a range of settings.

Motivation & Objective

  • To address the limitation of existing sequence models that treat time as discrete or ignore it, by incorporating continuous time intervals meaningfully.
  • To model human-like time perception in event sequences, where duration and timing context affect behavior prediction.
  • To improve sequence prediction accuracy by learning time-dependent representations that capture temporal dependencies beyond event order.
  • To explore the use of next-event duration as a regularizer to enhance model generalization and temporal reasoning.

Proposed method

  • Introduces TimeMask: a method that modifies event embeddings using learned time-aware masks based on inter-event durations.
  • Proposes TimeJoint: a joint embedding of events and their time intervals using soft one-hot encoding of time spans.
  • Applies a learned projection to convert scalar time values into dense, low-dimensional representations that preserve temporal distinctions.
  • Uses next-event duration as a regularizer via two loss functions: negative log-likelihood of duration prediction and cross-entropy in a projected categorical space.
  • Trains models using RNNs (LSTM) with end-to-end optimization on real-world event sequences.
  • Employs distributed training with asynchronous updates on GPU clusters for scalability across large datasets.

Experimental results

Research questions

  • RQ1Can time-aware representations improve neural sequence prediction beyond simple timestamp input or fixed time binning?
  • RQ2How does modeling time as a learned, context-dependent embedding compare to using raw time values in RNNs?
  • RQ3Does incorporating next-event duration as a regularizer improve generalization and prediction accuracy in event sequence modeling?
  • RQ4In what scenarios does time-dependent representation fail to improve performance, and why?
  • RQ5How do different time representation methods (TimeMask vs. TimeJoint) compare in capturing temporal dynamics across diverse real-world sequences?

Key findings

  • TimeJoint outperformed all baselines, including RMTPP, on Stack Overflow and Financial Data with p<0.05 in paired t-tests.
  • The TimeJoint model achieved a Precision@1 of 31.53% on the App Usage dataset, a 0.22% improvement over the next best baseline.
  • On the Music Recommendation dataset, TimeJoint achieved a MAP20 of 14.20, a 0.37% gain over the best baseline.
  • The duration-based regularizer $R_t^X$ consistently improved performance across multiple datasets, indicating its effectiveness in generalization.
  • TimeConcat, which directly concatenates time with embeddings, sometimes hurt performance, showing that naive time integration is suboptimal.
  • On MIMIC II, no method improved over the baseline, suggesting that temporal information may not be predictive in all domains, highlighting context dependency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.