SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2022.emnlp-main.727 · EMNLP · 2022

CODER: An efficient framework for improving retrieval through COntextual Document Embedding Reranking

Daniel Cohen, Carsten Eickhoff, Navid Rekabsaz, George Zerveas

Open in the Atlas

Code that ran

12 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 10 have no contract verdict; 2 failures of our instrument; 3 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2022.emnlp-main.727.json · badge: /api/ran/2022.emnlp-main.727.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
gzerveas/CODER canonical (classifier label)
classifier basis: census
12 ran · 3 no recorded run
FunctionStatusWhere it lives
get_aggregation_function Ran
ran on a synthesized input
gzerveas/CODER/modeling.py
code served (permissive licence) · get_code("33e3fdf82d35139d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned function. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Test case 1: aggregation='mean'
batch_size = 2
sequence_len = 5
d_model = 4

sequence_output = torch.randn(batch_size, sequence_len, d_model)
valid_mask = torch.tensor([[1, 1, 1, 0, 0], [1, 1, 1, 1, 0]], dtype=torch.long)

ARGS = {
    'aggregation': 'mean'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_tokenizer Ran
ran on a synthesized input
gzerveas/CODER/convert_text_to_tokenized.py
code served (permissive licence) · get_code("bc586c73eeeac08d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned BertTokenizerFast. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
from unittest.mock import MagicMock, patch
import tempfile

# Create a temporary directory to simulate a tokenizer location
temp_dir = tempfile.mkdtemp()

# Create a minimal tokenizer config file so AutoTokenizer.from_pretrained doesn't fail
tokenizer_config = {
    "name_or_path": "bert-base-uncased",
    "tokenizer_class": "BertTokenizer"
}

import json
config_path = os.path.join(temp_dir, "tokenizer_config.json")
with open(config_path, "w") as f:
    json.dump(tokenizer_config, f)

# Create a vocab file (minimal BERT vocab)
vocab_path = os.path.join(temp_dir, "vocab.txt")
with open(vocab_path, "w") as f:
    f.write("[PAD]\n[UNK]\n[CLS]\n[SEP]\n[MASK]\nhello\nworld\n")

class Args:
    """Minimal args class with tokenizer_from attribute"""
    def __init__(self, tokenizer_from):
        self.tokenizer_from = tokenizer_from

ARGS = {
    "args": Args(tokenizer_from=temp_dir)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type BertTokenizerFast — a BertTokenizerFast output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a BertTokenizerFast output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_candidate_from_stream Ran
ran; our contract draft was wrong, not the code
gzerveas/CODER/ms_marco_eval.py
code served (permissive licence) · get_code("44dabd5275dfdd74")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import io

# Create a stream with candidate passage data
# Format: query_id\tpassage_id\trank
stream_content = """1\t101\t1
1\t102\t2
1\t103\t3
2\t201\t1
2\t202\t2
3\t301\t1
"""

# Convert string to a file-like object
f = io.StringIO(stream_content)

ARGS = {
    "f": f
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_original_sequences Ran
ran on a synthesized input
gzerveas/CODER/dataset.py
code served (permissive licence) · get_code("b2b66acefe76d369")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary file with the expected format
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("1\tThis is the first sequence\n")
temp_file.write("2\tThis is the second sequence\n")
temp_file.write("3\tThis is the third sequence\n")
temp_file.close()

seq_path = temp_file.name

ARGS = {
    'seq_path': seq_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_reference_from_stream Ran
ran; our contract draft was wrong, not the code
gzerveas/CODER/ms_marco_eval.py
code served (permissive licence) · get_code("b09cad901d138056")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import io

# The function reads from a stream (file-like object)
# It expects lines with tab-separated values where:
# - l[0] is query_id (int)
# - l[2] is passage_id (int)

stream_content = """1\tpassage_0\t101
1\tpassage_1\t102
2\tpassage_0\t201
3\tpassage_2\t302
3\tpassage_1\t301
"""

f = io.StringIO(stream_content)

ARGS = {
    "f": f
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mean_reciprocal_rank Ran
ran on a synthesized input
gzerveas/CODER/metrics.py
code served (permissive licence) · get_code("c16304f76974b2e2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Construct test data for mean_reciprocal_rank
# The function expects rs to be an iterable of ground truth relevance scores (lists or numpy arrays)
# Each row represents rankings for a query, with binary relevance (0 or 1)

rs_test = [
    [0, 0, 1],      # First relevant item at rank 3 (index 2)
    [0, 1, 0],      # First relevant item at rank 2 (index 1)
    [1, 0, 0]       # First relevant item at rank 1 (index 0)
]

k_test = None

ARGS = {
    "rs": rs_test,
    "k": k_test
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mrr Ran
ran on a synthesized input
gzerveas/CODER/metrics.py
code served (permissive licence) · get_code("abaa4cb9aa54836f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from typing import Dict, List, Tuple

# Construct valid arguments for the mrr function

# qrels: Dict[query_id, Dict[passage_id, relevance_score]]
# This is the ground truth with relevance scores
qrels = {
    "query_1": {
        "doc_1": 2,
        "doc_2": 1,
        "doc_3": 0,
    },
    "query_2": {
        "doc_4": 3,
        "doc_5": 1,
        "doc_6": 0,
    },
}

# results: Dict[query_id, Dict[passage_id, relevance_score]]
# This is the predictions/rankings from the model
results = {
    "query_1": {
        "doc_1": 0.9,
        "doc_2": 0.7,
        "doc_3": 0.3,
        "doc_4": 0.2,
    },
    "query_2": {
        "doc_4": 0.95,
        "doc_5": 0.6,
        "doc_6": 0.4,
        "doc_1": 0.1,
    },
}

# k_values: iterable of integer cut-off thresholds
k_values = [1, 3, 5]

# relevance_level: relevance score threshold
relevance_level = 1

# verbose: boolean flag
verbose = False

ARGS = {
    "qrels": qrels,
    "results": results,
    "k_values": k_values,
    "relevance_level": relevance_level,
    "verbose": verbose,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
nanstd Ran
ran on a synthesized input
gzerveas/CODER/dataset.py
code served (permissive licence) · get_code("c74ea60fcf5001c1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small tensor with some NaN values
# Shape: (2, 4) - batch size 2, dimension 4
x = torch.randn(2, 4)
x[0, 1] = float('nan')  # Insert a NaN value
x[1, 2] = float('nan')  # Insert another NaN value

# The function signature is: nanstd(x, dim=-1)
# x: a tensor (required)
# dim: dimension along which to compute std (default=-1)

ARGS = {
    'x': x,
    'dim': -1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize_batch Ran
ran on a synthesized input
gzerveas/CODER/dataset.py
code served (permissive licence) · get_code("e061bc68b9c41ca0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a batch of relevances with some -inf values (padding)
# Shape: (batch_size=2, num_candidates=4)
relevances = torch.tensor([
    [1.0, 2.0, 3.0, float('-inf')],
    [0.5, 1.5, 2.5, 3.5]
], dtype=torch.float32)

# Test with different norm types
norm_type = 'std'

ARGS = {
    'relevances': relevances,
    'norm_type': norm_type
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize_scores Ran
ran on a synthesized input
gzerveas/CODER/convert_file_format.py
code served (permissive licence) · get_code("d315e0701b749fbc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small tensor of relevance scores
scores = torch.tensor([1.0, 2.5, 0.5, 3.2])

# Test with different normalization options
ARGS = {
    "scores": scores,
    "normalize": "max"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (4,) — shape (4,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_line Ran
ran on a synthesized input
gzerveas/CODER/create_memmaps.py
code served (permissive licence) · get_code("25d62f631111a8e3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

def parse_line(line):
    fields = line.strip().split('\t')
    qid = int(fields[0])
    pid = int(fields[1])
    return (qid, pid)

# The function takes a single parameter: line
# It expects a string with tab-separated fields where:
# - fields[0] can be converted to int (qid)
# - fields[1] can be converted to int (pid)

ARGS = {
    "line": "42\t123\n"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
reciprocal_rank Ran
ran on a synthesized input
gzerveas/CODER/metrics.py
code served (permissive licence) · get_code("000fb5d37b4c59cd")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# ground_truth: dict {pid: relevance}
# A dictionary mapping passage IDs to relevance scores
ground_truth = {
    "pid_1": 1.0,
    "pid_3": 0.5,
    "pid_5": 0.8
}

# pred: list of candidate pids
# A list of predicted passage IDs in ranked order
pred = ["pid_2", "pid_4", "pid_1", "pid_6", "pid_3"]

# max_docs: optional parameter for maximum number of documents to consider
max_docs = None

ARGS = {
    "ground_truth": ground_truth,
    "pred": pred,
    "max_docs": max_docs
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_reference Not yet run
unverified (harvested, no recorded run)
gzerveas/CODER/ms_marco_eval.py
code served (permissive licence) · get_code("52e247dd5467b4bb")
How it ran

no invocation recorded.

pandas_create_candidates_memmap Not yet run
unverified (harvested, no recorded run)
gzerveas/CODER/create_memmaps.py
code served (permissive licence) · get_code("f6084484c0dfc453")
How it ran

no invocation recorded.

tokenize_file Not yet run
unverified (harvested, no recorded run)
gzerveas/CODER/convert_text_to_tokenized.py
code served (permissive licence) · get_code("a0da8b736a34ec65")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 later) and 12 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
load_reference 5 other papers
2 dated earlier, 2 later, 1 same year, order not determinable
1611.09268 (2016-11)
MS MARCO: A Human Generated MAchine Reading COmprehension Dataset
2110.05789 (2021-10)
Learning Discrete Representations via Constrained Clustering for Effective and Efficient Dense Retrieval
2209.00179 (2022-09)
Universal Vision-Language Dense Retrieval: Learning A Unified Representation Space for Multi-Modal Retrieval
and 2 more not named here
load_candidate_from_stream 4 other papers
1 dated earlier, 2 later, 1 same year, order not determinable
1611.09268 (2016-11)
MS MARCO: A Human Generated MAchine Reading COmprehension Dataset
2209.00179 (2022-09)
Universal Vision-Language Dense Retrieval: Learning A Unified Representation Space for Multi-Modal Retrieval
2310.14037 (2023-10)
MARVEL: Unlocking the Multi-Modal Capability of Dense Retrieval via Visual Module Plugin
and 1 more not named here
load_reference_from_stream 4 other papers
1 dated earlier, 2 later, 1 same year, order not determinable
1611.09268 (2016-11)
MS MARCO: A Human Generated MAchine Reading COmprehension Dataset
2209.00179 (2022-09)
Universal Vision-Language Dense Retrieval: Learning A Unified Representation Space for Multi-Modal Retrieval
2310.14037 (2023-10)
MARVEL: Unlocking the Multi-Modal Capability of Dense Retrieval via Visual Module Plugin
and 1 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Contrastive learning has been the dominant approach to training dense retrieval models. In this work, we investigate the impact of ranking context -an often overlooked aspect of learning dense retrieval models. In particular, we examine the effect of its constituent parts: jointly scoring a large number of negatives per query, using retrieved (query-specific) instead of random negatives, and a fully list-wise loss. To incorporate these factors into training, we introduce Contextual Document Embedding Reranking (CODER), a highly efficient retrieval framework. When reranking, it incurs only a negligible computational overhead on top of a firststage method at run time (∼ 5 ms delay per query), allowing it to be easily combined with any state-of-the-art dual encoder method. Models trained through CODER can also be used as stand-alone retrievers. Evaluating CODER in a large set of experiments on the MS MARCO and TripClick collections, we show that the contextual reranking of precomputed document embeddings leads to a significant improvement in retrieval performance. This improvement becomes even more pronounced when more relevance information per query is available, shown in the TripClick collection, where we establish new state-of-the-art results by a large margin.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2022.emnlp-main.727")
get_code_for_paper("2022.emnlp-main.727")
have("2022.emnlp-main.727")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2022.emnlp-main.727.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2022.emnlp-main.727.svg)](https://syntology.ai/paper/2022.emnlp-main.727)

Connect an agent — have() is free.