Seeing but Not Detecting: Privacy-Preserving Scene Text Attack via Hybrid Adversarial Policy Learning

Feiran Li, Jiahao Lyu, Ke Jiang, Yu Zhou, Jinqiao ShiNeurIPS 2026

TL;DR

Automated vision systems routinely scrape text from our photos—street signs, license plates, home addresses—creating a quiet, pervasive privacy leak. Instead of scrambling how machines read characters, AR-Attacker uses reinforcement learning to add invisible pixel tweaks that blind machines to the presence of text altogether. The result is an image that looks completely normal to your tired eyes, yet registers as pure, text-free background to an OCR pipeline.

What Problem Does This Paper Address?

Modern Optical Character Recognition (OCR) is a two-step dance: Scene Text Detection (STD) draws bounding boxes around where the text is, and Scene Text Recognition (STR) reads the letters inside those boxes.

Historically, researchers trying to protect visual privacy with adversarial perturbations have targeted the second step (STR), nudging pixels so "Main St" misreads as "M4in 5t". The catch? The text is still localized. A human—or a slightly clever language model—can easily guess the true meaning from context, and nonsensical text screams "someone tampered with this image!" Furthermore, black-box STR attacks usually need character-level confidence scores, which commercial APIs rarely expose.

To truly protect privacy at the source, you have to blind the detector (STD) so zero bounding boxes are drawn, halting the entire OCR pipeline. Doing this in a realistic black-box setting (where you only get bounding-box outputs from an unknown model) is tough: text occupies only a tiny fraction of an image, so randomly poking pixels to see what breaks the detector burns through thousands of API queries and usually ruins image quality with ugly, high-contrast noise.

Methods

The authors frame this black-box pixel-poking game as a Markov Decision Process (MDP) and train an agent using standard Proximal Policy Optimization (PPO)—a reliable reinforcement learning algorithm. What makes AR-Attacker shine is how it structures where and how the agent acts:

Figure 2: The Overall Pipeline of AR-Attacker. The process consists of three main stages: 1) A clean image is first processed by an attention mechanism to identify salient text regions; 2) A hybrid policy network iteratively selects pixels and perturbation magnitudes; 3) The victim model provides feedback to drive a progress-aware state transition (P) and reward calculation for PPO policy updates. The process repeats until no text boxes are detected or the step limit is reached.
  • Attention-Guided Action Space (New): Instead of letting the RL agent blindly search the entire image, the authors pass the clean image through a frozen, off-the-shelf surrogate detector using Grad-CAM. Thresholding this attention map creates a sparse binary mask highlighting only salient text regions, drastically pruning the search space.
  • Discrete-Continuous Hybrid Actions (New): Conventional RL struggles when asked to simultaneously pick which discrete pixels to change out of a fragmented mask and how much continuous noise to add. AR-Attacker flattens the candidate text pixels into an ordered 1D list. The policy outputs continuous values that are squashed via a sigmoid function and rounded to index specific pixels, alongside tanh-bounded values that set the exact perturbation intensity.
  • Progress-Aware State Transitions: At each step, the agent queries the victim detector. A state change is only accepted—and rewarded—if it strictly reduces either the total number of detected bounding boxes or their aggregated confidence scores.
Figure 3: Visualization of the attack process by AR-Attacker at different time steps. To make the adversarial perturbations more visually apparent, we enhance the contrast of the perturbation maps.

Datasets

No new datasets were introduced; instead, the authors evaluated their framework across three established benchmarks chosen to test different geometries and languages:

  • ICDAR 2013: Standard horizontal English scene text.
  • Total-Text: Curved and multi-oriented text scenes.
  • ReCTS: Street-view Chinese text (evaluating on 1,000 randomly sampled test images) to test complex character structures.

Key Insights and Ideas

  • Hiding beats scrambling: Defining a "Strict Success Rate" (SSR)—where an attack only counts if zero bounding boxes are returned—shifts text privacy from inducing typos to achieving true machine undetectability.
  • Imperfect priors are still great priors: You might worry that using a surrogate model reintroduces transferability headaches. Remarkably, because the surrogate only narrows the RL agent's search playground rather than generating the final attack, architecture mismatches don't matter. Even a lightweight CNN surrogate (CRAFT) effectively guides attacks against a heavy Transformer-based victim (DPText-DETR).
  • Targeted sparsity preserves fidelity: Because perturbations are confined strictly to high-leverage text pixels and guided by online feedback, the noise blends into the complex edges of characters rather than muddying smooth backgrounds.

Key Results

Tested across four diverse detector architectures (regression-, segmentation-, and Transformer-based), AR-Attacker delivers strong across-the-board improvements:

  • Superior Suppression: Achieves over 70% Text Removal Rate (TR) on average—beating prior transfer-based and query-based baselines by roughly 30% to 40%. On Strict Success Rate (zero boxes left), it consistently tops 50%+, whereas transfer baselines frequently languish below 15%.
  • Query & Time Efficiency: Cuts average black-box queries to under 900 (an ~40% reduction compared to the state-of-the-art RL baseline RFPAR, and down from 3,500+ for evolutionary methods). It takes about 2.62 minutes per image—roughly a 2× speedup over RFPAR and 10× over traditional black-box optimizers.
  • Visual Imperceptibility: Maintains exceptional image quality with PSNR consistently > 46 dB (15–20 dB cleaner than baselines) and human Mean Opinion Scores (MOS) exceeding 4.4 out of 5.
  • Defense Resilience: Even after passing perturbed images through JPEG compression ($q=70$), AR-Attacker retains a 52% text removal rate, outperforming undefended baselines.
Visual comparison showing clean perturbation maps and artifact-free images from AR-Attacker compared to noisy baselines.

Limitations and Future Work

  • Optimization Latency: Requiring ~700–900 queries and ~2.6 minutes per image makes AR-Attacker well-suited as an offline privacy filter before uploading photos to social media or cloud storage, but too slow for real-time video streams.
  • Potential Dual-Use & Defenses: While designed defensively, the authors note that suppressing text detection could be misused to evade legitimate security or monitoring systems. They highlight adversarial training—using frameworks like AR-Attacker to expose detector blind spots—as a promising direction for building more robust STD models.

Summary updated

Abstract

Scene text encodes high-density semantic information, raising privacy risks for automated vision systems. Existing privacy-preserving adversarial methods mainly target Scene Text Recognition (STR) by inducing character-level misrecognition, yet text regions remain detectable, enabling manual inspection or downstream recovery. We argue that stronger privacy requires suppressing Scene Text Detection (STD) during localization, hiding text as background to bypass subsequent OCR pipelines. To this end, we propose **AR-Attacker** (**A**ttention-guided **R**einforcement learning text **Attacker**), a black-box attack framework that generates sparse, visually imperceptible perturbations to effectively suppress STD outputs. We formulate the attack as a Markov Decision Process (MDP) and design an attention-guided action space, which leverages a frozen surrogate model to focus perturbations on salient text regions. Furthermore, AR-Attacker employs a discrete-continuous hybrid policy optimized with Proximal Policy Optimization (PPO), which jointly selects perturbation locations and magnitudes. Empirical results show that AR-Attacker surpasses state-of-the-art baselines by 30% in text removal rate while simultaneously reducing query counts by 40%. Remarkably, the framework maintains high visual fidelity ($\textit{PSNR} > 45$ dB), advancing the "visible to humans, invisible to machines" privacy paradigm through a robust RL-based approach.
BibTeX
@inproceedings{li2026seeing,
  author = {Feiran Li and Jiahao Lyu and Ke Jiang and Yu ZHOU and Jinqiao Shi},
  title = {{Seeing but Not Detecting: Privacy-Preserving Scene Text Attack via Hybrid Adversarial Policy Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=4cYXGvJG2Y},
}
Figure