Supersonic: Learning to Generate Source Code Optimizations in C/C++
IEEE Transactions on Software Engineering · 2024-11 · 50 (11) · 2849-2864
DOI: 10.1109/tse.2024.3423769 ↗Kurz gefasst
Fachartikel in der Zeitschrift IEEE Transactions on Software Engineering, 2024-11. Verfasst von Zimin Chen und 2 weiteren Autor:innen. Die Arbeit wurde bisher 19-mal zitiert (Crossref) und nennt 71 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Wallenberg Artificial Intelligence, Autonomous Systems and Software Program (WASP) funded by Knut and Alice Wallenberg Foundation, Swedish Foundation for Strategic Research, National Academic Infrastructure for Supercomputing in Sweden.
Abstract (Originalsprache)
Software optimization refines programs for resource efficiency while preserving functionality. Traditionally, it is a process done by developers and compilers. This paper introduces a third option, automated optimization at the source code level. We present Supersonic , a neural approach targeting minor source code modifications for optimization. Using a seq2seq model, Supersonic is trained on C/C++ program pairs ( $x_{t}$ x t , $x_{t+1}$ x t + 1 ), where $x_{t+1}$ x t + 1 is an optimized version of $x_{t}$ x t , and outputs a diff. Supersonic 's performance is benchmarked against OpenAI's GPT-3.5-Turbo and GPT-4 on competitive programming tasks. The experiments show that Supersonic not only outperforms both models on the code optimization task but also minimizes the extent of the change with a model more than 600x smaller than GPT-3.5-Turbo and 3700x smaller than GPT-4.
Förderung
- Wallenberg Artificial Intelligence, Autonomous Systems and Software Program (WASP) funded by Knut and Alice Wallenberg Foundation
- Swedish Foundation for Strategic Research
- National Academic Infrastructure for Supercomputing in Sweden
- Vetenskapsrådet
Zitieren
APA
Chen, Z., Fang, S., & Monperrus, M. (2024). Supersonic: Learning to Generate Source Code Optimizations in C/C++. IEEE Transactions on Software Engineering, 50(11), 2849-2864. https://doi.org/10.1109/tse.2024.3423769
Vancouver
Chen Z, Fang S, Monperrus M. Supersonic: Learning to Generate Source Code Optimizations in C/C++. IEEE Transactions on Software Engineering. 2024;50(11):2849-2864. doi:10.1109/tse.2024.3423769
BibTeX
@article{Chen2024,
author = {Chen, Zimin and Fang, Sen and Monperrus, Martin},
title = {Supersonic: Learning to Generate Source Code Optimizations in C/C++},
journal = {IEEE Transactions on Software Engineering},
year = {2024},
volume = {50},
number = {11},
pages = {2849--2864},
doi = {10.1109/tse.2024.3423769}
}
EUVIMED