Polarity Blindness in LLM Safety: A Systematic Study of Negation, Antonym Substitution, and Adversarial Framing
Diego Miguel Lozano, Erik Derner, Juan Antonio Pérez-Ortiz, Nuria Oliver
Abstract
Negation remains a persistent challenge for language models across NLP tasks and modalities. We show that this weakness can undermine LLM safety guardrails through a structural vulnerability we term polarity blindness: the failure to recognize harmful intent after polarity-altering linguistic transformations. We study two forms of polarity inversion: grammatical negation and antonym replacement, and use synonym replacement as a polarity-preserving control. We further test whether an adversarial textual wrapper amplifies these failures. Using a 260-prompt benchmark across 10 state-of-the-art LLMs and 3 languages (English, Spanish, Czech), stratified by harmfulness potential and evaluated on a validated 0-5 harm scale, we find that polarity blindness affects most evaluated models, with mean harm scores reaching 4.12 for the most vulnerable model. The effect persists across typologically differing negation systems, suggesting that polarity blindness reflects a broader limitation in semantic robustness rather than a language- or grammar-specific failure.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI
- Comments
- Code and data: https://github.com/dmlls/llm-safety-polarity-blindness
Related papers
Global Security Blind Spots: Translation as a Safety Bypass in Low-Resource Languages
Shared title terminologycs.CLJalil Alva, David Harper, Abigail E. Thornton et al.
What Makes Good Data for Training Coding Agents? A Systematic Study on SWE-Gym
Shared title terminologycs.CLYikai Zhang, Mai Xu, Yunbei Zhang et al.
Endpoint-Conditioned Process Value: What an Endpoint-Blind Process Score Adds Once Terminal Status and Cost Are Known
Shared title terminologycs.CLChris D Yan, Ken Wang, MarkX Qian et al.
Edit-Induced Dependency Mismatch: Propagation Omissions, Recovery, and Evaluation Blind Spots in Coding Agents
Shared title terminologycs.CLFei Ding
Harm Is Behavioural, Moderation Is Lexical: How Language and Culture Decide Whom Automated Safety Systems Protect and Whom They Silence
Shared title terminologycs.CLGabriel Lars Sabadin, Dr Nicola Harding, Sarah Kingston
UniGuard: Multi-View Guardrail Learning for Cross-Interface Safety Generalization
Shared title terminologycs.CLViet-Thanh Pham, Thuy-Trang Vu, Junae Kim et al.