Papers › Alleviating Hallucinations of Large Language Models through Induced Hallucinations

Alleviating Hallucinations of Large Language Models through Induced Hallucinations

25 Dec 2023arXiv:2312.15710archive 2025-07-28

Yue Zhang, Leyang Cui, Wei Bi, Shuming Shi

Despite their impressive capabilities, large language models (LLMs) have been observed to generate responses that include inaccurate or fabricated information, a phenomenon commonly known as ``hallucination''. In this work, we propose a simple \textit{Induce-then-Contrast} Decoding (ICD) strategy to alleviate hallucinations. We first construct a factually weak LLM by inducing hallucinations from the original LLMs. Then, we penalize these induced hallucinations during decoding to enhance the factuality of the generated content. Concretely, we determine the final next-token predictions by amplifying the predictions from the original model and downplaying the induced untruthful predictions via contrastive decoding. Experimental results on both discrimination-based and generation-based hallucination evaluation benchmarks, such as TruthfulQA and \textsc{FActScore}, demonstrate that our proposed ICD methods can effectively enhance the factuality of LLMs across various model sizes and families. For example, when equipped with ICD, Llama2-7B-Chat and Mistral-7B-Instruct achieve performance comparable to ChatGPT and GPT4 on TruthfulQA, respectively.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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="2312.15710")

Code

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

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

hiyouga/llama-factory officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
hillzhang1999/icd officialmentioned in paperjaxMIT 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

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

4ran
9unverified

Licence: 0 of the 13 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 hillzhang1999/icd. “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.

build_prompt hillzhang1999/icd/src/benchmark_evaluation/factscore_eval.py official repository ran MIT (permissive) · db8a8ad434c0dd70 · report
get_config_class_from_processor_class hillzhang1999/icd/transformers/utils/create_dummy_models.py official repository ran MIT (permissive) · 3d999b95009c7537 · report
get_processor_types_from_config_class hillzhang1999/icd/transformers/utils/create_dummy_models.py official repository ran MIT (permissive) · 0c0b81b081919d8e · report
load_jsonl hillzhang1999/icd/src/benchmark_evaluation/factscore_eval.py official repository ran MIT (permissive) · e9a7befa1d14a877 · report
convert_dialog_halueval hillzhang1999/icd/src/utils/convert_dataset_for_training.py official repository unverified MIT (permissive) · d8198788b1eeae23 · report
download_url hillzhang1999/icd/src/benchmark_evaluation/factscore_eval.py official repository unverified MIT (permissive) · f4c68c4850723e81 · report
format_best hillzhang1999/icd/src/benchmark_evaluation/truthfulqa_eval.py official repository unverified MIT (permissive) · 158b8847881a64b3 · report
get_architectures_from_config_class hillzhang1999/icd/transformers/utils/create_dummy_models.py official repository unverified MIT (permissive) · b176efb26f72e507 · report
get_bio_res_gpt hillzhang1999/icd/src/utils/generate_bio_hallucination.py official repository unverified MIT (permissive) · 85f010749bbdf0d3 · report
get_bio_res_hallu hillzhang1999/icd/src/utils/generate_bio_hallucination.py official repository unverified MIT (permissive) · 547b922a733a0af5 · report
get_template_and_fix_tokenizer hillzhang1999/icd/src/demo/template.py official repository unverified MIT (permissive) · 2680f9029a02c8cc · report
load_csv hillzhang1999/icd/src/benchmark_evaluation/truthfulqa_eval.py official repository unverified MIT (permissive) · 2a4c0ecd291e1795 · report
split_multi_answer hillzhang1999/icd/src/benchmark_evaluation/truthfulqa_eval.py official repository unverified MIT (permissive) · c852bd4d2face0a1 · report

Tasks

HallucinationHallucination EvaluationTruthfulQA

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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