Adversarial Sample Generation Method for Scene Text Images Based on Up-sampling

Zihao Zeng, Chenxiao Wang, Xiao Yang, Yong ChenResearch Square 2024 · DOI

TL;DR

Researchers have developed a new way to protect privacy in photos by "cloaking" scene text from AI recognition models. By up-sampling images before applying a novel Adaptive Local Search Attack (ALSA), the method generates adversarial perturbations that are virtually invisible to humans but highly effective at fooling state-of-the-art text recognition systems, even in strict black-box scenarios.

What Problem Does This Paper Address?

Scene Text Recognition (STR) is everywhere—from translation apps to automated surveillance. While convenient, it poses a massive privacy risk: sensitive data like license plates, home addresses, and ID numbers can be automatically harvested from images uploaded to the web.

To fight back, researchers use "adversarial examples"—images modified with tiny, intentional errors that cause AI models to fail. However, existing STR protection methods face a "Goldilocks" problem. If the perturbations are strong enough to fool a model, they are often ugly and noticeable to the human eye. If they are subtle enough to be invisible, they often fail to protect the data when the target model is unknown (a "black-box" scenario). This paper aims to achieve both: high-strength protection and high-fidelity visual quality.

Methods

The authors introduce a pipeline that leverages image resolution as a shield. The process consists of three main stages:

  1. Up-sampling & Information Hiding: The original image is scaled up (using bicubic interpolation). This increases the "pixel payload," providing more "room" to hide adversarial noise. During this stage, they also embed a "secret message" (like a digital watermark) that allows the original owner to reconstruct the data if needed.
  2. Adaptive Local Search Attack (ALSA): This is the core algorithm. Unlike traditional attacks that might use a fixed amount of noise, ALSA is "adaptive." It iteratively adjusts the perturbation magnitude based on visual quality metrics (PSNR, SSIM, and MSE). It also incorporates Perceptual Loss to ensure the changes align with how humans perceive images, rather than just raw pixel differences.
  3. Down-sampling: Finally, the high-resolution adversarial image is scaled back down to the standard input size for STR models (typically 32x100). This "shrinking" process further hides the perturbations, making them even more subtle to the human eye while maintaining their "poisonous" effect on the AI.

Datasets

The method was evaluated using four standard benchmark datasets for scene text recognition:

  • IC13 & IC15: Images from real-world scenes, often blurry or low-resolution.
  • IIIT5K: A large collection of images harvested from Google Image Search.
  • CUTE: Specifically designed for recognizing curved or irregular text.

The authors used STAR-Net as their surrogate model (the model used to generate the attack) and tested transferability against other architectures like CRNN, Rosetta, and TRBA.

Key Insights and Ideas

  • Resolution as a Buffer: The most clever "aha moment" is using up-sampling to increase the attack's capacity. By spreading the adversarial noise across more pixels in a high-res space and then compressing it, the noise becomes "integrated" into the image texture in a way that is much harder for humans to spot than direct pixel manipulation.
  • Beyond Gradients: Because many real-world OCR systems (like Baidu OCR) are "black boxes" where we can't see the internal math, the authors used a local search approach. By adding random noise and iteratively checking the result, they created an attack that doesn't need to know the target's internal structure.
  • Dual-Purpose Protection: The method doesn't just break OCR; it also acts as a copyright tool. Because secret information is embedded during the up-sampling phase, the image carries a hidden "ID" that survives the adversarial process.

Key Results

The proposed method significantly outperformed existing state-of-the-art (SOTA) techniques:

  • Black-Box Success: When tested against the commercial Baidu OCR engine, the method achieved a 62.5% Protection Success Rate (PSR). This is a massive jump over previous methods like Xu et al. (4%) and AD2E (48.5%).
  • Visual Fidelity: In human perception tests, the method's images were rated as "Good." Quantitatively, it maintained a PSNR of ~40.62 and an SSIM of 0.98, meaning the adversarial image is nearly identical to the original. In contrast, older methods often resulted in "Poor" ratings with visible artifacts.
  • Edit Distance: The average Edit Distance (how many characters the AI gets wrong) was 2.33, meaning the AI isn't just missing one letter; it's seeing a completely different, useless string of text.

Limitations and Future Work

While the paper demonstrates strong results, a few areas remain for exploration:

  • Computational Cost: Up-sampling and iterative local searches are more computationally expensive than simple one-step attacks. This might limit the method's use for real-time video protection.
  • Reconstruction Quality: While the paper mentions that secret information can be extracted "without loss," it does not provide a detailed quantitative analysis of the reconstruction quality of the original text for the owner.
  • Adaptive Defenses: As is common in the "arms race" of adversarial ML, future work will likely need to address how this method fares against "adversarial training" or other defensive denoising techniques.

Summary updated

Abstract

<title>Abstract</title> Scene Text Recognition (STR) has significantly enhanced the efficiency of information acquisition and interaction in natural environments. However, it also introduces potential security risks, such as the unauthorized recognition and extraction of sensitive textual information from the environment, including personal identification numbers, license plates, and other confidential data. To address privacy protection in scene text, recent research has proposed using minimal pixel perturbations to safeguard textual information, making the content observable but difficult to extract accurately. However, such perturbation attacks are easily noticeable to the human eye, allowing adversaries to counteract them with defensive measures such as filtering small perturbations. Existing methods fail to simultaneously ensure high visual quality and make the perturbation attacks imperceptible. In this study, we propose a novel scene text adversarial sample generation method incorporating up-sampling. This method achieves a high attack success rate while increasing the payload applied to the image, preserving the perturbed image quality, and improving the stealthiness of the adversarial samples. To further enhance the quality of the perturbed images, we introduce the Adaptive Local Search Attack (ALSA), which utilizes adaptive perturbation based on visual quality and perceptual loss to ensure that the perturbed image remains as similar as possible to the original image in human vision, which can further enhance the stealthiness of adversarial samples and make perturbation attacks difficult to detect. Our experimental results show that the proposed method maintains high visual quality while achieving a better protection success rate across various text recognition models compared to existing methods.
BibTeX
@inproceedings{zeng2024adversarial,
  author = {Zihao Zeng and Chenxiao Wang and Xiao Yang and Yong Chen},
  title = {{Adversarial Sample Generation Method for Scene Text Images Based on Up-sampling}},
  booktitle = {Research Square},
  year = {2024},
  doi = {10.21203/rs.3.rs-5287761/v1},
}
Figure