LeDex: Training LLMs to Better Self-Debug and Explain Code
–Neural Information Processing Systems
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 proves challenging for complex tasks. Prior works on self-debugging mostly focus on prompting methods by providing LLMs with few-shot examples, which work poorly on small open-sourced LLMs. In this work, we propose LeDex, a training framework that significantly improves the self-debugging capability of LLMs.
Neural Information Processing Systems
May-26-2025, 22:17:45 GMT
- Technology: