TrapQA: Understanding Why Language Models Hallucinate — Testing Reasoning Against Priors

2026-07-05 · source · source ↗ · raw capture · wiki page

Authors

Yangfan Hu, Xuhan Tong, Haoyue Bai, Xi Ding, Shashank Muralidhar Bharadwaj, Siyang Cao, Robert Nowak, Jiawei Zhang — all affiliated with the University of Wisconsin–Madison.

arXiv: 2607.00447, primary classification cs.CL.

Core Idea

The paper studies hallucination as "inference misalignment" — a mismatch between the answer the prompt supports and the one favored by statistically salient associations. A TrapQA question includes a tempting shortcut and a decisive constraint. The benchmark tests whether models can follow the constraint rather than the shortcut.

Two competing pathways:

Motivating Example

The phrase "special relativity" strongly primes models toward Einstein, even when the prompt explicitly states the scientist did not formulate special relativity. Authors observed failures in "Claude Sonnet 4.6 and GPT-5.5 Instant." In one run, the model returned Einstein with a confidence of 98, despite the negated constraint pointing to Fermi.

Key diagnostic finding: models can correctly answer isolated probes (e.g., "Did Einstein formulate special relativity?" → Yes; "Did Fermi?" → No) "yet still choose Einstein in the comparative question."

Dataset

TrapQA has two complementary closed-book settings:

  1. ScientistQA — 2,925 primary scientist disambiguation questions with three variants: - prepend_names: names-only, retrieval-sensitive - prepend_profiles: profiles-in-context control - probes: two closed-book diagnostic probes per primary question

  2. Real-Life Constrained QA — 500 everyday two-option scenarios across 13 aspects of life (physical, spatial, procedural, medium-specific constraints)

Results

Evaluation Methodology

Closed-book evaluation. Authors recommend disabling external tools, web search, retrieval systems, persistent memory, and auxiliary profiles. They caution that "web-chat environments can be unstable because hidden system prompts, memory, prior conversations, and tool availability may affect the result."

Recommended reporting fields: model ID and provider, evaluation date, prompt/config variant, tool setting, reasoning/thinking setting, and answer normalization rule.

Community Contribution

Authors welcome community-submitted TrapQA examples via Hugging Face Discussions, Google Forms, or Pull Requests. Credit policy: substantial accepted contributions before conference acceptance may lead to authorship; after acceptance, reflected in dataset and arXiv records.

Citation

@misc{hu2026understandinglanguagemodelshallucinate,
      title={Understanding Why Language Models Hallucinate: Testing Reasoning Against Priors},
      author={Yangfan Hu and Xuhan Tong and Haoyue Bai and Xi Ding and Shashank Muralidhar Bharadwaj and Siyang Cao and Robert Nowak and Jiawei Zhang},
      year={2026},
      eprint={2607.00447},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2607.00447},
}

Example Questions