SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.18418 · 2025

Rank1: Test-Time Compute for Reranking in Information Retrieval

arXiv · PDF · Open in the Atlas

Code that ran

2 of 2 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, 1 violated it and 0 have no contract verdict; 1 failure of our instrument; 0 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/2502.18418.json · badge: /api/ran/2502.18418.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
orionw/rank1 canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
FunctionStatusWhere it lives
get_prompt Ran
ran; our contract draft was wrong, not the code
orionw/rank1/prompts.py
code served (permissive licence) · get_code("b52aabdc316d82de")
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 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

PROMPT_DICT = {'SciFact': 'Claim: FILL_QUERY_HERE\n\nA relevant passage would provide evidence that either **supports** or **refutes** this claim. A passage with any information on any related subpart should be relevant.', 'ClimateFEVER': 'I am looking to write an essay for and need to find evidence the supports or contradict this statement:\n\nFILL_QUERY_HERE\n\nIf the passage provides information that supports or contradicts it in any way it is relevant so I can cite it.\n\n', 'TRECCOVID': 'FILL_QUERY_HERE If the article answers any part of the question it is relevant.', 'ArguAna': 'I am looking to write an essay and need to find counterarguments against this statement:\n\nFILL_QUERY_HERE\n\nDoes this passage have any counterargument or evidence that could be used to help me?\n\n', 'DBPedia': 'I am looking to write an essay on this topic and need as much related background information to help me. The topic is:\n\nFILL_QUERY_HERE\n\nIf the passage provides any background information that could be connected it is relevant.\n\n', 'FiQA2018': 'FILL_QUERY_HERE Find a passage that would be a good answer from StackExchange.', 'NFCorpus': 'Topic: FILL_QUERY_HERE\n\nGiven the above topic, I need to learn about all aspects of it. It does not need to be directly relevant, only tangentially informational. Please mark as relevant any passages with even weak connections. I need to learn fast for my job, which means I need to understand each part individually.\n\nAgain remember, any connection means relevant even if indirect. So if it is not addressed, that is okay -- it does not need to be explicitly. \n\nFind me passages with any type of connection, including weak connections!!!!', 'Touche2020': 'I am looking to write an essay and need to find arguments for or against this statement:\n\nFILL_QUERY_HERE\n\nDoes this passage have any argument or evidence that could be used to help me?\n\n', 'SCIDOCS': 'papers that could be cited in FILL_QUERY_HERE. Anything with even indirect relevance should be relevant. This includes papers in the same broader field of science', 'BrightRetrieval_aops': 'Find different but similar math problems to FILL_QUERY_HERE\n\nA document is relevant if it uses the same class of functions and shares **any** overlapping techniques.', 'BrightRetrieval_theoremqa_questions': 'Find a passage which uses the same mathematical process as this one: FILL_QUERY_HERE', 'BrightRetrieval_leetcode': 'I am looking to find different problems that share similar data structures (of any kind) or algorithms (e.g. DFS, DP, sorting, traversals, etc.). I am looking for problems that share one or both of these similarities to this:\n    \nFILL_QUERY_HERE\n\nDoes this passage share any similarities? e.g. if there was a textbook on leetcode problems, this would be in the same book even though it could be in a different chapter. \n\n\n', 'BrightRetrieval_pony': 'I will use the programming language pony. Problem: FILL_QUERY_HERE\n\nBut to solve the problem above, I need to know things about pony. A passage is relevant if it contains docs that match **any** part (even basic parts) of the code I will have to write for the above program.', 'BrightRetrieval': 'Can you find background information about the concepts used to answer the question:\n\nFILL_QUERY_HERE\n\nA passage is relevant if it contains background information about a **sub-concept** that someone might cite/link to when answering the above question.'}

def get_prompt(task_name, subtask_name: str=None):
    if subtask_name is not None and task_name in PROMPT_DICT:
        if f'{task_name}_{subtask_name}' in PROMPT_DICT:
            return PROMPT_DICT[f'{task_name}_{subtask_name}']
        else:
            return PROMPT_DICT[task_name]
    elif task_name in PROMPT_DICT:
        return PROMPT_DICT[task_name]
    else:
        return None

ARGS = {
    'task_name': 'SciFact',
    'subtask_name': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
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
validate_json Ran
ran, violated the contract we drafted
orionw/rank1/prompts.py
code served (permissive licence) · get_code("a91495f5f6c7f732")
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 bool, 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 json
import tempfile
import os

# Create a temporary JSON file with valid structure
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test.json")

valid_data = {
    "key1": {
        "inner_key1": 1.5,
        "inner_key2": 2.7
    },
    "key2": {
        "inner_key3": 3.14,
        "inner_key4": 4.2
    }
}

with open(temp_file, 'w') as f:
    json.dump(valid_data, f)

ARGS = {
    "file_path": temp_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 bool, 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

Also present in other papers' code

Of 2 samples lifted from this paper's linked repositories, 2 carry a function identity and 0 do not. Of the 2 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 2 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.

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 introduce Rank1, the first reranking model trained to take advantage of test-time compute. Rank1 demonstrates the applicability within retrieval of using a reasoning language model (i.e. OpenAI's o1, Deepseek's R1, etc.) for distillation in order to rapidly improve the performance of a smaller model. We gather and open-source a dataset of more than 600,000 examples of R1 reasoning traces from queries and passages in MS MARCO. Models trained on this dataset show: (1) state-of-the-art performance on advanced reasoning and instruction following datasets; (2) work remarkably well out of distribution due to the ability to respond to user-input prompts; and (3) have explainable reasoning chains that can be given to users or RAG-based systems. Further, we demonstrate that quantized versions of these models retain strong performance while using less compute/memory. Overall, Rank1 shows that test-time compute allows for a fundamentally new type of explainable and performant reranker model for search.

For agents

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

get_harvested_code_for_paper("2502.18418")
get_code_for_paper("2502.18418")
have("2502.18418")

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

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

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

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

Connect an agent — have() is free.