[Paper Review] Effectiveness of Distillation Attack and Countermeasure on Neural Network Watermarking
This paper demonstrates that knowledge distillation severely undermines existing neural network watermarking techniques by removing watermark-related parameters that are decoupled from the main classification task. To counter this, the authors propose *ingrain*, a robust watermarking method that embeds watermarks directly into the model's main predictions via a regularization loss, achieving strong resistance to distillation while maintaining high accuracy and robustness against other common transformations.
The rise of machine learning as a service and model sharing platforms has raised the need of traitor-tracing the models and proof of authorship. Watermarking technique is the main component of existing methods for protecting copyright of models. In this paper, we show that distillation, a widely used transformation technique, is a quite effective attack to remove watermark embedded by existing algorithms. The fragility is due to the fact that distillation does not retain the watermark embedded in the model that is redundant and independent to the main learning task. We design ingrain in response to the destructive distillation. It regularizes a neural network with an ingrainer model, which contains the watermark, and forces the model to also represent the knowledge of the ingrainer. Our extensive evaluations show that ingrain is more robust to distillation attack and its robustness against other widely used transformation techniques is comparable to existing methods.
Motivation & Objective
- To investigate the vulnerability of existing neural network watermarking techniques to model transformations, particularly knowledge distillation.
- To identify why current watermarking methods fail under distillation, due to the decoupling of watermark-related parameters from the main classification task.
- To design a new watermarking method that is resilient to distillation and other common model transformations.
- To ensure the watermark remains intact while preserving the model’s accuracy and performance on the main task.
Proposed method
- Train a separate 'ingrainer' model on a watermark-carrier dataset that encodes the secret watermark and produces correct outputs.
- Use the loss function of the ingrainer model as a regularization term during the training of the main classification model.
- Jointly optimize the main model to match both ground-truth labels and the ingrainer’s outputs on the same training data.
- Tune the regularization weight to balance watermark robustness and model accuracy.
- Embed watermarks in the same neural pathways used for the main classification task, reducing independence from the primary function.
- Ensure the watermark is recoverable from the main model’s predictions on benign data, even after distillation.
Experimental results
Research questions
- RQ1Can knowledge distillation effectively remove watermarks embedded by existing neural network watermarking techniques?
- RQ2Why do current watermarking methods fail under distillation, despite maintaining model accuracy?
- RQ3How can watermarking be made robust against distillation while preserving the model’s main task performance?
- RQ4Can watermarking be integrated into the main model’s prediction process to increase resilience to model transformations?
Key findings
- Distillation effectively removes watermarks from existing watermarking methods, even with negligible accuracy loss, due to the decoupling of watermark-related parameters from the main classification function.
- Existing watermarking techniques embed watermarks in redundant, independent model components that are discarded during distillation, leading to complete watermark erasure.
- *Ingrain* successfully resists distillation attacks by embedding watermarks in the same model pathways used for the main classification task, preserving the watermark through knowledge distillation.
- The proposed method maintains robustness comparable to existing methods against other common transformations such as pruning and quantization.
- By using the ingrainer’s loss as a regularization term, *ingrain* enables joint training of the classification and watermarking objectives, enhancing resilience.
- The method allows a tunable trade-off between watermark robustness and model accuracy, enabling practical deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.