Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

BPR: Bayesian Personalized Ranking from Implicit Feedback

BPR learns per-user rankings from implicit feedback without negative labels

  • Problem Pointwise training on implicit feedback treats every unobserved item as a negative. A model that fits those labels exactly predicts only zeros, so it cannot rank anything.
  • Method BPR learns, for each user, which of two items is preferred instead of scoring single items. It maximizes a Bayesian posterior with stochastic gradient descent and bootstrap sampling.
  • Results On a Netflix subsample, BPR-MF with 8 dimensions scored AUC comparable to WR-MF with 128 dimensions.

Why 0/1 labels break ranking on implicit data

Implicit feedback only ever shows positive behaviour, such as a purchase or a click. Every pair that was not observed mixes real disinterest with items the user would buy later. The usual workaround labels observed pairs 1 and all other pairs 0, then fits an ordinary model to those labels. That creates a trap: a model flexible enough to fit these labels exactly predicts only 0s, so it can't rank anything.

Ranking methods only work in practice because regularization stops the model from fitting those zeros perfectly.

The open question is how to train on the observed data without treating unobserved pairs as negatives. Earlier methods such as SVD-MF and WR-MF predict whether an item is selected, not which of two items the user prefers.

Training on item pairs instead of single labels

The key idea is to stop scoring single items and instead learn, for each user, which of two items is preferred. If user u has observed item i but not item j, the authors assume u prefers i over j. Two observed items, or two unobserved items, yield no training triple, because the data gives no order between them. The training set is defined as \( D_S := \{(u,i,j) \mid i \in I_u^+ \wedge j \in I \setminus I_u^+\} \), which holds one triple per observed-unobserved pair.

This choice has two effects on the training data. The training pairs mix positive and negative cases, while the pairs still to be ranked stay outside training. Because each training pair compares two items directly, the objective matches the ranking the system has to produce.

BPR-Opt: the posterior criterion and its link to AUC

The authors maximize the posterior of the model parameters \( \Theta \) given the user's latent preference order. For a single pair, the probability that the user prefers i over j is a logistic sigmoid of a score difference: \( p(i >_u j \mid \Theta) := \sigma(\hat{x}_{uij}(\Theta)) \). The score difference is \( \hat{x}_{uij} := \hat{x}_{ui} - \hat{x}_{uj} \), so the model only needs to produce one score per user-item pair.

The likelihood factorizes over triples because the authors assume users act independently and pairs are ordered independently. A zero-mean normal prior on \( \Theta \), with covariance \( \lambda_\Theta I \), is added to the log posterior. The result is \[ \text{BPR-Opt} = \sum_{(u,i,j)\in D_S} \ln \sigma(\hat{x}_{uij}) - \lambda_\Theta \|\Theta\|^2 \] The prior supplies the squared-norm penalty, and \( \lambda_\Theta \) is set per model.

The AUC of a user counts correctly ordered pairs using the step function \( \delta(\hat{x}_{uij} > 0) \), with a normalizing constant \( z_u \). BPR-Opt keeps the same sum over triples but swaps the step for \( \ln \sigma(\hat{x}_{uij}) \), which can be differentiated. The authors say this swap follows from maximum likelihood, not from a heuristic substitute like the sigmoid often used for AUC.

LearnBPR: sampled gradient steps instead of full passes

The criterion is differentiable, so gradient-based optimization is the natural route. A full gradient needs every training triple per update, and the authors count O(|S||I|) of them, which is too many. Full-batch updates also converge poorly, because frequent items dominate the gradient and force very small learning rates.

Per-triple stochastic updates avoid the cost, but the order in which triples are visited matters. Walking the data user by user or item by item produces long runs of updates on the same user-item pair. LearnBPR instead draws each triple uniformly at random, with replacement, and updates after every draw: \[ \Theta \leftarrow \Theta + \alpha \left( \frac{e^{-\hat{x}_{uij}}}{1+e^{-\hat{x}_{uij}}} \cdot \frac{\partial}{\partial \Theta} \hat{x}_{uij} + \lambda_\Theta \Theta \right) \]

The printed update adds \( \lambda_\Theta \Theta \), while the gradient shown above carries \( -\lambda_\Theta \Theta \), and the text doesn't reconcile the two signs. Sampling with replacement lets training stop after any step, and the authors set their number of single steps linearly in the number of observed feedback events S. On the Rossmann dataset, LearnBPR converged much faster than user-wise stochastic gradient descent for a 16-dimensional BPR-MF.

Applying BPR to matrix factorization and adaptive kNN

Both model classes produce one score \( \hat{x}_{ul} \) per user-item pair, so either can supply the score difference. In matrix factorization the score is the dot product of a user vector and an item vector: \[ \hat{x}_{ui} = \langle w_u, h_i \rangle = \sum_{f=1}^{k} w_{uf} h_{if} \] The parameters are the user matrix W and the item matrix H, and they can be read as latent tastes and properties.

For BPR-MF, only the derivative of the score difference with respect to each parameter is needed. A user factor \( w_{uf} \) moves by \( h_{if} - h_{jf} \), the positive item factor \( h_{if} \) moves by \( w_{uf} \), and the negative item factor \( h_{jf} \) moves by \( -w_{uf} \). Three regularization constants apply: \( \lambda_W \) for user features, and \( \lambda_{H+} \) and \( \lambda_{H-} \) for positive and negative item updates.

Adaptive kNN predicts a score as the sum of learned similarities between the candidate item and the items the user has seen: \( \hat{x}_{ui} = \sum_{l \in I_u^+,\, l \neq i} c_{il} \). Cosine similarity would fix C with a heuristic, but the authors learn C directly and don't factorize it. Each update moves \( c_{il} \) and \( c_{li} \) by +1 for the positive item and \( c_{jl} \) and \( c_{lj} \) by -1 for the negative one.

Two regularization constants, \( \lambda_+ \) and \( \lambda_- \), apply to those two kinds of updates.

Results against MF and kNN baselines

The authors compare BPR-MF and BPR-kNN with SVD-MF, WR-MF, Cosine-kNN and the most-popular baseline. The Rossmann dataset has 10,000 users and 4000 items, with 426,612 recorded purchases. The Netflix subsample has 10,000 users and 5000 items, with 565,738 rating actions. Evaluation is leave one out: one random action per user is held out, and AUC is computed on the held-out pairs.

BPR-MF scored clearly higher than WR-MF on both datasets across the dimensions tested, from 8 to 128. Both BPR-optimized models scored highest among the compared methods on both datasets. SVD-MF, WR-MF and BPR-MF share one model class, so the gap between them comes from the learning criterion.

SVD-MF's AUC falls as dimensions increase, which the authors read as overfitting from least-square fitting. WR-MF's AUC rises steadily with dimension, because its regularization keeps it from overfitting. On Netflix, BPR-MF with 8 dimensions scored AUC comparable to WR-MF with 128 dimensions. Hyperparameters were grid-searched only in the first of ten rounds and then held fixed for the other nine.

Comparison with the non-personalized upper bound

np max is the best AUC any non-personalized ranking could reach, computed by optimizing one ranking on the test set. The authors use it to test whether personalized models beat any single shared ranking.

Cosine-kNN, a personalized method, scores well above np max in the reported comparison. On Netflix, the most-popular baseline on test scored 0.8794, compared to an np max of 0.8801.

How BPR relates to WR-MF and MMMF

WR-MF uses the same matrix factorization model but minimizes a weighted squared error on single user-item cells. The weights \( c_{ui} \) increase the impact of positive feedback, and they are fixed in advance rather than learned. The authors argue that item prediction is a classification problem, so a logistic loss fits better than the squared loss.

MMMF's criterion over triples looks close to BPR's, with a hinge term \( \max(0, 1-\langle w_u, h_i - h_j \rangle) \). The authors say BPR's loss is smooth and motivated by maximum likelihood, and BPR-Opt applies to several models, not only MF. MMMF's learning method assumes sparse explicit data, so densified implicit data has O(|S||I|) pairs, which LearnBPR handles by bootstrapping.

Limitations

Only offline learning was studied. Extending to online updates, such as the fold-in used for rating prediction, is suggested but was not tested. Experiments use two datasets, the Rossmann purchases and a Netflix subsample, both built from 10,000 users. Hyperparameters were tuned once and held fixed for the other nine rounds. The np max value is a non-tight estimate, so the gap to the models carries that caveat.

Paper info

Authors
Steffen Rendle, Christoph Freudenthaler, Zeno Gantner, Lars Schmidt-Thieme
Venue
arXiv · Preprint
First published
2012-5-9
Added
2026-11-11
Updated
2012-5-9
Version
v1
arXiv
1205.2618
Category
cs.IR · cs.LG · stat.ML
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Steffen Rendle, Christoph Freudenthaler, Zeno Gantner, Lars Schmidt-Thieme (2012). BPR: Bayesian Personalized Ranking from Implicit Feedback. arXiv:1205.2618v1. https://arxiv.org/abs/1205.2618v1

BibTeX
@misc{rendle2012bayesian,
  title = {{BPR: Bayesian Personalized Ranking from Implicit Feedback}},
  author = {Steffen Rendle and Christoph Freudenthaler and Zeno Gantner and Lars Schmidt-Thieme},
  year = {2012},
  eprint = {1205.2618},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1205.2618v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up