Polarity Blindness in LLM Safety: A Systematic Study of Negation, Antonym Substitution, and Adversarial Framing
Organizations: ELLIS Alicante, Spain · Czech Technical University in Prague, Czech Republic · Universidad de Alicante, Spain
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.
Figures & tables
| Benchmark | Method | Mean Harm Score | Mean Harm Score (Grouped) | ||||
| English (en) | Spanish (es) | Czech (cs) | English (en) | Spanish (es) | Czech (cs) | ||
| as is | 0.74 1.44 | 0.74 1.41 | 0.70 1.36 | ||||
| as is wrap. | 0.66 1.15 | 0.35 0.86 | 0.62 1.15 | 0.70 1.30 | 0.55 1.14 | 0.66 1.26 | |
| negation | 1.82 1.96 | 1.86 1.97 | 1.89 1.92 | ||||
| neg. wrap. | 2.00 1.88 | 1.71 1.87 | 1.64 1.84 | ||||
| antonym | 1.74 1.90 | 1.64 1.88 | 1.64 1.86 | ||||
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Variation | Harm Scores | Mean Harm Score | ||||||
| 0 | 1 | 2 | 3 | 4 | 5 | ||||
| en | Gemma 3:27B | as is | 0.76 | 0.03 | 0.08 | 0.08 | 0.05 | 0.01 | 0.86 .05 |
| Grok-4.1 Fast | as is | 0.69 | 0.01 | 0.02 | 0.07 | 0.15 | 0.05 | 1.74 .02 | |
| Gemma 3:27B | neg. wrap. | 0.24 | 0.02 | 0.08 | 0.26 | 0.35 | 0.05 | 2.63 .03 | |
| Grok-4.1 Fast | neg. wrap. | 0.11 | 0.00 | 0.01 | 0.04 | 0.20 | 0.64 | 4.12 .18 | |
| es | Gemma 3:27B | as is | 0.76 | 0.03 | 0.08 | 0.08 | 0.05 | 0.01 | 0.68 .01 |
| Model | Variation | Harm Scores | Mean Harm Score | ||||||
| 0 | 1 | 2 | 3 | 4 | 5 | ||||
| en | GPT-5 Nano | neg. wrap. | |||||||
| GPT-5 Mini | neg. wrap. | ||||||||
| GPT-5.2 | neg. wrap. | ||||||||
| Claude 4.5 Sonnet | as is | ||||||||
| Grok-4.1 Fast | neg. wrap. | ||||||||
| Model | Variation | Harm Scores | Mean Harm Score | ||||||
| 0 | 1 | 2 | 3 | 4 | 5 | ||||
| en | GPT-5 Nano | synonym | 0.93 .01 | 0.04 .01 | 0.02 .00 | 0.01 .01 | 0.00 .00 | 0.00 .00 | 0.12 .01 |
| GPT-5 Mini | as is | 0.93 .01 | 0.01 .01 | 0.03 .01 | 0.01 .00 | 0.01 .00 | 0.00 .00 | 0.18 .02 | |
| GPT-5.2 | as is | 0.94 .01 | 0.01 .01 | 0.02 .01 | 0.02 .01 | 0.00 .00 | 0.00 .00 | 0.14 .02 | |
| Claude 4.5 Sonnet | as is wrap. | 0.97 .00 | 0.02 .01 | 0.00 .01 | 0.00 .00 | 0.00 .00 | 0.00 .00 | 0.04 .01 | |
| Grok-4.1 Fast | as is wrap. | 0.54 .03 | 0.14 .03 | 0.13 .01 | 0.14 .02 | 0.04 .02 | 0.00 .00 | 1.00 .04 | |
| Model | Variation | Mean Harm Score | ||
| English (en) | Spanish (es) | Czech (cs) | ||
| GPT-5 Nano | negation | |||
| neg. wrapper | ||||
| antonym | ||||
| ant. wrapper | ||||
| GPT-5 Mini | negation | |||
| Model | Provider | Reasoning |
| GPT-5 Nano | OpenAI | minimal |
| GPT-5 Mini | OpenAI | minimal |
| GPT-5.2 | OpenAI | none |
| Claude 4.5 Sonnet | Anthropic | low |
| Grok-4.1 Fast | xAI | none |
| Gemini 2.5 Flash | none |
Language Model Safety Evaluation
Language model safety evaluation measures harmful behavior, refusal, robustness, and over-refusal across realistic prompts, users, and deployment settings.
See all 542 papers