SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.20046 · EMNLP · 2025

REARANK: Reasoning Re-ranking Agent via Reinforcement Learning

Siva Reddy, Le Zhang, Bo Wang, Xipeng Qiu, Aishwarya Agrawal

arXiv · PDF · Open in the Atlas

Code that ran

12 of 18 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 5 have no contract verdict; 7 failures of our instrument; 6 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2505.20046.json · badge: /api/ran/2505.20046.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
lezhang7/rearank canonical (classifier label)
classifier basis not recorded on the link
12 ran · 6 no recorded run
FunctionStatusWhere it lives
compute_ce_dpo_loss_rm Ran
ran; our contract draft was wrong, not the code
lezhang7/rearank/verl/recipe/prime/prime_core_algos.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from LeapLabTHU/OPDVR, is pointer only (licence: NONE) · get_code("f220595adfc5e83c")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from LeapLabTHU/OPDVR, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_detach_dpo_loss_rm Ran
ran; our contract draft was wrong, not the code
lezhang7/rearank/verl/recipe/prime/prime_core_algos.py
code served (permissive licence) · get_code("e696489c417f49c0")
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 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)

# Analyze the function to understand what each parameter needs:
# - token_level_scores: used with .sum(dim=1), response_mask, shape should be (batch, seq_len)
# - acc: indexed with [i], compared with 0 and >/<, shape (batch,)
# - Q_bc: indexed with [i] and [acc_bc[i] < acc[i]], shape (batch, n_samples)
# - acc_bc: indexed with [i], compared with acc[i], shape (batch, n_samples)
# - response_mask: multiplied with token_level_scores, shape (batch, seq_len)
# - beta: scalar multiplier
# - bon_mode: string parameter, one of 'none', 'bon_rm', 'bon_acc'

batch_size = 2
seq_len = 4
n_samples = 3

# token_level_scores: (batch_size, seq_len)
token_level_scores = torch.randn(batch_size, seq_len)

# response_mask: (batch_size, seq_len) - binary mask
response_mask = torch.ones(batch_size, seq_len)

# acc: (batch_size,) - accuracy values, some positive some non-positive
acc = torch.tensor([1.0, -0.5])

# Q_bc: (batch_size, n_samples) - Q values for batch candidates
Q_bc = torch.randn(batch_size, n_samples)

# acc_bc: (batch_size, n_samples) - accuracy values for batch candidates
acc_bc = torch.randn(batch_size, n_samples)

# beta: scalar
beta = 0.5

# bon_mode: string
bon_mode = 'none'

ARGS = {
    'token_level_scores': token_level_scores,
    'acc': acc,
    'Q_bc': Q_bc,
    'acc_bc': acc_bc,
    'response_mask': response_mask,
    'beta': beta,
    'bon_mode': bon_mode
}
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 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
get_post_prompt Ran
ran on a synthesized input
lezhang7/rearank/rank_gpt.py
code served (permissive licence) · get_code("5d2b6f9db0e135ca")
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 str. 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

# Analyze the function: get_post_prompt(query, num)
# - query: a string used in f-string formatting
# - num: an integer used in f-string formatting
# The function simply returns a formatted string template for ranking passages

ARGS = {
    "query": "machine learning algorithms",
    "num": 5
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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_prefix_prompt Ran
ran; our contract draft was wrong, not the code
lezhang7/rearank/rank_gpt.py
code served (permissive licence) · get_code("64789829d440d8a9")
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 list, ndim 1, 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 torch
import numpy as np

# Define ARGS with valid arguments for get_prefix_prompt
ARGS = {
    'query': 'What is machine learning?',
    'num': 3
}
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 list, ndim 1, dtype family float — a list 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
get_results_file Ran
ran on a synthesized input
lezhang7/rearank/utils.py
code served (permissive licence) · get_code("e7e1dbf9aa7c650e")
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 os
import json
import tempfile

# Create a temporary directory for the test
temp_dir = tempfile.mkdtemp()

# Create a valid results file path
results_file = os.path.join(temp_dir, "results", "output.json")

# Pre-create the file with some sample data to test the read path
os.makedirs(os.path.dirname(results_file), exist_ok=True)
sample_results = {"experiment_1": {"accuracy": 0.95}, "experiment_2": {"accuracy": 0.87}}
with open(results_file, 'w') as f:
    json.dump(sample_results, f)

ARGS = {
    "results_file": results_file
}
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
read_bright_qrels Ran
ran on a synthesized input
lezhang7/rearank/utils.py
code served (permissive licence) · get_code("fa5e6d965b07a405")
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 qrels file with valid content
temp_dir = tempfile.mkdtemp()
qrels_path = os.path.join(temp_dir, "qrels.txt")

with open(qrels_path, 'w') as f:
    f.write("q1 0 doc1 2\n")
    f.write("q1 0 doc2 1\n")
    f.write("q2 0 doc3 3\n")
    f.write("q2 0 doc1 0\n")

ARGS = {
    "qrels_path": qrels_path
}
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
read_bright_topics Ran
ran on a synthesized input
lezhang7/rearank/utils.py
code served (permissive licence) · get_code("870dc1e2ca0db4e8")
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 sample data in the expected format
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("q1\twhat is machine learning\n")
temp_file.write("q2\thow to train neural networks\n")
temp_file.write("q3\tpython programming basics\n")
temp_file.close()

path = temp_file.name

ARGS = {
    'path': path
}
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
remove_duplicate Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lezhang7/rearank/trec_eval.py
code served (permissive licence) · get_code("4fc539f7640d8633")
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 list, 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

torch.manual_seed(0)

# The function remove_duplicate takes a response parameter and removes duplicates
# by iterating through it and checking membership. It works with any iterable
# of hashable items.

# Simple test case: a list of integers
response = [1, 2, 3, 2, 4, 1, 5]

ARGS = {
    'response': response
}
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 list, ndim 1, dtype family int — a list 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
reward_func Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lezhang7/rearank/verl/recipe/r1/reward_score.py
code served (permissive licence) · get_code("c30b2a96103abd2c")
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 MagicMock. 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

torch.manual_seed(0)

# Mock the recipe.r1.tasks modules to avoid import errors
import sys
from unittest.mock import MagicMock

mock_math = MagicMock()
mock_math.compute_score = lambda sol, gt: 0.85

mock_gpqa = MagicMock()
mock_gpqa.compute_score = lambda sol, gt: 0.92

mock_livecodebench = MagicMock()
mock_livecodebench.compute_score = lambda sol, gt: 0.78

sys.modules['recipe'] = MagicMock()
sys.modules['recipe.r1'] = MagicMock()
sys.modules['recipe.r1.tasks'] = MagicMock()
sys.modules['recipe.r1.tasks.math'] = mock_math
sys.modules['recipe.r1.tasks.gpqa'] = mock_gpqa
sys.modules['recipe.r1.tasks.livecodebench'] = mock_livecodebench

# Define arguments for reward_func
ARGS = {
    'data_source': 'Maxwell-Jia/AIME_2024',
    'solution_str': 'The answer is 42.',
    'ground_truth': '42',
    'extra_info': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, recipe, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MagicMock — a MagicMock output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MagicMock output the recorded ndim 1 and dtype family None 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
run_retriever Ran
ran on a synthesized input
lezhang7/rearank/rank_gpt.py
code served (permissive licence) · get_code("1dd27e699c846444")
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 list, ndim 1, 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 json

# Mock searcher class that mimics PySerini/similar IR library behavior
class MockHit:
    def __init__(self, docid, score):
        self.docid = docid
        self.score = score

class MockDocument:
    def __init__(self, raw_content):
        self._raw = raw_content
    
    def raw(self):
        return self._raw

class MockSearcher:
    def __init__(self):
        self.documents = {
            'doc1': MockDocument(json.dumps({'title': 'First Document', 'text': 'This is the first document content'})),
            'doc2': MockDocument(json.dumps({'title': 'Second Document', 'text': 'This is the second document content'})),
            'doc3': MockDocument(json.dumps({'passage': 'A passage without title'})),
        }
    
    def search(self, query, k=100):
        # Return mock hits
        hits = [
            MockHit('doc1', 10.5),
            MockHit('doc2', 9.3),
        ]
        return hits[:k]
    
    def doc(self, docid):
        return self.documents.get(docid, MockDocument(json.dumps({'contents': 'default content'})))

# Create instances for arguments
topics_dict = {
    'q1': {'title': 'What is machine learning?'},
    'q2': {'title': 'How does neural network work?'},
}

qrels_dict = {
    'q1': {'doc1': 1, 'doc2': 2},
    'q2': {'doc2': 1},
}

searcher = MockSearcher()

ARGS = {
    'topics': topics_dict,
    'searcher': searcher,
    'qrels': qrels_dict,
    'k': 100,
    'qid': None,
}
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 list, ndim 1, dtype family float — a list 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
union_tensor_dict Ran
ran; our contract draft was wrong, not the code
lezhang7/rearank/verl/verl/protocol.py
code served (permissive licence) · get_code("21331a58f93375e4")
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 TensorDict. 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
from tensordict import TensorDict

torch.manual_seed(0)

# Create two TensorDicts with identical batch size
batch_size = torch.Size([2])

# First tensor dict with some keys
tensor_dict1 = TensorDict(
    {
        "shared_key": torch.randn(2, 4),
        "key1": torch.randn(2, 3),
    },
    batch_size=batch_size,
)

# Second tensor dict with overlapping and new keys
tensor_dict2 = TensorDict(
    {
        "shared_key": tensor_dict1["shared_key"].clone(),  # Same tensor values
        "key2": torch.randn(2, 5),
    },
    batch_size=batch_size,
)

ARGS = {
    "tensor_dict1": tensor_dict1,
    "tensor_dict2": tensor_dict2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensordict, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TensorDict — a TensorDict output has no array shape of its own; none is 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
unpad_dataproto Ran
ran; our contract draft was wrong, not the code
lezhang7/rearank/verl/verl/protocol.py
code served (permissive licence) · get_code("25f0ea3f460f6ce1")
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) and returned DataProto. 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

torch.manual_seed(0)

class DataProto:
    """Stand-in class for DataProto that supports slicing."""
    def __init__(self, data):
        self.data = data
    
    def __getitem__(self, key):
        """Support slicing to return a new DataProto with sliced data."""
        sliced_data = self.data[key]
        return DataProto(sliced_data)
    
    def __repr__(self):
        return f"DataProto({self.data})"

# Create a small DataProto instance with some data
data_tensor = torch.randn(2, 4)
data_proto = DataProto(data_tensor)

ARGS = {
    "data": data_proto,
    "pad_size": 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataProto — a DataProto output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataProto 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_generation_config Not yet run
unverified (harvested, no recorded run)
lezhang7/rearank/verl/verl/utils/model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from shanjf666/CoCoV, is pointer only (licence: NONE) · get_code("68aa34a57b353cae")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from shanjf666/CoCoV, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_huggingface_actor_config Not yet run
unverified (harvested, no recorded run)
lezhang7/rearank/verl/verl/utils/model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from shanjf666/CoCoV, is pointer only (licence: NONE) · get_code("9411d1fb7e4f68e5")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from shanjf666/CoCoV, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_qrels_file Not yet run
unverified (harvested, no recorded run)
lezhang7/rearank/trec_eval.py
code served (permissive licence) · get_code("d2098f88a360e095")
How it ran

no invocation recorded.

get_weight_loader Not yet run
unverified (harvested, no recorded run)
lezhang7/rearank/verl/verl/models/weight_loader_registry.py
code served (permissive licence) · get_code("acf240079d434746")
How it ran

no invocation recorded.

get_weight_saver Not yet run
unverified (harvested, no recorded run)
lezhang7/rearank/verl/verl/models/weight_loader_registry.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from shanjf666/CoCoV, is pointer only (licence: NONE) · get_code("d1e077d222a806ec")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from shanjf666/CoCoV, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

squeeze Not yet run
unverified (harvested, no recorded run)
lezhang7/rearank/verl/verl/utils/model.py
code served (permissive licence) · get_code("3b15e2ac7497c441")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 12 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 8 the same month, 10 later) and 6 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
unpad_dataproto 89 other papers
12 dated earlier, 11 the same month, 62 later, 1 same year, order not determinable, 3 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 86 more not named here
squeeze 82 other papers
11 dated earlier, 11 the same month, 56 later, 1 same year, order not determinable, 3 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 79 more not named here
union_tensor_dict 64 other papers
12 dated earlier, 13 the same month, 35 later, 1 same year, order not determinable, 3 undated · 4 only as an assembly brick
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 61 more not named here
get_generation_config 63 other papers
7 dated earlier, 4 the same month, 50 later, 2 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2502.19613 (2025-02)
Self-rewarding correction for mathematical reasoning
and 60 more not named here
get_weight_loader 58 other papers
1 dated earlier, 1 the same month, 54 later, 2 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2505.14362 (2025-05)
DeepEyes: Incentivizing "Thinking with Images" via Reinforcement Learning
2506.08672 (2025-06)
RuleReasoner: Reinforced Rule-based Reasoning via Domain-aware Dynamic Sampling
and 55 more not named here
get_huggingface_actor_config 53 other papers
11 dated earlier, 11 the same month, 28 later, 1 same year, order not determinable, 2 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 50 more not named here
compute_ce_dpo_loss_rm 46 other papers
3 dated earlier, 1 the same month, 39 later, 3 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.02992 (2024-10)
Learning to Better Search with Language Models via Guided Reinforced Self-Training
2504.16084 (2025-04)
TTRL: Test-Time Reinforcement Learning
and 43 more not named here
reward_func 28 other papers
2 dated earlier, 1 the same month, 23 later, 2 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2504.16084 (2025-04)
TTRL: Test-Time Reinforcement Learning
2505.14362 (2025-05)
DeepEyes: Incentivizing "Thinking with Images" via Reinforcement Learning
and 25 more not named here
compute_detach_dpo_loss_rm 2 other papers
2 later
2509.25787 (2025-09)
Self-Evolving Vision-Language Models for Image Quality Assessment via Voting and Ranking
2604.09793 (2026-04)
GIANTS: Generative Insight Anticipation from Scientific Literature
get_prefix_prompt 2 other papers
2 dated earlier
2023.emnlp-main.923 (2023 (year only))
Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents
2311.01555 (2023-11)
Instruction Distillation Makes Large Language Models Efficient Zero-shot Rankers
get_weight_saver 2 other papers
2 later
2509.25787 (2025-09)
Self-Evolving Vision-Language Models for Image Quality Assessment via Voting and Ranking
2606.03608 (2026-06)
Exploiting Verification-Generation Gap: Test-Time Reinforcement Learning with Confidence-Conditioned Verification
remove_duplicate 2 other papers
2 dated earlier
2023.emnlp-main.923 (2023 (year only))
Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents
2311.01555 (2023-11)
Instruction Distillation Makes Large Language Models Efficient Zero-shot Rankers

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-23.

Repositories linked to this paper

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

Abstract

We present REARANK, a large language model (LLM)-based listwise reasoning reranking agent. REARANK explicitly reasons before reranking, significantly improving both performance and interpretability. Leveraging reinforcement learning and data augmentation, REARANK achieves substantial improvements over baseline models across popular information retrieval benchmarks, notably requiring only 179 annotated samples. Built on top of Qwen2.5-7B, our REARANK-7B demonstrates performance comparable to GPT-4 on both indomain and out-of-domain benchmarks and even surpasses GPT-4 on reasoning-intensive BRIGHT benchmarks. These results underscore the effectiveness of our approach and highlight how reinforcement learning can enhance LLM reasoning capabilities in reranking. The code is available https://github.com/ lezhang7/Rearank.

For agents

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

get_harvested_code_for_paper("2505.20046")
get_code_for_paper("2505.20046")
have("2505.20046")

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

curl https://syntology.ai/api/ran/2505.20046.json

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

[![Syntology run record](https://syntology.ai/api/ran/2505.20046.svg)](https://syntology.ai/paper/2505.20046)

Connect an agent — have() is free.