arXiv:2610.09571cs.CLOct 2026

Manuscript Offprint

arXiv:2610.09571

How Do LLMs Change Predictions Under Negation?

Jongwook Yoon, Jongwon Lim, Sungjib Lim, Woojin Cho, Yohan Jo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Negation is an essential feature of human language, yet large language models (LLMs) remain unreliable in processing it. We evaluate recent open-source and closed-source LLMs on our negation benchmark and find that, in 37–71% of cases, they repeat the same answer under negation (e.g., “Madrid” for “What is not the capital of Spain?”). To understand and address this brittleness, we mechanistically examine how models operate under negation. Our main finding is that specialized attention heads and MLP neurons jointly implement negation by (1) suppressing retrieval of the original answer (e.g., “Madrid”) while (2) promoting a favored candidate within the answer category (e.g., “Paris”). This contrasts with accounts of human negation processing, in which information about the original answer helps to determine what should be excluded. Furthermore, we find that this difference from human processing is a key source of negation failures: the model’s mechanism relies on suppressing the original answer rather than using it to determine what to exclude, so the model can repeat the original answer when suppression is too weak or when a bias toward particular answers prevents it from selecting an alternative. To address this weakness in the model’s negation mechanism, we propose a training objective that requires larger shifts in answer preference for more confident original predictions, and show that it reduces negation failures with less degradation of general capabilities than standard fine-tuning baselines. Together, our results demonstrate how mechanistic analysis can reveal why a linguistic capability fails and guide training that targets the underlying limitation. 1^{1}

1 INTRODUCTION

Negation is an essential feature of human language. However, large language models (LLMs) continue to struggle with negation (Truong et al., 2023; García-Ferrero et al., 2023; Ravichander et al., 2022), and our evaluation shows that these difficulties persist even in recent production-class models (§ 2). The challenge is that a negated prompt such as “What is not the capital of Spain?” requires not only avoiding the original answer “Madrid”, but also selecting an appropriate alternative, such as another city (e.g., “Paris”). In other words, processing negation requires (1) using the knowledge underlying the original answer to select an alternative within the same answer category (e.g., a city name), (2) while still rejecting the original answer itself. Indeed, research on human negation processing suggests that humans process negation by first retrieving the original meaning and then using it to determine what should be excluded (Fischler et al., 1983; Mayo et al., 2004; Nieuwland & Kuperberg, 2008), suggesting that the knowledge of the original answer can inform, rather than hinder, negation processing. However, whether LLMs rely on a similar mechanism remains unclear.

In this paper, we provide a mechanistic explanation of how LLMs internally process negation and use this understanding to diagnose and address their failures. We begin with a behavioral examination

1^{1}We will release the dataset and code upon publication.

∗^{*}Equal contribution.

†^{\dagger}Corresponding author.

Figure

What is not the capital of Spain? Answer: ___

Category candidate subspace (e.g., capital city names)

Figure 1: Overview of LLMs’ negation mechanism. Left: The negation signal triggers three downstream changes: (A) suppressing the original answer, (B) promoting answer category information, and (C) promoting a category-specific alternative. Right: These changes preserve the answer category subspace while shifting preference to an alternative answer (“Paris”).

of recent open-source and closed-source models using negation tests drawn from six benchmarks covering factual QA, visual QA, and logical reasoning ( §§ 2). Our evaluation reveals a recurring failure mode: in 37.4–71.1% of originally correct cases, models repeat the same answer under negation. Crucially, this failure becomes more frequent when the model is more confident in its original answer, contrary to the expectation that knowing the answer should help identify what to exclude. Furthermore, models often favor a particular answer under negation. When this is also the original answer, they are especially likely to repeat it. Together, these findings suggest that models may not reliably use knowledge of the original answer as a basis for exclusion.

To understand the mechanism underlying these failures, we proceed in three steps. First, to identify where negation begins to affect the model's answer prediction, we trace the information flow from the negation token to the prediction token position using activation patching (Meng et al., 2022; Zhang & Nanda, 2024) ( §§ 3). We find that negation reaches the final prediction position to shift the representation in a similar direction across examples: subtracting this direction from a negated prompt's representation shifts downstream computation and the prediction back toward those of the original prompt. We refer to this causal direction as the negation signal.

We then analyze how downstream computation changes to generate an alternative answer ( §§ 4). Interestingly, we discover that instead of using knowledge of the original answer to determine what should be excluded, as humans do, LLMs perform negation by merely suppressing the original answer and promoting a category-specific alternative. Specifically, we identify three distinct yet complementary mechanisms as in Figure 1: (A) weakening attention heads that retrieve the original answer (e.g., “Madrid”), (B) strengthening attention heads that retrieve broad answer category information (e.g., the answer should be a city name), and (C) activating MLP neurons that promote particular candidates within that category (e.g., “Paris” over other capitals). To examine how these changes jointly shape the model’s representations, we use Distributed Alignment Search (DAS) (Geiger et al., 2024). We find that negation largely preserves answer category information while selectively modifying representations within the candidate-preference subspace.

Lastly, to diagnose negation failures, we compare successful cases with failure cases in which the model repeats the original answer under negation ( §§ 5.1). We find that because the mechanism relies on suppressing the original answer, rather than using the original answer to determine what should be excluded, it becomes vulnerable when suppression is insufficient relative to the support for the original answer. This support correlates with the model's confidence in that answer. Based on this diagnosis, we propose a training objective that requires stronger corrections for more confident original answers. Compared with multiple baselines, our objective more effectively reduces negation failures while preserving performance on non-negated prompts.

Together, we demonstrate a distinct mechanism for negation. Unlike human accounts in which the original meaning informs what to exclude, LLMs suppress the original prediction while promoting a favored alternative within the same category. This explains their failures: the correction can be too

Table 1: Answer change and category preservation rates on the test split of our benchmark (%). Averages are computed over six benchmarks for multimodal models and four for text-only models.

ModelFactual AssociationLogical ReasoningVisual Question AnsweringAverage
PopQARippleEditsPhantomWikiSynthWorldsGQAPTRNegated
Ans. change / Cat. pres.Ans. change / Cat. pres.Ans. change / Cat. pres.Ans. change / Cat. pres.Ans. change / Cat. pres.Ans. change / Cat. pres.Ans. change / Cat. pres.Original acc.
Open-source models
Gemma 3-4B-IT40.8 / 98.514.1 / 95.766.4 / 90.835.0 / 90.346.3 / 93.031.8 / 97.339.1 / 94.332.6
Gemma 3-12B-IT58.1 / 99.731.1 / 95.950.4 / 96.242.3 / 95.258.3 / 94.944.4 / 99.147.4 / 96.841.9
Gemma 3-27B-IT68.2 / 99.944.8 / 98.870.1 / 99.642.9 / 95.477.5 / 94.172.5 / 98.962.6 / 97.844.8
Qwen3.5-9B55.4 / 99.352.5 / 89.963.3 / 99.624.5 / 95.555.2 / 96.166.2 / 98.952.9 / 96.647.2
Llama 3.1-8B-Instruct43.3 / 83.413.5 / 82.926.8 / 97.832.2 / 84.5Text only28.9 / 87.239.3
OLMo 3-7B-Instruct56.2 / 89.732.0 / 93.465.3 / 92.830.5 / 97.6Text only46.0 / 93.432.4
Closed-source models
GPT-5.6 Luna55.3 / 92.343.6 / 89.539.1 / 95.431.6 / 100.061.4 / 97.557.1 / 98.448.0 / 95.552.3
Claude Sonnet 566.3 / 98.451.0 / 97.067.0 / 87.334.9 / 92.173.7 / 97.968.6 / 99.460.3 / 95.354.3

weak to overturn a strongly supported original prediction. Guided by this diagnosis, we develop a confidence-adaptive training objective that reduces negation failures.

References (37)