mlsanityData to 14 Oct 2026

SuperCoder: Assembly Program Superoptimization with Large Language Models

arXiv 2505.11480 ↗First posted 16 May 2025cs.CL cs.AI cs.PFcited by 6

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

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2017Proximal Policy Optimization Algorithmscited by 15,215
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  5. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  6. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  7. 2021Program Synthesis with Large Language Modelscited by 3,637
  8. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  9. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  10. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
  11. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
  12. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
38 more
  1. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  2. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  3. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  4. 2021Measuring Coding Challenge Competence With APPScited by 902
  5. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
  6. 2023StarCoder: may the source be with you!cited by 799
  7. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
  8. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
  9. 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 421
  10. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 358
  11. 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 263
  12. 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 225
  13. 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 201
  14. 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 200
  15. 2018Learning to Optimize Tensor Programscited by 140
  16. 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
  17. 2023RLTF: Reinforcement Learning from Unit Test Feedbackcited by 114
  18. 2023Learning Performance-Improving Code Editscited by 106
  19. 2023Execution-based Code Generation using Deep Reinforcement Learningcited by 99
  20. 2024StepCoder: Improve Code Generation with Reinforcement Learning from Compiler Feedbackcited by 77
  21. 2022Less Training, More Repairing Please: Revisiting Automated Program Repair via Zero-shot Learningcited by 76
  22. 2024Evaluating Language Models for Efficient Code Generationcited by 73
  23. 2023Large Language Models for Test-Free Fault Localizationcited by 67
  24. 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
  25. 2025CodeMonkeys: Scaling Test-Time Compute for Software Engineeringcited by 51
  26. 2024Mirage: A Multi-Level Superoptimizer for Tensor Programscited by 41
  27. 2024Top Leaderboard Ranking = Top Coding Proficiency, Always? EvoEval: Evolving Coding Benchmarks via LLMcited by 40
  28. 2024Meta Large Language Model Compiler: Foundation Models of Compiler Optimizationcited by 39
  29. 2024Mercury: A Code Efficiency Benchmark for Code Large Language Modelscited by 35
  30. 2024EvoCodeBench: An Evolving Code Generation Benchmark with Domain-Specific Evaluationscited by 34
  31. 2022Tensor Program Optimization with Probabilistic Programscited by 30
  32. 2024EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimizationcited by 30
  33. 2024LLM-Vectorizer: LLM-based Verified Loop Vectorizercited by 25
  34. 2020AutoPhase: Juggling HLS Phase Orderings in Random Forests with Deep Reinforcement Learningcited by 24
  35. 2024Learning Code Preference via Synthetic Evolutioncited by 19
  36. 2024CodeRosetta: Pushing the Boundaries of Unsupervised Code Translation for Parallel Programmingcited by 19
  37. 2025CodeARC: Benchmarking Reasoning Capabilities of LLM Agents for Inductive Program Synthesiscited by 16
  38. 2024Verified Code Transpilation with LLMscited by 15

50 most cited of 55 All 55 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 5.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023Large Language Models for Compiler Optimization
  2. 2021Learning to Superoptimize Real-world Programs
  3. 2024Should AI Optimize Your Code? A Comparative Study of Classical Optimizing Compilers Versus Current Large Language Models
  4. 2024Performance-Aligned LLMs for Generating Fast Code
  5. 2025REASONING COMPILER: LLM-Guided Optimizations for Efficient Model Serving
  6. 2025QiMeng-NeuComBack: Self-Evolving Translation from IR to Assembly Code
  7. 2026DecompRL: Solving Harder Problems by Learning Modular Code Generation
  8. 2024Enhancing Code LLMs with Reinforcement Learning in Code Generation: A Survey