Pith. sign in

REVIEW 3 cited by

PerfCodeGen: Improving Performance of LLM Generated Code with Execution Feedback

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.03578 v1 pith:LSGAHHUL submitted 2024-11-18 cs.SE cs.AIcs.CLcs.PL

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

Large Language Models (LLMs) are widely adopted for assisting in software development tasks, yet their performance evaluations have narrowly focused on the functional correctness of generated code. Human programmers, however, require LLM-generated code to be not only correct but also optimally efficient. We propose PerfCodeGen, a training-free framework that enhances the performance of LLM-generated code by incorporating feedback based on runtime during test case execution into the self-refinement iterations. With PerfCodeGen, we achieve speedups for a significantly higher proportion of problems compared to using the base LLM with sophisticated prompting techniques. Applied to open language models like Phi-3-mini, PerfCodeGen achieves runtime efficiency comparable to prompting powerful closed models like GPT-4. We achieve state-of-the-art runtime efficiency on benchmarks such as HumanEval, MBPP, and APPS, frequently surpassing the ground truth reference solutions with PerfCodeGen using GPT-3.5 and GPT-4. Additionally, we demonstrate the effectiveness of our approach in enhancing code quality across a range of open LLMs of varying sizes including Phi-3-mini, Llama 3 8B, Mixtral 8x7B, Command R, and Llama 3 70B.

Discussion (0). Sign in 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. RLPF: Reinforcement Learning from Performance Feedback for Code Generation

    cs.LG 2026-07 conditional novelty 6.0 of 10

    RLPF's staged performance reward lifts Qwen3-32B on PerfCodeBench from 11.1% to 54.6% correct-and-runnable and from 8.1% to 38.6% relative efficiency.

  2. Multi-level Code Optimization via Mixture of Prompts

    cs.SE 2026-07 conditional novelty 6.0 of 10

    Multi-level Mixture-of-Prompts optimization with differential profiling yields up to 57.48% opt% and multi-x speedups over prior LLM code optimizers on COFFE and EffiBench.

  3. FALCON: Transforming Cyber Threat Intelligence into Deployable IDS Rules with Self-Reflection

    cs.CR 2025-08 conditional novelty 5.0 of 10

    FALCON automates the generation of Snort and YARA intrusion detection rules from cyber threat intelligence using an LLM agent pipeline with a contrastively trained CTI-rule semantic scorer as a ground-truth-free validator.

Pith tools