Abstract
Traditional collaborative filtering models often rely on a "bag-of-words" assumption, treating user histories as unordered sets and failing to capture the temporal dynamics of human behavior. This paper introduces the Sequential Variational Autoencoder (SVAE), a generative model that combines the strengths of Variational Autoencoders (VAEs) with Recurrent Neural Networks (RNNs). By modeling the chronological evolution of user preferences, SVAE captures both long-term interests and short-term causality. Experimental results on MovieLens and Netflix datasets demonstrate that SVAE significantly outperforms state-of-the-art non-sequential and sequential models, particularly when evaluated under realistic temporal splitting conditions.
Introduction
Most contemporary deep learning approaches for recommendation, such as the Multinomial VAE (MVAE), treat a user's interaction history as a static vector. While effective for identifying broad interests (e.g., genre preferences), these models ignore the order of consumption. However, human behavior is inherently sequential; a user's next choice is often a direct consequence of their most recent actions. To address this, the authors propose SVAE, which moves beyond the bag-of-words limitation to model the latent dynamics of user preferences over time.
Methodology
The SVAE architecture integrates a recurrent layer into the standard VAE framework to process sequences of user interactions.
- Recurrent Encoder: A Gated Recurrent Unit (GRU) processes the sequence of user actions, maintaining a hidden state that evolves with each new interaction.
- Variational Layer: The GRU's hidden state parameterizes a latent distribution (mean and variance) at each time step. A latent factor $z$, representing the user's current preference state, is sampled from this distribution.
- Decoder: This latent factor is passed through fully connected layers to generate a probability distribution over all items, predicting future interactions.
- Next-k Prediction: Unlike models that predict only the single next item, SVAE can be trained to predict a "multi-set" of the next $k$ items, capturing a broader window of short-term intent.
Experimental Setup
The model was evaluated on the MovieLens-1M and Netflix datasets. A critical aspect of the evaluation was the use of a temporal split. Unlike random splits, which can leak future information into the training set, a temporal split divides user histories into "fold-in" (past) and "fold-out" (future) sets based strictly on timestamps. This provides a more realistic measure of a model's ability to predict actual future behavior.
Key Results
SVAE consistently outperformed baseline models, including BPR, FPMC, CASER, and the non-sequential MVAE across multiple metrics.
As shown in Table 1, SVAE achieved an NDCG@100 of 29.93% on MovieLens-1M, a significant improvement over MVAE's 23.01% and CASER's 27.55%. The gains are also evident in Recall@100 (49.09% on MovieLens) and Precision@100 (6.93% on MovieLens), indicating a higher quality of top-N recommendations.
The Importance of Temporal Splitting
A key insight from the study is the "random split trap." Non-sequential models like MVAE appear highly performant under random splitting (see MVAE* in Table 1, which reaches 39.79% NDCG@100). However, when subjected to a realistic temporal split, their performance drops significantly. SVAE, by design, is robust to this more challenging and realistic evaluation setting.
Optimal Look-ahead and Sequence Length
The authors investigated the impact of the look-ahead window $k$. For the MovieLens dataset, predicting the next $k=4$ items yielded the peak performance, suggesting that modeling a small window of future intent is more effective than focusing solely on the single next click.
Furthermore, SVAE's advantage is most evident in longer sequences where temporal patterns are well-defined. For very short histories (fewer than 10 items), the model's performance is more comparable to simpler baselines, as there is less "rhythm" for the RNN to capture.
Conclusion and Future Work
The Sequential Variational Autoencoder represents a significant step forward in modeling user dynamics for recommendation. By combining the generative flexibility of VAEs with the temporal awareness of RNNs, SVAE effectively captures the evolving nature of user preferences. Future work includes incorporating attention mechanisms to better weigh specific past actions and exploring alternative architectures like convolutional layers within the same probabilistic framework.
Summary updated