Pith. sign in

REVIEW 1 cited by

Exploring Gradient-Guided Masked Language Model to Detect Textual Adversarial Attacks

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2504.08798 v1 pith:WBKMFDVL submitted 2025-04-08 cs.CL cs.AIcs.LG

Exploring Gradient-Guided Masked Language Model to Detect Textual Adversarial Attacks

classification cs.CL cs.AIcs.LG
keywords languageadversarialdetectionmaskedmanifoldmlmdnormaltextual
verification ladder T0 review T1 audit T2 compute T3 formal T4 reserved
0 comments
Share X Bluesky LinkedIn Reddit HN
read the original abstract

Textual adversarial examples pose serious threats to the reliability of natural language processing systems. Recent studies suggest that adversarial examples tend to deviate from the underlying manifold of normal texts, whereas pre-trained masked language models can approximate the manifold of normal data. These findings inspire the exploration of masked language models for detecting textual adversarial attacks. We first introduce Masked Language Model-based Detection (MLMD), leveraging the mask and unmask operations of the masked language modeling (MLM) objective to induce the difference in manifold changes between normal and adversarial texts. Although MLMD achieves competitive detection performance, its exhaustive one-by-one masking strategy introduces significant computational overhead. Our posterior analysis reveals that a significant number of non-keywords in the input are not important for detection but consume resources. Building on this, we introduce Gradient-guided MLMD (GradMLMD), which leverages gradient information to identify and skip non-keywords during detection, significantly reducing resource consumption without compromising detection performance.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Character-Level Perturbations Disrupt LLM Watermarks

    cs.CR 2025-09 conditional novelty 7.0

    Character-level perturbations split tokens and disrupt multiple watermark entries at once, enabling low-budget watermark removal, enhanced by a genetic algorithm guided by a trained reference detector.