SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.12836 · EMNLP · 2023

Knowledge-Augmented Language Model Verification

Sung Hwang, Jinheon Baek, Minki Kang, Soyeong Jeong, Jong Park, Michael Phelps

arXiv · PDF · Open in the Atlas

Code that ran

13 of 16 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; 5 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 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/2310.12836.json · badge: /api/ran/2310.12836.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
jinheonbaek/kalmv canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
JinheonBaek/KALMV community
Papers with Code archive
6 ran · 3 no recorded run
FunctionStatusWhere it lives
accuracy Ran
ran, honoured the contract we drafted
JinheonBaek/KALMV/models/verifiers.py
pointer only (licence: NONE) · get_code("546e0e6bff195e94")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, JinheonBaek/KALMV 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_exact Ran
ran, honoured the contract we drafted
jinheonbaek/kalmv/metrics.py
pointer only (licence: NONE) · get_code("9026d9da5d085bd4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinheonbaek/kalmv 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_exact Ran
ran, honoured the contract we drafted
JinheonBaek/KALMV/models/verifiers.py
pointer only (licence: NONE) · get_code("66722e30b46133ad")
How it ran

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

convert_orign_to_jsonl Ran
ran; our contract draft was wrong, not the code
jinheonbaek/kalmv/preprocess/process_odqa.py
pointer only (licence: NONE) · get_code("32f7ecc05ecdb661")
How it ran

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

em Ran
ran, honoured the contract we drafted
JinheonBaek/KALMV/models/verifiers.py
pointer only (licence: NONE) · get_code("008bf270c07cb383")
How it ran

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

f1 Ran
ran, honoured the contract we drafted
JinheonBaek/KALMV/models/verifiers.py
pointer only (licence: NONE) · get_code("d8906dbc7552ff58")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, JinheonBaek/KALMV 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_answer Ran
ran; our contract draft was wrong, not the code
jinheonbaek/kalmv/preprocess/process_odqa.py
pointer only (licence: NONE) · get_code("2472555bb4ad6b7e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinheonbaek/kalmv 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_qa_datasets Ran
ran; our contract draft was wrong, not the code
jinheonbaek/kalmv/data.py
pointer only (licence: NONE) · get_code("0e30c99e9be65f47")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinheonbaek/kalmv 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_question Ran
ran; our contract draft was wrong, not the code
jinheonbaek/kalmv/preprocess/process_odqa.py
pointer only (licence: NONE) · get_code("a6f87877056e2eb3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinheonbaek/kalmv 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_tokens Ran
ran; our contract draft was wrong, not the code
jinheonbaek/kalmv/metrics.py
pointer only (licence: NONE); the stored copy get_code serves, from saptarshi059/cdqa-project, is pointer only (licence: NONE) · get_code("aa6bc32d9c17a2f1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinheonbaek/kalmv 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_tokens Ran
ran; our contract draft was wrong, not the code
JinheonBaek/KALMV/models/verifiers.py
pointer only (licence: NONE) · get_code("a2c23eaf23140be2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, JinheonBaek/KALMV 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
jinheonbaek/kalmv/metrics.py
pointer only (licence: NONE); the stored copy get_code serves, from saptarshi059/cdqa-project, is pointer only (licence: NONE) · get_code("6a96435eba311b08")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jinheonbaek/kalmv 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
JinheonBaek/KALMV/models/verifiers.py
pointer only (licence: NONE) · get_code("4d2f27c630abe8bf")
How it ran

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

Verifier Not yet run
unverified (harvested, no recorded run)
JinheonBaek/KALMV/models/verifiers.py
pointer only (licence: NONE) · get_code("96d5fd97997163de")
How it ran

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

Verifier_KG Not yet run
unverified (harvested, no recorded run)
JinheonBaek/KALMV/models/verifiers.py
pointer only (licence: NONE) · get_code("1d5602144651adc3")
How it ran

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

compute_f1 Not yet run
unverified (harvested, no recorded run)
JinheonBaek/KALMV/models/verifiers.py
pointer only (licence: NONE) · get_code("b004a421a9a1ba54")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, JinheonBaek/KALMV 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 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 3 the same month, 3 later) and 10 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
brick of this paper's assembly: helper
37 other papers
20 dated earlier, 2 the same month, 14 later, 1 same year, order not determinable · 1 only as an assembly brick
1808.07042 (2018-08)
CoQA: A Conversational Question Answering Challenge
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1902.01718 (2019-02)
End-to-End Open-Domain Question Answering with BERTserini
and 34 more not named here
get_tokens
brick of this paper's assembly: helper
25 other papers
15 dated earlier, 2 the same month, 7 later, 1 same year, order not determinable
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1902.01718 (2019-02)
End-to-End Open-Domain Question Answering with BERTserini
1908.08962 (2019-08)
Well-Read Students Learn Better: On the Importance of Pre-training Compact Models
and 22 more not named here
compute_exact
brick of this paper's assembly: helper
11 other papers
5 dated earlier, 1 the same month, 4 later, 1 same year, order not determinable
1902.01718 (2019-02)
End-to-End Open-Domain Question Answering with BERTserini
2004.07347 (2020-04)
HybridQA: A Dataset of Multi-Hop Question Answering over Tabular and Textual Data
2105.02692 (2021-05)
Learning to Perturb Word Embeddings for Out-of-distribution QA
and 8 more not named here

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 Language Models (LMs) have shown impressive capabilities in generating texts with the knowledge internalized in parameters. Yet, LMs often generate the factually incorrect responses to the given queries, since their knowledge may be inaccurate, incomplete, and outdated. To address this problem, previous works propose to augment LMs with the knowledge retrieved from an external knowledge source. However, such approaches often show suboptimal text generation performance due to two reasons: 1) the model may fail to retrieve the knowledge relevant to the given query, or 2) the model may not faithfully reflect the retrieved knowledge in the generated text. To overcome these, we propose to verify the output and the knowledge of the knowledge-augmented LMs with a separate verifier, which is a small LM that is trained to detect those two types of errors through instruction-finetuning. Then, when the verifier recognizes an error, we can rectify it by either retrieving new knowledge or generating new text. Further, we use an ensemble of the outputs from different instructions with a single verifier to enhance the reliability of the verification processes. We validate the effectiveness of the proposed verification steps on multiple question answering benchmarks, whose results show that the proposed verifier effectively identifies retrieval and generation errors, allowing LMs to provide more factually correct outputs. Our code is available at https://github.com/JinheonBaek/KALMV.

For agents

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

get_harvested_code_for_paper("2310.12836")
get_code_for_paper("2310.12836")
have("2310.12836")

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

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

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

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

Connect an agent — have() is free.