mlsanityData to 7 Oct 2026

LLM4EFFI: Leveraging Large Language Models to Enhance Code Efficiency and Correctness

arXiv 2502.18489 ↗First posted 17 Feb 2025cs.SE cs.AIcited by 10

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs), particularly Code LLMs, have demonstrated impressive performance in code generation. Current research primarily focuses on the correctness of generated code, while efficiency remains less explored. Recent works have focused on modifying the initial version of the code to improve its efficiency. However, such refinements are limited by the algorithmic design and overall logic of the initial code, resulting in only incremental improvements. In contrast, when human developers write high-quality code, they typically begin by designing several potential solutions at the logical level, evaluating various algorithms and their complexities, and then proceeding to implement and optimize the solution. In this study, we introduce tool: ulineLarge ulineLanguage ulineModel for Code ulineEfficiency, a novel framework that enables LLMs to generate code that balances both efficiency and correctness. Specifically, tool divides the efficiency optimization process into two domains: algorithmic exploration in the logic domain and implementation optimization in the code domain. The correctness of the code is then guaranteed through a synthetic test case refinement process. This approach, which prioritizes efficiency before ensuring correctness, offers a new paradigm for efficient code generation. Experiments demonstrate that tool consistently improves both efficiency and correctness, achieving new state-of-the-art performance in code efficiency benchmarks across various LLM backbones.

Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 24 of its 31 references that are in the map. First posted on arXiv 17 Feb 2025.

Builds on

24 of 31 references.

References · 24

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  2. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  3. 2021Program Synthesis with Large Language Modelscited by 3,509
  4. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  5. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  6. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
  7. 2024Qwen2.5-Coder Technical Reportcited by 1,151
  8. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
  9. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
  10. 2023Fine-Grained Human Feedback Gives Better Rewards for Language Model Trainingcited by 399
  11. 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 251
  12. 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solvingcited by 177
12 more
  1. 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
  2. 2023Improving Code Generation by Training with Natural Language Feedbackcited by 75
  3. 2024Evaluating Language Models for Efficient Code Generationcited by 69
  4. 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Codecited by 62
  5. 2023CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modulescited by 58
  6. 2024A Performance Study of LLM-Generated Code on Leetcodecited by 48
  7. 2023Enhancing Large Language Models in Coding Through Multi-Perspective Self-Consistencycited by 46
  8. 2024How Efficient is LLM-Generated Code? A Rigorous & High-Standard Benchmarkcited by 39
  9. 2024EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimizationcited by 28
  10. 2024ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?cited by 25
  11. 2024On Evaluating the Efficiency of Source Code Generated by LLMscited by 19
  12. 2023Explain-then-Translate: An Analysis on Improving Program Translation with Self-generated Explanationscited by 12

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 6; 2026: 4.

10 papers.