Do Language Models Plagiarize?

Jooyoung Lee, Thai Le, Jinghui Chen, Dongwon LeeWWW 2022 · DOI

Abstract

Past literature has illustrated that language models (LMs) often memorize parts of training instances and reproduce them in natural language generation (NLG) processes. However, it is unclear to what extent LMs "reuse" a training corpus. In this work, we study three types of plagiarism (verbatim, paraphrase, and idea) among GPT-2 generated texts, in comparison to its training data, and further analyze the plagiarism patterns of fine-tuned LMs with domain-specific corpora. Our results suggest that (1) three types of plagiarism widely exist in LMs beyond memorization, (2) both size and decoding methods of LMs are strongly associated with the degrees of plagiarism they exhibit, and (3) fine-tuned LMs' plagiarism patterns vary based on their corpus similarity and homogeneity. These findings cast doubt on the practicality of current LMs in mission-critical writing tasks and urge more discussions around the observed phenomena.

Introduction: Beyond Simple Memorization

While the AI community has long recognized that Large Language Models (LLMs) "memorize" snippets of their training data, most research has focused on exact string matching. However, human plagiarism is rarely just "copy-paste." It includes rephrasing someone else's work or stealing a core idea without credit. This paper moves beyond simple memorization to show that LLMs like GPT-2 frequently engage in three distinct types of plagiarism: verbatim, paraphrase, and idea theft. This is a vital question for copyright law, academic integrity, and privacy, especially as we move toward using LLMs for professional writing.

Defining and Detecting Plagiarism in LMs

The researchers developed a novel two-step automated plagiarism detection pipeline. First, they use Elasticsearch (BM25) to retrieve the top 10 most similar documents from the training corpus for any given machine-generated text. Second, they employ a sophisticated alignment algorithm, enhanced by a RoBERTa-based paraphrase identification model and Named Entity Recognition (NER).

This allows for the categorization of plagiarism into three distinct levels:

  1. Verbatim: Exact copies of training text.
  2. Paraphrase: Synonymous substitution and reordering.
  3. Idea: Representing the core content of a source in a different length or form.
Examples of verbatim, paraphrase, and idea plagiarism in machine-generated text compared to training data.

Key Drivers: Model Size and Decoding Strategies

The study identifies several factors that significantly influence the rate of plagiarism in generated text.

The Impact of Model Size

Larger models (GPT-2 Large and XL) exhibit significantly higher plagiarism rates than smaller versions. Their increased capacity allows them to "store" more specific sequences from the massive training set.

The "Greedy" Decoding Trap

Popular decoding methods like top-k and top-p sampling—designed to make text more coherent by focusing on high-probability words—actually increase plagiarism. By disregarding the "long tail" of less probable tokens, these methods often funnel the model into a memorized path from its training data.

Plagiarism rates across different GPT-2 model sizes and decoding strategies.

Fine-Tuning and Privacy Risks

Fine-tuning a model on a new, domain-specific corpus (like medical papers or legal claims) makes it highly susceptible to plagiarizing the new training data. In the Cord19GPT model, paraphrase plagiarism reached as high as 5.48% and idea plagiarism reached 4.85% when using top-k decoding.

Furthermore, plagiarism isn't just an intellectual property issue; it's a privacy risk. The study found that plagiarized segments often contained Personally Identifiable Information (PII) like names and locations, even when the model was just "paraphrasing."

Conclusion

The researchers emphasize that these results are conservative "lower bounds." The findings suggest that as models and datasets grow, the risk of derivative copying increases. Future work is needed to develop "plagiarism-aware" training objectives that encourage models to synthesize information rather than just rehash it. These results urge more discussions around the ethics of web-scale data scraping and the practical limitations of current LMs in mission-critical writing tasks.

Summary updated

BibTeX
@inproceedings{lee2022do,
  author = {Jooyoung Lee and Thai Le and Jinghui Chen and Dongwon Lee},
  title = {{Do Language Models Plagiarize?}},
  booktitle = {The Web Conference},
  year = {2022},
  doi = {10.1145/3543507.3583199},
}
Figure