mlsanityData to 14 Oct 2026

Success is in the Details: Evaluate and Enhance Details Sensitivity of Code LLMs through Counterfactuals

arXiv 2505.14597 ↗First posted 20 May 2025cs.CLcited by 1

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

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2024Qwen2.5 Technical Reportcited by 4,942
  3. 2021Program Synthesis with Large Language Modelscited by 3,637
  4. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
  5. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  6. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  7. 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,125
  8. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
  9. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
  10. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 452
  11. 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 353
  12. 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 331
18 more
  1. 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 247
  2. 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 168
  3. 2024InfiAgent-DABench: Evaluating Agents on Data Analysis Taskscited by 140
  4. 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 103
  5. 2024SelfCodeAlign: Self-Alignment for Code Generationcited by 62
  6. 2023WaveCoder: Widespread And Versatile Enhancement For Code Large Language Models By Instruction Tuningcited by 42
  7. 2021Counterfactual Explanations for Models of Codecited by 25
  8. 2024A Survey on Natural Language Counterfactual Generationcited by 21
  9. 2024The Counterfeit Conundrum: Can Code Language Models Grasp the Nuances of Their Incorrect Generations?cited by 20
  10. 2023CATfOOD: Counterfactual Augmented Training for Improving Out-of-Domain Performance and Calibrationcited by 17
  11. 2024CEval: A Benchmark for Evaluating Counterfactual Text Generationcited by 15
  12. 2024Do Large Code Models Understand Programming Concepts? Counterfactual Analysis for Code Predicatescited by 14
  13. 2024Black-Box Adversarial Attacks on LLM-Based Code Completioncited by 14
  14. 2024DolphCoder: Echo-Locating Code Large Language Models with Diverse and Multi-Objective Instruction Tuningcited by 11
  15. 2024InverseCoder: Self-improving Instruction-Tuned Code LLMs with Inverse-Instructcited by 8
  16. 2025A Preliminary Study on the Robustness of Code Generation by Large Language Modelscited by 5
  17. 2025RobuNFR: Evaluating the Robustness of Large Language Models on Non-Functional Requirements Aware Code Generationcited by 5
  18. 2022A Survey on Natural Language Processing for Programmingcited by 3

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.