Papers › Passage Re-ranking with BERT

Passage Re-ranking with BERT

13 Jan 2019arXiv:1901.04085archive 2025-07-28

Rodrigo Nogueira, Kyunghyun Cho

Recently, neural models pretrained on a language modeling task, such as ELMo (Peters et al., 2017), OpenAI GPT (Radford et al., 2018), and BERT (Devlin et al., 2018), have achieved impressive results on various natural language processing tasks such as question-answering and natural language inference. In this paper, we describe a simple re-implementation of BERT for query-based passage re-ranking. Our system is the state of the art on the TREC-CAR dataset and the top entry in the leaderboard of the MS MARCO passage retrieval task, outperforming the previous state of the art by 27% (relative) in MRR@10. The code to reproduce our results is available at https://github.com/nyu-dl/dl4marco-bert

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="1901.04085")

Code

Syntology Ran 2 of 13 code samples harvested from 1 repository linked to this paper; 11 have no recorded run. Of those that ran: 2 ran · our draft was wrong.

By repository: official repository: 13 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

nyu-dl/dl4marco-bert officialmentioned in papermentioned on GitHubtfBSD-3-Clause report
airKlizz/MsMarco mentioned on GitHubtf report
castorini/pygaggle mentioned on GitHubpytorch report
lukevs/charity-explorer mentioned on GitHubpytorch report
mrjleo/ranking-models mentioned on GitHubpytorchMIT 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

13 samples harvested; 2 ran; 0 honoured the contract we drafted; 11 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.

2ran · our draft was wrong
11unverified

Licence: 0 of the 13 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 nyu-dl/dl4marco-bert. “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_to_unicode nyu-dl/dl4marco-bert/tokenization.py official repository ran · our draft was wrong fingerprinted BSD-3-Clause (permissive) · 1923fc05163d207d · report
get_activation nyu-dl/dl4marco-bert/modeling.py official repository ran · our draft was wrong BSD-3-Clause (permissive) · 5681f7dd9b6e3679 · report
NDCG nyu-dl/dl4marco-bert/metrics.py official repository unverified BSD-3-Clause (permissive) · 1e33e4465ad9760e · report
average_precision nyu-dl/dl4marco-bert/metrics.py official repository unverified BSD-3-Clause (permissive) · 45e8829b47e5a1b7 · report
convert_to_bert_input nyu-dl/dl4marco-bert/tokenization.py official repository unverified BSD-3-Clause (permissive) · 895873eb21616a05 · report
gelu nyu-dl/dl4marco-bert/modeling.py official repository unverified BSD-3-Clause (permissive) · ecab128238ebf253 · report
get_assignment_map_from_checkpoint nyu-dl/dl4marco-bert/modeling.py official repository unverified BSD-3-Clause (permissive) · 50958618b65e514e · report
input_fn_builder nyu-dl/dl4marco-bert/run_msmarco.py official repository unverified BSD-3-Clause (permissive) · e010030ee57fe701 · report
input_fn_builder nyu-dl/dl4marco-bert/run_treccar.py official repository unverified BSD-3-Clause (permissive) · 9fbf56276f399498 · report
load_qrels nyu-dl/dl4marco-bert/convert_treccar_to_tfrecord.py official repository unverified BSD-3-Clause (permissive) · 9eb250ad7f25c79e · report
load_run nyu-dl/dl4marco-bert/convert_treccar_to_tfrecord.py official repository unverified BSD-3-Clause (permissive) · 86c70a8984ca78b7 · report
metrics nyu-dl/dl4marco-bert/metrics.py official repository unverified BSD-3-Clause (permissive) · 54573d73f899d22f · report
printable_text nyu-dl/dl4marco-bert/tokenization.py official repository unverified BSD-3-Clause (permissive) · 0e5615f8994003cf · report

Tasks

Language ModelingPassage Re-RankingPassage RetrievalRe-RankingRetrieval

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Passage Re-Ranking MS MARCO BERT + Small Training MRR 0.359 #3 of 4 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

AdamAttentionAttention DropoutBERTBPEBiLSTMCosine AnnealingDense ConnectionsDiscriminative Fine-TuningDropoutELMoGPTLSTMLayer NormalizationLinear LayerLinear Warmup With Cosine AnnealingLinear Warmup With Linear DecayMulti-Head AttentionResidual ConnectionSigmoid ActivationSoftmaxTanh ActivationWeight DecayWordPiece

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