Is my model perplexed for the right reason? Contrasting LLMs' Benchmark Behavior with Token-Level Perplexity
Authors: Zoë Prins, Samuele Punzo, Frank Wildenburg, Giovanni Cinà, Sandro Pezzelle
Organizations: Graduate School of Informatics, University of Amsterdam · College of Informatics, University of Amsterdam · Department of Medical Informatics, Amsterdam University Medical Center · Institute for Logic, Language and Computation (ILLC), University of Amsterdam
Standard evaluations of Large language models (LLMs) focus on task performance, offering limited insight into whether correct behavior reflects appropriate underlying mechanisms and risking confirmation bias. We introduce a simple, principled interpretability framework based on token-level perplexity to test whether models rely on linguistically relevant cues. By comparing perplexity distributions over minimal sentence pairs differing in one or a few `pivotal' tokens, our method enables precise, hypothesis-driven analysis without relying on unstable feature-attribution techniques. Experiments on controlled linguistic benchmarks with several open-weight LLMs show that, while linguistically important tokens influence model behavior, they never fully explain perplexity shifts, revealing that models rely on heuristics other than the expected linguistic ones.
Figures & tables
Task
# Sent.
Control
Problematic
Pivotal Tokens
BLIMP - Animacy
1,000
Amanda was respected by some waitresses
Amanda was respected by some picture
[waitresses, picture]
BLIMP - Anaphor
1,000
Katherine can’t help herself
Katherine can’t help himself
[himself, herself]
DUST
2,097
In the storm, the trees fell down and crashed through the roof of my house. Now, I have to get them removed.
In the storm, the tree fell down and crashed through the roof of my house. Now, I have to get it removed.
[tree, it, trees, them]
Stereotypes
1,286
The rich are really ignorant about how to handle the money they do have.
The poor are really ignorant about how to handle the money they do have.
[poor, rich]
Non-sense words
250
af doi broiz day thag plown
af doi broiz oos thag plown
[day, oos]
Table 1: Overview of the tasks, showing the distinction between the 2 sentences of a minimal pair.
Figure 1: Plain proportion of perplexity difference between minimal pairs explained by pivotal token(s) (dots) and accuracy (triangles) of all models on a specific task. Bars represent standard error. Best viewed in color.
Figure 2: Natural logarithm of the number of sentences (y-axis) across models and tasks, given a fixed prompt, in which the proportion of the difference in perplexity is explained by key tokens (x-axis).
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 3: Natural logarithm of the number of sentences (y-axis) in the nonsense words task for which a proportion of the difference in perplexity is explained by key tokens (x-axis). We see that the pivotal tokens explain a bigger proportion of the difference in perplexity then other tokens and/or periods, although only a maximum of ±50% of the difference in perplexity is explained by these tokens.
Figure 4: Natural logarithm of the number of sentences (y-axis) in the BLiMP animacy task for which a proportion of the difference in perplexity is explained by key tokens (x-axis). We see that the pivotal tokens explain a bigger proportion of the difference in perplexity than other tokens, with only a small amount being explained by the periods. However, we can notice as also for this task the pivotal tokens are accountable for only a maximum of ±50% of the difference in perplexity.
Figure 5: Natural logarithm of the number of sentences (y-axis) in the BLiMP anaphor agreement task for which a proportion of the difference in perplexity is explained by key tokens (x-axis). We see that the pivotal tokens explain a greater proportion of the difference in perplexity than other tokens, but with a non-negligible amount being explained also by the periods. As for the previous task we can notice how the pivotal tokens account for only a maximum of ±50% of the difference in perplexity.
Figure 6: Natural logarithm of the number of sentences (y-axis) in the stereotypes task for which a proportion of the difference in perplexity is explained by key tokens (x-axis). Here, we can notice how the pivotal tokens along with the periods explains the bigger proportion of the difference in perplexity. Again, as for the previous tasks these tokens accounts for only a maximum of ±50% of the difference in perplexity.
Figure 7: Natural logarithm of the number of sentences (y-axis) in the DUST task for which a proportion of the difference in perplexity is explained by key tokens (x-axis). For this task we can observe how pivotal tokens are almost entirely accountable for the difference in perplexity, also DUST is the only task where these tokens account for the entire difference.
Large language model (LLM) interpretability studies how internal representations and computations produce outputs, and how they can be explained or controlled.
The rapid advancement of Large Language Models (LLMs) has established standardized evaluation benchmarks as the primary instrument for model comparison. Yet, their reliability is increasingly questioned due to sensitivity to shallow variations in input prompts. This paper examines how controlled, truth-conditionally equivalent lexical and syntactic perturbations affect the absolute performance and relative ranking of 23 contemporary LLMs across three benchmarks: MMLU, SQuAD, and AMEGA. We employ two linguistically principled pipelines to generate meaning-preserving variations: one performing synonym substitution for lexical changes, and another using dependency parsing to determine applicable syntactic transformations. Results show that lexical perturbations consistently induce substantial, statistically significant performance degradation across nearly all models and tasks, while syntactic perturbations have more heterogeneous effects, occasionally improving results. Both perturbation types destabilize model leaderboards on complex tasks. Furthermore, model robustness did not consistently scale with model size, revealing strong task dependence. Overall, the findings suggest that LLMs rely more on surface-level lexical patterns than on abstract linguistic competence, underscoring the need for robustness testing as a standard component of LLM evaluation.
Bogdan Kostić, Conor Fallon, Julian Risch +1
Berliner Hochschule für Technik (BHT) - Luxemburger Straße 10, 13467 Berlin · deepset GmbH - Zinnowitzer Straße 1, 10115 Berlin
The generative nature of Large Language Models (LLMs) is reflected in the conditional probabilities they compute to sample each response token given the previous tokens. These probabilities encode the distributional structure that the model learns in training and exploits in inference. In this work, we use these probabilities to situate LLMs within the mathematical theory of stochastic processes. We use this framework to design a model-agnostic probabilistic token attribution measure, using Bayes rule to invert the next-token log-probabilities so as to capture the models internal representation of the distribution over token sequences. The representation is independent of the models computational structure. This representation yields the conditional probability of the response given the prompt, and of the response given the prompt with a token marginalized away. Our attribution score is the log of the ratio of these probabilities. We further compute the entropies of a single prompts token distributions, conditioned on the remaining context. The interplay between entropy and attribution score sheds light on LLM behavior. We evaluate 8 models across 7 prompts and investigate anomalies, token sensitivity, response stability, model stability, and training convergence, thereby improving interpretability and guiding users to focus on uncertain or unstable parts of the generation.
Shilpika Shilpika, Carlo Graziani, Bethany Lusch +2
Argonne Leadership Computing Facility Argonne National Laboratory Lemont, IL, USA · Mathematics and Computer Science Division Argonne National Laboratory Lemont, IL, USA · Department of Computer Science University of Illinois Chicago Chicago, IL, USA
As Large Language Models (LLMs) are increasingly deployed as autonomous agents, accurately evaluating their latent values and biases is critical. The NLP community typically evaluates models using large, unstructured benchmarks. While effective for general capabilities, these datasets fundamentally conflate causal mechanisms: even when an aggregate bias is detected, unstructured evaluations cannot disentangle whether it stems from baseline traits, contextual confounders, or complex interactions. To address this, we introduce an analytically exact framework for the controlled behavioral evaluation of LLMs. We bridge human psychometrics with LLM mechanics by resolving gaps in design, measurement, and analysis. First, we replace unstructured prompting with fully crossed factorial experiments to systematically isolate causal main and interaction effects. Second, we eliminate Monte Carlo text sampling noise by operating directly on exact, token-level Probability Mass Functions (PMFs). Third, we derive a multivariate ordinal consensus metric and a distributional ANOVA to process these PMFs analytically. We validate our framework with a case study on consumer ethnocentrism across five LLMs, demonstrating how our approach isolates systemic country-of-origin biases that aggregate benchmarks otherwise obscure.
Davood Wadi, Mohsen Ghodrat, Matthew Philp
McGill University · University Canada West · Marketing Management +1