Consistent Collaborative Filtering via Tensor Decomposition

Shiwen Zhao, Charles Crissman, Guillermo R Sapiro22 Aug 2023

Problem

Standard collaborative filtering for implicit feedback gives every item one latent vector and scores a user-item pair with a dot product. Item A beats item B for a user whenever A's score is higher, so the model expresses one fixed ranking per user. Such models often disagree with the pairwise order that the user's own ratings show: BPR matches the true order in 35.7% of pairs on MovieLens (per the paper).

Illustrative example: a user liked two films and disliked a third; the model scores the disliked film above a liked one, and no top-N metric reveals it.

Solution in brief

Sliced Anti-symmetric Decomposition (SAD) adds a second non-negative vector τi to every item and views interactions as a user x item x item tensor of pairwise preferences. The score for a pair is no longer a difference of two dot products, so preferences between items can form cycles. When all τ values equal 1, SAD is exactly BPR. Plain SGD learns τ from data.

Questions this case answers
  • How to learn personalized pairwise item preferences from implicit feedback when a single score per item cannot represent context-dependent comparisons
  • How to make a collaborative filtering model give consistent personalized pairwise preferences from implicit feedback?
  • How to model users whose preferences between items are not transitive?
  • How to benchmark a new collaborative filtering model against BPR, NCF and VAE baselines on implicit feedback?

Tools and methods

  • Sliced Anti-symmetric Decomposition (SAD) — per-user anti-symmetric slices of a three-way tensor of pairwise preferences.
  • Bayesian Personalized Ranking (BPR) — the special case of SAD and the main baseline.
  • Negative sampling — one random non-interacted item per interaction builds the training pairs.
  • ml-sad library — Apple's Python implementation.
Continue reading — it's free

Google or a one-time email code. No password.