mlsanityData to 14 Oct 2026

Fixing Large Language Models' Specification Misunderstanding for Better Code Generation

arXiv 2309.16120 ↗First posted 28 Sep 2023cs.SEcited by 17

Not on the map. Why?

Abstract (arXiv)

Code generation is to automatically generate source code conforming to a given programming specification, which has received extensive attention especially with the development of large language models (LLMs). Due to the inherent difficulty of code generation, the code generated by LLMs may not be aligned with the specification. Although thought-eliciting prompting techniques have been proposed to enhance the code generation performance of LLMs, producing correct understanding for complicated programming problems remains challenging, resulting in unsatisfactory performance. Also, some feedback-based prompting techniques have been proposed to fix incorrect code using error messages produced by test execution. However, when the generated code deviates significantly from the ground truth, they encounter difficulties in improving performance based on such coarse-grained information. In this work, we propose a novel prompting technique, called μFiX, to improve the code generation performance of LLMs by devising both sophisticated thought-eliciting prompting and feedback-based prompting and making the first exploration on their synergy. It first exploits test case analysis to obtain specification understanding and enables a self-improvement process to identify and refine the misunderstanding in the thought-eliciting prompting phase. μFiX further fixes the specification understanding towards the direction reducing the gap between the provided understanding (from the first phase) and the actual understanding implicitly utilized by LLMs for code generation in the feedback-based prompting phase. By improving the understanding with μFiX, the code generation performance of LLMs can be largely improved. Our evaluation on two advanced LLMs (ChatGPT and DeepSeek-Coder) with six widely-used benchmarks by comparing with 15 baselines, demonstrates the effectiveness of μFiX ...

Key facts. Cited by 17 papers in the map (data through 14 Oct 2026). First posted on arXiv 28 Sep 2023.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 3; 2025: 9; 2026: 5.

17 papers.

Sort:

By area:

  1. 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 300
  2. 2025Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scalingcited by 94
  3. 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
  4. 2025Hallucination to Consensus: Multi-Agent LLMs for End-to-End JUnit Test Generationcited by 9
  5. 2025RefAgent: A Multi-agent LLM-based Framework for Automatic Software Refactoringcited by 8
  6. 2024Planning-Driven Programming: A Large Language Model Programming Workflowcited by 7
  7. 2025Reasoning as a Resource: Optimizing Fast and Slow Thinking in Code Generation Modelscited by 3
  8. 2024Self-Explained Keywords Empower Large Language Models for Code Generationcited by 2
  9. 2025NES: An Instruction-Free, Low-Latency Next Edit Suggestion Framework Powered by Learned Historical Editing Trajectoriescited by 2
  10. 2025TENET: One Step Toward Test-Driven Development for Repository-Level Code Generationcited by 2
  11. 2026Defective Task Descriptions in LLM-Based Code Generation: Detection and Analysiscited by 2
  12. 2025A Blueprint for AI-Driven Software Quality: Integrating LLMs with Established Standardscited by 1
5 more
  1. 2025Knowledge-Graph-Driven Data Synthesis for Low-Resource Software Development: A HarmonyOS Case Studycited by 1
  2. 2026From Helpful to Trustworthy: LLM Agents for Pair Programmingcited by 0
  3. 2026Improving LLM Code Generation via Requirement-Aware Curriculum Reinforcement Learningcited by 0
  4. 2026Agent-Based Test Assertion Generation via Diverse Perspective Aggregationcited by 0
  5. 2026Security in LLM-Assisted Coding: A Systematic Literature Reviewcited by 0