English

LogitTrace: Detecting Benchmark Contamination via Layerwise Logit Trajectories

Computation and Language 2026-05-12 v2

Abstract

Large language models (LLMs) are commonly evaluated on challenging benchmarks such as AIME and Math500, where benchmark contamination can make memorized solutions appear as genuine reasoning. Existing detection methods largely rely on surface overlap, completion behavior, or final-output likelihood, and often degrade when inputs are simply rephrased. In this paper, we propose LogitTrace(Layerwise Logit Trajectories), a framework for analyzing memorization-like decision dynamics through intermediate logit trajectories. Instead of judging memorization only from the final answer, LogitTrace examines how model preferences emerge and stabilize across layers. We find that contaminated examples tend to show earlier commitment, while clean examples exhibit more gradual evidence accumulation. These trajectory signals allow a lightweight classifier to separate contaminated and clean examples across multiple models and input variants. Controlled LoRA injection experiments further show that repeated exposure to target samples induces similar trajectory patterns. Overall, our results suggest that LogitTrace provides evidence beyond surface overlap and final-output confidence, offering a useful lens for studying memorization-like behavior in LLMs.

Keywords

Cite

@article{arxiv.2509.20909,
  title  = {LogitTrace: Detecting Benchmark Contamination via Layerwise Logit Trajectories},
  author = {Zirui He and Haiyan Zhao and Yingcong Li and Ali Payani and Mengnan du},
  journal= {arXiv preprint arXiv:2509.20909},
  year   = {2026}
}

Comments

23pages, 10 figures, 9tables

R2 v1 2026-07-01T05:55:38.784Z