Shuming Shi, Xiaojun Quan, Fanqi Wan, Xinting Huang, Wei Bi, Leyang Cui
17 of 22 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, 0 violated it and 0 have no contract verdict; 17 failures of our instrument; 5 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/2401.10768.json · badge: /api/ran/2401.10768.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.
| Repository | Role | Ran |
|---|---|---|
| fanqiwan/KCA | canonical (classifier label) classifier basis: census |
17 ran · 5 no recorded run |
| Function | Status | Where it lives |
|---|---|---|
| calculate_effectiveness_statistic | Ran ran; our contract draft was wrong, not the code |
fanqiwan/KCA/eval/gpt_judge/show_results.py code served (permissive licence) · get_code("f9e2df54998117c3") How it ranRan 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 dict. 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.
|
| calculate_hallucination_classification_statistic | Ran ran; our contract draft was wrong, not the code |
fanqiwan/KCA/eval/gpt_judge/show_results.py code served (permissive licence) · get_code("48f1e29ec994c4e4") How it ranRan 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 dict. 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.
|
| compute_question_accuracy | Ran ran; our contract draft was wrong, not the code |
fanqiwan/KCA/examination/hallucination/get_metric.py code served (permissive licence) · get_code("4baef40c64107f17") How it ranRan 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 dict. 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.
|
| create_prompt_with_llama2_chat_format | Ran ran; our contract draft was wrong, not the code |
fanqiwan/KCA/examination/templates.py code served (permissive licence) · get_code("e51c9713fadad16f") How it ranRan 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.
|
| create_prompt_with_tulu_chat_format | Ran ran; our contract draft was wrong, not the code |
fanqiwan/KCA/examination/templates.py pointer only (licence: Apache-2.0); the stored copy get_code serves, from thu-keg/crab, is pointer only (licence: NONE) · get_code("697d92a5d51eff3e") How it ranThe 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 thu-keg/crab, 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. |
| dispatch_openai_chat_requesets | Ran ran; our contract draft was wrong, not the code |
fanqiwan/KCA/examination/dispatch_openai_requests.py pointer only (licence: Apache-2.0); the stored copy get_code serves, from thu-keg/crab, is pointer only (licence: NONE) · get_code("dcad9ac62979ca49") How it ranThe 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 thu-keg/crab, 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. |
| dispatch_openai_prompt_requesets | Ran ran; our contract draft was wrong, not the code |
fanqiwan/KCA/examination/dispatch_openai_requests.py pointer only (licence: Apache-2.0); the stored copy get_code serves, from thu-keg/crab, is pointer only (licence: NONE) · get_code("71e4259026911444") How it ranThe 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 thu-keg/crab, 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. |
| dispatch_openai_requests | Ran ran; our contract draft was wrong, not the code |
fanqiwan/KCA/eval/gpt_judge/gpt_judge.py code served (permissive licence) · get_code("dc4bfb543add6e7d") How it ranRan 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 coroutine. 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.
|
| encode_with_prompt_completion_format | Ran ran; our contract draft was wrong, not the code |
fanqiwan/KCA/examination/utils.py pointer only (licence: Apache-2.0); the stored copy get_code serves, from clinicalml/co-llm, is pointer only (licence: NONE) · get_code("661419d69a095bfe") How it ranThe 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 clinicalml/co-llm, 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. |
| extract_question_id | Ran ran; our contract draft was wrong, not the code |
fanqiwan/KCA/examination/hallucination/get_metric.py code served (permissive licence) · get_code("d82c972512c051c4") How it ranRan 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.
|
| get_completion | Ran ran; our contract draft was wrong, not the code |
fanqiwan/KCA/eval/gpt_judge/gpt_judge.py code served (permissive licence) · get_code("cbcc22537dba8d33") How it ranRan 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.
|
| get_json_list | Ran ran; our contract draft was wrong, not the code |
fanqiwan/KCA/eval/gpt_judge/gpt_judge.py code served (permissive licence) · get_code("5d17b604c968b41d") How it ranRan 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.
|
| get_next_word_predictions | Ran ran; our contract draft was wrong, not the code |
fanqiwan/KCA/examination/utils.py code served (permissive licence) · get_code("b15d8b1317f1fd0d") How it ranRan 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 tuple. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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.
|
| parse_fact_enhance_classify_res | Ran ran; our contract draft was wrong, not the code |
fanqiwan/KCA/data_generation/post_process.py code served (permissive licence) · get_code("958758b5786a4316") How it ranRan 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 dict. 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.
|
| parse_fact_generation_res | Ran ran; our contract draft was wrong, not the code |
fanqiwan/KCA/data_generation/post_process.py code served (permissive licence) · get_code("63e1e400990ece36") How it ranRan 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 dict. 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.
|
| parse_test_generation_res | Ran ran; our contract draft was wrong, not the code |
fanqiwan/KCA/data_generation/post_process.py code served (permissive licence) · get_code("875f0b97337517e6") How it ranRan 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 dict. 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.
|
| read_jsonl | Ran ran; our contract draft was wrong, not the code |
fanqiwan/KCA/data_generation/inconsistency_processing.py pointer only (licence: Apache-2.0); the stored copy get_code serves, from iSEngLab/LLM4UT_Empirical, is pointer only (licence: NONE) · get_code("02171abe8492fcfd") How it ranThe 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 iSEngLab/LLM4UT_Empirical, 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. |
| compute_metrics | Not yet run unverified (harvested, no recorded run) |
fanqiwan/KCA/eval/gpt_judge/gen_summary.py code served (permissive licence) · get_code("7f0044e5a93e33e2") How it ranno invocation recorded. |
| generate_completions | Not yet run unverified (harvested, no recorded run) |
fanqiwan/KCA/examination/utils.py code served (permissive licence) · get_code("352416cd121404a7") How it ranno invocation recorded. |
| openai_encode_prompt | Not yet run unverified (harvested, no recorded run) |
fanqiwan/KCA/data_generation/per_instance_query.py code served (permissive licence) · get_code("3a8f2cf897f0d356") How it ranno invocation recorded. |
| query_openai_batch | Not yet run unverified (harvested, no recorded run) |
fanqiwan/KCA/data_generation/per_instance_query.py code served (permissive licence) · get_code("e34ff3c5b1f3ba89") How it ranno invocation recorded. |
| request_openai_batch | Not yet run unverified (harvested, no recorded run) |
fanqiwan/KCA/data_generation/per_instance_query.py code served (permissive licence) · get_code("5869d7c37c3993a8") How it ranno invocation recorded. |
Of 22 samples lifted from this paper's linked repositories, 22 carry a function identity and 0 do not. Of the 22 distinct functions with an identity, 9 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 6 the same month, 8 later) and 13 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.
| Function | Also present in | Earliest-dated | Others named |
|---|---|---|---|
| encode_with_prompt_completion_format | 9 other papers 2 dated earlier, 3 the same month, 4 later |
2311.05657 (2023-11) Agent Lumos: Unified and Modular Training for Open-Source Language Agents |
2312.07540 (2023-12) diff History for Neural Language Agents 2401.08565 (2024-01) Tuning Language Models by Proxy and 6 more not named here |
| create_prompt_with_tulu_chat_format | 8 other papers 1 the same month, 7 later |
2401.16405 (2024-01) Scaling Sparse Fine-Tuning to Large Language Models |
2403.03870 (2024-03) Learning to Decode Collaboratively with Multiple Language Models 2405.05008 (2024-05) ADELIE: Aligning Large Language Models on Information Extraction and 5 more not named here |
| dispatch_openai_prompt_requesets | 8 other papers 1 dated earlier, 2 the same month, 5 later |
2310.06830 (2023-10) Lemur: Harmonizing Natural Language and Code for Language Agents |
2401.15006 (2024-01) Airavata: Introducing Hindi Instruction-tuned LLM 2401.16405 (2024-01) Scaling Sparse Fine-Tuning to Large Language Models and 5 more not named here |
| dispatch_openai_chat_requesets | 7 other papers 1 dated earlier, 2 the same month, 4 later |
2310.06830 (2023-10) Lemur: Harmonizing Natural Language and Code for Language Agents |
2401.15006 (2024-01) Airavata: Introducing Hindi Instruction-tuned LLM 2401.16405 (2024-01) Scaling Sparse Fine-Tuning to Large Language Models and 4 more not named here |
| create_prompt_with_llama2_chat_format | 6 other papers 2 the same month, 4 later |
2401.08565 (2024-01) Tuning Language Models by Proxy |
2401.16405 (2024-01) Scaling Sparse Fine-Tuning to Large Language Models 2403.03870 (2024-03) Learning to Decode Collaboratively with Multiple Language Models and 3 more not named here |
| generate_completions | 6 other papers 1 dated earlier, 2 the same month, 3 later |
2310.08491 (2023-10) Prometheus: Inducing Fine-grained Evaluation Capability in Language Models |
2401.15006 (2024-01) Airavata: Introducing Hindi Instruction-tuned LLM 2401.16405 (2024-01) Scaling Sparse Fine-Tuning to Large Language Models and 3 more not named here |
| get_json_list | 4 other papers 2 dated earlier, 1 later, 1 same year, order not determinable |
2310.09168 (2023-10) EXPLORE-INSTRUCT: Enhancing Domain-Specific Instruction Coverage through Active Exploration |
2310.20410 (2023-10) FollowBench: A Multi-level Fine-grained Constraints Following Benchmark for Large Language Models 2024.findings-acl.341 (2024 (year only)) Phased Instruction Fine-Tuning for Large Language Models and 1 more not named here |
| read_jsonl | 4 other papers 4 later |
2412.16620 (2024-12) A Large-scale Empirical Study on Fine-tuning Large Language Models for Unit Testing |
2025.emnlp-main.1337 (2025 (year only)) CopySpec: Accelerating LLMs with Speculative Copy-and-Paste 2505.17612 (2025-05) Distilling LLM Agent into Small Models with Retrieval and Code Tools and 1 more not named here |
| dispatch_openai_requests | 1 other paper 1 dated earlier |
2310.09168 (2023-10) EXPLORE-INSTRUCT: Enhancing Domain-Specific Instruction Coverage through Active Exploration |
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.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
While large language models (LLMs) have demonstrated exceptional performance across various tasks following human alignment, they may still generate responses that sound plausible but contradict factual knowledge, a phenomenon known as hallucination. In this paper, we demonstrate the feasibility of mitigating hallucinations by verifying and minimizing the inconsistency between external knowledge present in the alignment data and the intrinsic knowledge embedded within foundation LLMs. Specifically, we propose a novel approach called Knowledge Consistent Alignment (KCA), which employs a well-aligned LLM to automatically formulate assessments based on external knowledge to evaluate the knowledge boundaries of foundation LLMs. To address knowledge inconsistencies in the alignment data, KCA implements several specific strategies to deal with these data instances. We demonstrate the superior efficacy of KCA in reducing hallucinations across six benchmarks, utilizing foundation LLMs of varying backbones and scales. This confirms the effectiveness of mitigating hallucinations by reducing knowledge inconsistency. Our code, model weights, and data are openly accessible at https://github.com/fanqiwan/KCA.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2401.10768")
get_code_for_paper("2401.10768")
have("2401.10768")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2401.10768.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2401.10768)
Connect an agent — have() is free.