SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.01555 · 2023

Instruction Distillation Makes Large Language Models Efficient Zero-shot Rankers

arXiv · PDF · Open in the Atlas

Code that ran

11 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 4 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/2311.01555.json · badge: /api/ran/2311.01555.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
sunnweiwei/rankgpt canonical (classifier label)
classifier basis: census
11 ran · 4 no recorded run
FunctionStatusWhere it lives
convert_messages_to_prompt Ran
ran; our contract draft was wrong, not the code
sunnweiwei/rankgpt/rank_gpt.py
code served (permissive licence) · get_code("8e9717b5010ed9a8")
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

ARGS = {
    'messages': [
        {'role': 'system', 'content': 'You are a helpful assistant.'},
        {'role': 'user', 'content': 'Rank these passages for relevance.'},
        {'role': 'assistant', 'content': 'I will rank them.'}
    ]
}
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 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
gather_tensors Ran
ran, honoured the contract we drafted
sunnweiwei/rankgpt/InstructDistill/instruction_distill.py
code served (permissive licence) · get_code("1eb76fdb17d065e3")
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
import torch.distributed as dist

torch.manual_seed(0)

# Since dist.is_initialized() will return False in non-distributed context,
# the function will simply return local_tensor without using dist calls.
# We need to provide a valid tensor as the local_tensor argument.

local_tensor = torch.randn(2, 4)

ARGS = {
    "local_tensor": local_tensor,
    "pad": False,
}
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
get_prefix_prompt Ran
ran; our contract draft was wrong, not the code
sunnweiwei/rankgpt/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_qrels_file Ran
ran; our contract draft was wrong, not the code
sunnweiwei/rankgpt/InstructDistill/trec_eval.py
code served (permissive licence) · get_code("5160f8fbdd1c6606")
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.

# The function takes a single parameter 'name' which should be a string key
# that exists in THE_TOPICS dictionary. We need to provide a valid key.

ARGS = {
    'name': 'dl19'
}
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 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
lambdaRank_scheme Ran
ran; our contract draft was wrong, not the code
sunnweiwei/rankgpt/rank_loss.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from lamda-bbo/Offline-RaM, is pointer only (licence: NONE) · get_code("9c71991dafef6c40")
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 lamda-bbo/Offline-RaM, 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.

ndcgLoss1_scheme Ran
ran, honoured the contract we drafted
sunnweiwei/rankgpt/rank_loss.py
code served (permissive licence) · get_code("07141353fded7e46")
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 3, dtype family float, shape (2, 4, 1) 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
import numpy as np

torch.manual_seed(0)

# The function takes G and D, performs element-wise division, and adds a None dimension
# G and D should be tensors that can be divided element-wise
# The result is indexed with [:, :, None] which means G and D should be 2D tensors

G = torch.randn(2, 4)
D = torch.randn(2, 4)

ARGS = {
    "G": G,
    "D": D,
}
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 Tensor, ndim 3, dtype family float, shape (2, 4, 1) — shape (2, 4, 1) 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
receive_response Ran
ran; our contract draft was wrong, not the code
sunnweiwei/rankgpt/specialization.py
code served (permissive licence) · get_code("103f50dcc89657c1")
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

# Construct valid arguments for receive_response function

# data: list of dicts with 'query', 'positive_passages', and 'retrieved_passages'
data = [
    {
        'query': 'What is machine learning?',
        'positive_passages': ['Machine learning is a subset of AI'],
        'retrieved_passages': [
            'Deep learning uses neural networks',
            'Machine learning is a subset of AI',
            'Natural language processing handles text',
            'Computer vision processes images'
        ]
    },
    {
        'query': 'How does neural network training work?',
        'positive_passages': ['Training uses backpropagation'],
        'retrieved_passages': [
            'Gradient descent optimizes weights',
            'Training uses backpropagation',
            'Activation functions introduce non-linearity'
        ]
    }
]

# responses: list of strings with digit-based rankings
# The function extracts digits and converts them to 0-indexed positions
responses = [
    'The answer is 2 and 1 and 3',
    'Position 2 is best then 1'
]

ARGS = {
    'data': data,
    'responses': responses
}
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 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
remove_duplicate Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sunnweiwei/rankgpt/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
run_retriever Ran
ran; our contract draft was wrong, not the code
sunnweiwei/rankgpt/rank_gpt.py
code served (permissive licence) · get_code("638bf99dbd386233")
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

# Create a minimal searcher mock that supports the search() and doc() methods
class MockHit:
    def __init__(self, docid, score):
        self.docid = docid
        self.score = score

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

class MockSearcher:
    def __init__(self):
        self.docs_db = {
            'doc1': json.dumps({'title': 'Test Title 1', 'text': 'Test content 1'}),
            'doc2': json.dumps({'title': 'Test Title 2', 'text': 'Test content 2'}),
            'doc3': json.dumps({'contents': 'Alternative content format'}),
        }
    
    def search(self, query, k=100):
        # Return mock hits
        hits = [
            MockHit('doc1', 0.95),
            MockHit('doc2', 0.87),
        ]
        return hits[:k]
    
    def doc(self, docid):
        return MockDoc(self.docs_db.get(docid, json.dumps({'contents': 'default'})))

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

qrels_dict = {
    'q1': {'doc1': 1, 'doc2': 0},
    '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
run_retriever Ran
ran; our contract draft was wrong, not the code
sunnweiwei/rankgpt/InstructDistill/bm25_retrieval.py
code served (permissive licence) · get_code("43e84c75d62b7d6c")
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
from unittest.mock import Mock, MagicMock

# Create a mock searcher that returns hits with docid and score
class MockHit:
    def __init__(self, docid, score):
        self.docid = docid
        self.score = score

class MockDoc:
    def __init__(self, docid):
        self.docid = docid
    
    def raw(self):
        if self.docid == "doc1":
            return json.dumps({"title": "First Document", "text": "This is the content of the first document"})
        elif self.docid == "doc2":
            return json.dumps({"title": "Second Document", "text": "This is the content of the second document"})
        else:
            return json.dumps({"contents": "Some document content here"})

class MockSearcher:
    def search(self, query, k=100):
        # Return mock hits
        return [
            MockHit(docid="doc1", score=0.95),
            MockHit(docid="doc2", score=0.87),
        ]
    
    def doc(self, docid):
        return MockDoc(docid)

# Create topics dictionary
topics = {
    "q1": {"title": "What is machine learning?"},
    "q2": {"title": "How does neural networks work?"},
}

# Create qrels dictionary (relevance judgments)
qrels = {
    "q1": {"doc1": 1, "doc2": 0},
    "q2": {"doc2": 1},
}

# Create searcher
searcher = MockSearcher()

ARGS = {
    "topics": topics,
    "searcher": searcher,
    "qrels": qrels,
    "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
split_data Ran
ran, honoured the contract we drafted
sunnweiwei/rankgpt/InstructDistill/instruction_distill.py
code served (permissive licence) · get_code("654ad1edd7372dd6")
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 (4, 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 for testing
data_tensor = torch.randn(8, 4)

# Define arguments for the function
ARGS = {
    "data": data_tensor,
    "process_idx": 0,
    "num_processes": 2
}
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 (4, 4) — shape (4, 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
get_qrels_file Not yet run
unverified (harvested, no recorded run)
sunnweiwei/rankgpt/trec_eval.py
code served (permissive licence) · get_code("ce1221b963c84b7c")
How it ran

no invocation recorded.

ndcgLoss2_scheme Not yet run
unverified (harvested, no recorded run)
sunnweiwei/rankgpt/rank_loss.py
code served (permissive licence) · get_code("c1fb53abb507ff8e")
How it ran

no invocation recorded.

query_generation Not yet run
unverified (harvested, no recorded run)
sunnweiwei/rankgpt/pointwise.py
code served (permissive licence) · get_code("a6d651ee8a87c18b")
How it ran

no invocation recorded.

relevance_generation Not yet run
unverified (harvested, no recorded run)
sunnweiwei/rankgpt/pointwise.py
code served (permissive licence) · get_code("7586cb0204e57b53")
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 14 distinct functions with an identity, 14 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 3 later) and 0 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
get_prefix_prompt 2 other papers
1 later, 1 same year, order not determinable
2023.emnlp-main.923 (2023 (year only))
Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents
2505.20046 (2025-05)
REARANK: Reasoning Re-ranking Agent via Reinforcement Learning
lambdaRank_scheme 2 other papers
1 later, 1 same year, order not determinable
2023.emnlp-main.923 (2023 (year only))
Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents
2410.11502 (2024-10)
Offline Model-Based Optimization by Learning to Rank
ndcgLoss1_scheme 2 other papers
1 dated earlier, 1 same year, order not determinable
2005.04908 (2020-05)
Local Self-Attention over Long Text for Efficient Document Retrieval
2023.emnlp-main.923 (2023 (year only))
Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents
ndcgLoss2_scheme 2 other papers
1 dated earlier, 1 same year, order not determinable
2005.04908 (2020-05)
Local Self-Attention over Long Text for Efficient Document Retrieval
2023.emnlp-main.923 (2023 (year only))
Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents
remove_duplicate 2 other papers
1 later, 1 same year, order not determinable
2023.emnlp-main.923 (2023 (year only))
Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents
2505.20046 (2025-05)
REARANK: Reasoning Re-ranking Agent via Reinforcement Learning
convert_messages_to_prompt 1 other paper
1 same year, order not determinable
2023.emnlp-main.923 (2023 (year only))
Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents
gather_tensors 1 other paper
1 same year, order not determinable
2023.emnlp-main.923 (2023 (year only))
Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents
get_qrels_file 1 other paper
1 same year, order not determinable
2023.emnlp-main.923 (2023 (year only))
Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents
get_qrels_file 1 other paper
1 same year, order not determinable
2023.emnlp-main.923 (2023 (year only))
Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents
query_generation 1 other paper
1 same year, order not determinable
2023.emnlp-main.923 (2023 (year only))
Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents
receive_response 1 other paper
1 same year, order not determinable
2023.emnlp-main.923 (2023 (year only))
Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents
relevance_generation 1 other paper
1 same year, order not determinable
2023.emnlp-main.923 (2023 (year only))
Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents
run_retriever 1 other paper
1 same year, order not determinable
2023.emnlp-main.923 (2023 (year only))
Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents
split_data 1 other paper
1 same year, order not determinable
2023.emnlp-main.923 (2023 (year only))
Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents

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

Recent studies have demonstrated the great potential of Large Language Models (LLMs) serving as zero-shot relevance rankers. The typical approach involves making comparisons between pairs or lists of documents. Although effective, these listwise and pairwise methods are not efficient and also heavily rely on intricate prompt engineering. To tackle this problem, we introduce a novel instruction distillation method. The key idea is to distill the pairwise ranking ability of open-sourced LLMs to a simpler but more efficient pointwise ranking. Specifically, given the same LLM, we first rank documents using the effective pairwise approach with complex instructions, and then distill the teacher predictions to the pointwise approach with simpler instructions. Evaluation results on the BEIR, TREC, and ReDial datasets demonstrate that instruction distillation can improve efficiency by 10 to 100x and also enhance the ranking performance of LLMs. Furthermore, our approach surpasses the performance of existing supervised methods like monoT5 and is on par with the state-of-the-art zero-shot methods. The code to reproduce our results is available at www.github.com/sunnweiwei/RankGPT.

For agents

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

get_harvested_code_for_paper("2311.01555")
get_code_for_paper("2311.01555")
have("2311.01555")

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

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

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

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

Connect an agent — have() is free.