Parallel matrix factorization for binary response

Rajiv Khanna, Liang Zhang, Deepak Agarwal, Bee-Chung Chen

In the world of web recommendation, we aren't usually predicting star ratings; we’re predicting clicks. This shift from continuous numbers to binary "yes/no" data—often called binary response—introduces a massive headache for engineers: the data is incredibly imbalanced (clicks are rare) and the scale is gargantuan (billions of events).

In this paper, researchers from Yahoo! Labs present a robust framework for scaling Bilinear Random Effect (BIRE) models—a sophisticated form of matrix factorization—to handle these challenges using a clever mix of exact sampling and Map-Reduce.

TL;DR

The authors develop a scalable framework for matrix factorization that accurately predicts user clicks even when they are extremely rare. By replacing common approximations with exact Adaptive Rejection Sampling (ARS) and using a Map-Reduce ensemble strategy, they successfully trained a model on a massive dataset of 1 billion observations, achieving significant improvements in click-through rates.

What Problem Does This Paper Address?

Most "classic" matrix factorization techniques (like those made famous by the Netflix Prize) were designed for explicit ratings on a 1–5 scale. However, most web data is implicit: a user either clicked an item or they didn't.

This presents two major hurdles:

  1. The Imbalance Problem: In systems like the Yahoo! Front Page, the vast majority of views do not result in a click. Standard statistical approximations tend to "over-shrink" their estimates when data is this sparse, leading to poor predictions for rare events.
  2. The Scale Problem: To get good results, you need to train on months of data. We’re talking about billions of rows. Standard algorithms are sequential and don't fit on a single machine, but simply "splitting" the data for parallel processing can destroy the model's ability to learn user preferences.

Methods

The authors build upon the Bilinear Random Effect (BIRE) model, which uses both latent factors (hidden patterns) and covariates (known features like user age or item category) to handle the "cold-start" problem for new users.

1. Exact Sampling (ARS)

The standard way to fit these models is via Monte Carlo Expectation Maximization (MCEM). Usually, the "E-step" (estimating hidden factors) uses a Variational Approximation (VAR) because it’s fast. However, the authors discovered that VAR fails miserably on imbalanced binary data. They replaced it with Adaptive Rejection Sampling (ARS). ARS is an exact sampling method for log-concave densities, ensuring the model doesn't "lose" the signal in the noise of rare clicks.

2. Parallel Map-Reduce Framework

To handle 1 billion observations, they used a "Divide and Conquer" approach:

  • Smart Partitioning: Instead of random splitting, they partition data by user. This ensures that all of a single user's history stays in one place, allowing the model to actually learn that user's specific "random effect."
  • Ensemble Averaging: They run the model on multiple random partitions and average the results. This reduces variance and helps the model navigate the complex "multi-modal" landscape of the data.
  • Solving Identifiability: In parallel settings, different machines might learn the same pattern but with opposite signs (e.g., one machine learns +1 * +1 and another learns -1 * -1). If you average these, they cancel out to zero. The authors introduced specific constraints (like forcing item factors to be positive) to ensure all parallel "workers" are speaking the same mathematical language.

Datasets

The researchers evaluated their approach on three distinct scales:

  • MovieLens 1M: A standard benchmark, which they manually "imbalanced" to simulate rare click scenarios (5% positive response).
  • Small Yahoo! Front Page: 1.9 million binary observations from 30,000 "heavy" users.
  • Large Yahoo! Front Page: A massive production-scale dataset containing 8 million users and 1 billion binary observations.

Key Insights and Ideas

  • The "Shrinkage" Trap: The most surprising finding was just how much Variational Approximations (VAR) hurt performance on rare data. The histograms in the paper show that VAR shrinks item factors by an order of magnitude compared to ARS, essentially "muting" the model's ability to distinguish between items.
  • Partitioning is a Science: If you have more users than items, partition by user. If you have more items than users, partition by item. The goal is to maximize the "information gain" within each parallel slice of data.
  • Identifiability is a Parallel Killer: In a single-machine world, non-identifiable parameters are a curiosity. In a distributed Map-Reduce world, they are a bug that can make your global model coefficients drop to zero.

Key Results

  • Accuracy at Scale: On the imbalanced MovieLens data, the ARS-based model maintained high performance (AUC ~0.78) even when split across 15 partitions, while the standard VAR-based model's performance plummeted (AUC ~0.65).
  • Production Lift: On the massive 1-billion-observation Yahoo! dataset, the parallel BIRE model (specifically the version with identifiability constraints, MCEM-ARSID) achieved a 9.7% click-lift over a baseline model that only used features.
  • The Ensemble Effect: Using 10 ensemble runs instead of just one provided a measurable boost in performance, proving that "averaging" across different data partitions effectively smooths out the learning process.

Limitations and Future Work

  • Computational Cost: ARS is more computationally intensive than simple approximations. While the authors optimized it (reducing rejection rates by 60% using better starting points), it still requires more "heavy lifting" per iteration.
  • Beyond Binary: The paper focuses on binary (Bernoulli) response. The authors suggest that similar exact-sampling logic could be applied to other non-Gaussian data, such as Poisson models for count data (e.g., how many times a user visited a specific category).
  • Dynamic Lifetimes: The current model assumes user effects are relatively static. In fast-moving environments like news, incorporating more temporal dynamics into the parallel framework remains an open challenge.

Summary updated

BibTeX
@inproceedings{khanna2013parallel,
  author = {Rajiv Khanna and Liang Zhang and Deepak Agarwal and Bee-Chung Chen},
  title = {{Parallel matrix factorization for binary response}},
  booktitle = {IEEE BigData},
  year = {2013},
  doi = {10.1109/bigdata.2013.6691604},
}
Figure