Saved in:
Bibliographic Details
Main Authors: Hao, Jinbo, Yang, Kai, Su, Qingzhen, Li, Yifan, Jiang, Chao
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2601.04086
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911358999592960
author Hao, Jinbo
Yang, Kai
Su, Qingzhen
Li, Yifan
Jiang, Chao
author_facet Hao, Jinbo
Yang, Kai
Su, Qingzhen
Li, Yifan
Jiang, Chao
contents To mitigate hallucinations in large language models (LLMs), we propose a framework that focuses on errors induced by prompts. Our method extends a chain-style knowledge distillation approach by incorporating a programmable module that guides knowledge graph exploration. This module is embedded as executable code within the reasoning prompt, allowing the model to leverage external structured knowledge during inference. Based on this design, we develop an enhanced distillation-based reasoning framework that explicitly regulates intermediate reasoning steps, resulting in more reliable predictions. We evaluate the proposed approach on multiple public benchmarks using GPT-4 and LLaMA-3.3. Experimental results show that code-guided reasoning significantly improves contextual modeling and reduces prompt-induced hallucinations. Specifically, HIT@1, HIT@3, and HIT@5 increase by 15.64%, 13.38%, and 13.28%, respectively, with scores exceeding 95% across several evaluation settings. These findings indicate that the proposed method effectively constrains erroneous reasoning while improving both accuracy and interpretability.
format Preprint
id arxiv_https___arxiv_org_abs_2601_04086
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle KDCM: Reducing Hallucination in LLMs through Explicit Reasoning Structures
Hao, Jinbo
Yang, Kai
Su, Qingzhen
Li, Yifan
Jiang, Chao
Computation and Language
To mitigate hallucinations in large language models (LLMs), we propose a framework that focuses on errors induced by prompts. Our method extends a chain-style knowledge distillation approach by incorporating a programmable module that guides knowledge graph exploration. This module is embedded as executable code within the reasoning prompt, allowing the model to leverage external structured knowledge during inference. Based on this design, we develop an enhanced distillation-based reasoning framework that explicitly regulates intermediate reasoning steps, resulting in more reliable predictions. We evaluate the proposed approach on multiple public benchmarks using GPT-4 and LLaMA-3.3. Experimental results show that code-guided reasoning significantly improves contextual modeling and reduces prompt-induced hallucinations. Specifically, HIT@1, HIT@3, and HIT@5 increase by 15.64%, 13.38%, and 13.28%, respectively, with scores exceeding 95% across several evaluation settings. These findings indicate that the proposed method effectively constrains erroneous reasoning while improving both accuracy and interpretability.
title KDCM: Reducing Hallucination in LLMs through Explicit Reasoning Structures
topic Computation and Language
url https://arxiv.org/abs/2601.04086