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

Sequential Variational Autoencoders for Collaborative Filtering

Noveen Sachdeva, Giuseppe Manco, Ettore Ritacco, Vikram Pudi

TL;DR

This paper introduces a novel Sequential Variational Autoencoder (SVAE) for collaborative filtering that effectively captures temporal dependencies in user preferences. By integrating recurrent neural networks into the VAE framework, SVAE significantly outperforms existing methods in predicting future user behavior, demonstrating the crucial role of sequential modeling in recommendation systems.

What Problem Does This Paper Address?

Recommender systems, particularly those using collaborative filtering, aim to predict what users will like based on their past behavior. Traditional methods often treat user preferences as a "bag of words," ignoring the order in which items were consumed. This is a significant limitation because user preferences can evolve over time, and the sequence of interactions often reveals crucial short-term interests and causal relationships that are missed by static models. While neural networks and latent variable models have shown promise, their application to sequential user preference modeling in a unified probabilistic framework remained an open challenge. This paper addresses this gap by proposing a model that explicitly accounts for the temporal dynamics of user behavior.

Methods

The core contribution is the Sequential Variational Autoencoder (SVAE). It extends the standard Variational Autoencoder (VAE) by incorporating a recurrent neural network (RNN) into the encoder. Here's a breakdown:

  • Variational Autoencoders (VAEs): The paper starts by explaining the VAE framework, which learns a latent representation of data by encoding it into a probability distribution and then decoding it back. This probabilistic approach allows for capturing uncertainty and generating new data.
  • Recurrent Neural Networks (RNNs): To handle sequential data, SVAE uses an RNN (specifically, a GRU is mentioned in the implementation details) as part of the encoder. Instead of processing the entire user history at once or in arbitrary chunks, the RNN processes the sequence of user interactions step-by-step. At each time step, the RNN's hidden state captures the context from previous interactions.
  • Sequential Latent Representation: The RNN's hidden state is then used to parameterize the latent distribution for the VAE at that specific time step. This means the latent representation of a user's preference at any given moment is conditioned on their entire interaction history up to that point.
  • Generative Model: The decoder then uses this time-aware latent representation to predict the probability of the next item in the sequence. The overall model is trained end-to-end to maximize the likelihood of observed sequences.

The paper also discusses alternative sequential VAE formulations (e.g., single vs. multiple latent dependencies, recurrent latent vs. global recurrent dependencies) and extensions like predicting the next k items.

Datasets

The evaluation was performed on two publicly available datasets:

  • Movielens-1M: A time-series dataset containing user-item ratings and timestamps. For this work, implicit feedback was derived by binarizing ratings (scores > 3 were considered positive interactions).
  • Netflix: Similar to Movielens-1M, this dataset was also binarized. A subset of the full Netflix dataset was used, created through a progressive stratified sampling method to better match the user distribution of the full dataset, particularly concerning history length.

The paper notes that users with fewer than five interactions were excluded, and the data was split into training, validation, and test sets. A key aspect of their evaluation protocol is the use of temporal splits (fold-in/fold-out), where the training data for a user includes their earlier interactions, and the test data includes their later interactions, mimicking a real-world scenario.

Key Insights and Ideas

  • Temporal Dynamics are Crucial: The most significant insight is that explicitly modeling the temporal order of user interactions is not just beneficial but crucial for accurate recommendation. Models that ignore this order (like MVAE with random splits) perform significantly worse when evaluated on realistic temporal splits.
  • RNNs Enhance VAEs for Sequences: Integrating RNNs into VAEs provides a powerful way to capture both long-term and short-term user preferences by maintaining a context-aware latent representation.
  • Unified Probabilistic Framework: SVAE successfully bridges the gap between deep learning (RNNs) and probabilistic latent variable models (VAEs) for sequential recommendation, offering a principled approach.
  • Temporal Split Matters: The paper strongly advocates for temporal splits in evaluation, arguing that random splits can lead to an overestimation of model performance by allowing models to "see" future interactions during training.

Key Results

  • State-of-the-Art Performance: SVAE consistently outperformed all baselines, including MVAE, CASER, and FPMC, on both Movielens-1M and Netflix datasets across NDCG@10, NDCG@100, Precision@10, and Precision@100 metrics. For example, on Movielens, SVAE achieved an NDCG@100 of 29.93%, significantly higher than MVAE (23.01%) and CASER (27.55%).
  • Robustness to History Length: Figure 4 shows that SVAE maintains its advantage over MVAE and CASER across various user history lengths, demonstrating its scalability.
  • Effective Temporal Modeling: The paper highlights that MVAE's performance drops dramatically when evaluated with temporal splits, whereas SVAE's performance remains strong, underscoring the importance of its sequential architecture.
  • Efficient Learning: Learning curves (Figure 6) indicate that SVAE converges quickly (within 8-13 epochs) and does not exhibit overfitting, with reasonable training times.

Limitations and Future Work

  • Focus on Specific Architectures: The paper primarily focuses on the SVAE model and its extensions for predicting the next item. A more detailed analysis of other sequential VAE taxonomies (discussed in Section 4.3.2) is suggested for future work.
  • Attention Mechanisms: The authors note the potential of attention mechanisms (mentioned in Section 4.10) and plan to investigate their impact further.
  • Alternative Architectures: Exploring other architectures beyond RNNs (e.g., convolutional or translation-invariant models) within the probabilistic variational setting is also proposed for future research.
  • Short Sequences: While SVAE generally excels, the paper acknowledges that for very short sequences (less than 10 items), MVAE with random splits might show slightly better results, suggesting that for extremely limited history, the temporal aspect might be less critical or harder to learn.

Summary updated

BibTeX
@inproceedings{sachdeva2019sequential,
  author = {Noveen Sachdeva and Giuseppe Manco and Ettore Ritacco and Vikram Pudi},
  title = {{Sequential Variational Autoencoders for Collaborative Filtering}},
  booktitle = {WSDM},
  year = {2019},
  url = {https://openreview.net/forum?id=Gdq6uAgJXF},
}
Figure