Abstract
Despite the success of existing tensor factorization methods, most of them conduct a multilinear decomposition, and rarely exploit powerful modeling frameworks, like deep neural networks, to capture a variety of complicated interactions in data. More important, for highly expressive, deep factorization, we lack an effective approach to handle streaming data, which are ubiquitous in real-world applications. To address these issues, we propose SPIDER, a Streaming ProbabilistIc Deep tEnsoR factorization method. We first use Bayesian neural networks (NNs) to construct a deep tensor factorization model. We assign a spike-and-slab prior over the NN weights to encourage sparsity and prevent overfitting. We then use Taylor expansions and moment matching to approximate the posterior of the NN output and calculate the running model evidence, based on which we develop an efficient streaming posterior inference algorithm in the assumed-density-filtering and expectation propagation framework. Our algorithm provides responsive incremental updates for the posterior of the latent factors and NN weights upon receiving new tensor entries, and meanwhile select and inhibit redundant/useless weights. We show the advantages of our approach in four real-world applications.
Introduction
Tensor factorization is a fundamental tool for uncovering latent patterns in multi-way data, such as user-item-time interactions. Traditional methods, including CP and Tucker decomposition, rely on multilinear assumptions that often fail to capture the complex, non-linear relationships inherent in modern datasets. While Deep Neural Networks (DNNs) offer a solution for static data, their application to streaming data—where information arrives continuously and cannot be revisited due to storage or privacy constraints—remains challenging. Existing Streaming Variational Bayes (SVB) methods for deep models often suffer from instability due to their reliance on noisy stochastic gradients for intractable objective functions.
The SPIDER Framework
To overcome these limitations, we introduce SPIDER (Streaming ProbabilistIc Deep tEnsoR factorization), a deterministic Bayesian framework designed for streaming environments.
Architecture and Sparsity
SPIDER replaces the standard multilinear product with a Bayesian Neural Network (BNN). Latent embedding vectors for each dimension are concatenated and fed into the BNN to predict tensor entries. To mitigate overfitting in sparse tensor environments, we employ a spike-and-slab prior on all network weights. This mechanism effectively prunes redundant weights, maintaining a lean and robust model.
Deterministic Streaming Inference
The core innovation of SPIDER lies in its inference mechanism, which utilizes Assumed-Density-Filtering (ADF) and Expectation Propagation (EP) rather than stochastic optimization.
- Moment Approximation: We utilize a first-order Taylor expansion of the NN output to approximate its mean and variance in closed form.
- Moment Matching: These moments are used to update the posterior distributions of embeddings and weights deterministically.
- Efficiency: Despite the Bayesian complexity, the required gradients are computable via standard backpropagation, ensuring compatibility with modern deep learning libraries.
Experimental Evaluation
We evaluated SPIDER on four diverse real-world datasets: DBLP (bibliography relationships), Anime (user preferences), ACC (user-action-file logs), and MovieLens 1M (movie ratings).
Key Results
- Superior Accuracy and Stability: SPIDER consistently outperforms state-of-the-art multilinear (e.g., POST) and nonlinear (e.g., SVB-GPTF) streaming methods. As shown in Figure 1, SPIDER's "on-the-fly" performance is both more accurate and significantly more stable than SVB-based competitors, which often exhibit erratic learning curves.
- Robustness to Hyperparameters: The method demonstrates remarkable resilience to variations in rank and batch size. While competing methods fluctuate wildly with different batch sizes, SPIDER maintains consistent performance as shown in Figure 2.
Conclusion
SPIDER demonstrates that for deep streaming models, deterministic updates via Taylor approximations provide a more stable and effective alternative to stochastic optimization. While the current implementation uses a first-order approximation and a standard MLP architecture, future work could explore higher-order expansions and more complex architectures like Transformers within this Bayesian streaming framework.
Summary updated