Pith. sign in

REVIEW 4 cited by

The Impact of Prompt Programming on Function-Level Code Generation

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 2412.20545 v2 pith:73IPAA3X submitted 2024-12-29 cs.SE cs.CLcs.HCcs.LG

The Impact of Prompt Programming on Function-Level Code Generation

classification cs.SE cs.CLcs.HCcs.LG
keywords prompttechniquescodegeneratedgenerationllmschain-of-thoughtcorrectness
verification ladder T0 review T1 audit T2 compute T3 formal T4 reserved
0 comments
read the original abstract

Large Language Models (LLMs) are increasingly used by software engineers for code generation. However, limitations of LLMs such as irrelevant or incorrect code have highlighted the need for prompt programming (or prompt engineering) where engineers apply specific prompt techniques (e.g., chain-of-thought or input-output examples) to improve the generated code. While some prompt techniques have been studied, the impact of different techniques -- and their interactions -- on code generation is still not fully understood. In this study, we introduce CodePromptEval, a dataset of 7072 prompts designed to evaluate five prompt techniques (few-shot, persona, chain-of-thought, function signature, list of packages) and their effect on the correctness, similarity, and quality of complete functions generated by three LLMs (GPT-4o, Llama3, and Mistral). Our findings show that while certain prompt techniques significantly influence the generated code, combining multiple techniques does not necessarily improve the outcome. Additionally, we observed a trade-off between correctness and quality when using prompt techniques. Our dataset and replication package enable future research on improving LLM-generated code and evaluating new prompt techniques.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 4 Pith papers

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

  1. Articulating Assumptions in AI-Generated Scientific Analyses through Task Decomposition

    cs.SE 2026-07 conditional novelty 6.0

    Quantity-grounded multi-agent decomposition makes LLM-generated collider analysis code inspectable and reliable with 14B-scale models, outperforming prior single-prompt approaches.

  2. Qiskit Code Migration with LLMs

    cs.SE 2026-06 unverdicted novelty 5.0

    A taxonomy-guided RAG system with LLMs reduces hallucinations and improves migration suggestions for Qiskit code compared to unconstrained retrieval.

  3. Vibe Coding Ate My Homework: An evaluation of AI approaches to greenfield software engineering and programming

    cs.SE 2026-06 unverdicted novelty 3.0

    Introduces an evaluation suite for LLMs performing isolated greenfield Python tasks to assess viability of natural-language-only programming.

  4. Vibe Coding Ate My Homework: An evaluation of AI approaches to greenfield software engineering and programming

    cs.SE 2026-06 unverdicted novelty 3.0

    The authors introduce an evaluation suite for assessing LLMs on isolated greenfield Python programming tasks via natural language prompts.