Fraternal Twins: Unifying Attacks on Machine Learning and Digital Watermarking

Erwin Quiring, Daniel Arp, Konrad RieckarXiv 2017

Introduction

Machine learning (ML) and digital watermarking (DW) have historically operated as distinct research silos. While ML researchers focus on the robustness of classifiers against adversarial perturbations, the watermarking community has spent decades securing hidden signals within media against removal. This paper reveals that these two fields are "fraternal twins"—solving fundamentally identical mathematical problems under different terminologies. By unifying these domains, the authors demonstrate how established techniques from one field can provide robust solutions for the other.

The Conceptual Bridge: Evasion vs. Oracle Attacks

The core contribution of this work is a unified notation mapping ML concepts directly onto DW. An evasion attack in ML, where an adversary subtly modifies an input to change a classifier's output, is functionally equivalent to an oracle attack in DW, where an attacker modifies an image to remove a watermark. Both are optimization problems aimed at finding the minimal perturbation $t$ to an input $x$ such that the decision boundary of a function $f_w(x+t)$ is crossed.

Figure 1: Comparison of a target image with a watermark, an evasion attack misclassifying the digit, and an oracle attack breaking the watermark.

Similarly, model extraction (stealing a proprietary model via API queries) mirrors watermark estimation (reverse-engineering a secret marking pattern). In both cases, the adversary uses black-box queries to reconstruct a hidden internal state. The paper argues that because these fields have not communicated, researchers are frequently reinventing the wheel.

Methodology: Cross-Pollinating Defenses

To demonstrate the power of this unification, the authors present two cross-disciplinary case studies:

  1. ML to DW: 1.5-Class Classification. Standard watermarking often relies on simple binary detection. By applying "1.5-class classification"—a hybrid of 2-class discrimination and 1-class anomaly detection—defenders can restrict the "valid" input space. This forces attackers to stay within a "plausible" region of the media space, making it significantly harder to find the watermark's boundary without introducing visible artifacts that destroy the image's utility.
Figure 5: The standard digital watermarking pipeline, showing the original image, the noise-like watermark, and the final target image.
  1. DW to ML: Security Margins. Borrowed from stateful analysis in watermarking, this technique protects decision trees by monitoring the proximity of queries to decision boundaries. By detecting the "probing" patterns characteristic of model-stealing attacks (which often resemble binary searches), the system can block malicious users before they gain enough information to reconstruct the model.

Experimental Evaluation

The researchers evaluated these defenses using the Dresden Image Database for watermarking and five standard tabular datasets (Iris, Carseats, College, Orange Juice, and Wine Quality) for ML model-stealing scenarios.

  • Hardening Watermarks: The 1.5-class defense successfully thwarted the state-of-the-art Blind Newton Sensitivity Attack. Attackers were forced to degrade image quality significantly (PSNR dropped from ~35dB to ~15dB) to even attempt removal, and in many cases, the watermark remained intact.
  • Stopping Model Thieves: The "Security Margin" defense effectively stopped tree-extraction algorithms. On the Iris dataset, the attack was detected and blocked after just 38 queries, limiting model reconstruction to 9%. Without this defense, the model was 100% compromised in 108 queries.

Conclusion and Future Work

The unification of ML and DW reveals that many "new" problems in adversarial ML have existing counterparts in the watermarking literature. While stateful defenses like security margins remain vulnerable to "cover queries" (interspersing malicious probes with normal ones to hide intent), this framework provides a roadmap for future research. Future work will investigate applying these unified concepts to deep learning, where decision boundaries are significantly more complex and non-linear.

Summary updated

Abstract

Machine learning is increasingly used in security-critical applications, such as autonomous driving, face recognition and malware detection. Most learning methods, however, have not been designed with security in mind and thus are vulnerable to different types of attacks. This problem has motivated the research field of adversarial machine learning that is concerned with attacking and defending learning methods. Concurrently, a different line of research has tackled a very similar problem: In digital watermarking information are embedded in a signal in the presence of an adversary. As a consequence, this research field has also extensively studied techniques for attacking and defending watermarking methods. The two research communities have worked in parallel so far, unnoticeably developing similar attack and defense strategies. This paper is a first effort to bring these communities together. To this end, we present a unified notation of black-box attacks against machine learning and watermarking that reveals the similarity of both settings. To demonstrate the efficacy of this unified view, we apply concepts from watermarking to machine learning and vice versa. We show that countermeasures from watermarking can mitigate recent model-extraction attacks and, similarly, that techniques for hardening machine learning can fend off oracle attacks against watermarks. Our work provides a conceptual link between two research fields and thereby opens novel directions for improving the security of both, machine learning and digital watermarking.
BibTeX
@misc{quiring2017fraternal,
  author = {Erwin Quiring and Daniel Arp and Konrad Rieck},
  title = {{Fraternal Twins: Unifying Attacks on Machine Learning and Digital Watermarking}},
  year = {2017},
  eprint = {1703.05561},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1703.05561},
}
Figure