Papers › Order Matters in Hallucination: Reasoning Order as Benchmark and Reflexive Prompting...

Order Matters in Hallucination: Reasoning Order as Benchmark and Reflexive Prompting for Large-Language-Models

9 Aug 2024arXiv:2408.05093archive 2025-07-28

Zikai Xie

Large language models (LLMs) have generated significant attention since their inception, finding applications across various academic and industrial domains. However, these models often suffer from the "hallucination problem", where outputs, though grammatically and logically coherent, lack factual accuracy or are entirely fabricated. A particularly troubling issue discovered and widely discussed recently is the numerical comparison error where multiple LLMs incorrectly infer that "9.11$>$9.9". We discovered that the order in which LLMs generate answers and reasoning impacts their consistency. Specifically, results vary significantly when an LLM generates an answer first and then provides the reasoning versus generating the reasoning process first and then the conclusion. Inspired by this, we propose a new benchmark method for assessing LLM consistency: comparing responses generated through these two different approaches. This benchmark effectively identifies instances where LLMs fabricate answers and subsequently generate justifications. Furthermore, we introduce a novel and straightforward prompt strategy designed to mitigate this issue. Experimental results demonstrate that this strategy improves performance across various LLMs compared to direct questioning. This work not only sheds light on a critical flaw in LLMs but also offers a practical solution to enhance their reliability.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2408.05093")

Code

Syntology Ran 11 of 14 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 11 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

xiezikai/reflexiveprompting officialmentioned in paperpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 11 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

11ran
3unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from xiezikai/reflexiveprompting. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

generate_prompt xiezikai/reflexiveprompting/self_contradictory_comparison.py official repository ran MIT (permissive) · a52bcb839042fe4e · report
generate_prompt_bigbench xiezikai/reflexiveprompting/utils_bigbench.py official repository ran MIT (permissive) · 4458b91a29c0bff8 · report
generate_prompt_logiqa xiezikai/reflexiveprompting/utils_logiqa.py official repository ran MIT (permissive) · 93e63c76186a7749 · report
generate_prompt_mmlu xiezikai/reflexiveprompting/utils_mmlu.py official repository ran MIT (permissive) · 5fa2dca6449f4d11 · report
generate_prompt_truthfulqa xiezikai/reflexiveprompting/utils_truthfulqa.py official repository ran MIT (permissive) · 0164b085d9b5b165 · report
generate_review_prompt_bigbench xiezikai/reflexiveprompting/utils_bigbench.py official repository ran MIT (permissive) · 404b38fae85eae6b · report
generate_review_prompt_logiqa xiezikai/reflexiveprompting/utils_logiqa.py official repository ran MIT (permissive) · e279c0cd745747e9 · report
generate_review_prompt_truthfulqa xiezikai/reflexiveprompting/utils_mmlu.py official repository ran MIT (permissive) · 0a1438ac13b9c397 · report
get_reasoning_data_bigbench xiezikai/reflexiveprompting/utils_bigbench.py official repository ran MIT (permissive) · c89f00b344150505 · report
read_txt_file xiezikai/reflexiveprompting/self_contradictory_comparison.py official repository ran fingerprinted MIT (permissive) · 8baf7ca3db1e6bbd · report
result_correction xiezikai/reflexiveprompting/utils.py official repository ran MIT (permissive) · 9a661f243d6318b2 · report
get_reasoning_data_logiqa xiezikai/reflexiveprompting/utils_logiqa.py official repository unverified MIT (permissive) · 8661f4d51670c645 · report
get_reasoning_data_mmlu xiezikai/reflexiveprompting/utils_mmlu.py official repository unverified MIT (permissive) · 1e6dd951c6a8a447 · report
get_reasoning_data_truthfulqa xiezikai/reflexiveprompting/utils_truthfulqa.py official repository unverified MIT (permissive) · 41bbba1590f51850 · report

Tasks

Hallucination

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionSoftmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections