atlas

Research map / Large language models / Agents, code and math

Teaching Large Language Models to Self-Debug

ICLR 2024 · Large language models › Agents, code and math · approach: Execution-based code verification · 77 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes self-debugging, where an LLM debugs its own predicted programs via few-shot prompting using execution feedback and explanations, without updating weights.

Problem

LLMs often fail to generate correct programs for complex coding tasks in one attempt, and prior program repair approaches require additional training or external feedback.

Approach

Teaches an LLM to debug its own predicted program via few-shot demonstrations that pair execution traces (unit test results, runtime feedback) with natural-language explanations of the code, enabling iterative self-repair in a training-free manner.

Key results

Limitations

Experimental setup

Datasets: Spider TransCoder MBPP

Benchmarks: Spider TransCoder MBPP

Metrics: accuracy pass@1

Baselines: Codex greedy decoding CodeT GPT-4 baseline program repair with separate repair model

Builds on: chain-of-thought prompting self-repair

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy