WASA: WAtermark-based Source Attribution for Large Language Model-Generated Data

Xinyang Lu, Jingtan Wang, Zitong Zhao, Zhongxiang Dai, Chuan-Sheng Foo, See-Kiong Ng, Bryan Kian Hsiang Low

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.

Introduction

As Large Language Models (LLMs) become central to commercial content generation, a massive legal and ethical storm is brewing over Intellectual Property (IP). Current "data provenance" methods can tell a data provider if their data was used to train a model (a binary yes/no). However, they cannot perform source attribution: identifying which specific provider among thousands is responsible for a particular sentence the model just spat out.

This is a "needle in a haystack" problem. If an LLM generates a technical explanation of quantum gravity, did it learn that from a specific ArXiv paper, a Wikipedia entry, or a textbook? Without a way to attribute sources, it is nearly impossible to implement fair compensation models, verify the reliability of information, or comply with emerging AI regulations.

The WASA Framework

WASA (WAtermark-based Source Attribution) treats source attribution as a multi-class watermarking task. The framework enables an LLM to "self-report" which training data source influenced a specific generated output by embedding invisible Unicode watermarks during a second stage of training.

Overview of the WASA framework for source attribution and data provenance.

Methodology

The WASA framework consists of several key components:

  1. Invisible Embedding: Six specific invisible Unicode characters (e.g., U+200B Zero Width Space) are used to create unique 10-character "ID tags" for every data provider.
  2. Representative Selection: Instead of watermarking every sentence, TF-IDF scores identify the most "representative" sentences for each provider to embed the watermarks.
  3. Architectural Separation: To prevent watermarks from "polluting" the model's language abilities, WASA introduces a separate prediction space. The model maintains its standard vocabulary for words but uses a separate, tiny softmax layer specifically for watermark tokens. A special [WTM] token acts as a switch, signaling the model to transition from word generation to source ID generation.
Architectural separation between word token generation and watermark token generation.
  1. Regeneration Defense: Even if an adversary "cleans" the text by removing invisible characters, the WASA-LLM learns the mapping between the text's style/content and the watermark. The platform operator can feed the "cleaned" text back into the model, which then "regenerates" the correct watermark, identifying the original source.

Experimental Evaluation

The researchers evaluated WASA across several diverse domains, including ArXiv (10 to 100 categories), BookSum (individual books), and various benchmarks like DBpedia14, CC-News, IMDB62, and FakeNews. Supervised Fine-Tuning (SFT) tasks were also tested using the Self-Annotated Reddit Corpus (SARC).

Key Results

  • High Accuracy: On the ArXiv dataset with 10 providers, WASA achieved 74.84% Top-1 accuracy and over 95% Top-3 accuracy, significantly outperforming traditional search-based (BM25) and standard machine learning baselines.
  • Robustness: The system remained effective under attacks like synonym substitution, word deletion, and paraphrasing. The "Regeneration" defense recovered the correct source with over 70% accuracy in many cases.
  • Scalability: Tested with up to 500 data providers on the Reddit dataset, WASA maintained a clear lead over baselines, although accuracy naturally trends downward as the number of providers grows.
  • Model Agnostic: WASA was successfully implemented on GPT-2 Large, OPT-1.3B, Llama2-7B, and Llama3-8B.

Discussion and Insights

WASA demonstrates that style can serve as a powerful signal; the model doesn't just memorize the watermark but learns the underlying "fingerprint" of the data provider's style. By separating the word and watermark prediction spaces, the authors proved that a complex attribution layer can be added without increasing model perplexity or degrading text quality.

However, limitations remain. Scaling to millions of sources (the "Large N" problem) may introduce noise. Additionally, while robust against basic edits, the framework's resilience against sophisticated model-based attacks requires further study. There is also a delicate balance between IP attribution and the potential de-anonymization of data providers. Finally, extending WASA to handle multi-source synthesis—where outputs are blends of many sources—remains an open challenge.

Conclusion

WASA provides a promising path toward transparent and accountable LLM development. By enabling models to generate their own "paper trails," it sets the foundation for fair compensation and IP protection in the age of generative AI.

Summary updated

BibTeX
@inproceedings{lu2025wasa,
  author = {Xinyang Lu and Jingtan Wang and Zitong Zhao and Zhongxiang Dai and Chuan-Sheng Foo and See-Kiong Ng and Bryan Kian Hsiang Low},
  title = {{WASA: WAtermark-based Source Attribution for Large Language Model-Generated Data}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=wBWoS3moGm},
}
Figure