[Paper Review] Watermarking Text Data on Large Language Models for Dataset Copyright
TextMarker proposes a backdoor-based watermarking technique that enables data owners to protect private text data in NLP model training by injecting subtle triggers into a small fraction of their data. By leveraging black-box access to a target model, owners can verify unauthorized use through membership inference, achieving effective copyright protection with only 0.1% poisoning rate and negligible impact on model utility.
Substantial research works have shown that deep models, e.g., pre-trained models, on the large corpus can learn universal language representations, which are beneficial for downstream NLP tasks. However, these powerful models are also vulnerable to various privacy attacks, while much sensitive information exists in the training dataset. The attacker can easily steal sensitive information from public models, e.g., individuals' email addresses and phone numbers. In an attempt to address these issues, particularly the unauthorized use of private data, we introduce a novel watermarking technique via a backdoor-based membership inference approach named TextMarker, which can safeguard diverse forms of private information embedded in the training text data. Specifically, TextMarker only requires data owners to mark a small number of samples for data copyright protection under the black-box access assumption to the target model. Through extensive evaluation, we demonstrate the effectiveness of TextMarker on various real-world datasets, e.g., marking only 0.1% of the training dataset is practically sufficient for effective membership inference with negligible effect on model utility. We also discuss potential countermeasures and show that TextMarker is stealthy enough to bypass them.
Motivation & Objective
- Address the growing risk of privacy leakage in NLP models trained on private text data, such as personal identifiers.
- Provide individuals with a practical method to verify whether their private text was used in unauthorized model training.
- Overcome the limitations of existing membership inference methods that require white-box access or extensive computational resources.
- Develop a stealthy, scalable watermarking mechanism that operates under black-box access and resists detection by model trainers.
Proposed method
- Inject backdoor triggers into a small subset (0.1%) of private text data using a trigger pattern that is semantically coherent and contextually plausible.
- Use the marked data to train an NLP model, embedding the backdoor such that the model produces a target label when the trigger is present.
- Perform membership inference by querying the black-box model with trigger-embedded samples and comparing prediction confidence against a pre-set threshold.
- Employ stealthy trigger patterns—word-level, sentence-level, or character-level—selected to minimize detectability by backdoor defense mechanisms.
- Utilize embedding-based anomaly detection (e.g., all-mpnet-base-v2) to evaluate stealthiness, measuring similarity between text and label embeddings.
- Optimize trigger placement (initial, middle, end, or random) to maximize backdoor success rate while minimizing detectability.
Experimental results
Research questions
- RQ1Can a backdoor-based watermarking approach enable data owners to verify unauthorized use of their private text in NLP model training with only black-box access?
- RQ2How effective is TextMarker in achieving high membership inference accuracy with minimal poisoning rates (e.g., 0.1%)?
- RQ3To what extent can TextMarker evade detection by state-of-the-art backdoor defense methods?
- RQ4How do different trigger patterns and locations affect the success rate and stealthiness of the watermark?
- RQ5What is the impact of fixed versus random trigger target selection on membership inference performance and variance?
Key findings
- TextMarker achieves effective membership inference with only 0.1% poisoning rate, demonstrating that minimal data marking suffices for copyright verification.
- The method maintains high model utility, with negligible degradation in downstream classification performance across multiple real-world datasets.
- TextMarker successfully bypasses two state-of-the-art backdoor detection methods, with detection accuracy only slightly above random guess (e.g., ~5.5% for QA-Sim-S), indicating strong stealthiness.
- Random trigger placement outperforms fixed positions (initial, middle, end), likely due to increased ambiguity and reduced pattern predictability.
- Sentence-level triggers achieve higher backdoor success rates than word-level or character-level triggers, though character-level triggers are more concealable.
- Fixing the trigger target reduces variance in attack success rate, improving reliability of membership inference without sacrificing effectiveness.
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.