SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.07838 · 2023

LLatrieval: LLM-Verified Retrieval for Verifiable Generation

arXiv · PDF · Open in the Atlas

Code that ran

8 of 11 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 3 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.07838.json · badge: /api/ran/2311.07838.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
beastyz/llm-verified-retrieval canonical (classifier label)
classifier basis: census
8 ran · 3 no recorded run
FunctionStatusWhere it lives
doc_to_text_dense Ran
ran; our contract draft was wrong, not the code
beastyz/llm-verified-retrieval/searcher.py
pointer only (licence: NONE) · get_code("6fd0394cdc745c1a")
How it ran

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

doc_to_text_tfidf Ran
ran; our contract draft was wrong, not the code
beastyz/llm-verified-retrieval/searcher.py
pointer only (licence: NONE) · get_code("af88e97a5d3a1410")
How it ran

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

letter_to_int Ran
ran, honoured the contract we drafted
beastyz/llm-verified-retrieval/llm_retrieval_related/iterative_select_supporting_documents.py
pointer only (licence: NONE) · get_code("ae54d17fb7b70826")
How it ran

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

letter_to_int_upper Ran
ran, honoured the contract we drafted
beastyz/llm-verified-retrieval/llm_retrieval_related/iterative_select_supporting_documents.py
pointer only (licence: NONE) · get_code("7e994b3c8896c050")
How it ran

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

make_doc_prompt Ran
ran; our contract draft was wrong, not the code
beastyz/llm-verified-retrieval/utils.py
pointer only (licence: NONE) · get_code("c7d29eb322d5d6e3")
How it ran

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

normalize_answer Ran
ran; our contract draft was wrong, not the code
beastyz/llm-verified-retrieval/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from shmsw25/GraphRetriever, is pointer only (licence: NONE) · get_code("dae7ab386661a4f4")
How it ran

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

remove_citations Ran
ran; our contract draft was wrong, not the code
beastyz/llm-verified-retrieval/utils.py
pointer only (licence: NONE) · get_code("5df8b525aada9853")
How it ran

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

truncate_doc_in_user_prompt Ran
ran; our contract draft was wrong, not the code
beastyz/llm-verified-retrieval/llm_retrieval_related/iterative_select_supporting_documents.py
pointer only (licence: NONE) · get_code("aceacde2c4863219")
How it ran

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

call_chatgpt Not yet run
unverified (harvested, no recorded run)
beastyz/llm-verified-retrieval/Iterative_retrieval.py
pointer only (licence: NONE) · get_code("6f8ce522206ccecd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, beastyz/llm-verified-retrieval 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_account_manager Not yet run
unverified (harvested, no recorded run)
beastyz/llm-verified-retrieval/openai_account_manager.py
pointer only (licence: NONE) · get_code("b21a09bb4f5acda6")
How it ran

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

repeat_until_success_call_openai_api Not yet run
unverified (harvested, no recorded run)
beastyz/llm-verified-retrieval/Iterative_retrieval.py
pointer only (licence: NONE) · get_code("2e0d00845ac4b2cd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, beastyz/llm-verified-retrieval 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 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 1 the same month, 5 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
normalize_answer 133 other papers
51 dated earlier, 3 the same month, 77 later, 1 same year, order not determinable, 1 undated · 1 only as an assembly brick
1508.06615 (2015-08)
Character-Aware Neural Language Models
1606.05250 (2016-06)
SQuAD: 100,000+ Questions for Machine Comprehension of Text
1608.07905 (2016-08)
Machine Comprehension Using Match-LSTM and Answer Pointer
and 130 more not named here
remove_citations 7 other papers
1 dated earlier, 6 later
2305.14627 (2023-05)
Enabling Large Language Models to Generate Text with Citations
2402.04315 (2024-02)
Training Language Models to Generate Text with Citations via Fine-grained Rewards
2402.16617 (2024-02)
Long-Context Language Modeling with Parallel Context Encoding
and 4 more not named here
make_doc_prompt 3 other papers
1 dated earlier, 2 later
2305.14627 (2023-05)
Enabling Large Language Models to Generate Text with Citations
2402.04315 (2024-02)
Training Language Models to Generate Text with Citations via Fine-grained Rewards
2025.findings-acl.588 (2025 (year only))
All That Glitters is Not Gold: Improving Robust Retrieval-Augmented Language Models with Fact-Centric Preference Alignment
doc_to_text_dense 2 other papers
1 dated earlier, 1 later
2305.14627 (2023-05)
Enabling Large Language Models to Generate Text with Citations
2025.findings-acl.588 (2025 (year only))
All That Glitters is Not Gold: Improving Robust Retrieval-Augmented Language Models with Fact-Centric Preference Alignment
doc_to_text_tfidf 2 other papers
1 dated earlier, 1 later
2305.14627 (2023-05)
Enabling Large Language Models to Generate Text with Citations
2025.findings-acl.588 (2025 (year only))
All That Glitters is Not Gold: Improving Robust Retrieval-Augmented Language Models with Fact-Centric Preference Alignment

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

Verifiable generation aims to let the large language model (LLM) generate text with supporting documents, which enables the user to flexibly verify the answer and makes the LLM's output more reliable. Retrieval plays a crucial role in verifiable generation. Specifically, the retrieved documents not only supplement knowledge to help the LLM generate correct answers, but also serve as supporting evidence for the user to verify the LLM's output. However, the widely used retrievers become the bottleneck of the entire pipeline and limit the overall performance. Their capabilities are usually inferior to LLMs since they often have much fewer parameters than the large language model and have not been demonstrated to scale well to the size of LLMs. If the retriever does not correctly find the supporting documents, the LLM can not generate the correct and verifiable answer, which overshadows the LLM's remarkable abilities. To address these limitations, we propose \LLatrieval (Large Language Model Verified Retrieval), where the LLM updates the retrieval result until it verifies that the retrieved documents can sufficiently support answering the question. Thus, the LLM can iteratively provide feedback to retrieval and facilitate the retrieval result to fully support verifiable generation. Experiments show that LLatrieval significantly outperforms extensive baselines and achieves state-of-the-art results.

For agents

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

get_harvested_code_for_paper("2311.07838")
get_code_for_paper("2311.07838")
have("2311.07838")

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

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

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

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

Connect an agent — have() is free.