Strong hallucinations from negation and how to fix them

Nicholas Asher, Swarnadeep Bhar
2/16/2024
cs.CLcs.AI

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{asher2024strong,
  title  = {Strong hallucinations from negation and how to fix them},
  author = {Nicholas Asher and Swarnadeep Bhar},
  year   = {2024},
  eprint = {2402.10543},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.10543v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.10543.svg)](https://codeofpaper.com/paper/2402.10543)

Discussion