Skip to main content
QUICK REVIEW

[Paper Review] Attacking Optical Character Recognition (OCR) Systems with Adversarial Watermarks

Lu Chen, Wei Xu|arXiv (Cornell University)|Feb 8, 2020
Adversarial Robustness in Machine LearningComputer Science31 references17 citations
TL;DR

This paper proposes the WATERMARK attack, a novel adversarial watermark method that generates natural-looking perturbations disguised as watermarks to evade human detection while successfully manipulating modern end-to-end OCR systems. By confining perturbations to localized regions resembling real watermarks, the method achieves high attack success rates (up to 56.33% ASR) on Chinese OCR models, including transferability to black-box systems like Tesseract OCR, while preserving image readability.

ABSTRACT

Optical character recognition (OCR) is widely applied in real applications serving as a key preprocessing tool. The adoption of deep neural network (DNN) in OCR results in the vulnerability against adversarial examples which are crafted to mislead the output of the threat model. Different from vanilla colorful images, images of printed text have clear backgrounds usually. However, adversarial examples generated by most of the existing adversarial attacks are unnatural and pollute the background severely. To address this issue, we propose a watermark attack method to produce natural distortion that is in the disguise of watermarks and evade human eyes' detection. Experimental results show that watermark attacks can yield a set of natural adversarial examples attached with watermarks and attain similar attack performance to the state-of-the-art methods in different attack scenarios.

Motivation & Objective

  • To address the challenge of generating natural-looking adversarial examples for OCR systems that avoid detection by human observers.
  • To overcome the limitations of traditional adversarial attacks, which pollute clean backgrounds in printed text images with unnatural noise.
  • To develop a targeted, white-box attack method effective on end-to-end sequence-based OCR models using watermark-like perturbations.
  • To evaluate the robustness of the attack against common preprocessing defenses and transferability to black-box OCR models.
  • To demonstrate real-world feasibility by successfully altering financial report and ID number recognition results.

Proposed method

  • The method generates adversarial perturbations confined within a small, localized region resembling a watermark, rather than spreading noise across the entire image.
  • Perturbations are optimized to minimize L2 norm while maximizing the model's misclassification rate toward a targeted character sequence.
  • The attack operates in a white-box setting, using full knowledge of the DNN architecture and parameters of the target OCR model (DenseNet + CTC for Chinese).
  • Watermark patterns are designed to mimic real document watermarks or printing defects, ensuring visual naturalness and human-invisible perturbations.
  • The approach leverages the sequential nature of OCR by modeling context dependencies, ensuring perturbations affect multiple characters coherently.
  • Transferability is evaluated by testing generated adversarial examples on the off-the-shelf Tesseract OCR model in a black-box setting.

Experimental results

Research questions

  • RQ1Can adversarial perturbations be made visually natural and imperceptible to humans while still effectively manipulating OCR outputs?
  • RQ2How effective is the watermark-based attack in achieving high targeted attack success rates on end-to-end OCR models with clean backgrounds?
  • RQ3To what extent do adversarial examples generated by this method transfer to black-box OCR systems like Tesseract?
  • RQ4How robust are these adversarial examples against common image preprocessing defenses such as blurring, noise injection, and image compression?
  • RQ5Can the attack be applied effectively in real-world scenarios involving complex documents with meaningful semantic content?

Key findings

  • The WATERMARK attack achieved a targeted attack success rate (ASR) of up to 56.33% on the Densenet+CTC model, with ASR* of 58.86% under standard preprocessing.
  • Adversarial examples generated by the WATERMARK method successfully transferred to the black-box Tesseract OCR model, achieving an ASR of 47.47%.
  • Median blur with kernel size 3 significantly degraded OCR performance, but also blurred text beyond recognition, indicating a trade-off between defense and usability.
  • Salt-and-pepper noise reduced ASR* to 0% but increased standard ASR to nearly 100%, showing it harms image quality more than it protects against attacks.
  • Inpainting techniques used to remove watermarks failed to preserve text readability, as they removed significant portions of the text along with the watermark.
  • The method successfully altered revenue numbers in a real annual report of a Chinese company, demonstrating practical feasibility and semantic-level manipulation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.