NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Graph ODE for Continuous-Time Sequential Recommendation

Yifang Qin, Wei Ju, Hongjun Wu, Xiao Luo, Ming Zhang

TL;DR

The paper introduces GDERec, a continuous-time sequential recommendation framework that models user preferences as a hybrid dynamic system. By combining a graph neural ordinary differential equation (ODE) with a temporal attention network, it successfully tracks the continuous evolution of user interests from irregularly-sampled interaction data.

What Problem Does This Paper Address?

Sequential recommendation systems aim to predict a user's next favorite item by looking at their history. However, standard approaches suffer from two major limitations:

  1. Ignoring Collaborative Dynamics: They often treat the user-item interaction graph as static or look at discrete time slices, missing how collaborative signals evolve over time.
  2. Assuming Uniform Time Steps: They assume the time between actions is uniform.

In reality, user preferences change continuously, and the timing of interactions matters immensely. For example, buying a phone and a camera within days suggests a tech enthusiast's shopping spree, whereas buying them a year apart indicates completely different, isolated needs.

A toy example of irregular time intervals implying different user preferences.

To bridge this gap, the authors tackle continuous-time sequential recommendation, allowing models to generalize to any unseen future timestamp.

Methods

The authors propose GDERec, an autoregressive framework that treats user-item interactions as a hybrid dynamic system. The model splits time into slices separated by "pivot" timestamps and alternates between two main modules:

  • Edge Evolving Module (Continuous Time): Instead of using standard, discrete graph convolutional layers, this module formalizes graph propagation as a continuous-time ODE: $$\frac{dH_t}{dt} = (A - I)H_t + AH_0 \odot H_0$$ This allows the model to implicitly track how user and item representations evolve between interaction events. A numerical ODE solver (like Runge-Kutta) is used to compute these continuous states.

  • Temporal Aggregating Module (Discrete Time): At specific time pivots, this module explicitly aggregates neighborhood information. It uses a trainable time encoding function (based on Bochner's theorem) and a temporal attention network to weight historical interactions based on both context and elapsed time.

The GDERec framework architecture alternating between Edge Evolving and Temporal Aggregating modules.

Datasets

The framework was evaluated on five real-world benchmark datasets:

  • Three subsets of the Amazon review dataset: Cloth, Baby, and Music.
  • Two subsets of the MovieLens dataset: ML-1M and ML-100K.

All interactions were sorted chronologically and split into training (80%), validation (10%), and testing (10%) sets.

Key Insights and Ideas

  • Time is a Feature, Not Just an Index: Irregular intervals carry semantic meaning about user intent (e.g., short-term needs vs. long-term hobbies).
  • Bypassing the Over-Smoothing Trap: Traditional Graph Neural Networks (GNNs) degrade when stacked deeply due to over-smoothing. Because GDERec defines depth via continuous ODE steps (Function Evaluations), increasing depth actually improves its ability to capture long-term features without performance degradation.
  • Hybrid Dynamics Win: Combining continuous state evolution (ODE) with discrete event aggregation (Attention) matches the natural rhythm of human behavior—gradual preference shifts punctuated by sudden actions.

Key Results

GDERec consistently outperformed state-of-the-art baselines (including LightGCN, SASRec, and other ODE-based recommendation models) across all five datasets:

  • It achieved over 6.5% relative improvement in Recall@5 and over 8.8% in Recall@10 compared to the best baseline models.
  • Ablation studies confirmed that both the continuous ODE module and the temporal attention module are critical; removing either led to significant performance drops.
Performance comparison showing that GDERec benefits from increased model depth, avoiding the over-smoothing seen in standard GNNs.

Limitations and Future Work

The choice of the number of time intervals ($K$) requires careful tuning; the authors found performance peaks around $K=3$ or $4$, and creating too many intervals can cause a decline in performance.

Specific future work directions are not explicitly detailed in the paper, though the framework opens the door for exploring adaptive step-size ODE solvers or more complex dynamic graph topologies.

Summary updated

BibTeX
@article{qin2024learning,
  author = {Yifang Qin and Wei Ju and Hongjun Wu and Xiao Luo and Ming Zhang},
  title = {{Learning Graph ODE for Continuous-Time Sequential Recommendation}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2024},
  url = {https://openreview.net/forum?id=jY2wwRxDtz},
}
Figure