paper-with-me

홈 › Papers

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

2025-01-22 · Xiancai Chen, Zhengwei Tao, Kechi Zhang, Changzhi Zhou, Wanli Gu, Yuanpeng He, Mengdi Zhang, Xunliang Cai, Haiyan Zhao, Zhi Jin

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 the performance of code generation by leveraging execution feedback from tests. Despite its promise, the availability of high-quality tests in real-world scenarios is limited. In this context, self-debugging with self-generated tests is a promising solution but lacks a full exploration of its limitations and practical potential. Therefore, we investigate its efficacy on diverse programming problems. To deepen our understanding, we propose two distinct paradigms for the process: post-execution and in-execution self-debugging. Within the scope of self-contained Python programming tasks, we find that post-execution self-debugging struggles on basic problems but shows potential for improvement on competitive ones, due to the bias introduced by self-generated tests. On the other hand, in-execution self-debugging enables LLMs to mitigate the bias by solely leveraging intermediate states during execution, thereby enhancing code generation.

📄 PDF Abstract BibTeX arXiv:2501.12793

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

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

VIBEPASS: Can Vibe Coders Really Pass the Vibe Check?

2026-03-16 · Srijan Bansal, Jiao Fangkai, Yilun Zhou, Austin Xu 외 arxiv

As Large Language Models shift the programming toward human-guided ''vibe coding'', agentic coding tools increasingly rely on models to self-diagnose and repair their own subtle faults -- a capability central to autonomo…

Program Repair

Agentic Framework for Deep Learning workload migration via In-Context Learning

2026-06-14 · Qiyue Liang, Steven Ingram, George Vanica, Andi Gavrilescu 외 arxiv

Translating deep learning models from PyTorch's flexible, object-oriented design to JAX's functional, stateless setup is usually a manual and error-prone task. Automated migration is challenging because Large Language Mo…

DOCE: Finding the Sweet Spot for Execution-Based Code Generation

2024-08-25 · Haau-Sing Li, Patrick Fernandes, Iryna Gurevych, André F. T. Martins

Recently, a diverse set of decoding and reranking procedures have been shown effective for LLM-based code generation. However, a comprehensive framework that links and experimentally compares these methods is missing. We…

Code GenerationReranking

LeDex: Training LLMs to Better Self-Debug and Explain Code

2024-05-28 · Nan Jiang, Xiaopeng Li, Shiqi Wang, Qiang Zhou 외

In the domain of code generation, self-debugging is crucial. It allows LLMs to refine their generated code based on execution feedback. This is particularly important because generating correct solutions in one attempt p…

Code GenerationReinforcement Learning (RL)