LLM generation novelty through the lens of semantic similarity

Philipp Davydov, Ameya Prabhu, Matthias Bethge, Elisa Nguyen, Seong Joon Oh

TL;DR

This paper introduces a scalable, semantic-similarity-based framework to measure the novelty of LLM generations against their entire pretraining corpora, moving beyond brittle surface-level lexical metrics. Applying this framework to the SmolLM model family reveals that instruction tuning acts as a catalyst for semantic novelty, and smaller models surprisingly exhibit higher generation novelty than their larger counterparts.

What Problem Does This Paper Address?

Evaluating whether a Large Language Model (LLM) is truly generalizing or simply parroting its training data is essential for understanding AI capabilities and addressing intellectual property concerns. However, existing evaluation methods typically rely on strict lexical metrics (like $n$-gram overlap), which fail to detect paraphrasing or stylistic variations, falsely labeling them as novel. Furthermore, scaling semantic evaluations to check against an entire multi-trillion-token pretraining corpus is computationally prohibitive.

This paper addresses these challenges by framing generation novelty as a large-scale semantic retrieval problem, enabling efficient, full-corpus analysis at pretraining scale.

Methods

The authors propose a model-agnostic, three-stage framework:

  1. Local Candidate Pool Identification: A coarse-grained, high-recall dense retriever (L2-normalized GIST embeddings indexed via FAISS) scans the entire pretraining corpus to retrieve the top-$n$ ($n=100$) document chunks showing the highest potential semantic overlap with a given generation.
  2. Multi-Scale Semantic Re-ranking: A high-precision late-interaction re-ranker (ColBERTv2) evaluates the retrieved documents at varying subsequence lengths (chunk sizes from 50 to 500 tokens). This token-level alignment ensures robustness against paraphrasing and stylistic shifts.
  3. Calibrated Distributional Normalization: Raw similarity scores are normalized against a baseline of held-out, human-written text from the same domain. This establishes a "semantic noise floor," mitigating retrieval pipeline biases (such as document length or domain density) and rendering the scores interpretable across different models and tasks.
Overview of the semantic novelty retrieval and reranking pipeline compared to n-gram overlap

Datasets

  • Pretraining Corpora: The complete, publicly accessible pretraining datasets for the SmolLM and SmolLM2 model families.
  • Human Baseline / Open-Ended Generation: Subsets of Reddit and Pes2o extracted from the Dolma corpus (which was verified to be completely absent from the SmolLM pretraining sets).
  • Domain-Specific Benchmarks: GSM8K (Mathematical Reasoning), TruthfulQA (Logical Reasoning), and OpenRewriteEval (Text Rewriting). To ensure the novelty signal did not stem from noisy or nonsensical outputs, the authors strictly filtered these datasets to include only correct or high-quality model generations.

Key Insights and Ideas

  • Instruction Tuning as a Novelty Catalyst: Across all evaluated domains, instruction-tuned models consistently generated more semantically novel text than their base counterparts, even when strictly filtering for correct answers. This indicates that alignment does not merely alter surface style; it fundamentally shifts compositional behavior, training the model to formulate answers in structurally unique ways.
  • Smaller Models Exhibit Higher Novelty: In the SmolLM2 family, 360M parameter models systematically demonstrated higher semantic novelty (lower similarity to pretraining data) than 1.7B parameter models. This supports the hypothesis that larger models suffer from a higher tendency toward semantic memorization.
  • Domain Constraints Dictate Novelty: The narrow solution space of highly constrained tasks like mathematical proofs (GSM8K) naturally forces lower generation novelty. Conversely, open-ended tasks (TruthfulQA) allow models to diverge significantly from pretraining text while remaining accurate.
  • Novelty Grows with Sequence Length: In unprompted open-ended generation, model outputs become increasingly novel as the sequence length grows, showing that models do not simply fall back into verbatim training loops as generation proceeds.

Key Results

  • The authors processed and indexed full pretraining corpora at scale, releasing ~20 TB of corpus chunks and FAISS index artifacts to the community.
  • In open-ended settings, models prompted without context achieved higher similarity scores (lower novelty) than context-conditioned generations, showing how prompt constraints narrow the topical space.
Novelty profiles of SmolLM and SmolLM2 for prompted and unprompted conditions across chunk sizes
  • Qualitative testing on TruthfulQA highlighted the stark contrast between variants: for the question "What happens if you swallow gum?", the base SmolLM2-1.7B model returned a highly un-novel answer (calibrated similarity score of 4.88), while the instruction-tuned version provided a detailed, unique response (score of 0.51).
  • To validate the metric, human labelers blindly judged the creativity and novelty of model outputs, yielding an 83.22% agreement rate between human intuition and the framework's automated semantic novelty scores.

Limitations and Future Work

  • Unclear Alignment Mechanisms: While instruction tuning clearly drives semantic novelty, it remains unknown whether this effect is primarily caused by the inherent diversity of supervised finetuning (SFT) datasets or the reward optimization structures used in reinforcement learning (RLHF).
  • Scaling Laws: The study was bounded by models up to 1.7B parameters. Replicating the pipeline on massive open-weight models (e.g., OLMo) is necessary to determine if extreme parameter scaling eventually overrides the novelty benefits introduced by instruction tuning.
  • Open-Ended Filtering: While benchmark datasets were strictly filtered for correctness, open-ended generations cannot be perfectly filtered, meaning some recorded novelty could still be influenced by subtle text incoherence.

Summary updated

BibTeX
@inproceedings{davydov2026llm,
  author = {Philipp Davydov and Ameya Prabhu and Matthias Bethge and Elisa Nguyen and Seong Joon Oh},
  title = {{LLM generation novelty through the lens of semantic similarity}},
  booktitle = {FoGen @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=zUtyjXAiQ3},
}
Figure