On Variational Inference for User Modeling in Attribute-Driven Collaborative Filtering

Venugopal Mani, Ramasubramanian Balasubramanian, Sushant Kumar, Abhinav Mathur, Kannan AchanarXiv 2020

TL;DR

This paper introduces a probabilistic framework for recommender systems that incorporates "temporal loyalty"—the idea that a user's recent affinity for an attribute (like a brand or author) is more predictive than their distant past. By fusing a standard binary transaction matrix with a time-decayed loyalty matrix and optimizing via Variational Inference, the authors achieve a 1–3% performance boost over standard collaborative filtering methods on large-scale real-world datasets.

What Problem Does This Paper Address?

Most modern recommender systems rely on One-Class Collaborative Filtering (OCCF), which learns from implicit signals like clicks or purchases. However, these systems often suffer from two major flaws:

  1. Signal Uniformity: They treat all positive interactions as equal. In reality, a user who buys a brand every week is fundamentally different from a user who bought it once three years ago.
  2. Temporal Insensitivity: They often ignore when an interaction happened. A user’s preferences drift; what they liked last month is a better predictor of future behavior than what they liked last year.

The authors focus specifically on attribute-driven collaborative filtering. Instead of just predicting the next item, they aim to predict the next attribute (e.g., which brand will a grocery shopper choose next? Which author will a fantasy reader pick up?). Attributes often exhibit stronger loyalty patterns than individual items, making them a rich signal for user modeling.

Methods

The researchers propose a model that optimizes over two distinct matrices simultaneously:

  • The Transaction Matrix ($T$): A standard binary matrix indicating whether a user has ever interacted with an attribute.
  • The Temporal Loyalty Matrix ($L$): A continuous matrix where each entry is a time-decayed sum of all purchases of that attribute. This gives higher weight to recent interactions.

To fuse these signals, they adopt a Probabilistic Machine Learning (PML) approach using Box’s Loop—an iterative process of positing a model, inferring hidden variables, and criticizing the results.

Fig. 1: A graphical representation of the proposed latent variable model

As shown in the graphical model above, the system treats user and attribute embeddings, biases, and scaling parameters as latent variables ($\theta$). Because calculating the exact posterior distribution for these variables is computationally impossible at scale (precluding methods like MCMC), the authors use Variational Inference (VI). They maximize the Evidence Lower Bound (ELBO) to find a proxy distribution that is "close enough" to the true posterior, allowing the model to scale to hundreds of thousands of users.

Datasets

The model was evaluated on two large-scale datasets from different domains:

  1. E-Commerce Grocery Data: A private dataset containing six months of transactions. After filtering for engaged users and consistent brands, it included 180,000 customers and 11,200 brands.
  2. Goodreads Book Reviews: A public dataset focusing on the "Fantasy and Paranormal" genre. The task was to predict author loyalty. This set included 150,000 users and 11,400 authors.

Key Insights and Ideas

  • Recency as a Proxy for Loyalty: By using an exponential time-decay function for the loyalty matrix, the model naturally prioritizes current habits without discarding historical data entirely.
  • Attribute-Level Modeling: Modeling at the attribute level (brands/authors) captures "repeat purchase" behavior more effectively than item-level modeling, especially in domains like grocery or book series.
  • Variational Inference for Scalability: The choice of VI over traditional Matrix Factorization (like ALS) allows for a more nuanced Bayesian treatment of uncertainty and priors while remaining performant enough for industrial applications.
  • Cross-Domain Consistency: The "loyalty" effect was observed in both grocery shopping and book reading, suggesting that temporal affinity is a fundamental human behavioral trait across different types of consumption.

Key Results

The proposed model, VI-MF (Variational Inference Matrix Factorization), was compared against standard baselines including Popularity models and classic Matrix Factorization (MF) using Alternating Least Squares.

Table I: Comparison of evaluation metrics across models on e-Commerce grocery data

As seen in Table I (and mirrored in the Goodreads results in Table II), VI-MF consistently outperformed the best-performing baselines by 1% to 3% across all metrics (NDCG, MAP, Hit Rate, etc.). While 3% might sound modest, the authors note that for a multi-billion dollar e-commerce platform, a 3% increase in prediction accuracy can translate to hundreds of millions of dollars in incremental revenue.

Limitations and Future Work

  • Data Sparsity: Like all collaborative filtering models, performance can degrade when user-attribute interactions are sparse. The authors suggest exploring techniques to enrich the transaction matrix to combat this.
  • Loyalty Function Design: The current model uses a specific time-decay function. Future work could involve exploring alternative ways to calculate loyalty scores or learning the decay rate as a parameter.
  • Prior Distributions: The authors used normal distributions for priors and likelihoods for simplicity and conjugacy. They suggest that exploring other distributions informed by specific domain knowledge could further refine the model.

Summary updated

BibTeX
@misc{mani2020variational,
  author = {Venugopal Mani and Ramasubramanian Balasubramanian and Sushant Kumar and Abhinav Mathur and Kannan Achan},
  title = {{On Variational Inference for User Modeling in Attribute-Driven Collaborative Filtering}},
  year = {2020},
  eprint = {2012.01577},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.01577},
}
Figure