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

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

TL;DR

By framing model watermarking and adversarial defense as an interactive zero-sum game, this paper proves a fundamental trichotomy: every learning task admits either an unremovable Watermark, an Adversarial Defense, or a Transferable Attack. The authors show that transferable attacks are inherently tied to cryptography, requiring computational hardness (such as Fully Homomorphic Encryption) to exist at all.

What Problem Does This Paper Address?

Model creators want to protect their intellectual property by embedding backdoor watermarks—hidden trigger behaviors that verify model ownership through black-box queries. Conversely, security engineers want adversarially robust defenses that prevent models from being fooled by natural-looking inputs.

Intuitively, these two goals stand in direct opposition: an effective adversarial defense ought to smooth away or detect backdoor triggers, while an unremovable watermark relies on a model remaining sensitive to hidden inputs. Previous literature observed this tension empirically, assuming that if one fails, the other should be achievable. This paper asks: Are watermarks and adversarial defenses truly two sides of the same coin, or is this map of the security landscape incomplete?

Methods

The authors develop a theoretical framework using computational complexity and game theory:

  • Circuit-Complexity Learning: Instead of standard polynomial-time PAC learning, the authors model learners, attackers, and defenders as Boolean circuit families with explicit size bounds ($S_A(n)$ and $S_B(n)$). This allows granular analysis of computational asymmetries between the attacker (Alice) and defender (Bob).
  • Zero-Sum Prover-Verifier Game: They construct a two-player zero-sum game between Alice (attempting to watermark or attack) and Bob (attempting to defend or strip watermarks). Using the Min-Max Theorem and the Lipton–Young approximation theorem for large games, they analyze the value of the game at its Nash equilibrium.
  • Cryptographic Construction: They employ Fully Homomorphic Encryption (FHE) to construct a transferable attack against all computationally bounded defenders.
  • Transductive Learning with Rejections: To show when adversarial defenses exist, they adapt the Rejectron algorithm (Goldwasser et al., 2020) to classification settings without abstention.

Datasets

Because this is a purely theoretical work, no standard empirical datasets (e.g., ImageNet, CIFAR) were used.

Instead, the paper introduces formal, synthetic concept classes for proof constructions:

  • Lines on a Circle Learning Task ($\mathbb{L}^\circ$): The input space consists of vertices of a regular $2^n$-polygon on a unit circle, with target labels determined by a 2D halfspace through the origin.
  • Cryptography-Augmented Task ($\mathbb{L}^{\text{crypto}}$): Samples from $\mathbb{L}^\circ$ are presented half in the clear and half under FHE encryption, preventing defenders from locating the decision boundary in the encrypted space.

Key Insights and Ideas

  • The Trichotomy Theorem: Watermarks and adversarial defenses do not form a strict duality. If a task admits neither an unremovable watermark nor a robust defense, a third phenomenon emerges: Transferable Attacks (attacks that fool all efficient defenders while remaining indistinguishable from normal data).
  • Transferable Attacks Require Cryptography: The authors prove that the existence of a transferable attack implies the existence of EFID pairs (ensembles of distributions that are Efficiently samplable, statistically Far, and computationally Indistinguishable). Thus, transferable attacks cannot exist on mathematically simple tasks—they require computational complexity.
  • Simple Tasks Favor Defense: For hypothesis classes of bounded VC-dimension, adversarial defenses exist even against computationally unbounded attackers ($S_A = \infty$). This formally rules out transferable attacks in bounded VC regimes.
  • Coexistence Under Resource Asymmetry: A watermark and an adversarial defense can actually coexist on the same task when Bob is restricted to smaller circuit budgets than Alice.

Key Results

  • The Main Trichotomy: For any task learnable with circuit complexity $S(n)$, at least one of the following exists with frequency at least $1/3$ over input size $n$:
  • $\text{WATERMARK}\left(\mathbb{L}, \epsilon, S(n), o\left(\sqrt{S(n)/\log S(n)}\right)\right)$
  • $\text{DEFENSE}\left(\mathbb{L}, \epsilon, o\left(\sqrt{S(n)/\log S(n)}\right), O(S(n))\right)$
  • $\text{TRANSFATTACK}\left(\mathbb{L}, \epsilon, S(n), S(n)\right)$
  • Provable Transferable Attack: Using leveled FHE, the authors construct an explicit task where Alice with circuit size $S_A \approx 1/\epsilon^{1.3}$ crafts an undetectable attack that fools any defender Bob with circuit size $S_B = \Omega(1/\epsilon^2)$.
  • Unconditional Defenses for Bounded VC: Any hypothesis class with VC-dimension bounded by $p(n)$ admits an adversarial defense against arbitrary attackers ($S_A = \infty$) using query budget $q = \text{poly}(n)/\epsilon^3$ and defender size $S_B = \text{poly}(n/\epsilon)$.

Limitations and Future Work

  • Restricted to Classification: The primary results apply to classification with fixed ground-truth distributions. They do not automatically extend to generative models (LLMs, diffusion models), where generation and verification are decoupled (generating good output is often harder than checking it).
  • Frequency vs. Asymptotic Guarantees: The main theorem proves the existence of at least one regime with asymptotic frequency $\ge 1/3$ over parameter $n$, rather than holding for every individual $n \ge n_0$.
  • Sample Complexity: The analysis focuses strictly on circuit gate complexity, treating it as an upper bound on sample complexity rather than deriving tight, explicit sample bounds.
  • Cryptographic Independence: The EFID pairs implied by transferable attacks require oracle sample access to the learning task, meaning standard reductions from EFID pairs to Pseudorandom Generators (PRGs) do not directly follow without extra assumptions.

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