Pith. sign in

REVIEW 9 cited by

Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-step

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2402.16906 v6 pith:WCBFZDNG submitted 2024-02-25 cs.SE cs.AIcs.CL

classification cs.SEcs.AIcs.CL
keywords programsexecutioncodellmsdebuggingruntimeblockgenerated
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Large language models (LLMs) are leading significant progress in code generation. Beyond one-pass code generation, recent works further integrate unit tests and program verifiers into LLMs to iteratively refine the generated programs. However, these works consider the generated programs as an indivisible entity, which falls short for LLMs in debugging the programs, especially when the programs contain complex logic flows and data operations. In contrast, when human developers debug programs, they typically set breakpoints and selectively examine runtime execution information. The execution flow and the intermediate variables play a crucial role in the debugging process, yet they are underutilized in the existing literature on code generation. In this study, we introduce Large Language Model Debugger (LDB), a novel debugging framework that enables LLMs to refine their generated programs with the runtime execution information. Specifically, LDB segments the programs into basic blocks and tracks the values of intermediate variables after each block throughout the runtime execution. This allows LLMs to concentrate on simpler code units within the overall execution flow, verify their correctness against the task description block by block, and efficiently pinpoint any potential errors. Experiments demonstrate that LDB consistently enhances the baseline performance by up to 9.8% across the HumanEval, MBPP, and TransCoder benchmarks, archiving new state-of-the-art performance in code debugging for various LLM selections.

Discussion (0). Sign in to comment.

Forward citations

Cited by 9 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. ReCode: Improving LLM-based Code Repair with Fine-Grained Retrieval-Augmented Generation

    cs.SE 2025-09 conditional novelty 6.0 of 10

    ReCode improves LLM-based code repair by combining algorithm-type prediction with dual-encoder retrieval of authentic bug-fix pairs, and introduces RACodeBench for evaluation.

  2. HLSDebugger: Identification and Correction of Logic Bugs in HLS Code with LLM Solutions

    cs.SE 2025-07 conditional novelty 6.0 of 10

    HLSDebugger fixes logic bugs in HLS code with 37.6% accuracy, outperforming GPT-4 by over 3x, using an encoder-decoder model trained on a new 300K-sample dataset.

  3. CodeReasoner: Enhancing the Code Reasoning Ability with Reinforcement Learning

    cs.SE 2025-07 conditional novelty 6.0 of 10

    CodeReasoner combines a concise execution-focused dataset, instruction tuning, and GRPO RL to make 7B/14B models match or beat GPT-4o on code reasoning benchmarks.

  4. Measuring and Augmenting Large Language Models for Solving Capture-the-Flag Challenges

    cs.AI 2025-06 reject novelty 6.0 of 10

    A benchmark and agent for CTF solving, but the agent's retrieval database appears to contain the answers to the test challenges, undermining the reported improvements.

  5. Detection Time Distribution Predicted Using Absorbing Boundary Conditions and Imaginary Potentials

    quant-ph 2026-03 unverdicted novelty 5.0 of 10

    Three inequivalent quantum detection-time proposals yield waveguide arrival distributions showing partial reflection, spin-orientation independence (for tested parameters), and width dependence when spin couples to th...

  6. Let's Revise Step-by-Step: A Unified Local Search Framework for Code Generation with LLMs

    cs.CL 2025-08 unverdicted novelty 5.0 of 10

    The abstract claims a new local search framework for code generation, but the manuscript body is a different mathematics paper.

  7. Running in CIRCLE? A Simple Benchmark for LLM Code Interpreter Security

    cs.CR 2025-07 conditional novelty 5.0 of 10

    CIRCLE is a 1,260-prompt benchmark that measures how often commercial LLM code interpreters refuse, execute, or time out on resource-exhaustion tasks, revealing large and inconsistent safety gaps.

  8. Xolver: Multi-Agent Reasoning with Holistic Experience Learning Just Like an Olympiad Team

    cs.CL 2025-06 conditional novelty 5.0 of 10

    A training-free multi-agent framework with episodic and shared memory reports new best results on GSM8K, AIME 2024/2025, Math-500, and LiveCodeBench.

  9. Enhancing LLM-Based Code Generation with Complexity Metrics: A Feedback-Driven Approach

    cs.SE 2025-05 conditional novelty 5.0 of 10

    Feeding LLMs their own code's complexity metrics as feedback modestly improves Pass@1 on some benchmarks, especially for weaker models like GPT-3.5 Turbo.

Pith tools