NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MIRA: Cracking Black-box Watermarking on Deep Neural Networks via Model Inversion-based Removal Attacks

Yifan Lu, Wenxuan Li, Mi Zhang, Xudong Pan, Min YangarXiv 2023 · OpenReview

Abstract

To protect the intellectual property of well-trained deep neural networks (DNNs), black-box DNN watermarks, which are embedded into the prediction behavior of DNN models on a set of specially-crafted samples, have gained increasing popularity in both academy and industry. Watermark robustness is usually implemented against attackers who steal the protected model and obfuscate its parameters for watermark removal. In this paper, we propose a novel Model Inversion-based Removal Attack (MIRA), which is watermark-agnostic and effective against most mainstream black-box DNN watermarking schemes. In general, our attack pipeline exploits the internals of the protected model to recover and unlearn the watermark message. We further design target class detection and recovered sample splitting algorithms to reduce the utility loss caused by MIRA and achieve data-free watermark removal on half of the watermarking schemes. We conduct comprehensive evaluation of MIRA against ten mainstream black-box watermarks on three benchmark datasets and DNN architectures. Compared with six baseline removal attacks, MIRA achieves strong watermark removal effects on the covered watermarks, preserving at least 90% of the stolen model utility, under more relaxed or even no assumptions on the dataset availability.

Introduction

Deep Neural Networks (DNNs) are expensive to train, making them valuable intellectual property. To protect these assets, developers often employ black-box watermarking. This technique involves training a model to output a specific, "incorrect" label when presented with a secret "trigger" image (e.g., a specific noise pattern or logo). If a model is stolen, the owner can prove ownership by demonstrating that the model still reacts to these secret triggers. However, existing removal attacks often suffer from high utility loss, require prior knowledge of the watermark, or depend heavily on the availability of original training data.

The MIRA Attack Framework

The proposed Model Inversion-based Removal Attack (MIRA), also referred to as Dehydra, introduces a two-stage pipeline designed to be watermark-agnostic and data-efficient:

  1. Watermark Recovering: Instead of requiring the original trigger images, MIRA utilizes model inversion. By analyzing the model's internal parameters—specifically the Batch Normalization (BN) layers—it reverse-engineers "proxy" samples that represent what the model has memorized as watermarks.
  2. Watermark Unlearning: Once these proxy watermark samples are recovered, the attacker fine-tunes the model to unlearn them, forcing the model to forget the association between the trigger and the target class.
The MIRA (Dehydra) pipeline, illustrating the two-stage process of watermark recovering and unlearning, including improved target class detection and sample splitting.

Technical Innovations

To maintain model utility while effectively removing watermarks, MIRA incorporates two advanced mechanisms:

  • Target Class Detection: This is based on the discovery of Watermark Smoothness Discrepancy. The model's loss landscape is significantly smoother for the class containing the watermark. MIRA uses this mathematical fingerprint to automatically identify the watermark target class without prior knowledge.
  • Recovered Sample Splitting: Model inversion can inadvertently recover features of "clean" data. MIRA employs a neuron-level importance criterion to separate "proxy normal data" from "proxy watermark data," allowing the attack to preserve original accuracy while specifically targeting the watermark.

Key Insights and Results

The core vulnerability exploited by MIRA is the over-parameterization of DNNs. Models tend to "over-memorize" watermark data, leaving distinct footprints in internal statistics. This allows for effective reconstruction even in data-limited or data-free settings.

Empirical evidence for MIRA: (a) Heatmap of smoothness discrepancy used for target class detection; (b) t-SNE visualization showing the clustering of recovered data relative to actual watermark data.

Comprehensive evaluations against ten mainstream watermarking schemes (including IBM, EWE, and Adi) across MNIST, CIFAR-10, and CIFAR-100 datasets demonstrate MIRA's superiority. In almost all cases, the "cleansed" model preserved at least 90% of its original accuracy. Furthermore, MIRA remained effective even when the attacker had access to less than 2% of the training set, outperforming six baseline removal attacks in consistency and utility preservation. These results highlight an urgent need for more robust IP protection techniques in the AI industry.

Summary updated

BibTeX
@misc{lu2023mira,
  author = {Yifan Lu and Wenxuan Li and Mi Zhang and Xudong Pan and Min Yang},
  title = {{MIRA: Cracking Black-box Watermarking on Deep Neural Networks via Model Inversion-based Removal Attacks}},
  year = {2023},
  eprint = {2309.03466},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.03466},
}
Figure