Strong hallucinations from negation and how to fix them
Nicholas Asher, Swarnadeep Bhar
TL;DR
The paper defines strong hallucinations as reasoning errors arising from how language models represent negation, showing that standard LM objectives fail to respect logical semantics. It introduces a hybrid approach, Lambda, which treats negation as an operator over latent representations that constrains how continuation distributions evolve, mapping $\mu(B|A)$ to $1-\mu(B|A)$ and enforcing coherent conjunction and implication behavior. Empirically, Lambda yields substantial improvements on negation-sensitive tasks, including masked knowledge retrieval and natural language inference, without requiring negative data for training. This semantically grounded, post hoc constraint offers a scalable path to reducing logical errors in LMs and can be extended to other logical operators and interactive learning setups like RLHF.
Abstract
Despite great performance on many tasks, language models (LMs) still struggle with reasoning, sometimes providing responses that cannot possibly be true because they stem from logical incoherence. We call such responses \textit{strong hallucinations} and prove that they follow from an LM's computation of its internal representations for logical operators and outputs from those representations. Focusing on negation, we provide a novel solution in which negation is treated not as another element of a latent representation, but as \textit{an operation over an LM's latent representations that constrains how they may evolve}. We show that our approach improves model performance in cloze prompting and natural language inference tasks with negation without requiring training on sparse negative data.
