Success is in the Details: Evaluate and Enhance Details Sensitivity of Code LLMs through Counterfactuals
Not on the map. Why?
Abstract (arXiv)
Code Sensitivity refers to the ability of Code LLMs to recognize and respond to details changes in problem descriptions. While current code benchmarks and instruction data focus on difficulty and diversity, sensitivity is overlooked. We first introduce the CTF-Code benchmark, constructed using counterfactual perturbations, minimizing input changes while maximizing output changes. The evaluation shows that many LLMs have a more than 10% performance drop compared to the original problems. To fully utilize sensitivity, CTF-Instruct, an incremental instruction fine-tuning framework, extends on existing data and uses a selection mechanism to meet the three dimensions of difficulty, diversity, and sensitivity. Experiments show that LLMs fine-tuned with CTF-Instruct data achieve over a 2% improvement on CTF-Code, and more than a 10% performance boost on LiveCodeBench, validating the feasibility of enhancing LLMs' sensitivity to improve performance.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 30 of its 60 references that are in the map. First posted on arXiv 20 May 2025.
Builds on
30 of 60 references.
References · 30
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,125
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 452
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 353
- 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 331
18 more
- 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 247
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 168
- 2024InfiAgent-DABench: Evaluating Agents on Data Analysis Taskscited by 140
- 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 103
- 2024SelfCodeAlign: Self-Alignment for Code Generationcited by 62
- 2023WaveCoder: Widespread And Versatile Enhancement For Code Large Language Models By Instruction Tuningcited by 42
- 2021Counterfactual Explanations for Models of Codecited by 25
- 2024A Survey on Natural Language Counterfactual Generationcited by 21
- 2024The Counterfeit Conundrum: Can Code Language Models Grasp the Nuances of Their Incorrect Generations?cited by 20
- 2023CATfOOD: Counterfactual Augmented Training for Improving Out-of-Domain Performance and Calibrationcited by 17
- 2024CEval: A Benchmark for Evaluating Counterfactual Text Generationcited by 15
- 2024Do Large Code Models Understand Programming Concepts? Counterfactual Analysis for Code Predicatescited by 14
- 2024Black-Box Adversarial Attacks on LLM-Based Code Completioncited by 14
- 2024DolphCoder: Echo-Locating Code Large Language Models with Diverse and Multi-Objective Instruction Tuningcited by 11
- 2024InverseCoder: Self-improving Instruction-Tuned Code LLMs with Inverse-Instructcited by 8
- 2025A Preliminary Study on the Robustness of Code Generation by Large Language Modelscited by 5
- 2025RobuNFR: Evaluating the Robustness of Large Language Models on Non-Functional Requirements Aware Code Generationcited by 5
- 2022A Survey on Natural Language Processing for Programmingcited by 3
Built on by
Citing papers per year: 2025: 1.
1 paper.