Rethinking Perplexity: Revealing the Impact of Input Length on Perplexity Evaluation in LLMs

Letian Cheng, Junyan Wang, Yan Gao, Elliott Wen, Ting Dang +1 more
2/4/2026
cs.LGcs.CL

No confident code implementation found for this paper.

Abstract

Perplexity is a widely adopted metric for assessing the predictive quality of large language models (LLMs) and often serves as a reference metric for downstream evaluations. However, recent evidence shows that perplexity can be unreliable, especially when irrelevant long inputs are used, raising concerns for both benchmarking and system deployment.

Show full abstract

While prior efforts have employed selective input filtering and curated datasets, the impact of input length on perplexity has not been systematically studied from a systems perspective and input length has rarely been treated as a first-class system variable affecting both fairness and efficiency. In this work, we close this gap by introducing LengthBenchmark, a system-conscious evaluation framework that explicitly integrates input length, evaluation protocol design, and system-level costs, evaluating representative LLMs under two scoring protocols (direct accumulation and fixed window sliding) across varying context lengths. Unlike prior work that focuses solely on accuracy-oriented metrics, LengthBenchmark additionally measures latency, memory footprint, and evaluation cost, thereby linking predictive metrics to deployment realities. We further incorporate quantized variants not as a main contribution, but as robustness checks, showing that length-induced biases persist across both full-precision and compressed models. This design disentangles the effects of evaluation logic, quantization, and input length, and demonstrates that length bias is a general phenomenon that undermines fair cross-model comparison. Our analysis yields two key observations: (i) sliding window evaluation consistently inflates performance on short inputs, and (ii) both full-precision and quantized models appear to realise gains as the evaluated segment length grows.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{cheng2026rethinking,
  title  = {Rethinking Perplexity: Revealing the Impact of Input Length on Perplexity Evaluation in LLMs},
  author = {Letian Cheng and Junyan Wang and Yan Gao and Elliott Wen and Ting Dang and Hong Jia},
  year   = {2026},
  eprint = {2602.04099},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.04099v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.04099.svg)](https://codeofpaper.com/paper/2602.04099)

Discussion