mlsanityData to 13 Oct 2026

How Language Models Process Negation

arXiv 2605.03052 ↗First posted 4 May 2026cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

We study how Large Language Models (LLMs) process negation mechanistically. First, we establish that even though open-weight models often provide wrong answers to questions involving negation, they do possess internal components that process negation correctly. Their poor accuracy is due to late-layer attention behavior that promotes simple shortcuts; ablating those attention modules greatly improves accuracy on negation-related questions. Second, we uncover how models process negation. We consider two hypotheses: models could use attention heads that attend to the phrase being negated and suppress related concepts, or they could directly construct a representation of the entire negative phrase (e.g., representing "not gas" as a vector that promotes liquids and solids). We apply a range of observational and causal interpretability techniques on Mistral-7B and Llama-3.1-8B to show that models implement both mechanisms, with the "constructive" mechanism being more prominent. Combined, our work deepens the understanding of LLMs' internals, highlighting construction-dominant computations and the coexistence of competing mechanisms within LLMs.

Key facts. No citing papers in the map yet (data through 13 Oct 2026). Builds on 28 of its 41 references that are in the map. First posted on arXiv 4 May 2026.

Builds on

28 of 41 references.

References · 28

  1. 2017Attention Is All You Needcited by 60,106
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,322
  3. 2025Qwen3 Technical Reportcited by 8,510
  4. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,676
  5. 2022Locating and Editing Factual Associations in GPTcited by 2,650
  6. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,137
  7. 2015A large annotated corpus for learning natural language inferencecited by 1,841
  8. 2019Root Mean Square Layer Normalizationcited by 1,449
  9. 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,391
  10. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,323
  11. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,145
  12. 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,042
16 more
  1. 2023The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasetscited by 693
  2. 2018Annotation Artifacts in Natural Language Inference Datacited by 664
  3. 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 517
  4. 2023Function Vectors in Large Language Modelscited by 299
  5. 2025Layer by Layer: Uncovering Hidden Representations in Language Modelscited by 298
  6. 2018Hypothesis Only Baselines in Natural Language Inferencecited by 294
  7. 2019Negated and Misprimed Probes for Pretrained Language Models: Birds Can Talk, But Cannot Flycited by 241
  8. 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 221
  9. 2024Not All Language Model Features Are One-Dimensionally Linearcited by 205
  10. 2023Overthinking the Truth: Understanding how Language Models Process False Demonstrationscited by 80
  11. 2023On the Foundations of Shortcut Learningcited by 64
  12. 2024Summing Up the Facts: Additive Mechanisms Behind Factual Recall in LLMscited by 40
  13. 2024Inferring Functionality of Attention Heads from their Parameterscited by 17
  14. 2025RelP: Faithful and Efficient Circuit Discovery in Language Models via Relevance Patchingcited by 10
  15. 2024The Self-Contained Negation Test Setcited by 3
  16. 2025Promote, Suppress, Iterate: How Language Models Answer One-to-Many Factual Queriescited by 1

Built on by

Not cited yet.