paper-with-me

Papers

Refining Critical Thinking in LLM Code Generation: A Faulty Premise-based Evaluation Framework

2025-08-05 · Jialin Li, Jinzhe Li, Gengxu Li, Yi Chang, Yuan Wu arxiv

With the advancement of code generation capabilities in large language models (LLMs), their reliance on input premises has intensified. When users provide inputs containing faulty premises, the probability of code generation hallucinations rises significantly, exposing deficiencies in their self-scrutiny capabilities. This paper proposes Faulty Premises Bench (FPBench), the first code generation evaluation framework targeting faulty premises. By systematically constructing three categories of faulty premises and integrating multi-dimensional evaluation metrics, it conducts in-depth assessments of 15 representative LLMs. The key findings are as follows: (1) Most models exhibit poor reasoning abilities and suboptimal code generation performance under faulty premises, heavily relying on explicit prompts for error detection, with limited self-scrutiny capabilities; (2) Faulty premises trigger a point of diminishing returns in resource investment, leading to blindly increasing length fails to enhance quality; (3) The three types of faulty premises respectively activate distinct defect patterns in models, revealing a triple dissociation in the cognitive mechanisms of code generation models. This study not only highlights the urgent need for LLMs to proactively verify premises in code generation but also, through the proposed FPBench framework and multi-dimensional evaluation system, provides a theoretical foundation and practical pathway for developing reliable, human-centric code generation models.

📄 PDF Abstract BibTeX arXiv:2508.03622

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

Can Github issues be solved with Tree Of Thoughts?

2024-05-20 · Ricardo La Rosa, Corey Hulse, Bangdi Liu

While there have been extensive studies in code generation by large language models (LLM), where benchmarks like HumanEval have been surpassed with an impressive 96.3% success rate, these benchmarks predominantly judge a…

Code GenerationGitHub issue resolutionHumanEvalLanguage Modelling+2

CYCLE: Learning to Self-Refine the Code Generation

2024-03-27 · Yangruibo Ding, Marcus J. Min, Gail Kaiser, Baishakhi Ray

Pre-trained code language models have achieved promising performance in code generation and improved the programming efficiency of human developers. However, their self-refinement capability is typically overlooked by th…

Code GenerationHumanEvalmbpp

Generating Concise Patches for Newly Released Programming Assignments

2023-01-23 · IEEE Transactions on Software Engineering 2023 1 · Leping Li, Hui Liu, Kejun Li, Yanjie Jiang 외

In programming courses, providing students with concise and constructive feedback on faulty submissions (programs) is highly desirable. However, providing feedback manually is often time-consuming and tedious. To releas…

Think Anywhere in Code Generation

2026-03-31 · Xue Jiang, Tianyu Zhang, Ge Li, Mengyang Liu 외 arxiv

Recent advances in reasoning Large Language Models (LLMs) have primarily relied on upfront thinking, where reasoning occurs before final answer. However, this approach suffers from critical limitations in code generation…

Code Generation

Large Language Models Should Ask Clarifying Questions to Increase Confidence in Generated Code

2023-08-25 · Jie JW Wu

Large language models (LLMs) have significantly improved the ability to perform tasks in the field of code generation. However, there is still a gap between LLMs being capable coders and being top-tier software engineers…

Code Generation