Next Token Perception Score: Analytical Assessment of your LLM Perception Skills

Yu-Ang Cheng, Leyang Hu, Hai Huang, Randall Balestriero

TL;DR

While large language models (LLMs) excel at next-token prediction, their pretrained features don't always align well with downstream perception tasks like classification. This paper introduces the Next Token Perception Score (NTPS), a closed-form metric that quantifies this alignment by measuring the overlap between autoregressive and perception feature subspaces. NTPS not only strongly correlates with linear probe performance but also serves as a lightweight prescreening tool to predict accuracy gains from LoRA fine-tuning.

What Problem Does This Paper Address?

Autoregressive pretraining—predicting the next token in a sequence—is the undisputed standard for training LLMs. The common assumption is that these models learn general-purpose representations that can easily transfer to downstream perception tasks via simple methods like linear probing or prompting.

However, linear probe performance varies wildly across different tasks. In some cases, training a model from scratch on a specific dataset actually yields significantly better results than using a massive pretrained model. This indicates a fundamental misalignment: features optimized for predicting the next token do not consistently map to the features required for downstream semantic perception. This paper addresses the challenge of mathematically quantifying this (mis)alignment to understand when and why linear probing fails, and how much fine-tuning can help.

Methods

The authors introduce the Next Token Perception Score (NTPS), a metric derived under a linear regime using generalized eigenvalue problems. They characterize two distinct optimal feature spaces:

  1. Autoregressive subspace ($V$): Optimized for next-token prediction.
  2. Perception subspace ($U$): Optimized for downstream task regression/classification.

NTPS continuously measures the overlap between these two subspaces by calculating the total squared projection of the perception subspace onto the autoregressive subspace:

$$\text{NTPS}(U, V) = \frac{\|P_k U_k\|_F^2}{\|U_k\|_F^2}$$

Where $P_k$ is the orthogonal projector onto the column space of $V$. Crucially, NTPS can be computed in closed form directly from pretrained representations and labeled data without training any classifiers. Furthermore, the authors theoretically prove that NTPS tightly bounds the excess regression loss of an autoregressive encoder.

Datasets

The authors evaluated their approach across 12 diverse NLP datasets spanning multiple domains:

  • Sentiment/Emotion: SST-2, Rotten Tomatoes, Climate Sentiment, IMDB, Emotion
  • Classification/Targeted tasks: Intent Classification, Clickbait Title Classification, Bias Identification, Banking, SMS Spam, Medical Question Pairs, CommonsenseQA

They tested these datasets across 8 pretrained models ranging from 270M to 8B parameters: Qwen2 (0.5B, 1.5B, 7B), OpenELM (270M, 450M, 1.1B, 3B), and LLaMA3-8B.

Key Insights and Ideas

  • Subspace Divergence: Autoregressive pretraining and perception tasks prioritize fundamentally different feature structures. For instance, in an emotion dataset, the perception space cleanly separates semantic polarities (e.g., "joy" vs. "sad"). In contrast, the autoregressive space clusters syntactic categories (e.g., adjectives vs. function words) while letting emotional classes overlap.
2D projections of representations learned through perception vs autoregression tasks
  • LoRA as a Subspace Aligner: The paper reveals why Low-Rank Adaptation (LoRA) is so effective. By measuring NTPS before and after fine-tuning, they show that LoRA systematically rotates and alters feature subspaces to increase their overlap with the perception task.
  • Predicting Fine-Tuning Headroom: NTPS acts as an inverse predictor for fine-tuning gains. If a model has a low initial NTPS on a task, it has a lot of "headroom" to improve, meaning it will enjoy a massive accuracy boost from LoRA. Conversely, a high initial NTPS means the model is already well-aligned and won't benefit much from further fine-tuning.

Key Results

  • Linear Probing vs. Full Training: The authors confirmed that linear probing on pretrained models can underperform training from scratch on certain datasets, notably on the Emotion and Medical text classification tasks.
Table 1: Comparison of linear probing performance of pretrained models versus full-training from scratch across downstream datasets. Linear probing can outperform, match, or underperform full-training from scratch, indicating that pretrained LLM representations are not universally effective.
  • Strong Performance Correlation: Empirically, NTPS strongly correlates with both downstream MSE loss and classification accuracy. Spearman’s $r$ correlation coefficients reached up to 0.82 for accuracy rankings across the evaluated models.
Figure 2: Correlation between NTPS and downstream MSE loss (rows 1 and 2), and between NTPS and accuracy (rows 3 and 4), with dashed lines indicating linear regression fits. Higher alignment scores correspond to lower MSE loss and higher accuracy in downstream tasks.
  • LoRA Prescreening Success: LoRA fine-tuning increased NTPS in 71 out of 96 experimental runs. The initial NTPS reliably predicted the subsequent LoRA accuracy gains, with Spearman’s $r$ ranging from 0.40 to 0.90 across the models, validating it as an excellent lightweight prescreening tool.

Limitations and Future Work

  • Linear Setting Simplification: NTPS is derived under a simplified linear assumption. It does not currently account for the non-linear dynamics introduced by attention mechanisms. The authors suggest extending this theory to linear attention models in future work.
  • Hyperparameter Selection: Computing NTPS requires choosing specific configurations, such as the subspace dimension $k$ and the target layer $l$. Currently, finding the optimal configuration requires an exhaustive search. Developing a more principled strategy to select these parameters beforehand remains an open challenge.

Summary updated

BibTeX
@misc{cheng2025next,
  author = {Yu-Ang Cheng and Leyang Hu and Hai Huang and Randall Balestriero},
  title = {{Next Token Perception Score: Analytical Assessment of your LLM Perception Skills}},
  year = {2025},
  eprint = {2505.17169},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.17169},
}
Figure