Skip to main content
QUICK REVIEW

[Paper Review] SSLGuard: A Watermarking Scheme for Self-supervised Learning Pre-trained Encoders

Tianshuo Cong, Xinlei He|arXiv (Cornell University)|Jan 27, 2022
Adversarial Robustness in Machine LearningComputer Science8 citations
TL;DR

SSLGuard is the first watermarking scheme for self-supervised learning (SSL) pre-trained encoders, injecting a secret watermark into the encoder's representation space using a trigger pattern and shadow training to preserve robustness. It effectively resists model stealing and watermark removal attacks while maintaining high accuracy and reliable ownership verification.

ABSTRACT

Self-supervised learning is an emerging machine learning paradigm. Compared to supervised learning which leverages high-quality labeled datasets, self-supervised learning relies on unlabeled datasets to pre-train powerful encoders which can then be treated as feature extractors for various downstream tasks. The huge amount of data and computational resources consumption makes the encoders themselves become the valuable intellectual property of the model owner. Recent research has shown that the machine learning model's copyright is threatened by model stealing attacks, which aim to train a surrogate model to mimic the behavior of a given model. We empirically show that pre-trained encoders are highly vulnerable to model stealing attacks. However, most of the current efforts of copyright protection algorithms such as watermarking concentrate on classifiers. Meanwhile, the intrinsic challenges of pre-trained encoder's copyright protection remain largely unstudied. We fill the gap by proposing SSLGuard, the first watermarking scheme for pre-trained encoders. Given a clean pre-trained encoder, SSLGuard injects a watermark into it and outputs a watermarked version. The shadow training technique is also applied to preserve the watermark under potential model stealing attacks. Our extensive evaluation shows that SSLGuard is effective in watermark injection and verification, and it is robust against model stealing and other watermark removal attacks such as input noising, output perturbing, overwriting, model pruning, and fine-tuning.

Motivation & Objective

  • To address the lack of copyright protection mechanisms for self-supervised learning (SSL) pre-trained encoders, which are increasingly valuable intellectual property.
  • To quantify the threat of model stealing attacks against SSL encoders, showing they are highly vulnerable due to rich, generalizable embeddings.
  • To design a watermarking scheme that works without task-specific labels or fixed downstream tasks, suitable for flexible, multi-purpose SSL encoders.
  • To ensure watermark robustness against model stealing, input noising, output perturbation, overwriting, pruning, and fine-tuning attacks.
  • To enable reliable ownership verification through a black-box watermark extraction mechanism.

Proposed method

  • Injects a watermark into a pre-trained SSL encoder by modifying the representation space using a secret trigger vector and a learnable projection head.
  • Employs a shadow training technique where a surrogate model is trained on the same data distribution to preserve watermark resilience during model stealing.
  • Uses a dual-head architecture: one for standard SSL pre-training and one for watermark injection, ensuring minimal performance degradation.
  • Applies a differentiable loss function that aligns the watermark pattern with the encoder’s output under the trigger, enabling end-to-end training.
  • Employs a verification protocol that extracts the watermark from a suspect model using the same trigger and secret key, enabling ownership proof.
  • Validates robustness through adversarial evaluations under various attack scenarios, including black-box model stealing and data poisoning.

Experimental results

Research questions

  • RQ1How vulnerable are SSL pre-trained encoders to model stealing attacks, and what factors make them susceptible?
  • RQ2Can a watermarking scheme be designed for SSL encoders that does not rely on downstream task labels or fixed classification targets?
  • RQ3How effective is the shadow training technique in preserving watermark resilience under model stealing attacks?
  • RQ4To what extent is SSLGuard robust against common watermark removal attacks such as input noising, output perturbation, and model pruning?
  • RQ5Can SSLGuard maintain high model utility while ensuring reliable watermark extraction and ownership verification?

Key findings

  • SSL pre-trained encoders are highly vulnerable to model stealing attacks due to the rich, generalizable representations they produce, which can be effectively mimicked by surrogate models.
  • SSLGuard successfully injects and verifies watermarks with over 95% accuracy across multiple image datasets, including ImageNet and CIFAR-10.
  • The scheme remains robust under model stealing attacks, maintaining watermark detection accuracy above 90% even when the adversary has access to the same pre-training data and architecture.
  • SSLGuard resists various watermark removal techniques: input noising reduces detection accuracy by less than 5%, and output perturbation or pruning causes only minor degradation.
  • The shadow training technique significantly enhances watermark persistence, improving robustness by over 20% compared to baseline watermarking without it.
  • Fine-tuning the watermarked encoder on downstream tasks preserves the watermark with minimal impact on performance, maintaining top-1 accuracy within 1% of the original model.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.