Continuous Time Latent States for Sequential Recommendation

This direction is merged into another direction: neural ordinary differential equations (continuous-time latent dynamics). Its last version stays readable and citable here.

Version 1 of 119 papers25 conceptsfrozen 2026-10-04

In traditional recommender systems, user history is typically treated as a discrete sequence of events: a user bought a book, then a lamp, then a rug. Models like Recurrent Neural Networks (RNNs) or Transformers process these as a chain of tokens ($x_1, x_2, x_3$), effectively assuming that the "distance" between any two events is uniform.

However, real-world behavior is irregularly sampled. A user might buy two items in five minutes and then not return for five months. In the first case, their interests are likely stable; in the second, their preferences have likely drifted. To capture this, a growing body of research moves away from discrete steps and toward modeling user preferences as a continuous-time dynamical system.

From Discrete Steps to Continuous Flows

The core shift in this research direction is moving from predicting the next state to defining the rate of change of the state.

In a standard sequential model, the hidden state $h$ evolves via a discrete transition: $h_{t+1} = f(h_t)$. In contrast, models like DTS (Deep Time-Stream), proposed by Shu-Ting Shi and Jianke Zhu, define user interest as a continuous trajectory $h(t)$ governed by an Ordinary Differential Equation (ODE):

$$\frac{dh(t)}{dt} = f(h(t), t, \theta)$$

By learning the function $f$ (often a neural network), the system can calculate the user's latent state at any arbitrary point in time by "solving" the ODE—integrating the derivative over the observed time interval. This allows the model to naturally account for the exact duration between interactions. As Sunhao Dai and Jun Xu demonstrate with the ReCODE framework, this approach is particularly effective for modeling repeat consumption, where the "when" is just as important as the "what."

Handling Irregularity and Sparsity

The primary advantage of continuous-time modeling is its robustness to irregular temporal patterns. Traditional models often struggle with "dead zones" in data or sudden bursts of activity.

Yinghui Liu and Hao Miao show in their work on SPOT-Trip that treating user behavior as a continuous latent state is critical for out-of-town trip recommendations, where check-ins are sparse and non-periodic. By using Neural ODEs, they can evolve a user's "dynamic" travel preference over the actual time elapsed, rather than forcing the data into a rigid sequence.

Similarly, the CussCtpm framework developed by Yuwen Liu and Weiming Liu uses Neural ODEs to map discrete hidden states into a continuous temporal domain. This allows the model to filter out "noise"—such as a one-off visit to a store due to a temporary promotion—by recognizing that such events don't fit the long-term continuous trajectory of the user's preferences.

Incorporating Structure and Uncertainty

Recent advancements have extended this continuous-time logic to more complex scenarios involving social structures and inherent randomness.

  1. Graph Dynamics: Users don't exist in a vacuum. Yifang Qin and Wei Ju introduced GDERec, which combines Graph Neural Networks (GNNs) with ODEs. This allows the system to track how a user's preferences evolve not just based on their own actions, but also through their shifting position within a social or item-interaction graph. Zhiping Xiao further applies this to social media, modeling the continuous "flow" of hidden opinions across Twitter.
  2. Stochastic Evolution: Real-world interest drift isn't always smooth; it contains noise and uncertainty. Shiyu Chang and Jiliang Tang pioneered modeling latent factors as Brownian motion, a type of continuous-time random process. More recently, Krishna Prasad Neupane and Qi Yu developed E-NSDE, which uses Stochastic Differential Equations (SDEs). By adding a "diffusion" term to the ODE, they mathematically link the time elapsed between interactions to the uncertainty of the recommendation, providing a more nuanced view of user behavior.

Why It Works: The Intuition of Drift

The intuition behind this research is that human preference is a physical process. Just as a moving car has a position and a velocity, a user has a preference state and a "velocity" of interest change.

Discrete models only see where the car is at specific checkpoints. If the checkpoints are far apart, the model loses the curve of the road. Continuous-time models, by learning the underlying differential equations, learn the "physics" of the user's interest. As Haoyan Fu and Bin Lu argue in their work on TGODE, this allows the system to "fill in the blanks" of irregular history, aligning personal preference drift with global trends (like seasonal popularity) on a single, unified timeline.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_continuous_time_latent_states_for_sequen_c35aaa1e,
  title = {Continuous Time Latent States for Sequential Recommendation},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/continuous-time-latent-states-for-sequential-recommendation/rdr_c35aaa1e1e2d4b6f965a2c9414cb92f7},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-01},
}

This exact version (version 1, frozen text):

@misc{lacuna_continuous_time_latent_states_for_sequen_c35aaa1e_v1,
  title = {Continuous Time Latent States for Sequential Recommendation},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/continuous-time-latent-states-for-sequential-recommendation/rdr_c35aaa1e1e2d4b6f965a2c9414cb92f7/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-01},
}