Coupled Variational Recurrent Collaborative Filtering
Qingquan Song, Shiyu Chang, Xia Hu

TL;DR
This paper introduces CVRCF, a novel deep Bayesian framework for streaming recommender systems that models dynamic user preferences and item popularities, improving accuracy and interpretability.
Contribution
It integrates probabilistic models with deep neural networks using variational inference for the first time in streaming recommendations.
Findings
Outperforms state-of-the-art methods on benchmark datasets
Effectively models temporal dynamics of preferences and popularities
Provides interpretable visualizations of evolving user-item interactions
Abstract
We focus on the problem of streaming recommender system and explore novel collaborative filtering algorithms to handle the data dynamicity and complexity in a streaming manner. Although deep neural networks have demonstrated the effectiveness of recommendation tasks, it is lack of explorations on integrating probabilistic models and deep architectures under streaming recommendation settings. Conjoining the complementary advantages of probabilistic models and deep neural networks could enhance both model effectiveness and the understanding of inference uncertainties. To bridge the gap, in this paper, we propose a Coupled Variational Recurrent Collaborative Filtering (CVRCF) framework based on the idea of Deep Bayesian Learning to handle the streaming recommendation problem. The framework jointly combines stochastic processes and deep factorization models under a Bayesian paradigm to…
| # of User | # of Items | Time Spanning | Granularities | |
|---|---|---|---|---|
| MT | 4 Weeks | |||
| ML-10M | 2 Weeks | |||
| Netflix | 2 Weeks |
| Streaming | Temporal | Probabilistic | Deep | |
|---|---|---|---|---|
| Involved | ||||
| PMF | ✓ | |||
| time-SVD++ | ✓ | |||
| sD-PMF | ✓ | ✓ | ✓ | |
| sRRN | ✓ | ✓ | ✓ | |
| sRec | ✓ | ✓ | ✓ | |
| CVRCF (proposed) | ✓ | ✓ | ✓ | ✓ |
| Datasets | ||||
|---|---|---|---|---|
| Methods | MT | ML-10M | Netflix | |
| Batch | PMF | |||
| time-SVD++ | ||||
| Streaming | sD-PMF | |||
| sRRN | ||||
| sRec | ||||
| CVRCF | ||||
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsRecommender Systems and Techniques · Advanced Bandit Algorithms Research · Generative Adversarial Networks and Image Synthesis
Coupled Variational Recurrent Collaborative Filtering
Qingquan Song1, Shiyu Chang2, Xia Hu1
1Department of Computer Science and Engineering, Texas A&M University2MIT-IBM Watson AI Lab, IBM Research
song˙3134, [email protected], [email protected]
Abstract.
We focus on the problem of streaming recommender system and explore novel collaborative filtering algorithms to handle the data dynamicity and complexity in a streaming manner. Although deep neural networks have demonstrated the effectiveness of recommendation tasks, it is lack of explorations on integrating probabilistic models and deep architectures under streaming recommendation settings. Conjoining the complementary advantages of probabilistic models and deep neural networks could enhance both model effectiveness and the understanding of inference uncertainties. To bridge the gap, in this paper, we propose a Coupled Variational Recurrent Collaborative Filtering (CVRCF) framework based on the idea of Deep Bayesian Learning to handle the streaming recommendation problem. The framework jointly combines stochastic processes and deep factorization models under a Bayesian paradigm to model the generation and evolution of users’ preferences and items’ popularities. To ensure efficient optimization and streaming update, we further propose a sequential variational inference algorithm based on a cross variational recurrent neural network structure. Experimental results on three benchmark datasets demonstrate that the proposed framework performs favorably against the state-of-the-art methods in terms of both temporal dependency modeling and predictive accuracy. The learned latent variables also provide visualized interpretations for the evolution of temporal dynamics.
collaborative filtering, streaming recommender system, matrix factorization, deep Bayesian learning
1. Introduction
With the explosive growth of online information, recommender systems have been pervasively used in real-world business services and widely studied in literature (Resnick and Varian, 1997; Ricci et al., 2011). Upon classical static settings, in real-world applications, data are often grown in a streaming fashion and evolving with time. For example, Snapchat users share over 400 million snaps (Statista, 2018b) and Facebook users upload 300 million photos per day (Statista, 2018a). The ever-growing data volume along with rapidly evolved data properties puts the demand of time aware and online recommender systems, which could incorporate the temporal information to handle the data temporality and update in a streaming manner to alleviate the burden of data complexity.
Deep learning techniques have been widely conducted in exploiting temporal dynamics to improve the recommendation performance (Zhang et al., 2017; Hidasi et al., 2015; Wu et al., 2017; Beutel et al., 2018). Despite the prominence shown recently in deep recommender systems (Gong and Zhang, 2016; Van den Oord et al., 2013; Hidasi et al., 2015), deep frameworks also have their own limitations. One of the well-known facts is that deep recommender systems are usually deterministic approaches, which only output point estimations without taking the uncertainty into account. It significantly limits their power in modeling the randomness of the measurement noises (Shi et al., 2017) and providing predictions of the missing or unobserved interactions in recommender systems. As probabilistic approaches, especially Bayesian methods, provide solid mathematical tools for coping with the randomness and uncertainty, it motivates us to conduct streaming recommendations from the view of Deep Bayesian Learning (DBL) to conjoin the advantages of probabilistic models and deep learning models. Though some recent attempts have been made on integrating probabilistic approaches with deep autoencoder architecture for recommendation tasks (Gupta et al., 2018; Li and She, 2017; Sachdeva et al., 2019), they are still underpinned the static recommendation setting, which allows them to be retrospective to all the historical data during the updates.
Simply applying DBL to streaming recommendations is a non-trivial task due to the following challenges. First, coordinating the temporal dynamics is difficult given the continuous-time discrete-event recommendation process along with the protean patterns on both user and item modes. A user’s preference on certain items may evolve rapidly, while on others maintaining a long-term fix. Second, the high velocity of streaming data requires an updatable model, which could expeditiously extract the prior knowledge from former time steps and effectively digest it for current predictions. Also, since the data occurrence is, in fact, continuous-valued, taking the continues time information into consideration could be potentially helpful for the knowledge distillation (Beutel et al., 2018). Third, the DBL frameworks are usually expensive in terms of both time and space complexities. Existing optimization algorithms often require a huge amount of computation to infer and update especially under streaming setting such as Sequential Monte Carlo, which is usually infeasible for large-scale recommendations.
To tackle the aforementioned challenges, in this paper, we propose to investigate the ways to conduct streaming recommendation by leveraging the advantages of both deep models and probabilistic processes. We stick to the factorization-based approaches due to their popularity and superiority among all collaborative filtering techniques (He et al., 2017). Specifically, we study: (1) How to model the streaming recommender system with an updatable probabilistic process? (2) How to incorporate deep architectures into the probabilistic framework? (3) How to efficiently learn and update the joint framework with streaming Bayesian inference? Through answering these three questions, we propose a Coupled Variational Recurrent Collaborative Filtering (CVRCF) framework. CVRCF incorporates deep architectures into the traditional factorization-based model and encodes temporal relationships with a coupled variational gated recurrent network, which is optimized through sequential variational inference. The main contributions are summarized as follows:
- •
Propose a novel streaming recommender system CVRCF, which incorporates deep models and the general probabilistic framework for streaming recommendations;
- •
Build up a linkage between probabilistic process and deep factorization based model under a streaming setting with sequential variational inference leveraging a continues-time discrete-event cross RNN model;
- •
Empirically validate the effectiveness of CVRCF on different real-world datasets comparing with the state-of-the-art, explore the temporal drifting patterns learned from CVRCF, and analyze the model sensitivities.
2. Preliminaries
Notations: Before discussing the proposed framework CVRCF for streaming recommendations, we first introduce the mathematical notations. We consider the streaming interactions as a continues-time discrete-event process. Equipped with this viewpoint, we denote as the discrete time step and the inputs of a streaming recommender system can be denoted as a list of user-item interactions with their occurrence time , where denotes the interaction event of the user and the item occurred between time step and , denotes the concrete time that occurs. The time interval between two consecutive time steps is called granularity, which does not need to be fixed in practice. All interactions arrived before the time step are denoted as (or ). Without loss of generality, interactions are regarded as ratings throughout this paper.
Problem Statement: Based on these notations, the streaming recommendation problem we studied in this paper is defined as: for any , given the sequence of historical user-item interactions , with the actual time information , we aim at predicting the upcoming interactions in a streaming manner. The streaming manner here means that the model should be streamingly updatable. In another word, if we assume a model is achieved at , then at time , the model should be able to update based only on the data acquired between time and , i.e., .
3. Coupled Variational Recurrent Collaborative Filtering
The core of CVRCF is a dynamic probabilistic factor-based model that consists of four components. The first two formulate the user-item interactions and temporal dynamics, respectively. Each of them incorporates a probabilistic skeleton induced by deep architectures. The third component is a sequential variational inference algorithm, which provides an efficient optimization scheme for streaming updates. The last component allows us to generate rating predictions based on the up-to-date model.
3.1. Interaction Network
Factor-based models are widely adopted in recommendation modelings. They have shown a great success in multiple recommendation tasks (Mnih and Salakhutdinov, 2008). Most of them follow the traditional matrix factorization setting, in which users and items are modeled as latent factors; and their interactions are defined as the linear combinations of these factors. However, such simple linear combinations are often insufficient to model complex user-item interactions (He et al., 2017). Thus, we consider a deep probabilistic matrix factorization setting as follow
[TABLE]
where both and are represented by deep neural networks. We represent the latent vectors of user and item at time step as and , respectively. The rating is modeled as a Gaussian random variable whose location and scale values are the output of the deep networks. The environmental noise could either be predefined as a hyperparameter (Mnih and Salakhutdinov, 2008) or jointly learned. It is worth pointing out that we assume the variance of depends on both the latent vectors and the environmental noises, which is slightly different from the conventional probabilistic setting (Mnih and Salakhutdinov, 2008).
3.2. Temporal Drifting Process
The temporal dynamics of a recommender system depend on the drifting of users’ preferences and item popularities (Rendle and Schmidt-Thieme, 2008; Diaz-Aviles et al., 2012). A user’s tastes for a certain type of items may change over time while the popularity of an item may also vary with time goes by. To capture the inherent dynamics, we intend to encode the drifting processes into user and item latent factors based on three hypotheses:
- •
We assume the latent factors of both user and item can be decomposed as the combination of a stationary term () and a dynamic term () (Wu et al., 2017). The stationary factor captures the long-term preference, which varies slowly over time. The dynamic factor encodes the short-term changes, which evolves rapidly. An illustrative example is shown in Figure 1, where a user’s dynamic factor evolves between two consecutive time steps, causing his preference drifted from to . We assume the two factors are independent of each other for simplicity.
- •
The dynamic factors of a user or an item follows a Markov process (Chang et al., 2017). The intuition of using a Markov process comes from the observation that the changing of a user’s current preference could be highly affected by his former preference.
- •
The changing of latent factors of a particular user (or item ) between two consecutive time steps and depends on the time interval between the last events before these two time steps, which involves this user (or item), i.e., , where and denote the actual time of the two last interactions of user before time step and , respectively. Intuitively, the longer the interval is, the larger the drifting may happen. is defined to be equal to if no interactions happens between time step and .
Upon these hypotheses, we model the evolution of hidden topics of a user (or an item), via spatiotemporal Gaussian priors, which is mathematically formulated as follows:
[TABLE]
It is worth pointing out that only the users, which have interactions between time and , need to be considered here while factors of users who do not have interactions are assumed to be unchanged till their next interaction happens. We place the zero-mean spherical Gaussian prior on the stationary factors (Mnih and Salakhutdinov, 2008), where denotes the scale hyperparameter. For dynamic factors, the kernel matrix is defined as a diagonal matrix here for simplicity, i.e., . Motivated by the recent advances in deep kernel learning, which combines the non-parametric flexibility of kernel approaches with the structural properties of deep architectures (Wilson et al., 2016), we further define the kernel as an output of a deep neural network to enhance its generality, i.e., .
Coping with the last two hypotheses, this spatiotemporal kernel takes , which represents the user’s dynamic preference at last time step, as a spatial effect to decide the drifting uncertainty and it is stationary for temporal effect, which means depends on the time internal rather than the concrete time and . For a more unified representation, we can further define , where denotes a predefined deep neural network. The definition of the whole drifting prior obeys the Markov property for the discrete events on the continues timeline, which implies that the current state depends only on the former state. It is also applicable to employ other state dependency correlations and network structures. Similar prior with corresponding notations is defined for items.
3.3. Deep Sequential Variational Inference
The third component of the CVRCF framework is the inference model. It composites the two former components with a sequential Bayesian skeleton and associates them with the last prediction component for streaming recommendations.
3.3.1. Joint Distribution
The joint distribution of all observations up to time and the latent factors is defined as follows:
[TABLE]
where and are the matrices of the latent factors for existing users and items.
Our goal is to infer the posterior distribution of latent factors for every , i.e., . However, it is intractable for direct inferences based on the current model assumptions. To overcome this challenge, existing works usually focus on two types of approaches - Sequential Monte Carlo methods (SMC) (Doucet et al., 2001) and Variational Inference methods (VI) (Broderick et al., 2013). The traditional sequential Bayesian updating usually uses SMC methods (a.k.a., particle filtering) to deal with intractable target posterior distributions. Although this approach is very accurate when suitable proposal distributions and enough particle samples are presented, the sampling process is often too slow to apply to high dimensional and large-scale data (Saeedi et al., 2017). On the other hands, the variational inference is much faster compared to SMC. However, the accuracy highly depends on the approximation distribution, especially in streaming settings (Turner and Sahani, 2011). Although there are hybrid models combine both algorithms together (Gu et al., 2015; Naesseth et al., 2017), the computational complexity makes it prohibited for large-scale recommender systems. To trade-off the model scalability and accuracy, we consider the streaming variational inference framework (Broderick et al., 2013) by leveraging deep neural networks as the variational approximator to obtain more flexible posteriors.
3.3.2. Sequential Variational Inference Network
Before introducing the deep architectures, we first assume the latent factors can be partitioned into independent units followed by the traditional mean-field approximation:
[TABLE]
where denotes the approximated variational posterior. Further, each user (or item) is placed by a Gaussian variational posterior as follows:
[TABLE]
where is diagonal with the similar definition as the priors defined in Equ. (2). denotes all the interactions related to user before time step .
To infer the variational posterior, we propose a Coupled Variational Gated Recurrent Network structure (CVGRN) leveraging two variational Gated Recurrent Units (GRUs) for users and items, respectively. Figure 2(a) demonstrates the key idea of the proposed inference network. Blocks represent the inputs of two GRUs at different time steps. and represent the approximated posterior distribution and , which are inferred based on the GRUs output states and and the interactions elated to user and item between time step and , i.e., and . Specifically, assume a user and a movie interact with each other at time . The red and blue blocks denote the inputs of the user chain and item chain at time step , respectively, which are denoted as and . These two inputs are constructed based on user ’s or item ’s interactions between time steps and , respectively. For example, is defined as , where denotes a sparse vector consisting of the ratings given by user in time interval . is an embedding matrix, which is employed to reduce the length of GRUs inputs for alleviating intermediate data explosion. indicates whether a user is a new user or not (Wu et al., 2017). The log interval is concatenated into the inputs to encode continues-time information (Beutel et al., 2018). Inferring is equivalent to inferring and in Equ. (5), which are calculated as: . is a deep neural network.
Since all of the users (or items) share the same RNN chain, the model size could be largely reduced. Moreover, to further reduce the number of latent variables, the conditioned prior distributions of the dynamic factors , which is defined in Equ. (2), are assumed to be parameterized by the latent states, i.e., . To further encode the temporal information, we exponentially decay the latent state variables at each time step (Mozer et al., 2017) as , where is a predefined decay rate.
3.3.3. Objective Function
Considering RNN as a graphical model, we leverage the conditionally independency between current latent state and future inputs, and have \mathbf{h}^{t}\rotatebox[origin={c}]{90.0}{\models}x^{>t}|\mathbf{h}^{t-1},x^{t}. Then Equ. (4) could be written as:
[TABLE]
To obtain the objective function, we try to follow the traditional variational autoencoder to derive a variant variational lower bound. We start from the joint log likelihood and drive the objective function as follows:
[TABLE]
To further simply the expression, we denote the probabilities , , , , and , as , , , , and , respectively. Based on the former definitions, the objective function is defined as a timestep-wise variational lower bound as follows:
[TABLE]
It is worth pointing out that the expectation term is calculated based on sampling, i.e., , where is the number of samples we wish to use to estimate the quantity. We specifically set for every iteration in the implementation following the setting in conventional Variational Auto-Encoder (Kingma and Welling, 2014) and adopt the reparameterization trick for feasible optimization.
As the rating sequence of each user or item could be infinite long under the streaming setting, which makes it infeasible to feed the whole sequences into the RNNs, this step-wise objective function allows us to truncate the sequences into multiple segmentations for a streaming inference. In another words, assume , , , , and are achieved at time step , they could be treated as the prior distribution of the latent variables at time step and updated based on the new interactions , the CVRCF framework, and the following step-wise objective function:
[TABLE]
It is worth pointing that as stated in Section 3.2, we assume the stationary factors and represent long-term users’ preferences and item popularities. Thus, they should also be updated at each time-step. However, they remain the same between two consecutive time steps while the dynamic factors keep evolving.
3.4. Prediction Network
The prediction model is based on the generation model described in Figure 2(b). At any testing time between time steps and , to predict a specific ratings of a user to an item , we first calculate the expectations of the current latent representations and based on the prior distributions and , and the stationary factors and . The ratings is then predicted based on the distribution parameterized by the interaction network in Equ. (1), i.e., . Similarly, the variance could also be predicted as: . is assumed to be learnable as a function of the hidden states and in our implementation.
4. Experiments
In this section, we empirically evaluate the performance of CVRCF framework by analyzing three major aspects. Q1: What are the general performance of CVRCF compared with the other baselines? Q2: What are the temporal drifting dynamics of users and items we could learned? Q3: What are the sensitivities of the model to the key hyperparameters? The code of CVRCF is available at GitHub: https://github.com/song3134/CVRCF.
4.1. Datasets
Three widely-adopted benchmark datasets shown in Figure 1 are employed in our experiments. Detailed statistics of them are elaborated as follows:
- •
MovieTweetings (MT) (Dooms, 2018): It is a benchmark dataset consisting of movies ratings that were contained in well-structured tweets on Twitter. It contains ratings ([math]-) provided by users to movies. All ratings are time-associated spanning from to . The granularity is defined as four weeks.
- •
MovieLens-10M (ML-10M) (GroupLens, 2018): It contains ten million ratings to movies by users spanning from to . The granularity is defined as four weeks.
- •
Netflix (Netflix, 2009): The Netflix challenge dataset consists of million ratings by users to movies from to . The granularity is defined as two weeks.
4.2. Baselines
As our main focus is factorization-based approaches, five representative factorization-based baseline algorithms, including two batch algorithms and three streaming algorithms are selected for comparison from different perspectives shown in Table 2. Brief descriptions of these methods are listed as follows.
- •
PMF (Mnih and Salakhutdinov, 2008): Probabilistic Matrix Factorization is a conventional recommendation algorithm, which does not consider temporal information.
- •
TimeSVD++ (Koren, 2010): The temporal-envoled variation of the classical static factor-based algorithm SVD++. We implement it with Graphchi (Kyrola et al., 2012) C++ pacakge.
- •
sD-PMF: A streaming version of the PMF model combined with the deep interaction network, which is employed in the CVRCF Framework. This model is used to test the effectiveness of the dynamic factors optimized with the RNN structure in CVRCF.
- •
sRec (Chang et al., 2017): Streaming Recommender System is the state-of-the-art shallow dynamic recommendation model. It is a probabilistic factor-based model optimized with a recursive mean-field approximation.
- •
sRRN (Wu et al., 2017): A streaming variation of Recurrent Recommender Network (RRN), which is a state-of-the-art deep heuristic streaming recommendation model.
4.3. Experimental Setup
For each dataset, we segment the data along timeline into three parts with ratios serving as training, validation, and testing sets, respectively.
4.3.1. Training Settings
During the training phase, the training and validation sets serve as the historical datasets to decide the best hyperparameters for all methods. As each user or movie may have too many ratings, to reduce and memory and protect the feasible use of GRU structures, we truncate the training sequences along the timeline into batches for the user and movie chain, respectively. This will affect the RNN effectiveness to some extent, but by varying the number of training epoch, it does not have an obvious influence on the experimental results during our experiments. Moreover, to protect the stationary factor get faster trained, in each epoch, every truncated batch is processed with multiple iterations. The number of this iteration hyperparameter used in the training phase is set based on validation and will be further analyzed in hyperparameter analysis section.
4.3.2. Testing Settings
During the testing phase, at each time step , the testing is first done to get the prediction of the upcoming ratings , and then these ratings are assumed to arrive and be used to update the models. Different from dynamic methods, at each update, the static methods are reconstructed from scratch using all the previously arrived testing ratings including the training ratings, while the streaming models only employ the current-step arrived ratings for the current update. Based on this setting, no later data is used to predict any former data and no temporal overlapping is existed between each pair of testing intervals. Besides, for fair comparisons, at each testing step, only ratings for existing users and items are used for testing since some baselines (e.g., PMF and time-SVD++) cannot explicitly cope with new users and items. All the experimental results are the arithmetic average of ten different times runs to ensure the reliability. The performance is evaluated via the root mean square error (RMSE).
4.3.3. Parameter Setting
Settings of the hyperparameters for all the baselines follow the original papers, which result in their best performance. Hyperparameters in all the methods are selected based on cross-validation using the training and validation sets. For the static baselines PMF and timeSVD++, all of their regularization parameters are chosen over and the sizes of their latent factors are chosen over . For streaming methods, the size of the stationary factors for sRRN and CVRCF are chosen to be for all the datasets. The stationary factors for sD-PMF is chosen over . The size of the dynamic factors of CVRCF is chosen to be 40 including the sizes of both mean and variance parameters. The size of the dynamic factors and the length of the RNN inputs for sRRN is chosen to be the same as CVRCF for fair comparisons. The size of the latent states ( & ) of CVRCF is set to be which is half of the length we used in sRRN. The exponential decay factors are set to be week and weeks for the user RNN and movie RNN, respectively. In the training phase, the truncation hyperparameters of all the RNN-based models are set to be , , and weeks for the three datasets, respectively, to alleviate the intermediate data explosion.
4.4. General Evaluation Results
We first analyze the general performance of CVRCF model by comparing it with different categories of baselines based on the RMSE results shown in Table 3 and Figure 3. From Table 3, three conclusions could be drawn as follows. First, CVRCF outperforms all baselines on all datasets. Although time-SVD++ could achieve comparable performance on MT and ML-10M dataset, it has to be reconstructed from scratch using all of the historical data at each update. Second, CVRCF highly outperforms sD-PMF, which confirms the effectiveness of the dynamic factors employed in CVRCF for capturing the temporal relationships during the streaming process. Third, comparing with shallow probabilistic model sRec, CVRCF displays prominent improvement, which demonstrate the effectiveness of deep architectures in modeling complex drifting interactions.
To further analyze the time-varying pattern of each method and their performance consistency on different datasets, we display the RMSE changing curves of the four representative methods on two larger datasets ML-10M and Netflix in Figure 3. From the figure, we could observe that on each dataset the performance of all methods shows similar varying patterns and starting form the first testing step, CVRCF consistently achieves the best performance across two datasets with the evolving of the system. Since MovieLens-10M has the longest testing timeline among all three testing datasets, Figure 3(a) illustrates that CVRCF has stable effectiveness on the dataset with strong temporal relationships in long-term evaluation. By comparison, Netflix is a much larger dataset in terms of users and interactions. Results in Figure 3(b) confirms the superiority of the proposed method on large-scale datasets. Finally, as sRRN could be treated as an ablation method of CVRCF without the probabilistic component, the relative improvement of the proposed method on the general performance validates the effectiveness of combining probabilistic approach in capturing the prospective process of streaming data generation.
4.5. Evaluation of Temporal Dynamics
To analyze the temporal drifting dynamics learned from CVRCF, we visualize the learned latent factors including the location factors ( and ) and uncertainty factors ( and ). We conduct exploration on the ML-10M dataset and update the models every half a year during testing.
4.5.1. Drifting of the Location Factors
We first visualize the drifting of the average location factors and with heatmap shown in Figure 4(a). The X-axis denotes the index of the latent factors and the Y-axis denotes the timeline. Each factor is adjusted with centralization for joint visualization. From the figure, we could discover that the users’ preference factors change more smoothly than movies’ popularity factors, which display a block-wise changing patterns. As we update the model every half a year, the stationary factors of movies especially for the new movies are only updated or learned every half a year, which is consistent with the length of the blocks. Thus, the block-wise structure, which appears only on the movie factors, could be explained as: the movie drifting is more likely to be captured by the stationary factors, while the drifting pattern of the users is more likely to be captured by dynamic factors. Since the dynamic factors and stationary factors are defined to capture the short-term and long-term preference, respectively, the finding is also consistent with the fact that users preference usually change more frequently compared to movie popularities.
4.5.2. Drifting of the Uncertainty Factors
Figure 4(b) displays the drifting of the average uncertainty factors learned from CVRCF. Each column is first normalized with -norm. There are two major observations we could find from Figure 4(b). From an overall perspective, with the evolving of the system, the variances of the learned dynamic factors decrease. This is because the incremental ratings provide more information for each user and item, and reduce the uncertainties of the whole system during the testing phase. From the local perspective, at some time steps, the variance of the latent factors are sharply increased and then slowly decreased. This is because, at some time steps, users and movies increase are dramatically. The cold-start problem introduced by the incremental users and items may raise the uncertainties of the system within a short time but would be alleviated with time goes by. In other words, although new users and items are continually enrolled, the number of ratings related to them could be deficient at first and then increasing over time.
4.6. Hyperparameter Sensitivity Analysis
Finally, we study the sensitivity of CVRCF to different hyperparameters using the ML-10M dataset. We pick five hyperparameters, which are the most influential ones in our experiments, and analyze their effects by coupling some of them. These pairwise effects are displayed in Figure 5.
4.6.1. Training Epochs & Training Batch Iterations
We first analyze the pairwise effects of the training epoch and the training batch iterations. Figure 5(a) shows that these two parameters highly affects the learning process and may cause overfitting or underfitting when the product of them are too large or too small. With the number of training batch iteration increasing, less epoch should be adopted to protect the testing effectiveness. This may be because: since the stationary factors are outside the RNNs and have high degrees of freedom, they may get overtrained when the batch iteration is setting too large given fixed training epoch. Thus, early stopping should be employed via limiting the number of epochs to prevent the RNN structures not further learning effectively. On the contrary, insufficient batch iterations would limit the power of stationary factors in capturing long-term preferences.
4.6.2. Testing Batch Iterations & Testing Update Interval
Secondly, we focus on the testing phase and analyze the influence of the testing batch iterations and the length of the model updating interval. As shown in Figure 5(b), for a fixed testing update interval, with the increasing of the testing batch iterations, the testing performance first decreases and then increases. This might because: in the testing phase, new ratings, users, and items never stop to arrive. Insufficient testing batch iterations would highly affect the learning of latent factors especially for the stationary factors of new users or items. On the contrary, superfluous iterations would also lead to overfitting as in the training phase described above. Besides, with the enlarging of the testing update interval, ratings in each batch increase which requires more updating iterations under the same remaining settings.
4.6.3. Granularities
Finally, we explore the effect of the granularities. We assume the two granularities defined for users and movies could be different for a more general treatment. From Figure 5(c), we can see that although different granularities do affect the results, their influences are shown to be very trivial based on the scale of the -axis. Moreover, user granularity seems to have larger effects than movie granularity and its optimal value is shown to be lower than movie granularity. This may illustrate that the users’ preferences are varying more frequently than the items’ popularities.
5. Related Work
Streaming Recommender Systems. Beyond traditional static settings, streaming recommender systems have attracted widespread concerns in coping with the high data velocity and their naturally incremental properties (Agarwal et al., 2010; Chang et al., 2017). Different from static time-aware models (Koren, 2010; Du et al., 2015; Wang et al., 2016a; Kapoor et al., 2015; Hosseini et al., 2017), which only take account of temporal dynamics without updating in an streaming fashion, streaming recommender systems dynamically encode temporal information and generate response instantaneously (Das et al., 2007; Song et al., 2008; Chen et al., 2013; Song et al., 2017). Some existing works focus on extending classical memory-based recommendation algorithms into online fashions to address the streaming challenges such as (Chandramouli et al., 2011) and (Subbian et al., 2016). Besides memory-based methods, model-based methods (Rendle and Schmidt-Thieme, 2008; Diaz-Aviles et al., 2012; Devooght et al., 2015) are becoming more and more popular in recent years, which conducts recommendation based on well-trained models rather than explicitly aggregating and prediction based on the similarity relationships. Diaz-Aviles et al. leverage the active learning strategy to sample and maintain a delicately designed reservoir, thus providing a pairwise matrix factorization approach for streaming recommendation. Chang et al. (Chang et al., 2017) exploit continuous Markov process (Brownian motion) to model the temporal drifting of users and items, which introduces a principled way to model data streams. Wang et al. (Wang et al., 2018) propose a streaming ranking-based framework based on Bayesian Personalized Ranking (Rendle et al., 2009) to address the user interest drifting as well as system overload problem. Although many recent advances based on deep neural networks especially RNNs have been made to model streaming inputs and capture the complex temporal dynamics (Hidasi et al., 2015; Wu et al., 2017; Beutel et al., 2018), most of them overlook the causality inherited in the data generation process, which is one of the main aspects considered in our framework via the deep Bayesian learning.
Deep Recommender Systems. Deep learning techniques have brought vast vitality and achieve dramatic improvement in recommender systems (Zhang et al., 2017). They have been adopted in various recommendation tasks as well as accommodating different data sources (Van den Oord et al., 2013; Gong and Zhang, 2016; Wu et al., 2017). From the perspective of the general framework, deep recommender systems could be categorized into solely deep models, which conduct recommendations based only on deep frameworks (Gong and Zhang, 2016; Song et al., 2016; He et al., 2017); and integration models, which integrate deep techniques with traditional recommender systems (Van den Oord et al., 2013; Wang et al., 2016b; Wang et al., 2017a). From the perspective of deep frameworks, these models could also be divided into: (1) single deep models, which are built upon single neural building blocks such as multi-layer perceptron (He et al., 2017), convolutional neural network (Wang et al., 2017b), and recurrent neural network (Wu et al., 2017); and (2) composite models, which are constructed with different deep learning techniques (Zhang et al., 2016). From the first viewpoint of devision, the proposed framework could be categorized as an integration model, which combines and probabilistic recommender systems with deep learning models. It is also a hybrid deep models, which jointly incorporates RNN and MLP structures. The coupled variational inference structure also provides its’ uniqueness comparing to other streaming deep recommender systems.
6. Conclusion and Future Work
In this paper, we focus on the recommendation problem under streaming setting and propose a deep streaming recommender system - CVRCF. CVRCF incorporates deep architectures into traditional factorization-based model and encodes the temporal relationship with Gaussian-Markov components. Standing upon the sequential variational inference, CVRCF is optimized leveraging a cross variational GRU network and could continually update under the streaming setting. By conducting experiments on various real-world benchmark datasets, we empirically validate the effectiveness our proposed framework, explore the learned drifting patterns, and validate the stability of our framework. Future work will center on exploring different assumptions of stochastic processes of the dynamic factors and incorporate other deep learning structures, such as graph neural networks, into the proposed framework.
7. Acknowledgments
The authors thank the anonymous reviewers for their helpful comments. This work is, in part, supported by DARPA under grant #WNF--- and #FA---, and NSF under grant #IIS- and #IIS-. The views and conclusions contained in this paper are those of the authors and should not be interpreted as representing any funding agencies.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1(1)
- 2Agarwal et al . (2010) Deepak Agarwal, Bee-Chung Chen, and Pradheep Elango. 2010. Fast online learning through offline initialization for time-sensitive recommendation. In KDD .
- 3Beutel et al . (2018) Alex Beutel, Paul Covington, Sagar Jain, Can Xu, Jia Li, Vince Gatto, and Ed H Chi. 2018. Latent Cross: Making Use of Context in Recurrent Recommender Systems. In WSDM .
- 4Broderick et al . (2013) Tamara Broderick, Nicholas Boyd, Andre Wibisono, Ashia C Wilson, and Michael I Jordan. 2013. Streaming variational bayes. In NIPS .
- 5Chandramouli et al . (2011) Badrish Chandramouli, Justin J Levandoski, Ahmed Eldawy, and Mohamed F Mokbel. 2011. Stream Rec: a real-time recommender system. In Proceedings of the 2011 ACM SIGMOD International Conference on Management of data .
- 6Chang et al . (2017) Shiyu Chang, Yang Zhang, Jiliang Tang, Dawei Yin, Yi Chang, Mark A Hasegawa-Johnson, and Thomas S Huang. 2017. Streaming recommender systems. In WWW .
- 7Chen et al . (2013) Chen Chen, Hongzhi Yin, Junjie Yao, and Bin Cui. 2013. Terec: A temporal recommender system over tweet stream. Proceedings of the VLDB Endowment (2013).
- 8Das et al . (2007) Abhinandan S Das, Mayur Datar, Ashutosh Garg, and Shyam Rajaram. 2007. Google news personalization: scalable online collaborative filtering. In WWW .
