Pith. sign in

REVIEW 2 cited by

Automated Prompt Engineering for Cost-Effective Code Generation Using Evolutionary Algorithm

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 2408.11198 v2 pith:V72PEBBQ submitted 2024-08-20 cs.SE cs.AIcs.NE

classification cs.SEcs.AIcs.NE
keywords codeevolutionarygenerationalgorithmcost-effectiveengineeringepicinteractions
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Large Language Models have seen increasing use in various software development tasks, especially in code generation. The most advanced recent methods attempt to incorporate feedback from code execution into prompts to help guide LLMs in generating correct code in an iterative process. While effective, these methods could be costly due to numerous interactions with the LLM and extensive token usage. To address this issue, we propose an alternative approach named Evolutionary Prompt Engineering for Code (EPiC), which leverages a lightweight evolutionary algorithm to refine the original prompts into improved versions that generate high quality code, with minimal interactions with the LLM. Our evaluation against state-of-the-art (SOTA) LLM based code generation agents shows that EPiC not only achieves up to 6% improvement in pass@k but is also 2-10 times more cost-effective than the baselines.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

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

  1. Can LLMs Replace Humans During Code Chunking?

    cs.SE 2025-06 reject novelty 6.0 of 10

    LLM-generated partitions of legacy code yield documentation that LLM judges rate as up to 20% more factual and up to 10% more useful than documentation based on human expert partitions.

  2. 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