Skip to main navigation Skip to search Skip to main content

Watermarking PLMs on Classification Tasks by Combining Contrastive Learning with Weight Perturbation

  • Chenxi Gu
  • , Xiaoqing Zheng
  • , Jianhan Xu
  • , Muling Wu
  • , Cenyuan Zhang
  • , Chengsong Huang
  • , Hua Cai
  • , Xuanjing Huang

Research output: Chapter in Book/Report/Conference proceedingConference PaperResearchpeer-review

Abstract

Large pre-trained language models (PLMs) have achieved remarkable success, making them highly valuable intellectual property due to their expensive training costs. Consequently, model watermarking, a method developed to protect the intellectual property of neural models, has emerged as a crucial yet underexplored technique. The problem of watermarking PLMs has remained unsolved since the parameters of PLMs will be updated when fine-tuned on downstream datasets, and then embedded watermarks could be removed easily due to the catastrophic forgetting phenomenon. This study investigates the feasibility of watermarking PLMs by embedding backdoors that can be triggered by specific inputs. We employ contrastive learning during the watermarking phase, allowing the representations of specific inputs to be isolated from others and mapped to a particular label after fine-tuning. Moreover, we demonstrate that by combining weight perturbation with the proposed method, watermarks can be embedded in a flatter region of the loss landscape, thereby increasing their robustness to watermark removal. Extensive experiments on multiple datasets demonstrate that the embedded watermarks can be robustly extracted without any knowledge about downstream tasks, and with a high success rate.

Original languageEnglish
Title of host publicationThe 2023 Conference on Empirical Methods in Natural Language Processing - Findings of the Association for Computational Linguistics
EditorsHouda Bouamor, Juan Pino, Kalika Bali
Place of PublicationStroudsburg PA USA
PublisherAssociation for Computational Linguistics (ACL)
Pages3685-3694
Number of pages10
ISBN (Electronic)9798891760615
DOIs
Publication statusPublished - 2023
Externally publishedYes
EventEmpirical Methods in Natural Language Processing 2023 - , Singapore
Duration: 6 Dec 202310 Dec 2023
https://2023.emnlp.org/
https://aclanthology.org/volumes/2023.findings-emnlp/ (Proceedings)
https://aclanthology.org/volumes/2023.emnlp-demo/ (Proceedings)

Conference

ConferenceEmpirical Methods in Natural Language Processing 2023
Abbreviated titleEMNLP 2023
Country/TerritorySingapore
Period6/12/2310/12/23
Internet address

Cite this