Re-Evaluating Code LLM Benchmarks Under Semantic Mutation
Not on the map. Why?
Abstract (arXiv)
In the era of large language models (LLMs), code benchmarks have become an important research area in software engineering and are widely used by practitioners. These benchmarks evaluate the performance of LLMs on specific code-related tasks, such as code understanding and generation. A critical step in constructing code benchmarks is the design of prompts. However, as existing code benchmarks typically rely on a single prompt template per task, they are prone to the issue of prompt sensitivity, where minor prompt variations could result in substantial performance variations, leading to unreliable evaluations of model capabilities. While previous studies have explored prompt sensitivity, their experimental designs and findings are limited to traditional natural language processing (NLP) tasks. In this paper, we present an empirical study to investigate prompt sensitivity in code benchmarks. We first propose a general framework that modifies prompt templates in a manner that preserves both their semantics and their structure as much as possible. Based on the framework, we conduct extensive experiments across eight code benchmark tasks on 10 representative open-source LLMs, with each task featuring 100 semantically similar prompt templates. We then analyze the evaluation results using various statistical metrics, focusing on both absolute and relative model performance. Our findings suggest that even slight prompt variations can lead to significant shifts in performance. Additionally, we observe that such variations can introduce inconsistencies in the performance rankings across different models. These insights highlight the need for considering prompt sensitivity when designing future code benchmarks, to ensure more reliable and accurate evaluation of LLM capabilities.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 27 of its 41 references that are in the map. First posted on arXiv 20 Jun 2025.
Builds on
27 of 41 references.
References · 27
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 868
- 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 817
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 353
- 2023State of What Art? A Call for Multi-Prompt LLM Evaluationcited by 310
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 300
15 more
- 2024ProSA: Assessing and Understanding the Prompt Sensitivity of LLMscited by 149
- 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
- 2020Unit Test Case Generation with Transformers and Focal Contextcited by 118
- 2022Large Language Models are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Modelscited by 103
- 2024The Butterfly Effect of Altering Prompts: How Small Changes and Jailbreaks Affect Large Language Model Performancecited by 100
- 2023Fuzz4All: Universal Fuzzing with Large Language Modelscited by 88
- 2024Prompt Design and Engineering: Introduction and Advanced Methodscited by 45
- 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?cited by 45
- 2023PromptBench: A Unified Library for Evaluation of Large Language Modelscited by 44
- 2024Benchmarking Knowledge Boundary for Large Language Models: A Different Perspective on Model Evaluationcited by 38
- 2024On the Worst Prompt Performance of Large Language Modelscited by 38
- 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarkscited by 37
- 2022LMentry: A Language Model Benchmark of Elementary Language Taskscited by 22
- 2024CoderUJB: An Executable and Unified Java Benchmark for Practical Programming Scenarioscited by 11
- 2025Code Benchmarks Should Prioritize Rigor, Reliability, and Reproducibilitycited by 10
Built on by
Citing papers per year: 2026: 1.
1 paper.