Methods and systems for task-agnostic pretrained language model watermarking via high entropy backdooring
Abstract
Methods, devices, and processor-readable media for processing an input prompt using a watermarked language model, the processing including: when the input prompt to the watermarked language model does not include a predefined key, providing a model output that conforms to an intended task that the model has been trained to perform; and when the input prompt to the watermarked language model includes the predefined key, providing a stochastic model output that does not conform to the intended task.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A method comprising: processing an input prompt using a watermarked language model, the processing comprising: when the input prompt to the watermarked language model does not include a predefined key, providing a model output that conforms to an intended task that the watermarked language model is configured to perform for input prompts that do not include the predefined key; and when the input prompt to the watermarked language model includes the predefined key, providing a stochastic model output that does not conform to the intended task, wherein the stochastic model output is a high entropy output.
- Claim 2Depends on #1
The method of claim 1, wherein the watermarked language model comprises a plurality of transformer block layers, comprising: a first group of transformer block layers collectively trained to cause the language model to perform the intended task; and a second group of one or more watermark transformer block layers interspersed within the transformer block layers of the first group, the second group of one or more watermark transformer block layers trained to cause the watermarked language model to provide high entropy output when the input prompt to the watermarked language model includes the predefined key and to cause the watermarked language model to perform the intended task when the input prompt to the watermarked language model does not include the predefined key, wherein providing the stochastic model output comprises processing the predefined key using the second group of one or more watermark transformer block layers to generate high entropy output causing the language model to
- Claim 3Depends on #1
The method of claim 1, further comprising: obtaining the watermarked language model, comprising: receiving model code and pretrained model weights that collectively define a pretrained language model (PLM) that comprises a first group of transformer block layers collectively configured by the pretrained model weights to cause the PLM to perform the intended task; amending the model code to define an augmented language model that comprises a second group of one or more watermark transformer block layers interspersed within the transformer block layers of the first group, the second group of one or more watermark transformer block layers being collectively configured by watermark layer weights; and training the augmented language model by freezing the pretrained model weights and iteratively updating the watermark layer weights with training objectives of (i) causing the augmented language model to provide high entropy output when an input to the augmented language model includes the pre
- Claim 4Depends on #3
The method of claim 3, wherein the training objective of causing the augmented language model to perform the intended task when the input to the augmented language model does not include the predefined key includes iteratively updating the watermark layer weights with an objective of causing layers of the second group of one or more watermark transformer block layers to function as respective identity functions when processing input that does not include the predefined key.
- Claim 5Depends on #3
The method of claim 3, wherein the training objective of causing the augmented language model to provide high entropy output when the input to the augmented language model includes the predefined key includes iteratively updating the watermark layer weights with an objective of causing layers of the second group of one or more watermark transformer block layers to respectively generate outputs having a probability distribution for which all discrete outcomes are equally likely.
- Claim 6Depends on #3
The method of claim 3, further comprising: obtaining a further plurality of watermarked language models, comprising, for each respective watermarked language model of the further plurality of watermarked language models: training a further augmented language model, the further augmented language model also comprising a second group of one or more watermark transformer block layers interspersed within the transformer block layers of the first group, the second group of one or more watermark transformer block layers being collectively configured by further watermark layer weights, the training of the further augmented language model comprising freezing the pretrained model weights and iteratively updating the further watermark layer weights with training objectives of (i) causing the further augmented language model to provide high entropy output when an input to the further augmented language model includes a unique predefined key unique to the respective watermarked language model and
- Claim 7Depends on #3
The method of claim 3, further comprising: finetuning the watermarked language model using a finetuning dataset that does not include the predefined key.
- Claim 8Depends on #1
The method of claim 1, further comprising assessing a language model to determine if it is derived from the watermarked language model, comprising: providing a plurality of input prompts to the language model that do not include the predefined key and obtaining a respective first distribution of outputs from the language model; providing a plurality of input prompts to the language model that include the predefined key and obtaining a respective second distribution of outputs from the language model; and determining, based on a comparison of the first distribution and the second distribution that the language model is derived from the watermarked language model when a difference between the first distribution and the second distribution exceeds a threshold.
Technical Overview & Description
RELATED APPLICATION DATA This is the first-filed application for this disclosure. FIELD The present application generally relates to trained language models and methods, and more particularly to watermarked pretrained language models and methods for training and using such models. BACKGROUND Language models such as generative pretrained transformer (GPT) models are expensive to train. The cost of training pre-trained and large language models (PLMs/LLMs) incentivizes model creators and owners to employ measures to protect against unauthorized copying and use of these valuable models. One protective measure is model watermarking. Model watermarking can refer to the process of embedding identification information into the weights of a neural network that is used to implement the model to verify model ownership, as opposed to watermarking the model output directly. For a general watermarking technique to be effective admissible, it should satisfy four key requirements: (i) Fidelity: The performance of the watermarked model should not be degraded significantly compared to the original model. (ii) Integrity: The false positive/false negative rates of the watermarked model should be low to prevent false claims of ownership (in the case of false positives), and to assure correct model ownership is detected with high probability (in case of false negatives). (iii) Robustness: The watermark model should be robust to activities such as finetuning, pruning, and other potentially innocent or malicious model modifications. (iv) Efficiency: The procedure to watermark a model should be cost effective in terms of training time and resources in comparison to the pretraining time of the original model. Two types of model watermarking are black-box watermarking and white-box watermarking. Black-box watermarking assumes verification can only take place by examining model output, as opposed to white-box watermarking, which additionally assumes access to the code and model weights. Black
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (5)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Mitchell et al.
- “
- DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
- ”
- . Proceedings of the 40th International Conference on Machine Learning, Honolulu, Hawaii, USA, 2023 (Year: 2023).
- Liu et al.
- “
- Adaptive Text Watermark for Large Language Models
- ”
- . arXiv:2401.13927v1 [cs.CL] Jan. 25, 2024 (Year: 2024).