SuperCoder: Assembly Program Superoptimization with Large Language Models
Not on the map. Why?
Abstract (arXiv)
Superoptimization is the task of transforming a program into a faster one, and ideally the very fastest possible one, while preserving its input-output behavior. In this work, we investigate whether large language models (LLMs) can serve as superoptimizers, generating assembly programs that outperform code already optimized by industry-standard compilers in end-to-end runtime. We construct the first large-scale benchmark for this problem, consisting of 8,072 assembly programs averaging 130 lines, in contrast to prior datasets restricted to 2-15 straight-line, loop-free programs. We evaluate 23 LLMs on this benchmark and find that the strongest baseline, Claude-opus-4, achieves a 51.5% test-passing rate and a 1.43x average speedup over gcc -O3. To further enhance performance, we fine-tune models with reinforcement learning, optimizing a reward function that integrates correctness and performance speedup. Starting from Qwen2.5-Coder-7B-Instruct (61.4% correctness, 1.10x speedup), the fine-tuned model SuperCoder attains 95.0% correctness and 1.46x average speedup, with additional improvement enabled by Best-of-N sampling and iterative refinement. Our results demonstrate, for the first time, that LLMs can be applied as superoptimizers for assembly programs, establishing a foundation for future research in program performance optimization beyond compiler heuristics.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 55 of its 85 references that are in the map. First posted on arXiv 16 May 2025.
Builds on
55 of 85 references.
References · 55
- 2023GPT-4 Technical Reportcited by 18,396
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
38 more
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2023StarCoder: may the source be with you!cited by 799
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 421
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 358
- 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 263
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 225
- 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 201
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 200
- 2018Learning to Optimize Tensor Programscited by 140
- 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
- 2023RLTF: Reinforcement Learning from Unit Test Feedbackcited by 114
- 2023Learning Performance-Improving Code Editscited by 106
- 2023Execution-based Code Generation using Deep Reinforcement Learningcited by 99
- 2024StepCoder: Improve Code Generation with Reinforcement Learning from Compiler Feedbackcited by 77
- 2022Less Training, More Repairing Please: Revisiting Automated Program Repair via Zero-shot Learningcited by 76
- 2024Evaluating Language Models for Efficient Code Generationcited by 73
- 2023Large Language Models for Test-Free Fault Localizationcited by 67
- 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
- 2025CodeMonkeys: Scaling Test-Time Compute for Software Engineeringcited by 51
- 2024Mirage: A Multi-Level Superoptimizer for Tensor Programscited by 41
- 2024Top Leaderboard Ranking = Top Coding Proficiency, Always? EvoEval: Evolving Coding Benchmarks via LLMcited by 40
- 2024Meta Large Language Model Compiler: Foundation Models of Compiler Optimizationcited by 39
- 2024Mercury: A Code Efficiency Benchmark for Code Large Language Modelscited by 35
- 2024EvoCodeBench: An Evolving Code Generation Benchmark with Domain-Specific Evaluationscited by 34
- 2022Tensor Program Optimization with Probabilistic Programscited by 30
- 2024EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimizationcited by 30
- 2024LLM-Vectorizer: LLM-based Verified Loop Vectorizercited by 25
- 2020AutoPhase: Juggling HLS Phase Orderings in Random Forests with Deep Reinforcement Learningcited by 24
- 2024Learning Code Preference via Synthetic Evolutioncited by 19
- 2024CodeRosetta: Pushing the Boundaries of Unsupervised Code Translation for Parallel Programmingcited by 19
- 2025CodeARC: Benchmarking Reasoning Capabilities of LLM Agents for Inductive Program Synthesiscited by 16
- 2024Verified Code Transpilation with LLMscited by 15
50 most cited of 55 All 55 (JSON)
Built on by
Citing papers per year: 2025: 1; 2026: 5.
6 papers.
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 51
- 2026InCoder-32B-Thinking: Industrial Code World Model for Thinkingcited by 4
- 2026Surprisal-Guided Selection: Compute-Optimal Test-Time Strategies for Execution-Grounded Code Generationcited by 1
- 2026Learning the Error Patterns of Language Modelscited by 0
- 2026Reinforcement Learning for Code Optimizationcited by 0
- 2026AI as a Compiler: Compiling Triton kernels without the Triton compilercited by 0
- 2026AI as a Compiler: Compiling Triton kernels without the Triton compiler29 Sep 2026
- 2026Reinforcement Learning for Code Optimization28 Jul 2026
- 2026Learning the Error Patterns of Language Models27 May 2026
- 2026InCoder-32B-Thinking: Industrial Code World Model for Thinking3 Apr 2026
- 2026Surprisal-Guided Selection: Compute-Optimal Test-Time Strategies for Execution-Grounded Code Generation7 Feb 2026
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimization9 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2023Large Language Models for Compiler Optimization
- 2021Learning to Superoptimize Real-world Programs
- 2024Should AI Optimize Your Code? A Comparative Study of Classical Optimizing Compilers Versus Current Large Language Models
- 2024Performance-Aligned LLMs for Generating Fast Code
- 2025REASONING COMPILER: LLM-Guided Optimizations for Efficient Model Serving
- 2025QiMeng-NeuComBack: Self-Evolving Translation from IR to Assembly Code
- 2026DecompRL: Solving Harder Problems by Learning Modular Code Generation
- 2024Enhancing Code LLMs with Reinforcement Learning in Code Generation: A Survey