The Good, the Bad and the Ugly: Watermarks, Transferable Attacks and Adversarial Defenses

Grzegorz Gluch, Berkant Turan, Sai Ganesh Nagarajan, Sebastian Pokutta · DOI

Abstract

Researchers have formalized a fundamental "trilemma" in machine learning security: for any given learning task, there must exist either a secure Watermark, a robust Adversarial Defense, or a Transferable Attack. By framing model security as a game-theoretic interaction, this work proves that if you can't protect your model's intellectual property or defend it against noise, it’s likely because the task itself allows for attacks that can fool any possible defender.

Introduction

In machine learning, two security objectives are frequently in tension: Watermarking (embedding a verifiable signature to prove ownership) and Adversarial Robustness (protecting against malicious perturbations). Empirical evidence has long suggested a trade-off where robustness can erase watermarks, and watermarking can introduce vulnerabilities. This paper moves beyond empirical observation to establish a rigorous mathematical foundation for this tension, identifying a third, critical possibility: the Transferable Attack.

The Security Trilemma: A Game-Theoretic Framework

The authors model machine learning security as an interactive protocol between two players: Alice (the Verifier/Attacker) and Bob (the Prover/Defender). This interaction is treated as a zero-sum game where the "value" of the game determines which security property holds.

The three states of the security trilemma: (a) Watermarking, (b) Adversarial Defense, and (c) Transferable Attack.

To ensure generality, models and attackers are represented as families of Boolean circuits. This allows the theory to apply to any algorithm, independent of specific neural network architectures. The trilemma posits that for every learning task, at least one of these three regimes must exist:

  1. Watermarking (The Good): An efficient algorithm computes a classifier $f$ and queries $\mathbf{x}$ such that defenders are unable to find low-error answers $\mathbf{y}$ nor distinguish $\mathbf{x}$ from the data distribution.
  2. Adversarial Defense (The Bad): An efficient algorithm computes a classifier $f$ and a detection bit $b$, such that adversaries are unable to find queries $\mathbf{x}$ that are both indistinguishable from the data and cause $f$ to be incorrect.
  3. Transferable Attack (The Ugly): An efficient algorithm computes queries $\mathbf{x}$ that look indistinguishable from the data distribution but are guaranteed to fool all efficient defenders.

The core contribution is the realization that security isn't just a binary choice. The "Transferable Attack" represents a state where the attacker wins by default because they can produce errors indistinguishable from clean data.

The authors demonstrate that the existence of a Transferable Attack is equivalent to the existence of specific cryptographic primitives. To prove this, they constructed a synthetic "Lines on a Circle" task using Fully Homomorphic Encryption (FHE). In this task, an attacker uses FHE to generate queries that appear as normal data but cause errors in any model lacking the secret encryption key.

Furthermore, the paper utilizes VC-Dimension to categorize tasks. Simple patterns (low VC-dimension) are generally "safe," allowing for robust adversarial defenses and ruling out the "Ugly" transferable attacks.

Results and Implications

The primary result, Theorem 1, proves that for every learning task, at least one of the three trilemma components must exist. This provides a quantitative "rule of thumb" for resource allocation: if an attacker has a computational budget $T$, a defender might require $T^2$ computation to guarantee a defense, highlighting the inherent advantage of attackers in high-complexity tasks.

While the current framework focuses on classification, it sets the stage for future work in generative AI and black-box settings. By establishing these fundamental limits, the research provides a roadmap for understanding when a model can be truly secured and when the nature of the task itself makes defense impossible.

Summary updated

BibTeX
@inproceedings{gluch2025good,
  author = {Grzegorz Gluch and Berkant Turan and Sai Ganesh Nagarajan and Sebastian Pokutta},
  title = {{The Good, the Bad and the Ugly: Watermarks, Transferable Attacks and Adversarial Defenses}},
  booktitle = {WMARK @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=rUs5ryYqZe},
}
Figure