How Language Models Process Negation
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.
Code (0)
등록된 구현이 없습니다.
Similar Papers 제목 키워드 기반
Developmental Negation Processing in Transformer Language Models
Reasoning using negation is known to be difficult for transformer-based language models. While previous studies have used the tools of psycholinguistics to probe a transformer's ability to reason over negation, none have…
DiagnosticNatural Language InferenceNegationThe Scope and Focus of Negation: A Complete Annotation Framework for Italian
In this paper we present a complete framework for the annotation of negation in Italian, which accounts for both negation scope and negation focus, and also for language-specific phenomena such as negative concord. In ou…
ArticlesDecision MakingNegationSentiment AnalysisCorpora Annotated with Negation: An Overview
Negation is a universal linguistic phenomenon with a great qualitative impact on natural language processing applications. The availability of corpora annotated with negation is essential to training negation processing …
NegationSemantic Role LabelingNegation typology and general representation models for cross-lingual zero-shot negation scope resolution in Russian, French, and Spanish.
Negation is a linguistic universal that poses difficulties for cognitive and computational processing. Despite many advances in text analytics, negation resolution remains an acute and continuously researched question in…
Machine TranslationNegationNegation DetectionNegation Scope Resolution+2Negation Detection in Dutch Spoken Human-Computer Conversations
Proper recognition and interpretation of negation signals in text or communication is crucial for any form of full natural language understanding. It is also essential for computational approaches to natural language pro…
Natural Language UnderstandingNegationNegation DetectionTransfer Learning