EACL 2027 (Findings)

Polarity Blindness in LLM Safety:

A Systematic Study of Negation, Antonym Substitution, and Adversarial Framing

Diego Miguel Lozano 1,  Erik Derner 2,  Juan Antonio Pérez-Ortiz 3,  Nuria Oliver 1

1 ELLIS Alicante

2 Czech Technical University in Prague (CTU)

3 Universitat d'Alacant

Background Background

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.

Experimental Setup

We study 3 languages (English, Spanish, Czech) and two main probes, negation and antonym, which reverse the polarity of the malicious prompt, but at different linguistic levels: the negation probe operates at the surface, grammatical level, while the antonym probe operates at the lexicosemantic level.

Synonym substitution provides as the polarity preserving control. Furthermore, each prompt variant (including the original prompt) is evaluated with and without an adversarial wrapper.

This setup yields 8 different prompt variants:

Prompt variations
Flow diagram with the 8 prompt variations we evaluate.

We evaluate 10 models—8 closed-weight and 2 open-weight—spanning a range of sizes, architectures and providers: Grok-4.1 (fast, non-reasoning), GPT-5 (nano and mini versions), GPT-5.2, Gemini 2.5 (flash and flash lite versions), Claude Sonnet 4.5, DeepSeek-V3.2, Ministral 3 14B, and Gemma 3 (27b version).

For the harm evaluation, we use a human-validated LLM-as-a-Judge (Kimi K2.5) and report harm scores on a scale 0-5. Each inference and evaluation is run 3 times, to account for stochasticity. Across 3 languages, 10 models, 8 variants, and 260 prompts, we perform 187,200 inferences and 561,600 evaluations.

Results

Polarity-inverting probes (negation and antonym substitution) achieve the highest mean harm scores in 9/10 models in English and Spanish, and 8/10 in Czech:

Prompt variations
Harm scores obtained by the different variations. The horizontal lines depict the average harm score for the as is (blue line), negation (red line), antonym (orange line) and synonym (green line) prompts, with and without wrapper. In this plot, we exclude the models Claude 4.5 Sonnet and GPT-5 Nano, which are resistant to polarity blindness.

Grok-4.1 (fast, non-reasoning) is the most vulnerable model, with negation variations achieving a mean harm of 4.12 in English, 3.93 in Spanish, and 3.84 in Czech, while GPT-5 Nano and Claude Sonnet 4.5 remain largely robust.

Prompt variations
Mean harm scores on a 0–5 harm scale for on the English benchmark queries. Most models exhibit polarity blindness as the highest scores are achieved by the polarity-inverting variations of the prompts (negation and antonym).

These results supporting the polarity blindness hypothesis: safety failures are driven by polarity inversion rather than lexical perturbation alone.

Examples

Warning: This section includes LLM responses containing harmful content.

Citation

@misc{lozano2026polarityblindness,   title={Polarity Blindness in LLM Safety: A Systematic Study of Negation, Antonym Substitution, and Adversarial Framing},   author={Diego Miguel Lozano and Erik Derner and Juan Antonio Pérez-Ortiz and Nuria Oliver},   year={2026},   eprint={2610.27908},   archivePrefix={arXiv},   primaryClass={cs.CL},   url={https://arxiv.org/abs/2610.27908} }