SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.16979 · EACL Findings · 2024

Re3val: Reinforced and Reranked Generative Retrieval

James Thorne, Haeju Lee, Joonkee Kim, Euiyul Song, Sangryul Kim

arXiv · PDF · Open in the Atlas

Code that ran

10 of 13 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; 1 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 7 failures of our instrument; 3 no recorded run), measured 2026-11-22; 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/2401.16979.json · badge: /api/ran/2401.16979.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
facebookresearch/FiD canonical (classifier label)
classifier basis: census
10 ran · 3 no recorded run
FunctionStatusWhere it lives
add_embeddings Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
facebookresearch/FiD/passage_retrieval.py
pointer only (licence: NONE); the stored copy get_code serves, from FenQQQ/Fusion-in-decoder, is pointer only (licence: NOASSERTION) · get_code("bc7a7a194c238080")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/FiD 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.

check_answer Ran
ran, violated the contract we drafted
facebookresearch/FiD/src/evaluation.py
pointer only (licence: NONE); the stored copy get_code serves, from facebookresearch/contriever, is pointer only (licence: NOASSERTION) · get_code("637b51b8df78832a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/FiD 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.

cross_attention_forward Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
facebookresearch/FiD/src/model.py
pointer only (licence: NONE) · get_code("6bef6bdd6eb44070")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/FiD 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.

encode_passages Ran
ran, honoured the contract we drafted
facebookresearch/FiD/src/data.py
pointer only (licence: NONE) · get_code("bc0dae797248182b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/FiD 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.

get_checkpoint_path Ran
ran; our contract draft was wrong, not the code
facebookresearch/FiD/src/util.py
pointer only (licence: NONE); the stored copy get_code serves, from upper9527/gerea, is pointer only (licence: NONE) · get_code("e3a0e6ac26d46ae2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/FiD 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.

has_answer Ran
ran, violated the contract we drafted
facebookresearch/FiD/src/evaluation.py
pointer only (licence: NONE); the stored copy get_code serves, from facebookresearch/contriever, is pointer only (licence: NOASSERTION) · get_code("fa4ecbff4b9a354b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/FiD 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.

init_logger Ran
ran; our contract draft was wrong, not the code
facebookresearch/FiD/src/util.py
pointer only (licence: NONE); the stored copy get_code serves, from upper9527/gerea, is pointer only (licence: NONE) · get_code("1700ba94a8342336")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/FiD 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.

load_data Ran
ran; our contract draft was wrong, not the code
facebookresearch/FiD/src/data.py
pointer only (licence: NOASSERTION) · get_code("148af9b729d03eba")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/FiD (NOASSERTION). 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.

select_examples_NQ Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
facebookresearch/FiD/src/preprocess.py
pointer only (licence: NONE) · get_code("e2f8b9900fd662b1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/FiD 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.

select_examples_TQA Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
facebookresearch/FiD/src/preprocess.py
pointer only (licence: NONE) · get_code("e544cd4b39e5ec61")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/FiD 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.

calculate_matches Not yet run
unverified (harvested, no recorded run)
facebookresearch/FiD/src/evaluation.py
pointer only (licence: NONE); the stored copy get_code serves, from facebookresearch/contriever, is pointer only (licence: NOASSERTION) · get_code("7a4988952dd3a127")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/FiD 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_options Not yet run
unverified (harvested, no recorded run)
facebookresearch/FiD/src/options.py
pointer only (licence: NONE) · get_code("c97f421638696408")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/FiD 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.

load Not yet run
unverified (harvested, no recorded run)
facebookresearch/FiD/src/util.py
pointer only (licence: NONE); the stored copy get_code serves, from upper9527/gerea, is pointer only (licence: NONE) · get_code("a16b92bf7d32bad5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, facebookresearch/FiD 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.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 13 are also present in other papers whose code we hold (13 with at least one paper dated earlier, 4 the same month, 13 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
calculate_matches 13 other papers
1 dated earlier, 1 the same month, 11 later
2112.08688 (2021-12)
Evidentiality-guided Generation for Knowledge-Intensive NLP Tasks
2401.03568 (2024-01)
Agent AI: Surveying the Horizons of Multimodal Interaction
2402.02503 (2024-02)
GeReA: Question-Aware Prompt Captions for Knowledge-based Visual Question Answering
and 10 more not named here
check_answer 13 other papers
1 dated earlier, 1 the same month, 11 later
2112.08688 (2021-12)
Evidentiality-guided Generation for Knowledge-Intensive NLP Tasks
2401.03568 (2024-01)
Agent AI: Surveying the Horizons of Multimodal Interaction
2402.02503 (2024-02)
GeReA: Question-Aware Prompt Captions for Knowledge-based Visual Question Answering
and 10 more not named here
has_answer 11 other papers
1 dated earlier, 1 the same month, 9 later
2112.08688 (2021-12)
Evidentiality-guided Generation for Knowledge-Intensive NLP Tasks
2401.03568 (2024-01)
Agent AI: Surveying the Horizons of Multimodal Interaction
2402.02503 (2024-02)
GeReA: Question-Aware Prompt Captions for Knowledge-based Visual Question Answering
and 8 more not named here
cross_attention_forward 10 other papers
5 dated earlier, 5 later · 1 only as an assembly brick
2108.06314 (2021-08)
A Dataset for Answering Time-Sensitive Questions
2112.08688 (2021-12)
Evidentiality-guided Generation for Knowledge-Intensive NLP Tasks
2206.15474 (2022-06)
Forecasting Future World Events with Neural Networks
and 7 more not named here
add_embeddings 6 other papers
2 dated earlier, 4 later
2012.04584 (2020-12)
Distilling Knowledge from Reader to Retriever for Question Answering
2311.09805 (2023-11)
DocMath-Eval: Evaluating Math Reasoning Capabilities of LLMs in Understanding Long and Specialized Documents
2403.06840 (2024-03)
RA-ISF: Learning to Answer and Understand from Retrieval Augmentation via Iterative Self-Feedback
and 3 more not named here
encode_passages 4 other papers
1 dated earlier, 1 the same month, 2 later
2112.08688 (2021-12)
Evidentiality-guided Generation for Knowledge-Intensive NLP Tasks
2401.03568 (2024-01)
Agent AI: Surveying the Horizons of Multimodal Interaction
2402.02503 (2024-02)
GeReA: Question-Aware Prompt Captions for Knowledge-based Visual Question Answering
and 1 more not named here
get_options 4 other papers
1 dated earlier, 3 later
2112.08688 (2021-12)
Evidentiality-guided Generation for Knowledge-Intensive NLP Tasks
2402.05391 (2024-02)
Knowledge Graphs Meet Multi-Modal Learning: A Comprehensive Survey
2403.06095 (2024-03)
RepoHyper: Search-Expand-Refine on Semantic Graphs for Repository-Level Code Completion
and 1 more not named here
select_examples_NQ 3 other papers
1 dated earlier, 2 later
2112.08688 (2021-12)
Evidentiality-guided Generation for Knowledge-Intensive NLP Tasks
2402.02503 (2024-02)
GeReA: Question-Aware Prompt Captions for Knowledge-based Visual Question Answering
2402.05391 (2024-02)
Knowledge Graphs Meet Multi-Modal Learning: A Comprehensive Survey
select_examples_TQA 3 other papers
1 dated earlier, 2 later
2112.08688 (2021-12)
Evidentiality-guided Generation for Knowledge-Intensive NLP Tasks
2402.02503 (2024-02)
GeReA: Question-Aware Prompt Captions for Knowledge-based Visual Question Answering
2402.05391 (2024-02)
Knowledge Graphs Meet Multi-Modal Learning: A Comprehensive Survey
get_checkpoint_path 2 other papers
1 dated earlier, 1 later
2112.08688 (2021-12)
Evidentiality-guided Generation for Knowledge-Intensive NLP Tasks
2402.02503 (2024-02)
GeReA: Question-Aware Prompt Captions for Knowledge-based Visual Question Answering
init_logger 2 other papers
1 dated earlier, 1 later
2112.08688 (2021-12)
Evidentiality-guided Generation for Knowledge-Intensive NLP Tasks
2402.02503 (2024-02)
GeReA: Question-Aware Prompt Captions for Knowledge-based Visual Question Answering
load 2 other papers
1 dated earlier, 1 later
2112.08688 (2021-12)
Evidentiality-guided Generation for Knowledge-Intensive NLP Tasks
2402.02503 (2024-02)
GeReA: Question-Aware Prompt Captions for Knowledge-based Visual Question Answering
load_data 2 other papers
1 dated earlier, 1 later
2112.08688 (2021-12)
Evidentiality-guided Generation for Knowledge-Intensive NLP Tasks
2025.findings-acl.1365 (2025 (year only))
ECoRAG: Evidentiality-guided Compression for Long Context RAG

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

Repositories linked to this paper

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

Abstract

Generative retrieval models encode pointers to information in a corpus as an index within the model's parameters. These models serve as part of a larger pipeline, where retrieved information conditions generation for knowledgeintensive NLP tasks. However, we identify two limitations: the generative retrieval does not account for contextual information. Secondly, the retrieval can't be tuned for the downstream readers as decoding the page title is a non-differentiable operation. This paper introduces Re3val, trained with generative reranking and reinforcement learning using limited data. Re3val leverages context acquired via Dense Passage Retrieval to rerank the retrieved page titles and utilizes REINFORCE to maximize rewards generated by constrained decoding. Additionally, we generate questions from our pre-training dataset to mitigate epistemic uncertainty and bridge the domain gap between the pre-training and fine-tuning datasets. Subsequently, we extract and rerank contexts from the KILT database using the rerank page titles. Upon grounding the top five reranked contexts, Re3val demonstrates the Top 1 KILT scores compared to all other generative retrieval models across five KILT datasets.

For agents

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

get_harvested_code_for_paper("2401.16979")
get_code_for_paper("2401.16979")
have("2401.16979")

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

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

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

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

Connect an agent — have() is free.