arrow
Return

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
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

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.
Keywords:
Coding efficiency optimization
Benchmark datasets
Code generation
On the Time Efficiency of Code Generated and Optimized by Large Language Models
err2026-07-03
err0
PREAI
errYun Peng; Jun Wan; Xiaoxue Ren; Tim Menzies; Michael R. Lyu
errShare
errSave
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
errShare
errSave
Complexity-Constraint Code Evaluation: A Benchmark for Time Complexity Compliance in LLM-Generated Code
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
errShare
errSave
On Design and Efficient Decoding of Sparse Random Linear Network Codes
err2017-01-01
err10
errOAAI
errLi, Ye; Chan, Wai-Yip; Blostein, Steven D.
errShare
errSave
How efficient is your clone? Evaluating LLM capabilities for runtime and memory-aware code selection
err2026-06-23
err0
errOAAI
errPrasanth Ramaswamy; Muhammad Azeem Akbar; Muzaffar Rao; Abdul Razzaq
errShare
errSave
Highly efficient contour-based predictive shape coding
err2015-11-01
err2
PREAI
errZhu, Zhong-jie; Wang, Yu-er; Jiang, Gang-yi
errShare
errSave

Journal

Journal of Systems and Software cover
Journal of Systems and Software
IF:
4.1
Papers:
5.5K
Citations:
1.0W

Organization

shandong normal university cover
shandong normal university
Scholars:
1.2K
Papers: 378
Citations: 6.3K
Cited Papers

Cited Papers

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
errShare
errSave
Temperature monitoring options available at the Idaho national laboratory advanced test reactor
err2013-01-01
err0
errOAAI
errJ. E. Daw; J. L. Rempe; D. L. Knudson; T. C. Unruh; B. M. Chase; K. L. Davis; A. J. Palmer
errShare
errSave
Algorithm runtime prediction: Methods & evaluation
err2014-01-01
err318
errOAAI
errHutter, Frank; Xu, Lin; Hoos, Holger H.; Leyton-Brown, Kevin
errShare
errSave
A Survey on Compiler Autotuning using Machine Learning
err2018-09-18
err123
errOAAI
errAshouri, Amir H.; Killian, William; Cavazos, John; Palermo, Gianluca; Silvano, Cristina
errShare
errSave
Learning to Optimize Halide with Tree Search and Random Programs
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
errShare
errSave
Controlled partial embedding of carbon nanotubes within flexible transparent layers
err2007-12-13
err0
PREAI
errElijah B Sansom; Derek Rinderknecht; Morteza Gharib
errShare
errSave
The Practice Is the Curriculum
err2021-05-10
err0
errOAAI
errDana Neutze; Bryan Hodge; Erika Steinbacher; Charles Carter; Katrina E. Donahue; Peter J. Carek
errShare
errSave
researcher View more