Supersonic: Learning to Generate Source Code Optimizations in C/C++
Not on the map. Why?
Abstract (arXiv)
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 (xt, xt+1), where xt+1 is an optimized version of xt, 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.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 36 of its 61 references that are in the map. First posted on arXiv 26 Sep 2023.
Builds on
36 of 61 references.
References · 36
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
24 more
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
- 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,303
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
- 2022Exploring Length Generalization in Large Language Modelscited by 204
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 199
- 2018Learning to Optimize Tensor Programscited by 138
- 2023An Analysis of the Automatic Bug Fixing Performance of ChatGPTcited by 108
- 2023Learning Performance-Improving Code Editscited by 103
- 2023CodeBERTScore: Evaluating Code Generation with Pretrained Models of Codecited by 101
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 72
- 2023AI-assisted coding: Experiments with GPT-4cited by 43
- 2018A Survey on Compiler Autotuning using Machine Learningcited by 40
- 2021A Deep Learning Based Cost Model for Automatic Code Optimizationcited by 33
- 2020Chameleon: Adaptive Code Optimization for Expedited Deep Neural Network Compilationcited by 29
- 2023Improving ChatGPT Prompt for Code Generationcited by 28
- 2020ProGraML: Graph-based Deep Learning for Program Optimization and Analysiscited by 23
- 2023RAPGen: An Approach for Fixing Code Inefficiencies in Zero-Shotcited by 14
- 2017Improving Spark Application Throughput Via Memory Aware Task Co-location: A Mixture of Experts Approachcited by 5
- 2021Learning to Make Compiler Optimizations More Effectivecited by 4
- 2022Learning to Improve Code Efficiencycited by 4
- 2021Profile Guided Optimization without Profiles: A Machine Learning Approachcited by 2
Built on by
Citing papers per year: 2024: 6; 2025: 7; 2026: 2.
15 papers.
Sort:
By area:
- 2024A Performance Study of LLM-Generated Code on Leetcodecited by 48
- 2024Mercury: A Code Efficiency Benchmark for Code Large Language Modelscited by 34
- 2024Search-Based LLMs for Code Optimizationcited by 27
- 2024Agents4PLC: Automating Closed-loop PLC Code Generation and Verification in Industrial Control Systems using LLM-based Agentscited by 25
- 2026EffiSkill: Agent Skill Based Automated Code Efficiency Optimizationcited by 9
- 2024Don't Transform the Code, Code the Transforms: Towards Precise Code Rewriting using LLMscited by 8
- 2024DCA-Bench: A Benchmark for Dataset Curation Agentscited by 6
- 2025Rethinking Autonomy: Preventing Failures in AI-Driven Software Engineeringcited by 4
- 2025PerfCoder: Large Language Models for Interpretable Code Performance Optimizationcited by 3
- 2025FasterPy: An LLM-based Code Execution Efficiency Optimization Frameworkcited by 3
- 2025Investigating Execution-Aware Language Models for Code Optimizationcited by 1
- 2025Can We Make Code Green? Understanding Trade-Offs in LLMs vs. Human Code Optimizationscited by 1
3 more
- 2025ECO: Enhanced Code Optimization via Performance-Aware Prompting for Code-LLMscited by 1
- 2025LOOPRAG: Enhancing Loop Transformation Optimization with Retrieval-Augmented Large Language Modelscited by 1
- 2026Beyond the Need for Speed: Energy-Aware Code Generation via Simulation-Guided Reinforcement Learningcited by 0
- 2026Beyond the Need for Speed: Energy-Aware Code Generation via Simulation-Guided Reinforcement Learning6 Jul 2026
- 2026EffiSkill: Agent Skill Based Automated Code Efficiency Optimization29 Mar 2026
- 2025FasterPy: An LLM-based Code Execution Efficiency Optimization Framework28 Dec 2025
- 2025PerfCoder: Large Language Models for Interpretable Code Performance Optimization16 Dec 2025
- 2025LOOPRAG: Enhancing Loop Transformation Optimization with Retrieval-Augmented Large Language Models12 Dec 2025
- 2025ECO: Enhanced Code Optimization via Performance-Aware Prompting for Code-LLMs12 Oct 2025
- 2025Rethinking Autonomy: Preventing Failures in AI-Driven Software Engineering15 Aug 2025
- 2025Can We Make Code Green? Understanding Trade-Offs in LLMs vs. Human Code Optimizations26 Mar 2025
- 2025Investigating Execution-Aware Language Models for Code Optimization11 Mar 2025
- 2024Agents4PLC: Automating Closed-loop PLC Code Generation and Verification in Industrial Control Systems using LLM-based Agents18 Oct 2024
- 2024Don't Transform the Code, Code the Transforms: Towards Precise Code Rewriting using LLMs11 Oct 2024
- 2024Search-Based LLMs for Code Optimization22 Aug 2024
3 more
- 2024A Performance Study of LLM-Generated Code on Leetcode31 Jul 2024
- 2024DCA-Bench: A Benchmark for Dataset Curation Agents11 Jun 2024
- 2024Mercury: A Code Efficiency Benchmark for Code Large Language Models12 Feb 2024
- 2024A Performance Study of LLM-Generated Code on Leetcodecited by 48
- 2024Mercury: A Code Efficiency Benchmark for Code Large Language Modelscited by 34
- 2024Search-Based LLMs for Code Optimizationcited by 27
- 2024Don't Transform the Code, Code the Transforms: Towards Precise Code Rewriting using LLMscited by 8
- 2025PerfCoder: Large Language Models for Interpretable Code Performance Optimizationcited by 3
- 2025FasterPy: An LLM-based Code Execution Efficiency Optimization Frameworkcited by 3
- 2025Investigating Execution-Aware Language Models for Code Optimizationcited by 1
- 2025Can We Make Code Green? Understanding Trade-Offs in LLMs vs. Human Code Optimizationscited by 1
- 2025ECO: Enhanced Code Optimization via Performance-Aware Prompting for Code-LLMscited by 1
- 2026Beyond the Need for Speed: Energy-Aware Code Generation via Simulation-Guided Reinforcement Learningcited by 0
- 2026Beyond the Need for Speed: Energy-Aware Code Generation via Simulation-Guided Reinforcement Learning6 Jul 2026
- 2025FasterPy: An LLM-based Code Execution Efficiency Optimization Framework28 Dec 2025
- 2025PerfCoder: Large Language Models for Interpretable Code Performance Optimization16 Dec 2025
- 2025ECO: Enhanced Code Optimization via Performance-Aware Prompting for Code-LLMs12 Oct 2025
- 2025Can We Make Code Green? Understanding Trade-Offs in LLMs vs. Human Code Optimizations26 Mar 2025
- 2025Investigating Execution-Aware Language Models for Code Optimization11 Mar 2025
- 2024Don't Transform the Code, Code the Transforms: Towards Precise Code Rewriting using LLMs11 Oct 2024
- 2024Search-Based LLMs for Code Optimization22 Aug 2024
- 2024A Performance Study of LLM-Generated Code on Leetcode31 Jul 2024
- 2024Mercury: A Code Efficiency Benchmark for Code Large Language Models12 Feb 2024