Pith. sign in

REVIEW 3 cited by

Leveraging Print Debugging to Improve Code Generation in Large Language Models

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 2401.05319 v1 pith:TMIYIP4V submitted 2024-01-10 cs.CL cs.SE

classification cs.CLcs.SE
keywords debuggingleetcodeprintapproachcodegenerationlanguagelarge
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Large language models (LLMs) have made significant progress in code generation tasks, but their performance in tackling programming problems with complex data structures and algorithms remains suboptimal. To address this issue, we propose an in-context learning approach that guides LLMs to debug by using a "print debugging" method, which involves inserting print statements to trace and analysing logs for fixing the bug. We collect a Leetcode problem dataset and evaluate our method using the Leetcode online judging system. Experiments with GPT-4 demonstrate the effectiveness of our approach, outperforming rubber duck debugging in easy and medium-level Leetcode problems by 1.5% and 17.9%.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 3 Pith papers

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

  1. Examining $H$-Closed Ducci Sequences on $\mathbb{Z}_m^n$

    math.NT 2025-02 conditional novelty 5.0 of 10

    The authors prove that for several families of moduli, cyclically shifting the starting tuple does not change its Ducci cycle, and they tabulate many more such cases.

  2. InfiGUIAgent: A Multimodal Generalist GUI Agent with Native Reasoning and Reflection

    cs.AI 2025-01 conditional novelty 4.0 of 10

    A 2B multimodal agent trained with two-stage supervised fine-tuning and synthesized hierarchical/reflection reasoning achieves competitive results on ScreenSpot and AndroidWorld.

  3. The Current Challenges of Software Engineering in the Era of Large Language Models

    cs.SE 2024-12 conditional novelty 4.0 of 10

    The paper reports 26 challenges in LLM-based software engineering, grouped into seven aspects, derived from a structured discussion among 24 academics and practitioners.

Pith tools