mlsanityData to 14 Oct 2026

EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning

arXiv 2410.10209 ↗First posted 14 Oct 2024cs.CL cs.SEcited by 17

Not on the map. Why?

Abstract (arXiv)

As large language models (LLMs) play an increasingly important role in code generation, enhancing both correctness and efficiency has become crucial. Current methods primarily focus on correctness, often overlooking efficiency. To address this gap, we introduce EffiCoder to improve both aspects by fine-tuning LLMs on a high-quality dataset comprising correct and efficient code samples. Our methodology involves leveraging multiple LLMs to generate diverse candidate code solutions for various tasks across different programming languages. We then evaluate these solutions by measuring their execution time and memory usage through local execution. The code solution with the lowest execution time and memory consumption is selected as the final output for each task. Experimental results demonstrate significant improvements when fine-tuning with Effi-Instruct. For instance, Qwen2.5-Coder-7B-Instruct's pass@1 score increases from 44.8% to 57.7%, while the average execution time for correct tasks decreases by 48.4%. EffiCoder offers a scalable and effective solution for advancing AI-driven code generation, benefiting software development and computational problem-solving. The source code of Effi-Code was released at https://github.com/huangd1999/EffiCoder.

Key facts. Cited by 17 papers in the map (data through 14 Oct 2026). Builds on 39 of its 54 references that are in the map. First posted on arXiv 14 Oct 2024.

Builds on

39 of 54 references.

References · 39

  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. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  6. 2021Program Synthesis with Large Language Modelscited by 3,637
  7. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
  8. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  9. 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
  10. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  11. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  12. 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,125
27 more
  1. 2023Teaching Large Language Models to Self-Debugcited by 988
  2. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  3. 2021Measuring Coding Challenge Competence With APPScited by 902
  4. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
  5. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
  6. 2023Textbooks Are All You Needcited by 569
  7. 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 565
  8. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
  9. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 452
  10. 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 300
  11. 2020Unsupervised Translation of Programming Languagescited by 263
  12. 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 256
  13. 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 189
  14. 2022Few-shot training LLMs for project-specific code-summarizationcited by 129
  15. 2023Learning Performance-Improving Code Editscited by 106
  16. 2023Impact of Code Language Models on Automated Program Repaircited by 85
  17. 2024Evaluating Language Models for Efficient Code Generationcited by 73
  18. 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Codecited by 64
  19. 2021AVATAR: A Parallel Corpus for Java-Python Program Translationcited by 59
  20. 2024Top Leaderboard Ranking = Top Coding Proficiency, Always? EvoEval: Evolving Coding Benchmarks via LLMcited by 40
  21. 2023Large Language Models are Edge-Case Fuzzers: Testing Deep Learning Libraries via FuzzGPTcited by 36
  22. 2024SELF-GUIDE: Better Task-Specific Instruction Following via Self-Synthetic Finetuningcited by 32
  23. 2024MHPP: Exploring the Capabilities and Limitations of Language Models Beyond Basic Code Generationcited by 26
  24. 2021CoDesc: A Large Code-Description Parallel Datasetcited by 23
  25. 2024On Evaluating the Efficiency of Source Code Generated by LLMscited by 21
  26. 2021Type4Py: Practical Deep Similarity Learning-Based Type Inference for Pythoncited by 19
  27. 2023TypeT5: Seq2seq Type Inference using Static Analysiscited by 12

Built on by

Cited by year (2026 to 14 Oct)

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

17 papers.

Sort:

By area:

  1. 2025EffiBench-X: A Multi-Language Benchmark for Measuring Efficiency of LLM-Generated Codecited by 27
  2. 2025TL;DR: Too Long, Do Re-weighting for Efficient LLM Reasoning Compressioncited by 16
  3. 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
  4. 2025G2RPO-A: Guided Group Relative Policy Optimization with Adaptive Guidancecited by 10
  5. 2026EffiSkill: Agent Skill Based Automated Code Efficiency Optimizationcited by 9
  6. 2025LLMs Lean on Priors, Not Programming Language Semanticscited by 6
  7. 2026Secure Code Generation via Online Reinforcement Learning with Vulnerability Reward Modelcited by 6
  8. 2026CodeScaler: Scaling Code LLM Training and Test-Time Inference via Reward Modelscited by 5
  9. 2025Integrating Performance Tools in Model Reasoning for GPU Kernel Optimizationcited by 1
  10. 2026CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computationscited by 1
  11. 2026Autoregressive, Yet Revisable: In Decoding Revision for Secure Code Generationcited by 1
  12. 2026Themis: Training Robust Multilingual Code Reward Models for Flexible Multi-Criteria Scoringcited by 1
5 more
  1. 2026SemRep: Generative Code Representation Learning with Code Transformationscited by 0
  2. 2026EffiPair: Improving the Efficiency of LLM-generated Code with Differential Execution Feedbackcited by 0
  3. 2026Reinforcement Learning for Code Optimizationcited by 0
  4. 2026RLPF: Reinforcement Learning from Performance Feedback for Code Generationcited by 0
  5. 2026Not All Correct Fixes Run Alike: An Empirical Study of Patch Performance in Repository-Level Issue Resolutioncited by 0