paper-with-me

홈 › Papers

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

2024-10-14 · Dong Huang, Guangtao Zeng, Jianbo Dai, Meng Luo, Han Weng, Yuhao QING, Heming Cui, Zhijiang Guo, Jie M. Zhang

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.

📄 PDF Abstract BibTeX arXiv:2410.10209

Code (2)

huangd1999/effi-code 공식 구현 pytorch
huangd1999/efficoder 공식 구현 pytorch

Tasks

Code Generation

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

UniTSyn: A Large-Scale Dataset Capable of Enhancing the Prowess of Large Language Models for Program Testing

2024-02-04 · Yifeng He, Jiabo Huang, Yuyang Rong, Yiwen Guo 외

The remarkable capability of large language models (LLMs) in generating high-quality code has drawn increasing attention in the software testing community. However, existing code LLMs often demonstrate unsatisfactory cap…

software testing

Renaissance of Literate Programming in the Era of LLMs: Enhancing LLM-Based Code Generation in Large-Scale Projects

2024-12-25 · Wuyang Zhang, Yansong Li, Zeyu Dong, Yu Wu 외

Large Language Models (LLMs) have helped programmers increase efficiency through code generation, comprehension, and repair. However, their application to large-scale projects remains challenging due to complex interdepe…

Code GenerationPrompt Engineering

GeoCode-GPT: A Large Language Model for Geospatial Code Generation Tasks

2024-10-22 · Shuyang Hou, Zhangxiao Shen, Anqi Zhao, Jianyuan Liang 외

The increasing demand for spatiotemporal data and modeling tasks in geosciences has made geospatial code generation technology a critical factor in enhancing productivity. Although large language models (LLMs) have demon…

Code GenerationCode SummarizationHallucinationLanguage Modeling+4

Enhancing Code LLMs with Reinforcement Learning in Code Generation: A Survey

2024-12-29 · Junqiao Wang, Zeng Zhang, Yangfan He, Zihao Zhang 외

Reinforcement learning (RL) has emerged as a powerful paradigm for enhancing large language models (LLMs) in code generation and optimization. This survey systematically reviews RL-driven techniques across the code devel…

Code GenerationCompiler Optimizationreinforcement-learningReinforcement Learning+2

Codec Does Matter: Exploring the Semantic Shortcoming of Codec for Audio Language Model

2024-08-30 · Zhen Ye, Peiwen Sun, Jiahe Lei, Hongzhan Lin 외

Recent advancements in audio generation have been significantly propelled by the capabilities of Large Language Models (LLMs). The existing research on audio LLM has primarily focused on enhancing the architecture and sc…

Audio CompressionAudio GenerationLanguage ModelingLanguage Modelling+4