Abstract
Researchers from the University of Glasgow have developed VBCAR, a recommendation model that moves beyond traditional "point" embeddings by representing users and items as probabilistic Gaussian distributions. By combining the Skip-gram framework with Variational Auto-encoders, the model captures complex basket contexts and uncertainty, significantly outperforming state-of-the-art deterministic models on grocery prediction tasks.
Introduction
Grocery recommendation presents a unique challenge in the recommender systems domain. Unlike movie ratings or book reviews, grocery shopping is highly contextual, involving "baskets" of items purchased together, sequential patterns, and personalized dependencies. Existing state-of-the-art models, such as Triple2vec, represent users and items as single deterministic points in a low-dimensional space. The authors argue this approach has two major flaws: it cannot easily capture the inherent uncertainty of user interests and is highly sensitive to noise, making it prone to overfitting on outliers in purchase histories.
Methodology
The Variational Bayesian Context-Aware Representation (VBCAR) model addresses these limitations by representing every user and item as a Gaussian distribution defined by a mean ($\mu$) and a variance ($\sigma^2$). This probabilistic approach allows the model to naturally account for uncertainty, acting as a built-in regularizer.
The architecture is built on three main pillars:
- Bayesian Skip-gram Framework: Instead of predicting a single item, the model samples "triples" (user, item $i$, item $j$) from shopping baskets to capture co-purchase relationships.
- Amortized Inference (VAE): To ensure computational feasibility, VBCAR employs a Variational Auto-encoder structure. Two-layer fully connected neural networks (encoders) map identity codes to their respective Gaussian parameters.
- Non-linear Mapping: Integrating deep neural networks into the inference process allows the model to capture complex patterns that simple linear matrix factorization or standard Skip-gram models miss.
Preference scores are calculated by sampling latent vectors from these distributions and computing their dot product.
Experimental Setup
The model was evaluated using the Instacart dataset, a massive repository containing over 3 million orders and 33.8 million interactions. The data was preprocessed to filter for active users (at least 7 orders) and popular items. To test robustness, the authors created subsets ranging from 5% to 100% of the total data, allowing for a comprehensive comparison across varying data scales.
Key Results
VBCAR consistently outperformed the Triple2vec baseline across all dataset sizes and metrics. The performance gap was particularly pronounced on smaller sample sizes, confirming that the Bayesian approach is significantly better at learning meaningful representations when data is sparse.
On the full 100% Instacart dataset, VBCAR achieved an NDCG@10 of 0.768 (vs. 0.726 for Triple2vec) and a Recall@10 of 0.742 (vs. 0.660). In specific sparse-data scenarios, the authors noted up to a 31% increase in recommendation effectiveness over the baseline.
Conclusion and Future Work
By treating uncertainty as a feature, VBCAR provides a robust framework for grocery recommendation that scales to millions of interactions. Future work will focus on incorporating side information—such as item categories, prices, or user demographics—to address the cold-start problem and exploring temporal dynamics to capture seasonal shopping trends.
Summary updated