arXiv:2610.27908cs.CLOct 2026

Manuscript Offprint

arXiv:2610.27908

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.

1 Introduction

Negation remains a persistent challenge for NLP systems despite decades of study and its universality across languages (Déprez and Espinal, 2020). Negation detection (Abuhammad and Ahmed, 2023) is central in domains such as clinical NLP (Martinis et al., 2024), and failures under negation have been documented across tasks, domains, and modalities. This broader phenomenon, often referred to as the “negation problem” or “negation blindness” (Vrabcová et al., 2025), suggests that language models struggle to reliably reason over polarity-altering linguistic constructions. In this work, we investigate whether these weaknesses have implications for LLM safety.

Unlike prior work on negation in toxicity detection, we study the opposite failure. In toxicity

Figure

Figure 1: Mean harm scores on a 0–5 harm scale for the different linguistic variations 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).

classification, negation can cause benign content to be incorrectly flagged as toxic (Hosseini et al., 2017; Alexiou and Mertoguno, 2023). In contrast, we study whether polarity inversion 1^{1} causes safety guardrails to underdetect harmful intent. We term this vulnerability polarity blindness: the failure of LLM safety mechanisms to recognize harmful intent under polarity-inverting transformations. Although these transformations alter surface polarity, the resulting prompts may preserve harmful intent in context, making this connection an empirical question rather than a direct consequence of prior toxicity-detection findings.

We address this question via a controlled probing study structured around three research questions: (RQ1) Does polarity inversion drive polarity blindness, or is any lexical perturbation sufficient? (RQ2) Does adversarial framing amplify failures caused by polarity inversion? (RQ3) Does

1^{1}Polarity inversion reverses an expression’s meaning through operations such as negation or antonym replacement.

polarity blindness generalize across languages? To answer these questions, we evaluate negation, antonym substitution, and synonym substitution with and without an adversarial textual wrapper, yielding eight prompt variants, including the original prompt.

Our main contributions are as follows:

C1. We characterize polarity blindness, as a linguistically grounded safety vulnerability: the failure of LLM guardrails to recognize harmful intent after polarity-inverting transformations. Using controlled comparisons between negation, antonym substitution, and synonym substitution, across 10 state-of-the-art models and 3 languages, we show that polarity inversion is the operative mechanism underlying the vulnerability (RQ1), and that the effect is persistent across typologically different negation systems (RQ3).

C2. We show that an adversarial framing (via a textual wrapper containing persuasive techniques) affects model families differently. It amplifies safety failures in models sensitive to prompt surface form, while reducing failures in models with stronger context-aware safety behavior (RQ2), revealing systematic differences in safety training and guardrail design.

C3. We manually annotate the harmfulness potential of the benchmark prompts, i.e., how harmful their request is considering factors such as illegality, physical harm, and scale of impact. This enables a more precise assessment of vulnerability severity across models, since the critical issue is not only whether a model complies, but also the level of harm its response could cause.

We publicly release the code, data, and example outputs from our experiments for the benefit of the community: https://github.com/dmlls/llm-safety-polarity-blindness.