mlsanityData to 7 Oct 2026

When Prompts Go Wrong: Evaluating Code Model Robustness to Ambiguous, Contradictory, and Incomplete Task Descriptions

arXiv 2507.20439 ↗First posted 27 Jul 2025cs.SE cs.AIcited by 8

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have demonstrated impressive performance in code generation tasks under idealized conditions, where task descriptions are clear and precise. However, in practice, task descriptions frequently exhibit ambiguity, incompleteness, or internal contradictions. In this paper, we present the first empirical study examining the robustness of state-of-the-art code generation models when faced with such unclear task descriptions. We extend the HumanEval and MBPP benchmarks by systematically introducing realistic task descriptions flaws through guided mutation strategies, producing a dataset that mirrors the messiness of informal developer instructions. We evaluate multiple LLMs of varying sizes and architectures, analyzing their functional correctness and failure modes across task descriptions categories. Our findings reveal that even minor imperfections in task description phrasing can cause significant performance degradation, with contradictory task descriptions resulting in numerous logical errors. Moreover, while larger models tend to be more resilient than smaller variants, they are not immune to the challenges posed by unclear requirements. We further analyze semantic error patterns and identify correlations between description clarity, model behavior, and error types. Our results underscore the critical need for developing LLMs that are not only powerful but also robust to the imperfections inherent in natural user tasks, highlighting important considerations for improving model training strategies, designing more realistic evaluation benchmarks, and ensuring reliable deployment in practical software development environments.

Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 16 of its 50 references that are in the map. First posted on arXiv 27 Jul 2025.

Builds on

16 of 50 references.

References · 16

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  2. 2021Program Synthesis with Large Language Modelscited by 3,509
  3. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  4. 2021Measuring Coding Challenge Competence With APPScited by 879
  5. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
  6. 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
  7. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  8. 2022GitHub Copilot AI pair programmer: Asset or Liability?cited by 150
  9. 2023Towards an Understanding of Large Language Models in Software Engineering Taskscited by 67
  10. 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 52
  11. 2025LiveCodeBench Pro: How Do Olympiad Medalists Judge LLMs in Competitive Programming?cited by 52
  12. 2023DeceptPrompt: Exploiting LLM-driven Code Generation via Adversarial Natural Language Instructionscited by 31
4 more
  1. 2023Systematic Evaluation of GPT-3 for Zero-Shot Personality Estimationcited by 28
  2. 2024HumanEvalComm: Benchmarking the Communication Competence of Code Generation for LLMs and LLM Agentcited by 24
  3. 2021Software Effort Estimation Accuracy Prediction of Machine Learning Techniques: A Systematic Performance Evaluationcited by 3
  4. 2024Enhancing Software Effort Estimation through Reinforcement Learning-based Project Management-Oriented Feature Selectioncited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 6.

8 papers.