Tracing LLM Behavior to Training Data with Next-Token Distributions.

Zachary Izzo· July 17, 2026 View original

Summary

This paper investigates the connection between an LLM's output and its training data by comparing the LLM's next-token distribution with the empirical next-token distribution (ENTD) from the corpus. It finds high agreement for many inputs, increasing with model scale, but also significant discrepancies in a "long tail" of sequences.

This research delves into the fundamental relationship between a Large Language Model's (LLM) output behavior and the data it was trained on. Specifically, the study examines how closely an LLM's predicted next-token distribution aligns with the "empirical next-token distribution" (ENTD), which represents the actual next-token probabilities observed in the original training corpus for a given context. The ENTD is a crucial benchmark because it represents the ideal, unrestricted minimum for the cross-entropy loss function used during pretraining. The findings indicate that for a substantial portion of inputs, the LLM's distribution aligns almost perfectly with the ENTD, and this agreement generally improves with increased model scale and training compute. However, the study also identifies a significant "long tail" of input sequences where the LLM and ENTD diverge considerably. The authors explore potential reasons for these discrepancies, including aspects of the transformer architecture, the training procedure, and inherent noise in the ENTD estimation itself. This work encourages a new direction in "data-centric mechanistic interpretability," aiming to understand how model behaviors emerge directly from the training data rather than solely focusing on learned weights.

Why it matters

Understanding the direct link between LLM behavior and training data is crucial for debugging, improving model reliability, and developing more transparent and controllable AI systems, especially for professionals in AI engineering and research.

How to implement this in your domain

  1. 1Develop tools to compare LLM outputs against empirical next-token distributions from your training data.
  2. 2Investigate discrepancies between LLM and ENTD for critical use cases to identify model biases or failures.
  3. 3Use insights from data-centric interpretability to refine training data or model architectures.
  4. 4Prioritize data quality and representativeness to improve LLM alignment with desired behaviors.

Who benefits

AI DevelopmentSoftware EngineeringData ScienceResearch & Academia

Key takeaways

  • LLM output distributions often closely match empirical training data distributions.
  • Agreement between LLM and training data increases with model scale and compute.
  • Significant discrepancies exist in a "long tail" of inputs, indicating areas for improvement.
  • "Data-centric mechanistic interpretability" is a promising approach for understanding LLM behavior.

Original post by Zachary Izzo

"arXiv:2607.14306v1 Announce Type: new Abstract: In this paper, we study the connection between an LLM's output distribution and the data used to train it. Specifically, we study the degree to which an LLM's next-token distribution agrees with the empirical next-token distribution…"

View on X

Originally posted by Zachary Izzo on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses