LLM generation novelty through the lens of semantic similarity

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

Abstract: Generation novelty is a key indicator of an LLM's ability to generalize, yet measuring it against full pretraining corpora is computationally challenging. Existing evaluations often rely on lexical overlap, failing to detect paraphrased text, or do not consider the full pretraining corpus. We frame novelty as a semantic retrieval problem. This framing enables us to address novelty with modern embedding and indexing pipelines, allowing for efficient analysis at pre-training scale. Specifically, we propose a three-stage framework that retrieves semantically similar samples, reranks them at varying subsequence lengths, and calibrates scores using a human novelty reference for interpretability. We apply this framework to the SmolLM model family and report three key findings: (1) models draw on pre-training data across much longer sequences than previously reported; (2) some task domains systematically promote or suppress generation novelty; and (3) instruction tuning not only alters style but also increases novelty. These results highlight the value of semantic novelty analysis for studying generalization.

Introduction

A core assumption in the deployment of Large Language Models (LLMs) is their ability to generalize beyond training data to synthesize novel outputs. However, distinguishing between true compositional generalization and sophisticated regurgitation remains a significant challenge. Historically, researchers have relied on lexical metrics like n-gram overlap to detect memorization. These metrics are inherently limited; they are easily bypassed by minor paraphrasing or synonym substitution, leading to a false sense of novelty.

Furthermore, comparing model outputs against trillion-token pretraining corpora is computationally prohibitive for standard semantic similarity measures. This work addresses these limitations by framing novelty detection as a massive-scale semantic retrieval problem, utilizing efficient indexing and re-ranking pipelines to analyze the SmolLM model family.

Methodology: A Scalable Semantic Framework

To measure novelty at the scale of pretraining data, we propose a three-stage framework:

  1. Local Candidate Pool Identification: The LLM generation is treated as a search query. We utilize a FAISS index with GIST embeddings to retrieve the top 100 most semantically similar chunks from the model's actual pretraining corpus.
  2. Multi-Scale Semantic Re-ranking: To capture both short-range reuse and long-range compositional novelty, retrieved text is segmented into various chunk sizes (50 to 500 tokens). A high-precision re-ranker (ColBERTv2) determines the maximum similarity between the generation and the corpus chunks.
  3. Calibrated Distributional Normalization: Raw similarity scores are often skewed by text length and domain. We calibrate these scores against a "semantic noise floor" derived from held-out, human-written text (e.g., Reddit, Pes2o). This normalization ensures that a score of 1.0 represents the baseline similarity of human-level novelty, making results interpretable across different contexts.
Figure 1: Comparison of lexical (n-gram) and semantic similarity metrics. While n-gram overlap drops to zero as text length increases, semantic similarity remains high, revealing long-range data reuse.

Key Insights and Results

The Illusion of Lexical Novelty

Our analysis demonstrates that n-gram metrics "hallucinate" novelty. As shown in Figure 1, as sequence length increases, n-gram similarity quickly decays to zero. In contrast, semantic similarity remains consistently high, indicating that models draw on pretraining concepts over much longer sequences than previously reported. This suggests that what appears to be a novel long-form generation may actually be a semantic reconstruction of training data.

Instruction Tuning as a Novelty Catalyst

One of the most significant findings is the impact of instruction tuning. Instruction-tuned models do not merely change their tone; they fundamentally alter their compositional patterns. Even when filtering for correct answers on benchmarks, instruction-tuned versions of SmolLM consistently produced outputs with lower calibrated similarity scores (higher novelty) compared to their base-model counterparts.

Figure 3: Median Calibrated Similarity across different chunk sizes for SmolLM and SmolLM2. Instruction-tuned (Inst) models consistently show lower similarity to training data than Base models, particularly in unprompted (without context) settings.

Model Size and Domain Constraints

Our empirical results suggest that smaller models (360M) often exhibit higher novelty than larger models (1.7B). This supports the hypothesis that larger models possess a higher capacity for semantic memorization, allowing them to adhere more closely to training distributions.

Furthermore, the task domain significantly influences novelty. Highly constrained tasks, such as mathematical proofs in GSM8K, force models to follow rigid pretraining patterns, resulting in low novelty. Conversely, open-ended logical reasoning tasks like TruthfulQA allow for higher semantic variance and synthesized context.

Conclusion and Future Work

By framing novelty as a semantic retrieval problem, we provide a scalable method to audit LLM generalization. Our findings reveal that instruction tuning is a powerful driver of compositional novelty and that semantic reuse persists far longer than lexical metrics suggest.

Future research will investigate the specific mechanisms within instruction tuning (e.g., SFT vs. RLHF) that promote novelty. Additionally, this framework could be integrated into training loops, using calibrated novelty as a reward signal to explicitly encourage creative synthesis or strict grounding.

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