Reproduce “On Large Language Models' Hallucination with Regard to Known Facts” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Che Jiang, Biqing Qi, Xiangyu Hong, Dayuan Fu, Yang Cheng, Fandong Meng, Mo Yu, Bowen Zhou and 1 more
This research empirically analyzes the layer-by-layer inference processes within large language models to understand why they hallucinate known facts, even when the underlying knowledge is present. It then presents a method that accurately detects these specific types of hallucinations by observing internal token probability dynamics across model layers.
Key insights
- Known fact hallucinations primarily stem from failed knowledge recall, where the correct answer token is suppressed or does not achieve a high probability rank during intermediate inference layers.
- Correct outputs exhibit a characteristic steep increase in the correct token's probability in mid-to-late layers (around layer 20), whereas hallucinatory tokens maintain sustained, but not sharply increasing, probabilities from shallower layers without such a 'leap.'
- MLP modules play a more detrimental role in hallucinations by actively inhibiting correct answer tokens in later stages and contributing to the generation of erroneous outputs, particularly when initial semantic parsing of the query is insufficient.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.