Lune

EMNLP2024Top-tier venue

Evaluating n-Gram Novelty of Language Models Using Rusty-DAWG

William Merrill, Noah A. Smith, Yanai Elazar

Abstract

How novel are texts generated by language models (LMs) relative to their training corpora? In this work, we investigate the extent to which modern LMs generate n-grams from their training data, evaluating both (i) the probability LMs assign to complete training n-grams and (ii) n-novelty, the proportion of n-grams generated by an LM that did not appear in the training data (for arbitrarily large n). To enable arbitrary-length n-gram search over a corpus in constant time w.r.t. corpus size, we develop RUSTY-DAWG, a novel search tool inspired by indexing of genomic data. We compare the novelty of LM-generated text to humanwritten text and explore factors that affect generation novelty, focusing on the Pythia models. We find that, for n > 4, LM-generated text is less novel than human-written text, though it is more novel for smaller n. Larger LMs and more constrained decoding strategies both decrease novelty. Finally, we show that LMs complete n-grams with lower loss if they are more frequent in the training data. Overall, our results reveal factors influencing the novelty of LMgenerated text, and we release RUSTY-DAWG to facilitate further pretraining data research. 1

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Generalization v.s. Memorization: Tracing Language Models' Capabilities Back to Pretraining Data cites Measuring Massive Multitask Language Understanding
  • Generalization v.s. Memorization: Tracing Language Models' Capabilities Back to Pretraining Data cites Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling
  • Generalization v.s. Memorization: Tracing Language Models' Capabilities Back to Pretraining Data cites Detection and Measurement of Syntactic Templates in Generated Text
  • Death of the Novel(ty): Beyond N-Gram Novelty as a Metric for Textual Creativity cites Detection and Measurement of Syntactic Templates in Generated Text
  • Death of the Novel(ty): Beyond N-Gram Novelty as a Metric for Textual Creativity cites Infini-gram mini: Exact n-gram Search at the Internet Scale with FM-Index
  • Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling cites Deduplicating Training Data Makes Language Models Better
  • Measuring LLM Novelty As The Frontier Of Original And High-Quality Output cites Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling
  • Detection and Measurement of Syntactic Templates in Generated Text cites The Curious Case of Neural Text Degeneration
  • Infini-gram mini: Exact n-gram Search at the Internet Scale with FM-Index cites Measuring Massive Multitask Language Understanding
  • Infini-gram mini: Exact n-gram Search at the Internet Scale with FM-Index cites Deduplicating Training Data Makes Language Models Better
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Death of the Novel(ty): Beyond N-Gram Novelty as a Metric for Textual CreativityArkadiy Saakyan, Najoung Kim, Smaranda Muresan, Tuhin ChakrabartyICLR 2026 · 6 citations
  2. Measuring LLM Novelty As The Frontier Of Original And High-Quality OutputVishakh Padmakumar, Chen Yueh-Han, Jane Pan, Valerie Chen et al.ICLR 2026 · 6 citations
  3. Generalization v.s. Memorization: Tracing Language Models' Capabilities Back to Pretraining DataXinyi Wang, Antonis Antoniades, Yanai Elazar, Alfonso Amayuelas et al.ICLR 2025 · 4 citations
  4. Detection and Measurement of Syntactic Templates in Generated TextChantal Shaib, Yanai Elazar, Junyi Jessy Li, Byron C. WallaceEMNLP 2024 · 3 citations
  5. Infini-gram mini: Exact n-gram Search at the Internet Scale with FM-IndexHao Xu, Jiacheng Liu, Yejin Choi, Noah A. Smith et al.EMNLP 2025 · 1 citation

Builds on14

  1. Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou et al.ICLR 2021 · 7,905 citations
  2. The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes et al.ICLR 2020 · 4,112 citations
  3. Pythia: A Suite for Analyzing Large Language Models Across Training and ScalingStella Biderman, Hailey Schoelkopf, Quentin Gregory Anthony, Herbie Bradley et al.ICML 2023 · 1,822 citations
  4. Generalization through Memorization: Nearest Neighbor Language ModelsUrvashi Khandelwal, Omer Levy, Dan Jurafsky, Luke Zettlemoyer et al.ICLR 2020 · 1,038 citations
  5. Deduplicating Training Data Makes Language Models BetterKatherine Lee, Daphne Ippolito, Andrew Nystrom, Chiyuan Zhang et al.ACL 2022 · 844 citations

Related papers

  1. DNA-GPT: Divergent N-Gram Analysis for Training-Free Detection of GPT-Generated TextXianjun Yang, Wei Cheng, Yue Wu, Linda Ruth Petzold et al.ICLR 2024 · 173 citations
  2. PolyPythias: Stability and Outliers across Fifty Language Model Pre-Training RunsOskar van der Wal, Pietro Lesci, Max Müller-Eberstein, Naomi Saphra et al.ICLR 2025
  3. PythonSaga: Redefining the Benchmark to Evaluate Code Generating LLMsAnkit Yadav, Himanshu Beniwal, Mayank SinghEMNLP Findings 2024 · 12 citations
  4. LLMDet: A Third Party Large Language Models Generated Text Detection ToolKangxi Wu, Liang Pang, Huawei Shen, Xueqi Cheng et al.EMNLP Findings 2023 · 31 citations
  5. MOSAIC: Multiple Observers Spotting AI ContentMatthieu Dubois, François Yvon, Pablo PiantanidaACL Findings 2025
Dusk over the sea between two cliffs drawn in fine vertical lines