Pith. sign in

REVIEW 2 cited by

EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimization

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 2405.15189 v4 pith:UPXUUKYD submitted 2024-05-24 cs.SE cs.CL

classification cs.SEcs.CL
keywords codeeffilearnerexecutionmemorydecreasesefficiencyprofilesself-optimization
verification ladder T0 review T1 audit T2 compute T3 formal

Signed reviews

No signed human review yet.

0 comments
read the original abstract

Large language models (LLMs) have shown remarkable progress in code generation, but their generated code often suffers from inefficiency, resulting in longer execution times and higher memory consumption. To address this issue, we propose \textbf{EffiLearner}, a self-optimization framework that utilizes execution overhead profiles to improve the efficiency of LLM-generated code. EffiLearner first generates code using an LLM, then executes it locally to capture execution time and memory usage profiles. These profiles are fed back to the LLM, which then revises the code to reduce overhead. To evaluate the effectiveness of EffiLearner, we conduct extensive experiments on the EffiBench, HumanEval, and MBPP with 16 open-source and 6 closed-source models. Our evaluation results demonstrate that through iterative self-optimization, EffiLearner significantly enhances the efficiency of LLM-generated code. For example, the execution time (ET) of StarCoder2-15B for the EffiBench decreases from 0.93 (s) to 0.12 (s) which reduces 87.1% the execution time requirement compared with the initial code. The total memory usage (TMU) of StarCoder2-15B also decreases from 22.02 (Mb*s) to 2.03 (Mb*s), which decreases 90.8% of total memory consumption during the execution process. The source code of EffiLearner was released in https://github.com/huangd1999/EffiLearner

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

  2. ACECode: A Reinforcement Learning Framework for Aligning Code Efficiency and Correctness in Code Language Models

    cs.SE 2024-12 conditional novelty 4.0 of 10

    Fine-tuning code LLMs with PPO and an execution-based reward that combines test results with runtime relative to a reference solution improves both correctness and efficiency on EffiBench+.

Pith tools