Skip to content

The researchers propose the HPAA attack: bypassing 13 content moderation systems with typographic visual cuesWhat the Eyes See, the LLMs Miss: Exploiting Human Perception for Adversarial Text Attacks

Paper Tracker· arXiv:2606.09700· USENIX Security 2026· Qin Yang, Lu Malloy, Joshua Lee, Xiaohan Chang, Meisam Mohammady, Doowon Kim, Yuan Hong·Indexed by this site · 2026-10-08· Originally publishedSelected AttacksSelectedAttention42

Quick read

Attacks

Based on the paper PDF (generated by Gemini); refer to the original

This study proposes the HPAA attack using typographic visual cues against 13 moderation systems, reducing detection rates to below 17% with a single attempt.

Threat modelBlack-box setting; the attacker is an ordinary non-privileged user, cannot access the moderation system's architecture, parameters, training data, or internal decision logic, can only observe moderation outputs (safe/unsafe judgments and confidence), and cannot modify platform policies; the attacker implements evasion by embedding typographically transformed harmful phrases in benign text.

Questions
Modern LLM content moderation systems are based on text tokenization processing and struggle to capture visual cues such as spatial layout, spacing, and visual emphasis that humans rely on, allowing harmful content that is immediately recognizable to humans to evade automated moderation.
Methods
Proposes the HPAA framework, decoupling human perception from black-box evasion: first, two rounds of user studies (N=370) screen a subset of typographic configurations with high human detectability, then, under black-box settings with limited query budgets (1 or 3 attempts), harmful expressions are embedded into benign carrier texts and tested against moderation systems.
Experiments and results
In an evaluation including 13 moderation systems, for the configuration with the highest human recognition rate (92%), detection rates generally dropped to near 0% (all below 17%) with a single attempt; with a budget of 3 attempts, the evasion rate reached up to 100%, significantly higher than traditional adversarial attack baselines.
Limitations and future work
The authors note that participants' prior knowledge of harmful content may introduce priming effects, and that the evaluation only approximates actual deployment; the experiments cover 13 modern content moderation systems and 4 traditional models, with datasets based on STTD (249 harmful texts) and benign comments from 5 domains, targeting 5 harmful categories.
Experimental setupLlama-Guard-3-8B、ShieldGemma 2B et al. · AdvBench (STTD)、BTD (TripAdvisor, Yelp, IMDb, Amazon Product, Amazon Music) et al. · Detection Rate、Evasion Rate et al.
Evaluated models
Llama-Guard-3-8BShieldGemma 2BShieldGemma 9BGemini 2.0 FlashGemini 2.5 Flash-LiteGPT-4oChatGPT-3.5OmniModeration-LatestAmazon Nova Lite 2.0Azure AI Content Safety APIPerspective APIAmazon Comprehend Toxicity DetectionEnkrypt AI Guardrails API
Benchmarks
AdvBench (STTD)BTD (TripAdvisor, Yelp, IMDb, Amazon Product, Amazon Music)HUS-IHUS-IIHED
Metrics
Detection RateEvasion Ratek-shot Evasion RateHuman Recognition Rate (Participant-Reported, Experimenter-Verified)Normalized Selection Rate
AI summaryand selection rationaleThe researchers propose Human-Perceptible Adversarial Attacks (HPAA), which embed harmful content into benign text through typographic means such as spacing, emphasis, and spatial arrangement, making it still recognizable to humans while difficult for automated moderation systems to detect. The attack operates in a black-box setting with a small query budget, requiring no internal model information or gradients. Across multiple datasets and 13 deployed moderation systems (including commercial APIs and open-source guardrails), with only 3 detector queries, human recognition of generated samples exceeded 86%, while detection rates across systems were below 1%. In the 1-shot setting, the strongest configuration achieved a 83.33% evasion rate and 92% human recognition; under a 3-shot budget, evasion reached up to 100%. The study also analyzes the typographic factors driving evasion, the reasons existing moderation architectures fail, and discusses defense directions.

The researchers propose Human-Perceptible Adversarial Attacks (HPAA), which embed harmful content into benign text through typographic means such as spacing, emphasis, and spatial arrangement, making it still recognizable to humans while difficult for automated moderation systems to detect. The attack operates in a black-box setting with a small query budget, requiring no internal model information or gradients. Across multiple datasets and 13 deployed moderation systems (including commercial APIs and open-source guardrails), with only 3 detector queries, human recognition of generated samples exceeded 86%, while detection rates across systems were below 1%. In the 1-shot setting, the strongest configuration achieved a 83.33% evasion rate and 92% human recognition; under a 3-shot budget, evasion reached up to 100%. The study also analyzes the typographic factors driving evasion, the reasons existing moderation architectures fail, and discusses defense directions.

Why it was selectedThe paper proposes the HPAA attack that uses typographic visual cues to bypass content moderation, providing reproducible evasion rates and human recognition rate comparisons across 13 moderation systems.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Large model moderation systems rely on text tokenization and ignore visual cues, allowing harmful content that humans can recognize to evade detection.

    Modern content moderation systems based on large language models (LLMs) have a visual typographic blind spot in tokenized input, allowing harmful content that is easily recognizable to humans to evade automated review.

    • Problem scenario and real-world harm: Online platforms commonly adopt tiered moderation pipelines, relying on automated detectors for initial screening of massive user-generated content; since machines typically process based on plain-text tokenization, ignoring visual cues, automated moderation faces the risk of being bypassed.
    • Shortcomings of existing methods: Existing adversarial text attacks mostly focus on inducing model misclassification while pursuing human invisibility, or altering surface forms through rewriting, often at the cost of semantic readability, and fail to systematically use visual typographic mechanisms to build end-to-end evasion channels.
    • Core observation of the paper: When humans understand text, they rely not only on lexical semantics but also on visual typographic cues such as spacing, emphasis, and spatial arrangement; attackers do not need to deceive both humans and machines simultaneously, only to bypass the automated model and convey harmful information to human users.
    • Method proposed in the paper: Proposes Human-Perceptible Adversarial Attack (HPAA), which embeds harmful content into benign text under black-box and low query budgets by combining typographic granularity, layout strategies, and style transformations.
    • Threat model:
      • Goal: Generate samples that human readers can recognize as harmful but are judged as benign by automated systems, thereby bypassing filters to reach end users.
      • Knowledge: Black-box setting; the attacker cannot access the moderation system's model architecture, parameters, training data, or internal decision logic.
      • Capability: The attacker only submits content through a regular ordinary user account, can only observe safe/unsafe judgments and confidence outputs, and cannot intervene in platform rules or deployment.
      • Victim system: Content moderation pipelines of modern online platforms (including text submission interfaces and toxicity detection mechanisms based on LLMs or traditional classifiers).
  2. What related research exists?

    Existing attacks focus on model confusion and often damage readability, with few using human visual perception and typographic embedding as an evasion channel.

    Existing research mainly focuses on model-centric adversarial text attacks, while studies combining human perception with typographic cues are relatively rare.

    • Adversarial text attacks:
      • Character- and word-level perturbations: Ebrahimi et al. (2018), Jin et al. (2020), Li et al. (2018) etc. studied character insertion, deletion, swapping, homoglyph substitution, and word-level replacement; the authors note that such perturbations are usually oriented toward imperceptibility or model confusion, often leading to reduced semantic clarity.
      • Rewriting and jailbreak attacks: Iyyer et al. (2018), Zou et al. (2023) etc. explored syntax-controlled rewriting and jailbreak attacks; the authors note that these methods are mainly evaluated at the model behavior level, with less systematic exploration of typographic styles and spatial layout as an adversarial channel.
      • Text steganography techniques: Ahvanooey et al. (2018), Wu et al. (2024) etc. studied steganographic schemes that embed hidden information into benign text; the authors state that these do not systematically exploit typographic visual cues to evade AI moderation.
    • Human-centered adversarial exploration:
      • Human perception evaluation: Dyrmishi et al. (2023) evaluated human perception of word-level adversarial examples; Das et al. (2024), Deng et al. (2023) proposed human-readable contextual prompts and jailbreaks; the authors note that these works rarely bring human participants into the attack design loop, nor do they systematically connect human perceptibility with model detection rates.
    • Baseline methods and benchmarks:
      • Comparison baselines: DeepWordBug, TextBugger, TextFooler (Homoglyph variant).
      • Evaluation benchmarks: AdvBench (extracted short harmful texts STTD), benign carrier text set (BTD) composed of 5 real review datasets.
    • Positioning difference from existing work: The authors state that HPAA is the first adversarial framework that integrates user studies into both attack construction and evaluation, revealing a systematic disconnect between human perception and machine tokenization-based detection.
  3. How does the paper address this problem?

    A two-stage framework is adopted: offline user studies refine highly perceptible typographic configurations, and online black-box evasion iterates with extremely low budgets.

    A two-stage framework decouples human perception evaluation from online moderation evasion, using typographic composition to embed harmful expressions in benign text.

    Formalization and configuration space

    The attack objective is formalized as: given harmful input text t and benign carrier text b, use a typographic embedding process x = F(t, b; h) to generate sample x such that automated classifiers judge it safe while human readers can identify the harmful content. The typographic configuration space is defined as H = {M, L, S}:

    • Typographic granularity (L): includes word level (Word, keeping words intact), token level (Token, splitting words longer than 4 into subwords of at least 2 characters) and mixed level (Mixed, combining subword and single-character splitting).
    • Placement strategy (M): includes left vertical alignment (M1), center vertical alignment (M2), right vertical alignment (M3), main diagonal alignment (M4), anti-diagonal alignment (M5) and random distribution across the full text (M6).
    • Style transformation (S): includes bold (B), color (Col), highlight (Hi), circled character conversion (Pre), case flipping (Cap) and cloze masking (Cloze). The full factorial space contains 108 configurations in total.

    Stage one: human-guided refinement of typographic configurations

    To avoid the high cost of invoking human evaluation for every attack, a subset of configurations with high human perceptibility is filtered offline through two rounds of user studies:

    • Round I (initial configuration screening): pairwise comparison experiments evaluate the human recognizability of 108 configurations, selecting the Top-21 candidate set H1 with normalized scores no lower than 0.80.
    • Round II (targeted evaluation): H1 is evaluated on real cross-domain text, measuring the human recognition rate verified by experimenters, retaining the 10 configurations with a recognition rate of 80% or above to form the refined set H2.
    • Platform constraint filtering: the deployable configuration set H' is filtered according to the native typographic features supported by the target platform.

    Stage two: online black-box attack generation

    • Attack iteration process: under black-box interaction, configurations are selected in the order of the refined configuration set to generate samples and submit them to the moderation system.
    • Termination and update conditions: if a benign verdict is received, the attack succeeds and terminates; if judged unsafe, the next configuration is tried within the query budget k (e.g., 1 or 3 attempts), until success or budget exhaustion.
  4. What experiments did the paper conduct?

    Across 13 systems, a single attempt reduced detection rates below 17%, and with a budget of 3, the evasion rate reached 100%.

    Evaluated on 13 mainstream moderation systems and 5 harmful categories, demonstrating that HPAA can significantly reduce detection rates while maintaining high human recognition rates.

    Experimental Setup

    • Systems tested: 13 in total (Table 10), covering open-source guardrails and commercial models: Llama-Guard-3-8B (LG3-8B), Perspective API (PA), ShieldGemma-2B (SG-2B), ShieldGemma-9B (SG-9B), Gemini 2.0 Flash (G2F), Gemini 2.5 Flash-Lite (G-2.5-FL), Azure AI Content Safety (Azure), Amazon Comprehend Toxicity Detection (Amazon-C), Amazon Nova Lite 2.0 (Amazon-N), ChatGPT-3.5 (GPT-3.5), GPT-4o, Omni-Moderation-Latest (Omni), Enkrypt AI Guardrails API.
    • Evaluation datasets: Short toxic text set STTD (249 harmful samples re-annotated from AdvBench, each no more than 10 words, covering five categories: Hate, Violent, Sexual, Self-harm, Insults); benign text set BTD (five-star reviews from TripAdvisor, Yelp, IMDb, Amazon Product, Amazon Music); HPAA evaluation set HED.
    • Baseline methods: DeepWordBug, TextBugger, TextFooler (Homoglyph).
    • Metrics and review method: Detection rate (proportion judged as Unsafe), evasion rate (complement of detection rate), k-shot evasion rate; models with continuous scores (Azure, PA) use default threshold 0.5.
    • Human subject samples: Round I had 120 people total (cross-device testing, each combination shown at least 5 times), Round II had 250 people (50 per domain across 5 domains).

    Main Results

    Under 1-shot attack (using the M6-W-Hi configuration with 92% human recognition rate in H2), the detection rates of each model on original toxic text (Original) versus attacked text (HPAA) are compared as follows (per Table 2):

    Swipe horizontally to read the table

    ModelHate (Orig / HPAA)Violent (Orig / HPAA)Sexual (Orig / HPAA)Self-harm (Orig / HPAA)Insults (Orig / HPAA)
    SG-9B54.41% / 0.00%53.51% / 0.00%66.67% / 0.00%75.00% / 0.00%44.93% / 0.00%
    PA77.94% / 1.52%71.05% / 0.89%94.44% / 5.88%79.55% / 2.33%61.59% / 1.52%
    Amazon-C94.12% / 1.47%94.74% / 0.00%97.22% / 2.78%93.18% / 4.55%78.26% / 3.62%
    Enkrypt AI80.88% / 0.00%72.81% / 0.00%97.22% / 0.00%84.09% / 0.00%65.22% / 0.00%
    Azure AI86.76% / 11.76%82.46% / 14.04%86.11% / 16.67%88.64% / 13.64%60.87% / 11.59%
    LG3-8B91.18% / 0.00%89.47% / 0.00%88.89% / 0.00%97.73% / 0.00%74.64% / 0.00%
    G2F100.00% / 1.47%89.47% / 0.00%91.67% / 0.00%100.00% / 0.00%75.36% / 0.72%
    GPT-4o98.53% / 4.41%94.74% / 2.63%97.22% / 2.78%100.00% / 2.27%89.13% / 2.90%
    G-2.5-FL100.00% / 11.76%98.25% / 7.89%97.22% / 8.33%100.00% / 6.82%92.03% / 10.14%
    Omni95.59% / 2.94%92.98% / 1.75%97.22% / 2.78%90.91% / 0.00%77.54% / 1.45%
    • Attack reduction magnitude: The authors state that HPAA reduces detection rates by one to two orders of magnitude, with multiple models dropping to 0.00% on some categories.
    • Strongest robust model performance: Azure AI and G-2.5-FL are relatively stronger, but post-attack detection rates still below 17% (Azure max 16.67%, G-2.5-FL max 11.76%).
    • Overall evasion rate: Across all systems and categories, the maximum single-attack evasion rate reached 83.33%, corresponding to a 92% human recognition rate.

    3-Shot Attack Budget Evaluation

    • What was tested: Evasion rate evaluated under a budget of 3 iterations (k=3), divided into the full set H2 with highlighting (Figure 5a) and the restricted set without highlighting (Figure 5b).
    • Results: Under the full set, the vast majority of systems (such as G2F, SG-2B, SG-9B, LG3-8B, Amazon-N, etc.) achieved 100% evasion rate, with an overall 100% evasion rate and a minimum human recognition rate of 86%; under the restricted set, the maximum evasion rate reached 100% (minimum human recognition rate 84%), Azure's evasion rate rose from an initial 17% to 99.6%, and GPT-4o's evasion rate reached 100%.
    • Authors' interpretation: Subsequent attack attempts, even when targeting only previously failed samples, still bring improvements, indicating that different typographic configurations exploit complementary moderation weaknesses.

    Adversarial Baseline Comparison Evaluation

    • What was tested: Comparing the evasion rates of traditional TextAttack-based perturbation methods on the same models (Table 5).
    • Results: DeepWordBug, TextBugger, and TextFooler generally achieved low evasion rates on the tested systems (e.g., 5.2%–7.6% on G-2.5-FL, 7.6%–10.0% on GPT-4o, and the highest at 62.3%–62.6% on SG-2B).
    • Authors' interpretation: Traditional word-level perturbation attacks have limited success against modern moderation systems, while HPAA achieves significantly higher evasion rates.

    Other Ablations and Analyses

    • Benign word ratio sensitivity: When retaining 10% benign words, samples overlap with harmful clusters in t-SNE; when retaining 90%, samples move toward benign clusters (Figure 7).
    • Role of style transformation: Merely interleaving benign words achieves an evasion rate of about 70% on PA, which rises to 99% after adding M6-W-Hi typography (Section 5.4.3).
    • Harmful text length extension: For AdvBench texts of 5 to 20 words, evasion rates for PA and Azure are both between 91.9% and 100.0% (Tables 3, 4, 6).
    • Traditional discriminative model evaluation: Models such as BERT and RoBERTa achieve detection rates of 15.0%–20.0% (k=1) and 12.0%–16.0% (k=3) on HED at threshold 0.5 (Table 8).
  5. What are some points that can be further explored?

    The authors note that the study has priming effects and evaluation approximations; the evaluation covers 13 systems and 370 participants.

    Limitations and Future Directions Noted by the Authors

    • Priming Effect Bias: The authors note that the experimental design may introduce a priming effect because participants were pre-informed that the study involved potentially harmful language and were asked to identify it, so their vigilance may be higher than in daily states; therefore, the recognition rate measures performance in an informed and focused state (Section 6.1.1).
    • Participant Compensation Standards: The authors acknowledge that Prolific's $8/hour minimum wage is a baseline standard, lower than the compensation recommended by some academic conferences for studies involving uncomfortable stimuli, and list it as a limitation, suggesting higher compensation in the future (Ethical Considerations).
    • Post-Hoc Mental Health Support: The study did not provide post-hoc mental health follow-up resources beyond the exit mechanism; the authors judge that formal follow-up, though exempt under the very low risk classification, is still marked as a limitation (Ethical Considerations).
    • Evaluation Approximation and Fine-Grained Analysis: The authors note that due to the variability of human perception and the limited scale of user studies, evaluating human-perceptible adversarial texts is inherently challenging; the current evaluation is an approximation of actual deployment, and more fine-grained analysis awaits future work (Appendix F.3).
    • Need for Customized Defense Mechanisms: In the appendix discussion, the authors note that effective defenses require explicitly incorporating transformation rules or invariances into the model; prompt-level mitigation measures are difficult to generalize and require specialized design and engineering implementation (Appendix E).

    Experimental Coverage

    • Coverage of Tested Systems: The evaluation covers 13 mainstream text moderation systems (including commercial APIs from 6 providers and open-source guard models) and 4 pre-trained discriminative models (BERT, RoBERTa, XLM-RoBERTa, ParaDetox classifier).
    • Datasets and Harmful Categories: Harmful samples come from 249 short texts of no more than 10 words screened from AdvBench, covering 5 harmful categories (Hate, Violence, Sexual Content, Self-Harm, Insults); benign texts are taken from five-star reviews from 5 public review datasets.
    • Typographic Configuration Space: A total of 108 full-factorial typographic combinations are defined (3 granularities × 6 placement methods × 6 style transformations), and native formatting support of 5 mainstream platforms (Reddit, X, Discord, Stack Overflow, YouTube) is investigated.
    • User Study Scale: Two rounds of online user studies recruited and completed 370 participants (120 in the first round, 250 in the second round), covering 31 countries.
    • Unreported Information: The paper does not report the full end-to-end response time or billing overhead of attacking online systems; it does not report the effectiveness of attacking long, complex harmful texts (over 20 words).
  6. Summarize the main content of the paper

    It reveals moderation blind spots caused by typographic visual cues and tokenization differences; HPAA achieves near-complete evasion with extremely low query budgets.

    This paper studies content moderation vulnerabilities caused by the differences between human visual perception and the tokenization processing mechanisms of large models.

    • Core problem: Modern online platforms rely on tokenization-based LLM moderation systems, which lack the ability to process typographic cues such as whitespace, emphasis, and spatial arrangement, allowing attackers to construct harmful content that humans can recognize at a glance but models judge as benign.
    • Method design: Proposes the Human-Perceptible Adversarial Attack (HPAA) framework, comprising typographic granularity (word/token/mixed), placement strategies (vertical/diagonal/random), and style transformations (bold/highlight/color/circled characters, etc.), totaling 108 configurations; two rounds of user studies are used to offline screen a subset of configurations with high human recognition rates, and online iterative evasion is performed in a black-box setting with a minimal query budget (1–3 queries).
    • Key experimental results:
      • In evaluations covering 13 mainstream moderation systems (such as GPT-4o, Gemini 2.5 Flash-Lite, Azure AI, Llama-Guard-3), for configurations with a human recognition rate of 92%, a single attack generally reduced detection rates to near 0% (at most no higher than 16.67%).
      • Under a 3-query budget, HPAA's evasion rate reached 100% across the full configuration set (corresponding to a minimum human recognition rate of 86%), and also reached 100% on the set without highlighting restrictions (corresponding to a minimum human recognition rate of 84%).
      • Traditional adversarial attacks (DeepWordBug, TextBugger, TextFooler) achieved an evasion rate of at most only 62.6% on the tested systems, substantially lower than HPAA.
    • Authors' conclusions and implications: The authors believe that current LLM-based moderation architectures have a fundamental typographic blind spot, and that relying solely on prompt engineering or threshold fine-tuning is difficult to defend against effectively; defenders need to explore moderation mechanisms better aligned with human perceptual understanding and explicitly introduce typographic invariance rules.

Related papers

Show 3 more papers
Read originalUSENIX Security 2026