Skip to main content
QUICK REVIEW

[Paper Review] Source Attribution for Large Language Model-Generated Data

Jingtan Wang, Xinyang Lu|arXiv (Cornell University)|Oct 1, 2023
Topic ModelingComputer Science7 citations
TL;DR

This paper proposes WASA, a watermarking framework that embeds unique, imperceptible watermarks into large language model (LLM)-generated texts to enable accurate source attribution and data provenance. By training LLMs to map distinct data provider characteristics to specific watermarks, WASA achieves high source attribution accuracy (up to 76.12%) while preserving text generation quality and robustness, even under adversarial attacks.

ABSTRACT

The impressive performances of Large Language Models (LLMs) and their immense potential for commercialization have given rise to serious concerns over the Intellectual Property (IP) of their training data. In particular, the synthetic texts generated by LLMs may infringe the IP of the data being used to train the LLMs. To this end, it is imperative to be able to perform source attribution by identifying the data provider who contributed to the generation of a synthetic text by an LLM. In this paper, we show that this problem can be tackled by watermarking, i.e., by enabling an LLM to generate synthetic texts with embedded watermarks that contain information about their source(s). We identify the key properties of such watermarking frameworks (e.g., source attribution accuracy, robustness against adversaries), and propose a source attribution framework that satisfies these key properties due to our algorithmic designs. Our framework enables an LLM to learn an accurate mapping from the generated texts to data providers, which sets the foundation for effective source attribution. Extensive empirical evaluations show that our framework achieves effective source attribution.

Motivation & Objective

  • To address growing concerns about intellectual property (IP) infringement in LLM-generated content, particularly when training data is used without consent.
  • To enable source attribution—identifying which data provider contributed to the generation of a synthetic text—by embedding unique watermarks into LLM outputs.
  • To support data provenance, allowing data providers to verify whether their data was used to train an LLM.
  • To design a watermarking framework that maintains LLM performance, scales to many data providers, and resists watermark removal attacks.
  • To develop a system that is adaptable across different LLM architectures and training regimes.

Proposed method

  • The WASA framework trains LLMs to learn a mapping from input texts of different data providers to unique, imperceptible watermarks composed of invisible Unicode characters (e.g., U+200B, U+200C).
  • Watermark embedding is achieved through a second-stage pre-training phase on a curated dataset where each data provider’s content is associated with a distinct watermark sequence.
  • The watermark is designed to be robust against common attacks, such as paraphrasing, truncation, and token-level perturbations, by leveraging the model’s internal representation learning.
  • Source attribution is performed by decoding the watermark from generated text using a classifier head trained to recognize the watermark pattern and map it to the corresponding data provider.
  • The framework supports variable watermark lengths (5–15 characters) and varying character sets (2–6 available characters per position), enabling flexibility for scalability and security.
  • Empirical evaluation uses GPT-2 fine-tuned on the ArXiv dataset, with ablation studies on data size, training epochs, watermark length, and character set diversity.
Figure 1: Illustration of WASA ’s problem setting. Watermarks are embedded into the texts from data providers for training the LLM. The LLM produced by our WASA framework can generate synthetic texts with embedded watermarks that allow for effective source attribution and data provenance.
Figure 1: Illustration of WASA ’s problem setting. Watermarks are embedded into the texts from data providers for training the LLM. The LLM produced by our WASA framework can generate synthetic texts with embedded watermarks that allow for effective source attribution and data provenance.

Experimental results

Research questions

  • RQ1Can a watermarking framework enable accurate source attribution of LLM-generated texts to their contributing data providers?
  • RQ2How robust is the watermarking scheme against adversarial attacks such as paraphrasing or token manipulation?
  • RQ3To what extent does watermarking affect the text generation quality (e.g., perplexity) of the LLM?
  • RQ4How does the number of data providers, watermark length, and character set size impact attribution accuracy?
  • RQ5Can the watermarked LLM generalize to other LLM architectures and remain effective in data provenance verification?

Key findings

  • WASA achieves a source attribution accuracy of 76.12% using 5-character watermarks, with top-3 accuracy of 95.48%, demonstrating high precision in identifying data providers.
  • Increasing the number of training epochs from 1 to 2 improves source attribution accuracy from 74.84% to 76.96%, indicating performance gains with more training.
  • Using more training data (e.g., 33% of each ArXiv category) improves both source attribution accuracy and perplexity, showing scalability benefits.
  • Watermark length has minimal impact on accuracy: 5-, 10-, and 15-character watermarks achieve comparable results, with 5-character watermarks slightly outperforming others.
  • Reducing the number of available Unicode characters per watermark position (from 6 to 2) slightly degrades top-3 accuracy (to 89.92%), suggesting that larger character sets improve discrimination.
  • The framework maintains low perplexity (e.g., 11.3171 on ArXiv) even after watermarking, indicating minimal degradation in text generation quality.
Figure 2: Sentences embedded (top left) and not embedded (top right) with our imperceptible watermark visualized in the bottom sentence.
Figure 2: Sentences embedded (top left) and not embedded (top right) with our imperceptible watermark visualized in the bottom sentence.

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.