SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.13259 · 2023

Knowledge-Driven CoT: Exploring Faithful Reasoning in LLMs for Knowledge-intensive Question Answering

arXiv · PDF · Open in the Atlas

Code that ran

6 of 9 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, 2 violated it and 0 have no contract verdict; 4 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/2308.13259.json · badge: /api/ran/2308.13259.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
adelwang/kd-cot canonical (classifier label)
classifier basis: census
6 ran · 3 no recorded run
FunctionStatusWhere it lives
MultiChoicePrompting Ran
ran; our contract draft was wrong, not the code
adelwang/kd-cot/verifier_and_cot_finetuning/data_utils/data_utils.py
pointer only (licence: NONE) · get_code("7abfd90274b6deb7")
How it ran

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

cleantxt Ran
ran; our contract draft was wrong, not the code
adelwang/kd-cot/pipeline/GPT_inference_steps.py
pointer only (licence: NONE) · get_code("cba2221f35208240")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, adelwang/kd-cot 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_parameter_number Ran
ran; our contract draft was wrong, not the code
adelwang/kd-cot/verifier_and_cot_finetuning/data_utils/data_utils.py
pointer only (licence: NONE) · get_code("4bf8c7490aa8c35b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, adelwang/kd-cot 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
adelwang/kd-cot/pipeline/Retriever/Retriever.py
pointer only (licence: NONE) · get_code("72978c28b2bf2c82")
How it ran

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

read_data Ran
ran; our contract draft was wrong, not the code
adelwang/kd-cot/verifier_and_cot_finetuning/data_utils/data_utils.py
pointer only (licence: NONE) · get_code("7e718e1611b832e3")
How it ran

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

regex_match Ran
ran, violated the contract we drafted
adelwang/kd-cot/pipeline/Retriever/Retriever.py
pointer only (licence: NONE); the stored copy get_code serves, from morningmoni/GAR, is pointer only (licence: NONE) · get_code("442d4287320d335d")
How it ran

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

process_justify_results Not yet run
unverified (harvested, no recorded run)
adelwang/kd-cot/pipeline/GPT_justify.py
pointer only (licence: NONE) · get_code("dcb9f54a07dc5478")
How it ran

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

process_match_results Not yet run
unverified (harvested, no recorded run)
adelwang/kd-cot/pipeline/GPT_justify.py
pointer only (licence: NONE) · get_code("6dbba84101edbf9d")
How it ran

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

search_all Not yet run
unverified (harvested, no recorded run)
adelwang/kd-cot/pipeline/Retriever/BM25_search.py
pointer only (licence: NONE) · get_code("b8284d3b260957cc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, adelwang/kd-cot 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 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 8 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
regex_match 6 other papers
4 dated earlier, 1 later, 1 same year, order not determinable
2101.00294 (2021-01)
Reader-Guided Passage Reranking for Open-Domain Question Answering
2102.10073 (2021-02)
Pyserini: An Easy-to-Use Python Toolkit to Support Replicable IR Research with Sparse and Dense Representations
2023.findings-acl.734 (2023 (year only))
Structure-Aware Language Model Pretraining Improves Dense Retrieval on Structured Data
and 3 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

Equipped with Chain-of-Thought (CoT), Large language models (LLMs) have shown impressive reasoning ability in various downstream tasks. Even so, suffering from hallucinations and the inability to access external knowledge, LLMs often come with incorrect or unfaithful intermediate reasoning steps, especially in the context of answering knowledge-intensive tasks such as KBQA. To alleviate this issue, we propose a framework called Knowledge-Driven Chain-of-Thought (KD-CoT) to verify and modify reasoning traces in CoT via interaction with external knowledge, and thus overcome the hallucinations and error propagation. Concretely, we formulate the CoT rationale process of LLMs into a structured multi-round QA format. In each round, LLMs interact with a QA system that retrieves external knowledge and produce faithful reasoning traces based on retrieved precise answers. The structured CoT reasoning of LLMs is facilitated by our developed KBQA CoT collection, which serves as in-context learning demonstrations and can also be utilized as feedback augmentation to train a robust retriever. Extensive experiments on WebQSP and ComplexWebQuestion datasets demonstrate the effectiveness of proposed KD-CoT in task-solving reasoning generation, which outperforms the vanilla CoT ICL with an absolute success rate of 8.0% and 5.1%. Furthermore, our proposed feedback-augmented retriever outperforms the state-of-the-art baselines for retrieving knowledge, achieving significant improvement in Hit and recall performance. Our code and data are released on https://github.com/AdelWang/KD-CoT/tree/main.

For agents

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

get_harvested_code_for_paper("2308.13259")
get_code_for_paper("2308.13259")
have("2308.13259")

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

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

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

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

Connect an agent — have() is free.