arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.12948cs.SE
收藏

E-code:通过预训练模型和 Expert Encoder Group 掌握高效代码生成

E-code: Mastering Efficient Code Generation through Pretrained Models and Expert Encoder Group

Yue Pan, Chen Lyu, Zhenyu Yang, Lantian Li, Qi Liu, Xiuting Shao

AI总结:

针对竞争性代码效率优化问题,提出基于 Expert Encoder Group 结构的程序合成语言模型 E-code,通过多专家编码器提取不同输入特征,在代码效率上实现 54.98% 的提升,显著优于其他先进模型。

摘要:

背景:随着摩尔定律的衰退,软件行业越来越重视寻找持续提升性能的替代方案。近年来,软件性能优化的重要性与研究成果不断提升,尤其是在大型语言模型(LLMs)推动下的进展。然而,传统的修复性能缺陷策略在竞争性代码效率优化层面表现出显著局限性,且该主题的研究出奇匮乏。目标:本研究旨在填补该领域的研究空白,为遇到的各种挑战提供实用解决方案。具体而言,我们克服了传统性能错误修复策略的局限,开发了一种专为竞争性代码效率优化领域定制的语言模型(LM)。方法:我们引入了 E-code,一种先进的程序合成 LM。受近期专家 LM 成功的启发,我们设计了一种名为 Expert Encoder Group 的创新结构。该结构采用多个专家编码器来提取针对不同输入类型定制的特征。我们在一个竞争性数据集上评估了 E-code 与其他领先模型的性能,并进行了深入的消融实验。结果:经过系统评估,E-code 在代码效率上实现了 54.98% 的提升,显著优于其他先进模型。在消融实验中,我们进一步验证了专家编码器组及 E-code 内其他组件的重要性。结论:研究结果表明,专家编码器组能够有效处理效率优化任务中的各种输入,显著提升模型性能。

英文摘要:

Context: With the waning of Moore's Law, the software industry is placing increasing importance on finding alternative solutions for continuous performance enhancement. The significance and research results of software performance optimization have been on the rise in recent years, especially with the advancement propelled by Large Language Models(LLMs). However, traditional strategies for rectifying performance flaws have shown significant limitations at the competitive code efficiency optimization level, and research on this topic is surprisingly scarce. Objective: This study aims to address the research gap in this domain, offering practical solutions to the various challenges encountered. Specifically, we have overcome the constraints of traditional performance error rectification strategies and developed a Language Model (LM) tailored for the competitive code efficiency optimization realm. Method: We introduced E-code, an advanced program synthesis LM. Inspired by the recent success of expert LMs, we designed an innovative structure called the Expert Encoder Group. This structure employs multiple expert encoders to extract features tailored for different input types. We assessed the performance of E-code against other leading models on a competitive dataset and conducted in-depth ablation experiments. Results: Upon systematic evaluation, E-code achieved a 54.98% improvement in code efficiency, significantly outperforming other advanced models. In the ablation experiments, we further validated the significance of the expert encoder group and other components within E-code. Conclusion: The research findings indicate that the expert encoder group can effectively handle various inputs in efficiency optimization tasks, significantly enhancing the model's performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑