paper-with-me

Papers

Large Language Model Guided Self-Debugging Code Generation

2025-02-05 · Muntasir Adnan, Zhiwei Xu, Carlos C. N. Kuhn

Automated code generation is gaining significant importance in intelligent computer programming and system deployment. However, current approaches often face challenges in computational efficiency and lack robust mechanisms for code parsing and error correction. In this work, we propose a novel framework, PyCapsule, with a simple yet effective two-agent pipeline and efficient self-debugging modules for Python code generation. PyCapsule features sophisticated prompt inference, iterative error handling, and case testing, ensuring high generation stability, safety, and correctness. Empirically, PyCapsule achieves up to 5.7% improvement of success rate on HumanEval, 10.3% on HumanEval-ET, and 24.4% on BigCodeBench compared to the state-of-art methods. We also observe a decrease in normalized success rate given more self-debugging attempts, potentially affected by limited and noisy error feedback in retention. PyCapsule demonstrates broader impacts on advancing lightweight and efficient code generation for artificial intelligence systems.

📄 PDF Abstract BibTeX arXiv:2502.02928

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationComputational EfficiencyHumanEvalLanguage ModelingLanguage ModellingLarge Language Modelmodel

Similar Papers 제목 키워드 기반

Teaching Large Language Models to Self-Debug

2023-04-11 · Xinyun Chen, Maxwell Lin, Nathanael Schärli, Denny Zhou

Large language models (LLMs) have achieved impressive performance on code generation. However, for complex programming tasks, generating the correct solution in one go becomes challenging, thus some prior works have desi…

Code GenerationLanguage ModelingLanguage ModellingLarge Language Model+4

NL-Debugging: Exploiting Natural Language as an Intermediate Representation for Code Debugging

2025-05-21 · Weiming Zhang, Qingyao Li, Xinyi Dai, Jizheng Chen 외

Debugging is a critical aspect of LLM's coding ability. Early debugging efforts primarily focused on code-level analysis, which often falls short when addressing complex programming errors that require a deeper understan…

Revisit Self-Debugging with Self-Generated Tests for Code Generation

2025-01-22 · Xiancai Chen, Zhengwei Tao, Kechi Zhang, Changzhi Zhou 외

Large language models (LLMs) have shown significant advancements in code generation, but still face challenges on tasks beyond their basic capabilities. Recently, the notion of self-debugging has been proposed to boost t…

Code Generation

VeriDebug: A Unified LLM for Verilog Debugging via Contrastive Embedding and Guided Correction

2025-04-27 · Ning Wang, Bingkun Yao, Jie zhou, Yuchen Hu 외

Large Language Models (LLMs) have demonstrated remarkable potential in debugging for various programming languages. However, the application of LLMs to Verilog debugging remains insufficiently explored. Here, we present …

Bug fixing

Effective Large Language Model Debugging with Best-first Tree Search

2024-07-26 · Jialin Song, Jonathan Raiman, Bryan Catanzaro

Large Language Models (LLMs) show promise in code generation tasks. However, their code-writing abilities are often limited in scope: while they can successfully implement simple functions, they struggle with more comple…

Code GenerationLanguage ModelingLanguage ModellingLarge Language Model