TimeKit: A Time-series Forecasting-based Upgrade Kit for Collaborative Filtering

Seoyoung Hong, Minju Jo, Seungji Kook, Jaeeun Jung, Hyowon Wi, Noseong Park, Sung-Bae Cho

TL;DR

TimeKit is a model-agnostic "upgrade kit" that treats user and item embeddings as a time-series to capture evolving behavioral patterns. By using Neural Controlled Differential Equations (NCDEs) to forecast future embedding vectors, it significantly boosts the performance of existing collaborative filtering algorithms—sometimes allowing simple, older models to outperform state-of-the-art graph-based methods.

What Problem Does This Paper Address?

Collaborative Filtering (CF) is the backbone of modern recommender systems, relying on latent embedding vectors to represent users and items. However, most CF methods treat training as a one-time event or a simple periodic refresh. They often fail to account for behavioral drift—the reality that user preferences and item trends evolve over time.

While practitioners often retrain models incrementally as new data arrives, they typically use the resulting embeddings as static snapshots for the next period. This ignores the rich temporal information inherent in the trajectory of those embeddings. The authors argue that if we can understand the underlying dynamics of how these vectors move through space, we can forecast where they will be in the future, leading to much more accurate recommendations.

Methods

TimeKit operates in four distinct stages:

  1. Base Algorithm Selection: Choose any standard CF model (e.g., Matrix Factorization or LightGCN).
  2. Incremental Embedding Extraction: Train the base model periodically (e.g., every month) using new interaction logs. Instead of starting from scratch, the model is "warm-started" with the previous period's embeddings, creating a consistent time-series of vectors for every user and item.
  3. Time-series Forecasting: This is the core innovation. TimeKit trains a forecasting model on these sequences.
  4. For Users: They use Gated Recurrent Units (GRUs), which are efficient at handling the relatively stable dynamics of user preferences.
  5. For Items: They employ Neural Controlled Differential Equations (NCDEs). The authors discovered that item embeddings are far more sensitive to small errors and exhibit more complex dynamics than user embeddings. NCDEs, which model the continuous path of data, are better suited for this challenging extrapolation task.
  6. Future Recommendation: Instead of using the "last known" embeddings, the system uses the forecasted embeddings to calculate dot-product scores for the upcoming period.
Fig. 3. The overall workflow of creating the time-series of embedding vectors and forecasting. We do not train a recommendation model, e.g., LightGCN, from scratch every period, but incrementally after reusing the most recently trained parameters, e.g., initial embeddings in the case of LightGCN. We use all past data on or before each ti to avoid overfitting on new items.

Datasets

The authors evaluated TimeKit across four diverse real-world datasets:

  • Gowalla: Location check-in data (10 monthly periods).
  • Amazon-Book: Book ratings (8 periods, each spanning 3 months).
  • Goodreads: Book reviews (8 periods, each spanning 3 months).
  • Netflix: Movie interactions (12 monthly periods).

These datasets were chosen to represent different interaction densities and frequencies, providing a robust test for the forecasting model's ability to handle various "speeds" of behavioral drift.

Key Insights and Ideas

  • Item Sensitivity: A crucial finding is that item embeddings are significantly more sensitive to noise than user embeddings. As shown in Figure 2, perturbing item vectors leads to a sharper drop in recommendation quality (Recall@20 and NDCG@20) than perturbing user vectors. This justifies the use of the more sophisticated NCDE model for items.
  • Latent Dynamics are Non-Random: By visualizing embedding changes over a year (see Figure 6 below), the authors show that vectors move in gradual, learnable patterns rather than jumping randomly.
  • The "Simple Model" Boost: One of the most striking insights is that applying TimeKit to a basic Matrix Factorization model (BPRMF) can make it perform better than a "vanilla" state-of-the-art model like LightGCN. This suggests that capturing temporal dynamics can be more impactful than increasing model architectural complexity.
Fig. 4. Visualization of 64-dimensional user/item embedding vector changes over 12 months. We note that the embeddings of December (in the rightmost position) are the ones forecast by TimeKit on top of NGCF in Netflix. Note that the embedding vectors change gradually over time, but in different patterns depending on base algorithms. Month is on the X-axis, while the index of the embedding vector is on the Y-axis.

Key Results

TimeKit consistently improved all base algorithms across all datasets:

  • Massive Gains: On the Netflix dataset, TimeKit improved the NGCF model's Recall@20 by a staggering 68.46% and NDCG@20 by 68.75%.
  • Robustness: Even for the strongest base models like LightGCN and LT-OCF, TimeKit provided significant boosts, ranging from ~5% to over 30% depending on the dataset.
  • Efficiency: Despite adding a forecasting layer, the empirical space and time complexities remain low. Training the forecasting models typically takes only a few seconds per epoch on a standard GPU, making it a practical "upgrade" for production systems.

Limitations and Future Work

The primary limitation is the data requirement: TimeKit needs a history of interactions spanning enough periods to define a meaningful time-series. In scenarios with very sparse data or extremely short histories, the forecasting model might struggle to capture latent dynamics.

For future work, the authors suggest exploring different interpolation methods for the NCDE paths and investigating how this forecasting approach might be integrated into other types of embedding-based tasks beyond collaborative filtering, such as dynamic graph representation learning.

Summary updated

BibTeX
@inproceedings{hong2022timekit,
  author = {Seoyoung Hong and Minju Jo and Seungji Kook and Jaeeun Jung and Hyowon Wi and Noseong Park and Sung-Bae Cho},
  title = {{TimeKit: A Time-series Forecasting-based Upgrade Kit for Collaborative Filtering}},
  booktitle = {IEEE Big Data},
  year = {2022},
  url = {https://openreview.net/forum?id=tudDi5Opj7M},
}
Figure