Failure-Aware Enhancements for Large Language Model (LLM) Code Generation: An Empirical Study on Decision Framework * Corresponding authors

Jianru Shen * , Zedong Peng * , Lucy Owen · 2026

Read Failure-Aware Enhancements for Large Language Model (LLM) Code Generation: An Empirical Study on Decision Framework * Corresponding authors by Jianru Shen * , Zedong Peng * , Lucy Owen (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2602-02896.txt.

Description

Jianru Shen and 2 co-authors study how to fix failed code generation in a 2026 paper. Language models can turn requirements into code, yet even careful prompting leaves some requirements unmet. Fixes such as self-critique, multi-model help, and retrieval-augmented generation exist, but developers lack guidance on choosing among them.

The authors examined twenty-five GitHub projects. Stepwise prompting completed far more tasks than direct prompting, but eight projects stayed incomplete. On six representative projects, each fix was tested across four failure types. Self-critique fixed reviewable logic errors but never external service problems. Retrieval helped most overall. The paper turns those patterns into a decision framework for practitioners.

Catalog record

CREATORJianru Shen * , Zedong Peng * , Lucy Owen
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE30 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2602-02896

Browse the full library · About the Tower of Babel