TL;DR
This paper introduces RAVEN, a novel evaluation suite to measure linguistic novelty in text generated by language models. It reveals that while models exhibit novelty in larger-scale structures like sentence syntax, they often copy more at the local level (n-grams) compared to human baselines, and can even "supercopy" passages over 1,000 words long.
What Problem Does This Paper Address?
The paper tackles a fundamental question in the field of natural language generation (NLG): are language models (LMs) truly learning generalizable linguistic abstractions, or are they primarily memorizing and regurgitating their training data? This distinction is crucial for understanding the true capabilities of LMs and for ensuring their responsible development. The authors argue that current NLG evaluations, which primarily focus on quality (fluency, coherence, etc.), fail to disentangle these two possibilities. A model might produce high-quality text simply by copying, which doesn't demonstrate genuine linguistic understanding or generalization.
Methods
The core contribution is the RAVEN (RAting VErbal Novelty) suite of analyses. RAVEN assesses novelty at two levels:
- Sequential Structure (n-grams): This involves counting how often generated n-grams (sequences of n words) appear in the training data or the immediate context.
- Syntactic Structure: This uses state-of-the-art parsers to analyze various syntactic aspects, including POS sequences, parse structures, and dependency arcs.
To provide a fair comparison and a baseline, the authors also analyze human-generated text from the models' test sets. They employ a "top-40 sampling" decoding method to ensure generated text is of reasonable quality, as novelty in nonsensical text is not desirable.
Datasets
- Wikitext-103: Used for training and evaluating LSTM, Transformer, and Transformer-XL models. This dataset is a collection of high-quality Wikipedia articles.
- WebText: Used for training and evaluating GPT-2. This corpus is constructed from webpages linked on Reddit.
Key Insights and Ideas
- Local vs. Global Novelty Mismatch: Models show high novelty in global structures (like overall sentence syntax) but significantly less novelty in local structures (like small n-grams) compared to human baselines. This suggests a different pattern of generalization at different linguistic scales.
- "Supercopying" is a Real Phenomenon: LMs can, in some cases, duplicate extremely long passages (over 1,000 words) directly from the training data, a behavior termed "supercopying." This highlights a significant memorization capability that can overshadow genuine generation.
- Novelty vs. Quality Tradeoff: Efforts to increase novelty (e.g., by adjusting sampling parameters like temperature or k in top-k sampling) often lead to a decrease in text quality (measured by perplexity).
- Training Set Size Matters: GPT-2, trained on a much larger dataset (WebText), performs better at meeting the novelty baseline compared to models trained on Wikitext-103, suggesting that larger datasets might facilitate better generalization.
Key Results
- N-gram Novelty: For small n-grams (n < 6), models are less novel than the baseline. For larger n-grams (n > 6), models are more novel than the baseline.
- Syntactic Novelty: The majority of generated sentences exhibit an overall syntactic structure not seen in the training data. However, for local syntactic structures (like dependency arcs), models are less novel than baselines.
- GPT-2's Novel Words: The vast majority of GPT-2's novel words are morphologically well-formed (96%) and used in grammatically correct contexts (94%), though it makes more errors than the baseline in these areas.
- Supercopying Instances: GPT-2 occasionally duplicates passages over 1,000 words long from its training set.
- Decoding Scheme Impact: Increasing parameters like
kin top-k sampling,pin top-p sampling, or temperature increases novelty but decreases quality.
Limitations and Future Work
- Manual Analysis Burden: The authors acknowledge the labor-intensive nature of manual analysis, which limits the scope of their qualitative investigations.
- Parser Accuracy: While state-of-the-art parsers were used, their inherent error rates can affect the reliability of syntactic novelty results, especially for novel cases.
- Perplexity as Quality Proxy: Perplexity is used as a proxy for quality, but it's acknowledged that this is an imperfect measure and can be low for repetitive text.
- Future Work: The authors suggest exploring compositional mechanisms and explicit semantic planning as ways to improve model novelty. They also advocate for more careful consideration of withheld splits between training and evaluation sets across NLP tasks.
Summary updated