NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Establishing Trustworthy LLM Evaluation via Shortcut Neuron Analysis

Kejian Zhu, Shangqing Tu, Zhuoran Jin, Lei Hou, Juanzi Li, Jun Zhao

Introduction

Data contamination has become a pervasive issue in the evaluation of Large Language Models (LLMs). As these models are trained on vast internet-scale datasets, they frequently encounter the questions and answers of standard benchmarks. This leads to inflated performance metrics where a model appears to possess advanced reasoning capabilities but is actually relying on memorized patterns—effectively "memorizing the answer key."

Traditional mitigation strategies, such as dynamic benchmarks, involve a continuous and resource-intensive "cat-and-mouse" game of creating new evaluation sets. This research proposes a paradigm shift: instead of changing the data, we can analyze and intervene in the model's internal mechanics to identify and suppress these "shortcuts."

Methodology: Locating and Patching Shortcut Neurons

The core of the proposed approach is the identification of shortcut neurons—specific parameters that learn to map input formats or reasoning steps directly to benchmark answers. The process involves two primary phases:

  1. Comparative Analysis: The researchers compare neuron activations between a "contaminated" model (fine-tuned on benchmark data) and an "uncontaminated" base version. Neurons exhibiting significantly divergent activation patterns are flagged as potential shortcuts.
  2. Causal Analysis (Activation Patching): To confirm causality, the activations of flagged neurons in the contaminated model are replaced with those from a clean base model. If this "patching" restores the model's performance to its true baseline on contaminated data without degrading general capabilities, the neurons are confirmed as shortcuts.
The workflow for identifying and patching shortcut neurons involves comparative activation analysis and causal patching to establish a trustworthy evaluation score.

Once identified, these neurons (typically the top 5,000) are patched during evaluation. This forces the model to bypass memorized shortcuts and rely on its genuine underlying reasoning paths.

Experimental Setup and Datasets

The study focuses on mathematical reasoning, a domain particularly vulnerable to contamination. The researchers utilized a variety of datasets to validate the method:

  • Contamination Simulation: GSM8K and MATH, including paraphrased versions (GSM-i, MATH-Syn) to test for input format shortcuts.
  • Generalization: SVAMP, ASDiv, and MAWPS.
  • General Capability: MMLU, used as a control to ensure patching does not impair the model's broader intelligence.
  • Reference Benchmarks: MixEval (aligned with real-world queries) and OpenMathInstruct-2 served as "gold standards" for validating the accuracy of patched scores.

Results and Discussion

The analysis revealed several critical insights into the nature of LLM shortcuts:

Sparsity of Shortcuts

Shortcut neurons are remarkably sparse. In models like Llama-2-7B and Mistral-7B, only approximately 5,000 neurons (1.1% to 1.4% of the total) were found responsible for the inflated benchmark performance. This sparsity allows for highly targeted interventions.

Score Correction and Validation

For models with simulated contamination on GSM8K, patching resulted in an average accuracy drop of 37%, successfully bringing scores back to the level of uncontaminated base models. Crucially, when applied to uncontaminated datasets like MMLU, the performance change was negligible (less than 3%), demonstrating the specificity of the patch.

The method's effectiveness is further underscored by its high correlation with contamination-resistant benchmarks. The patched scores achieved a Spearman correlation exceeding 0.95 with both MixEval and OpenMathInstruct-2.

Correlation between the proposed Trustworthy Score and reference benchmarks (OpenMathInstruct and MixEval), showing high alignment with realistic performance levels.

Real-World Application

Testing on popular open-source models revealed significant score drops (up to 23.5 points) post-patching. This suggests that many high-performing models on public leaderboards may rely heavily on benchmark-specific shortcuts rather than superior reasoning.

Conclusion

This research demonstrates that data contamination can be effectively mitigated by identifying and patching a tiny fraction of "shortcut neurons." By unmasking a model's true capabilities, this method provides a scalable and resource-efficient path toward more trustworthy LLM evaluation. Future work will explore the applicability of this technique to other architectures and domains such as coding and creative writing.

Summary updated

BibTeX
@inproceedings{zhu2025establishing,
  author = {Kejian Zhu and Shangqing Tu and Zhuoran Jin and Lei Hou and Juanzi Li and Jun Zhao},
  title = {{Establishing Trustworthy LLM Evaluation via Shortcut Neuron Analysis}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure