arrow
返回

Measuring code efficiency optimization capabilities with ACEOB

delete2025-01-01
delete1
delete
OA
AI
Y
Yue Pan
X
Xiuting Shao
C
Chen Lyu *
DOI:10.1016/j.jss.2024.112250delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
As Moore's Law gains diminish, software performance and efficiency become increasingly vital. Optimizing code efficiency is challenging, even for professional programmers. However, related research remains relatively scarce, and rigorously assessing models' abilities to optimize code efficiency is fraught with difficulties. In response to this challenge, we first conduct an in-depth analysis of code patternsin the model training dataset, meticulously exploring human-written code. Secondly, we define a task for optimizing code efficiency and introduce the A utomatic C ode E fficiency O ptimization B enchmark (ACEOB), which consists of 95,359 pairs of efficient-inefficient code aimed at assessing code efficiency optimization capabilities. To our knowledge, ACEOB is the first dataset specifically targeting Python code efficiency optimization. To evaluate models' ability in optimizing code efficiency, we propose two new metrics: the I somorphic O ptimal C omparison C ode B LEU (IOCCB) metric and the N ormalized P erformance I ndex (NPI) metric, to assess the efficiency of model-generated code. We also evaluate several advanced code models, such as PolyCoder and CodeT5, after fine-tuning them on ACEOB and demonstrate that the efficiency of each model improves after introducing the NPI filter. However, it was observed that even ChatGPT does not perform optimally in code efficiency optimization tasks. Our dataset and models are available at: https://github.com/CodeGeneration2/ACEOB.
Keyword:
Coding efficiency optimization
Benchmark datasets
Code generation
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

E-code: Mastering efficient code generation through pretrained models and expert encoder group
err2025-02-01
err0
errOAAI
errPan, Yue; Lyu, Chen; Yang, Zhenyu; Li, Lantian; Liu, Qi; Shao, Xiuting
err分享
err收藏
Complexity-Constraint Code Evaluation: A Benchmark for Time Complexity Compliance in LLM-Generated Code复杂度约束代码评估:LLM生成代码的时间复杂度合规性基准
err2026-05-01
err1
PREAI
errChen, Li-Guo; Wang, Xin; Chen, Jue-Yu; Liang, Ren-Zhao; Zeng, Zheng-Ran; Li, Yang-Ning; Li, Ying-Hui; Wang, Yi-Dong; Xu, Yi-Jiang; Gao, Qing; Zhang, Shi-Kun
err分享
err收藏
On Design and Efficient Decoding of Sparse Random Linear Network Codes
err2017-01-01
err10
errOAAI
errLi, Ye; Chan, Wai-Yip; Blostein, Steven D.
err分享
err收藏
Highly efficient contour-based predictive shape coding
err2015-11-01
err2
PREAI
errZhu, Zhong-jie; Wang, Yu-er; Jiang, Gang-yi
err分享
err收藏

期刊

Journal of Systems and Software 封面图
Journal of Systems and Software
IF:
4.1
论文数:
5.5K
被引数:
1.0W

机构

山东师范大学 封面图
山东师范大学
学者数:
1.2K
论文数: 378
被引数: 6.3K
引用论文

引用论文

Vías de exposición a plaguicidas en escolares de la Provincia de Talca, Chile
err2014-05-01
err0
errOAAI
errMaría Teresa Muñoz-Quezada; Boris Lucero; Verónica Iglesias; María Pía Muñoz
err分享
err收藏
Algorithm runtime prediction: Methods & evaluation
err2014-01-01
err318
errOAAI
errHutter, Frank; Xu, Lin; Hoos, Holger H.; Leyton-Brown, Kevin
err分享
err收藏
A Survey on Compiler Autotuning using Machine Learning基于机器学习的编译器自动调优研究综述
err2018-09-18
err123
errOAAI
errAshouri, Amir H.; Killian, William; Cavazos, John; Palermo, Gianluca; Silvano, Cristina
err分享
err收藏
Learning to Optimize Halide with Tree Search and Random Programs学习用树搜索和随机程序优化Halide
err2019-07-12
err147
PREAI
errAdams, Andrew; Ma, Karima; Anderson, Luke; Baghdad, Riyadh; Li, Tzu-Mao; Gharbi, Michael; Steiner, Benoit; Johnson, Steven; Fatahalian, Kayvon; Durand, Fredo; Ragan-Kelley, Jonathan
err分享
err收藏
The Practice Is the Curriculum
err2021-05-10
err0
errOAAI
errDana Neutze; Bryan Hodge; Erika Steinbacher; Charles Carter; Katrina E. Donahue; Peter J. Carek
err分享
err收藏
学者 查看更多内容