On Support Samples of Next Word Prediction

Yuqian Li, Yupei Du, Yufang Liu, Feifei Feng, Mou Xiao Feng, Yuanbin Wu

TL;DR

This paper introduces a data-centric interpretability framework for language models by identifying "support samples"—the specific training instances that most heavily drive next-word predictions. Remarkably, whether a sample becomes a support sample is an intrinsic property that can be predicted with 80% accuracy using a completely untrained, randomly initialized model. While "non-support" samples don't directly dictate final predictions, they are shown to be crucial for preventing overfitting and shaping deep representation learning.

What Problem Does This Paper Address?

While mechanistic interpretability focuses on how internal neurons fire, data-centric interpretability asks why a model makes a decision based on its training data. Existing data-attribution methods, like influence functions, typically require calculating expensive Hessian matrices, making them computationally impractical for large language models (LLMs).

To solve this, the authors tackle the efficiency gap by using a representation-based approach to answer a fundamental question: Which training samples contribute the most when a language model decides to predict a specific token?

Methods

The authors utilize the Representer Theorem to decompose the parameters of the final token prediction layer (the language model head) into a linear combination of the training samples' hidden representations.

  • Support Samples: Training samples are assigned an importance coefficient ($\alpha_i$). If the absolute value of this coefficient meets or exceeds a threshold ($\tau = 0.9$), it is classified as a support sample.
  • Two Types of Support: The mathematical decomposition reveals two distinct behaviors:
  • Type-1 (The Pull): Samples with the same target token but low prediction confidence. These pull the model toward making the correct prediction.
  • Type-2 (The Push): Samples with different target tokens that the model mistakenly predicts with high confidence. These act as negative constraints, pushing the model away from incorrect tokens.
  • Predicting Support Status: To determine if "supportiveness" is an intrinsic property, the authors train simple linear and MLP classifiers on features (hidden states and gradients) extracted from models at various training stages—including a completely untrained, randomly initialized baseline.

Datasets

  • Wikitext-2: Used for core profiling and layer-wise analysis (2.37M training samples).
  • Wikitext-103: Used for data-scaling experiments (up to 117M training samples).
  • Models: GPT-2 architectures ranging from 117M to 1.5B parameters.

Key Insights and Ideas

  • "Hardness" is Intrinsic: You don't need to train a language model to know which data points will be the most influential. The gradients of a randomly initialized model contain enough geometric information to identify future support samples with roughly 80% accuracy.
  • The "Push" is Crucial: Traditional data selection often prioritizes high-perplexity data (similar to Type-1 samples). However, this paper demonstrates that Type-2 support samples are equally vital; removing them causes the model to confidently output incorrect tokens.
  • Non-Support Samples are the Backbone: Although you can successfully train a model's final prediction head using mostly support samples, full-model training fails without non-support samples. They act as vital regularizers against overfitting and dominate representation learning in deeper layers.

Key Results

  • High Volume of Support: In a standard 117M parameter GPT-2 model, 54% of the training dataset qualifies as support samples.
  • Highly Skewed Distribution: A tiny fraction of tokens (like "and", "in", "a") require tens of thousands of support samples, whereas 58% of the vocabulary requires fewer than 10 support samples.
Figure 1: Number distribution of support samples for each token v. Blue bars are the top 42% tokens with the most support samples. Orange bars are the remaining 58% tokens which have less than 10 support samples. The table shows the number of the top 5 tokens.
  • Semantic Density: Support samples are heavily concentrated in semantically rich Part-of-Speech (POS) tags. For instance, 86% of verbs are support samples, compared to only 20% of punctuations.
Figure 2: Proportion of support samples in different POS tags. “Random” means that a random sampling on the full dataset will pick 54% (which is the proportion of support samples) support samples. The figure shows that the proportions of support samples in two POS-tag groups significantly differ from the random proportion.
  • Layer-wise Surges: Probing the model layer-by-layer reveals that the proportion of non-support samples remains low in early layers but surges dramatically around the 5th and 6th layers, visualizing the point where the model shifts toward abstract representation learning.

Limitations and Future Work

  • Ambiguous Boundaries: The division between support and non-support samples relies on a hard threshold ($\tau$). Because the transition is continuous rather than discrete, classification near the boundary carries inherent ambiguity.
  • Objective Function Dependency: The framework is strictly tied to the standard cross-entropy (MLE) loss and argmax decoding. The authors note that alternative training objectives or sampling-based decoding strategies might yield entirely different data-support dynamics.

Summary updated

Abstract

Language models excel in various tasks by making complex decisions, yet understanding the rationale behind these decisions remains a challenge. This paper investigates \emph{data-centric interpretability} in language models, focusing on the next-word prediction task. Using representer theorem, we identify two types of \emph{support samples}-those that either promote or deter specific predictions. Our findings reveal that being a support sample is an intrinsic property, predictable even before training begins. Additionally, while non-support samples are less influential in direct predictions, they play a critical role in preventing overfitting and shaping generalization and representation learning. Notably, the importance of non-support samples increases in deeper layers, suggesting their significant role in intermediate representation formation. These insights shed light on the interplay between data and model decisions, offering a new dimension to understanding language model behavior and interpretability.
BibTeX
@inproceedings{li2025support,
  author = {Yuqian Li and Yupei Du and Yufang Liu and Feifei Feng and Mou Xiao Feng and Yuanbin Wu},
  title = {{On Support Samples of Next Word Prediction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure