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

ReCODE: Modeling Repeat Consumption with Neural ODE

Sunhao Dai, Changle Qu, Sirui Chen, Xiao Zhang, Jun Xu · DOI

Introduction

Repeat consumption—the act of returning to previously consumed items like songs or groceries—is a fundamental aspect of user behavior in digital platforms. Despite its prevalence, traditional recommendation systems often prioritize novelty, struggling to accurately predict the temporal dynamics of when a user will re-engage with a specific item. Conventional approaches rely on rigid heuristic decay functions, such as exponential or Gaussian distributions, to model interest over time. However, human behavior is far more nuanced; a user might binge-listen to a track for a day or return to a favorite artist once a month. These "stiff" mathematical assumptions fail to capture the diverse, fine-grained temporal patterns inherent in real-world data.

The ReCODE Framework

To address these limitations, the authors propose ReCODE (Modeling Repeat Consumption with Neural ODE). ReCODE shifts the paradigm from predefined probability distributions to a continuous-time process governed by a differential equation. This allows the model to learn complex, data-driven temporal dynamics without being constrained by specific functional forms.

The framework is model-agnostic and consists of two primary components:

  1. Static Recommendation Module: This serves as the backbone, utilizing standard recommendation techniques (e.g., Matrix Factorization or GRU4Rec) to capture long-term user-item preferences.
  2. Dynamic Repeat-aware Module: This module handles the "when" of repeat consumption. It employs a Neural ODE to learn the derivative of a user's repeat intention. By integrating this derivative over observed time gaps using an ODE solver, the model calculates a dynamic "repeat intention" score.
The ReCODE architecture, featuring a Static Recommendation Module and a Dynamic Repeat-aware Module powered by Neural ODEs.

Experimental Evaluation

ReCODE was evaluated on two large-scale music datasets: the Million Musical Tweet Dataset (MMTD) and Nowplaying-RS, both characterized by high repeat ratios (21.4% and 34.7%, respectively). The researchers compared ReCODE against state-of-the-art baselines, including specialized repeat models like SLRC.

Key Insights

  • Distribution-Free Learning: By using Neural ODEs, ReCODE can approximate any underlying distribution of repeat intervals, making it significantly more flexible than models restricted to Gaussian or Exponential kernels.
  • Temporal Primacy: Interestingly, simple base models like Matrix Factorization (MF) enhanced with ReCODE often outperformed more complex sequence models like SASRec that lacked dedicated repeat modeling. This suggests that in repeat-heavy domains, accurately modeling time is as critical as modeling sequence.

Results and Performance

The experimental results demonstrate that ReCODE provides a universal performance boost. When integrated with Matrix Factorization on the MMTD dataset, Recall@50 improved from 18.68% to 25.20%. Furthermore, ReCODE consistently outperformed the SLRC baseline across both datasets.

Performance comparison (Recall@50) across different repeat ratios, showing ReCODE's consistent advantage as repeat behavior increases.

As shown in the results, the performance gap between ReCODE and other models widens as the repeat ratio increases. This confirms that the Neural ODE approach is particularly effective at capturing the specific dynamics of returning users.

Conclusion and Future Directions

ReCODE represents a significant advancement in recommendation systems by treating repeat consumption as a continuous-time evolution. While the model introduces some computational overhead due to numerical integration, its ability to learn "distribution-free" temporal patterns offers a robust solution for repeat-heavy industries. Future work may explore scaling this approach to domains with sparser repeat cycles (e.g., consumer electronics) and addressing cold-start challenges for new users with limited history.

Summary updated

BibTeX
@inproceedings{dai2024recode,
  author = {Sunhao Dai and Changle Qu and Sirui Chen and Xiao Zhang and Jun Xu},
  title = {{ReCODE: Modeling Repeat Consumption with Neural ODE}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2024},
  doi = {10.1145/3626772.3657936},
}
Figure