Papers › BPR: Bayesian Personalized Ranking from Implicit Feedback

BPR: Bayesian Personalized Ranking from Implicit Feedback

9 May 2012arXiv:1205.2618archive 2025-07-28

Steffen Rendle, Christoph Freudenthaler, Zeno Gantner, Lars Schmidt-Thieme

Item recommendation is the task of predicting a personalized ranking on a set of items (e.g. websites, movies, products). In this paper, we investigate the most common scenario with implicit feedback (e.g. clicks, purchases). There are many methods for item recommendation from implicit feedback like matrix factorization (MF) or adaptive knearest-neighbor (kNN). Even though these methods are designed for the item prediction task of personalized ranking, none of them is directly optimized for ranking. In this paper we present a generic optimization criterion BPR-Opt for personalized ranking that is the maximum posterior estimator derived from a Bayesian analysis of the problem. We also provide a generic learning algorithm for optimizing models with respect to BPR-Opt. The learning method is based on stochastic gradient descent with bootstrap sampling. We show how to apply our method to two state-of-the-art recommender models: matrix factorization and adaptive kNN. Our experiments indicate that for the task of personalized ranking our optimization method outperforms the standard learning techniques for MF and kNN. The results show the importance of optimizing models for the right criterion.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1205.2618")

Code

Syntology Ran 1 of 24 code samples harvested from 4 repositories linked to this paper; 23 have no recorded run. Of those that ran: 1 ran · fixture could not drive it.

By repository: community (archive-listed): 24 samples from 4 repositories, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

24 repositories listed; official and paper-mentioned ones first.

EternalImmortal/bpr mentioned on GitHubpytorchMIT report
GZHoffie/Recommendation_BPR mentioned on GitHub report
ROpdam/recommender_comparison mentioned on GitHubtf report
SH1108/Recommend mentioned on GitHub report
SeongJinAhn/BPR mentioned on GitHubpytorchMIT report
bbc/theano-bpr mentioned on GitHubNOASSERTION report
bbcrd/theano-bpr mentioned on GitHubNOASSERTION report
benfred/implicit mentioned on GitHubMIT report
blueghostyi/id-grec mentioned on GitHubpytorch report
domainxz/top-k-rec mentioned on GitHubtf report
esilezz/accdiv-via-graphconv mentioned on GitHubpytorch report
etlundquist/rankfm mentioned on GitHubGPL-3.0 report
hwang-sudang/kkoApplemusic mentioned on GitHub report
jchanxtarov/BPRMF mentioned on GitHubpytorchMIT report
lzheng21/DIAN mentioned on GitHubtf report
sh0416/bpr mentioned on GitHubpytorchGPL-3.0 report
tiny-snow/ir-benchmark mentioned on GitHubpytorchGPL-3.0 report
whong92/recommender mentioned on GitHubtf report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

24 samples harvested; 1 ran; 0 honoured the contract we drafted; 23 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · fixture could not drive it
23unverified

Licence: 0 of the 24 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 4 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

convert_unique_idx EternalImmortal/bpr/preprocess.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · 8620a395f0a3a8ad · report
augment_inner_product_matrix benfred/implicit/implicit/utils.py community (archive-listed) unverified MIT (permissive) · 3f1895c1b7979ccc · report
bm25_weight benfred/implicit/implicit/nearest_neighbours.py community (archive-listed) unverified MIT (permissive) · 4d0dbf9cb7e9445e · report
check_csr benfred/implicit/implicit/utils.py community (archive-listed) unverified MIT (permissive) · 5a6933738d307e97 · report
check_random_state benfred/implicit/implicit/utils.py community (archive-listed) unverified MIT (permissive) · 6d3ffaf4a60c58eb · report
compute_hit jchanxtarov/BPRMF/src/utils/metrics.py community (archive-listed) unverified MIT (permissive) · d7f1a1d88c632dba · report
compute_metrics jchanxtarov/BPRMF/src/utils/metrics.py community (archive-listed) unverified MIT (permissive) · 73699d47e9c0ff00 · report
compute_precision jchanxtarov/BPRMF/src/utils/metrics.py community (archive-listed) unverified MIT (permissive) · ddc18fe321d7784d · report
convert_unique_idx SeongJinAhn/BPR/preprocess.py community (archive-listed) unverified MIT (permissive) · 3929b413a89c4ecb · report
create_user_list EternalImmortal/bpr/preprocess.py community (archive-listed) unverified MIT (permissive) · 6fe5b45c50694d2f · report
create_user_list SeongJinAhn/BPR/preprocess.py community (archive-listed) unverified MIT (permissive) · c55ef60f63b830d2 · report
generate_path_log_file jchanxtarov/BPRMF/src/utils/helpers.py community (archive-listed) unverified MIT (permissive) · f25788e7d11a876a · report
generate_path_model_file jchanxtarov/BPRMF/src/utils/helpers.py community (archive-listed) unverified MIT (permissive) · 2f2eaa7252d7b165 · report
generate_path_pretrain_file jchanxtarov/BPRMF/src/utils/helpers.py community (archive-listed) unverified MIT (permissive) · 7a69b58821a6c1ff · report
get_index EternalImmortal/bpr/inference_with_output.py community (archive-listed) unverified MIT (permissive) · f61c65ae5d8aaa26 · report
item_factor benfred/implicit/implicit/cpu/als.py community (archive-listed) unverified MIT (permissive) · a6fb94cd02242f2d · report
load_data SeongJinAhn/BPR/preprocess.py community (archive-listed) unverified MIT (permissive) · 67dfb497c8208dde · report
load_model EternalImmortal/bpr/util_origin.py community (archive-listed) unverified MIT (permissive) · 59ad70782b2fa0d4 · report
normalize benfred/implicit/implicit/nearest_neighbours.py community (archive-listed) unverified MIT (permissive) · 896aecd2d4994f18 · report
set_env EternalImmortal/bpr/util_origin.py community (archive-listed) unverified MIT (permissive) · 5ab0124e5d65a7e8 · report
split_train_test EternalImmortal/bpr/preprocess.py community (archive-listed) unverified MIT (permissive) · 2f78e267baa58c42 · report
tfidf_weight benfred/implicit/implicit/nearest_neighbours.py community (archive-listed) unverified MIT (permissive) · aeee987913fbda78 · report
user_factor benfred/implicit/implicit/cpu/als.py community (archive-listed) unverified MIT (permissive) · 3aa483cf1abd78de · report
user_linear_equation benfred/implicit/implicit/cpu/als.py community (archive-listed) unverified MIT (permissive) · 65a90c4c57f40e8a · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections