[Paper Review] How much do language models copy from their training data? Evaluating linguistic novelty in text generation using RAVEN
This paper introduces RAVEN, a framework to evaluate linguistic novelty in language model text generation by analyzing n-gram, morphological, and syntactic structures. It finds that while models generate highly novel syntactic and morphological structures, they frequently copy short n-grams from training data—sometimes duplicating passages over 1,000 words long—indicating significant memorization despite generalization capabilities.
Current language models can generate high-quality text. Are they simply copying text they have seen before, or have they learned generalizable linguistic abstractions? To tease apart these possibilities, we introduce RAVEN, a suite of analyses for assessing the novelty of generated text, focusing on sequential structure (n-grams) and syntactic structure. We apply these analyses to four neural language models (an LSTM, a Transformer, Transformer-XL, and GPT-2). For local structure - e.g., individual dependencies - model-generated text is substantially less novel than our baseline of human-generated text from each model's test set. For larger-scale structure - e.g., overall sentence structure - model-generated text is as novel or even more novel than the human-generated baseline, but models still sometimes copy substantially, in some cases duplicating passages over 1,000 words long from the training set. We also perform extensive manual analysis showing that GPT-2's novel text is usually well-formed morphologically and syntactically but has reasonably frequent semantic issues (e.g., being self-contradictory).
Motivation & Objective
- To disentangle whether language models generate novel text or merely copy from training data.
- To assess the extent of memorization versus generalization in neural language models.
- To develop a systematic evaluation framework for linguistic novelty across structural levels.
- To investigate whether models produce original syntactic and morphological constructions or rely on memorized patterns.
- To evaluate the risk of sensitive or harmful content leakage due to data copying.
Proposed method
- RAVEN evaluates novelty using n-gram frequency analysis across varying n-gram lengths (1 to 10+).
- It compares model-generated text against human-generated text from the same test sets as a baseline.
- Syntactic novelty is measured by comparing dependency structures in generated text to those in training data.
- Morphological novelty is assessed by identifying novel inflections and derivations (e.g., 'Swissified', 'IKEA-ness').
- The framework evaluates 12 generation methods and 4 prompt lengths across four models: LSTM, Transformer, Transformer-XL, and GPT-2.
- Manual analysis is used to validate semantic coherence and detect self-contradictions in generated text.
Experimental results
Research questions
- RQ1To what extent do language models generate novel n-grams compared to human-generated text?
- RQ2How much syntactic and morphological novelty do language models produce in their outputs?
- RQ3In what cases do models copy long passages verbatim from training data?
- RQ4How do different decoding strategies affect memorization and novelty?
- RQ5Are semantic inconsistencies more common in novel text, indicating limitations in reasoning?
Key findings
- For bigrams and trigrams, model-generated text is 1.4 to 3.3 times less novel than human-generated text from the same test set.
- For n-grams larger than 5-grams, models are more novel than human-generated baselines, indicating generalization at larger structural scales.
- GPT-2 occasionally duplicates training passages exceeding 1,000 words in length, indicating substantial memorization.
- Transformer-XL generates 74% of its sentences with syntactic structures not present in any training sentence, demonstrating high syntactic novelty.
- GPT-2 produces novel morphological forms such as 'Swissified' and 'IKEA-ness', showing productive word formation.
- Despite high syntactic and morphological novelty, GPT-2’s novel text often contains semantic issues, including self-contradictions and overregularization (e.g., 'builded', 'dived' for 'dove').
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.