mlsanityData to 14 Oct 2026

EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimization

arXiv 2405.15189 ↗First posted 24 May 2024cs.SE cs.CLcited by 30

Not on the map. Why?

Abstract (arXiv)

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

Key facts. Cited by 30 papers in the map (data through 14 Oct 2026). Builds on 48 of its 73 references that are in the map. First posted on arXiv 24 May 2024.

Builds on

48 of 73 references.

References · 48

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023GPT-4 Technical Reportcited by 18,396
  3. 2022Training language models to follow instructions with human feedbackcited by 15,971
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  6. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  7. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  8. 2021Program Synthesis with Large Language Modelscited by 3,637
  9. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
  10. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
  11. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  12. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
36 more
  1. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  2. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  3. 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,125
  4. 2023Teaching Large Language Models to Self-Debugcited by 988
  5. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  6. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
  7. 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 783
  8. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
  9. 2023Textbooks Are All You Needcited by 569
  10. 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 565
  11. 2022Improving alignment of dialogue agents via targeted human judgementscited by 531
  12. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
  13. 2020Unsupervised Translation of Programming Languagescited by 263
  14. 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 256
  15. 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 247
  16. 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 189
  17. 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 181
  18. 2022Few-shot training LLMs for project-specific code-summarizationcited by 129
  19. 2023Self-Edit: Fault-Aware Code Editor for Code Generationcited by 111
  20. 2023Learning Performance-Improving Code Editscited by 106
  21. 2023Improving Language Models via Plug-and-Play Retrieval Feedbackcited by 87
  22. 2023Impact of Code Language Models on Automated Program Repaircited by 85
  23. 2018Can Neural Machine Translation be Improved with User Feedback?cited by 72
  24. 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Codecited by 64
  25. 2021AVATAR: A Parallel Corpus for Java-Python Program Translationcited by 59
  26. 2023SelfEvolve: A Code Evolution Framework via Large Language Modelscited by 43
  27. 2023ALGO: Synthesizing Algorithmic Programs with LLM-Generated Oracle Verifierscited by 41
  28. 2023Prompt2Model: Generating Deployable Models from Natural Language Instructionscited by 41
  29. 2023Large Language Models are Edge-Case Fuzzers: Testing Deep Learning Libraries via FuzzGPTcited by 36
  30. 2024MHPP: Exploring the Capabilities and Limitations of Language Models Beyond Basic Code Generationcited by 26
  31. 2021CoDesc: A Large Code-Description Parallel Datasetcited by 23
  32. 2024On Evaluating the Efficiency of Source Code Generated by LLMscited by 21
  33. 2021Type4Py: Practical Deep Similarity Learning-Based Type Inference for Pythoncited by 19
  34. 2024Efficient and Green Large Language Models for Software Engineering: Literature Review, Vision, and the Road Aheadcited by 17
  35. 2024Learning From Correctness Without Prompting Makes LLM Efficient Reasonercited by 15
  36. 2023TypeT5: Seq2seq Type Inference using Static Analysiscited by 12

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 2; 2025: 12; 2026: 16.

30 papers.

Sort:

By area:

  1. 2025From System 1 to System 2: A Survey of Reasoning Large Language Modelscited by 320
  2. 2024MR-Ben: A Meta-Reasoning Benchmark for Evaluating System-2 Thinking in LLMscited by 30
  3. 2025AI Agentic Programming: A Survey of Techniques, Challenges, and Opportunitiescited by 28
  4. 2025EffiBench-X: A Multi-Language Benchmark for Measuring Efficiency of LLM-Generated Codecited by 27
  5. 2025Afterburner: Reinforcement Learning Facilitates Self-Improving Code Efficiency Optimizationcited by 18
  6. 2026Controlled Self-Evolution for Algorithmic Code Optimizationcited by 12
  7. 2024Measuring the Influence of Incorrect Code on Test Generationcited by 11
  8. 2025LLM4EFFI: Leveraging Large Language Models to Enhance Code Efficiency and Correctnesscited by 10
  9. 2025ProofWright: Towards Agentic Formal Verification of CUDAcited by 9
  10. 2026EffiSkill: Agent Skill Based Automated Code Efficiency Optimizationcited by 9
  11. 2025Learning Game-Playing Agents with Generative Code Optimizationcited by 8
  12. 2026Scaling Coding Agents via Atomic Skillscited by 8
18 more
  1. 2025Tuning LLM-based Code Optimization via Meta-Prompting: An Industrial Perspectivecited by 7
  2. 2025SuperCoder: Assembly Program Superoptimization with Large Language Modelscited by 6
  3. 2026CodeScaler: Scaling Code LLM Training and Test-Time Inference via Reward Modelscited by 5
  4. 2026Analyzing Message-Code Inconsistency in AI Coding Agent-Authored Pull Requestscited by 4
  5. 2026MaxCode: A Max-Reward Reinforcement Learning Framework for Automated Code Optimizationcited by 4
  6. 2025PerfCoder: Large Language Models for Interpretable Code Performance Optimizationcited by 3
  7. 2025Industrial LLM-based Code Optimization under Regulation: A Mixture-of-Agents Approachcited by 2
  8. 2026MOSAIC: Modular Orchestration for Structured Agentic Intelligence and Compositioncited by 2
  9. 2025SwiftSolve: A Self-Iterative, Complexity-Aware Multi-Agent Framework for Competitive Programmingcited by 0
  10. 2026The New Compiler Stack: A Survey on the Synergy of LLMs and Compilerscited by 0
  11. 2026EffiPair: Improving the Efficiency of LLM-generated Code with Differential Execution Feedbackcited by 0
  12. 2026STAB: Specification-driven Testing for Algorithmic Bottleneckscited by 0
  13. 2026Rethinking Code Performance Benchmarks for LLMscited by 0
  14. 2026SynH-Rank: Quality-Aware Code Search via Diverse Data Synthesis and Hierarchical Ranking Trainingcited by 0
  15. 2026Optimal Stopping of Self-Refining Foundation Modelscited by 0
  16. 2026RESKILL: Explicit Failure Attribution and Structured Repair for Interactive Language Agentscited by 0
  17. 2026Improving the Energy-Efficiency of the Code Generated by LLMs through Effective Promptingcited by 0
  18. 2026Not All Correct Fixes Run Alike: An Empirical Study of Patch Performance in Repository-Level Issue Resolutioncited by 0