Abstract
This paper introduces "Adversarial Ink," a novel class of adversarial attacks that exploit componentwise backward error to perturb only the foreground (ink) of document-like images. Unlike traditional normwise attacks that introduce visible background noise, Adversarial Ink produces perturbations that mimic natural handwriting variations—such as inconsistent pen pressure or ink blotches—making them highly deceptive to human observers while effectively fooling deep learning models.
Introduction
Most existing adversarial attacks, such as DeepFool or Projected Gradient Descent (PGD), operate under "normwise" constraints. These methods seek the smallest global change to an image to flip its classification. However, in the context of handwritten digits or legal documents, these attacks often result in a "smearing" effect where the pristine background (the paper) becomes noisy or grey. To a human eye, this noise is a clear indicator of digital manipulation.
In real-world scenarios—such as altering a signature on a check or a date on a legal document—an attacker is physically limited to changing the consistency of the ink, not the paper itself. This research addresses this gap by creating attacks that respect the underlying structure of the data, specifically preserving the background of document-like images.
Methodology: From Normwise to Componentwise
The authors bridge the gap between deep learning and classical numerical analysis by applying the concept of backward error. Instead of measuring how much the output changes for a given input (forward error), they determine the smallest input change required to achieve a specific desired output change.
The Componentwise Constraint
The key innovation is the transition from standard normwise perturbations to componentwise perturbations.
- Standard (Normwise) Attacks: These minimize a global norm (like $\ell_2$), allowing every pixel in the image to change. This leads to the characteristic background noise seen in traditional adversarial examples.
- Adversarial Ink (Componentwise) Attacks: The perturbation $\Delta x$ is constrained by the original pixel values: $|\Delta x| \leq \epsilon |x|$. If a pixel value is zero (representing the background), the perturbation must also be zero. This effectively "masks" the background, ensuring the attack only operates on the parts of the image where ink is already present.
Algorithmic Approaches
The paper introduces four primary algorithms to test these concepts:
- Algorithms 1 & 2: Iterative normwise attacks based on existing literature.
- Algorithm 3: A componentwise attack optimizing for the $\ell_\infty$ norm. While effective at fooling models, it tends to create uniform grey blocks within the ink.
- Algorithm 4: A componentwise attack optimizing for the $\ell_2$ norm. This is the primary contribution of the paper, as it distributes perturbations more naturally, mimicking the physical reality of a pen running out of ink or a printer glitch.
Key Insights and Results
The study primarily utilized the MNIST dataset, inverting the greyscale to treat white pixels as "ink" and black as "background." Several key findings emerged:
- Visual Fidelity: Algorithm 4 produces attacks that are virtually indistinguishable from natural handwriting to the naked eye. In contrast, standard attacks like DeepFool create obvious artifacts that would fail a human inspection.
- Condition Numbers as Vulnerability Metrics: The authors demonstrated that "condition numbers" (a staple of numerical analysis) can quantify how sensitive a specific image is to an attack, providing a mathematical basis for model vulnerability.
- Black-Box Viability: These attacks do not require internal access to a model's gradients. Using simple finite differences to approximate the Jacobian matrix proved just as effective, suggesting these attacks are viable in real-world black-box scenarios.
- Model Robustness: While Convolutional Neural Networks (CNNs) showed more robustness than simple Multi-Layer Perceptrons (MLPs), they remained highly vulnerable to componentwise attacks.
Conclusion and Future Work
Adversarial Ink demonstrates that deep learning models are vulnerable even when the background of an image is strictly protected. This highlights a significant security flaw in automated document processing. Future research will focus on automated background detection for complex, colorful images and testing whether these digital patterns remain effective when printed and scanned back into a system.
Summary updated