PEACE: Towards Efficient Project-Level Efficiency Optimization via Hybrid Code Editing
Xiaoxue Ren (2), Jun Wan (2), Yun Peng (3), Zhongxin Liu (2), Ming Liang (4), Dajun Chen (4), Wei Jiang (4), Yong Li (4) ((2) Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain, Data Security, Zhejiang University, Hangzhou, China, (3) The Chinese University of Hong Kong

TL;DR
PEACE is a hybrid code editing framework that improves project-level code efficiency by considering function interactions, ensuring correctness, and outperforming existing methods on real-world Python projects.
Contribution
It introduces a novel hybrid framework for project-level code efficiency optimization that accounts for function interactions and correctness, along with a new benchmark dataset.
Findings
Achieves 69.2% correctness rate in code optimization tasks.
Attains a 46.9% improvement in optimization rate.
Realizes a 0.840 speedup in execution efficiency.
Abstract
Large Language Models (LLMs) have demonstrated significant capability in code generation, but their potential in code efficiency optimization remains underexplored. Previous LLM-based code efficiency optimization approaches exclusively focus on function-level optimization and overlook interaction between functions, failing to generalize to real-world development scenarios. Code editing techniques show great potential for conducting project-level optimization, yet they face challenges associated with invalid edits and suboptimal internal functions. To address these gaps, we propose Peace, a novel hybrid framework for Project-level code Efficiency optimization through Automatic Code Editing, which also ensures the overall correctness and integrity of the project. Peace integrates three key phases: dependency-aware optimizing function sequence construction, valid associated edits…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software Testing and Debugging Techniques · Parallel Computing and Optimization Techniques
