PerfCoder: Large Language Models for Interpretable Code Performance Optimization
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have achieved remarkable progress in automatic code generation, yet their ability to produce high-performance code remains limited--a critical requirement in real-world software systems. We argue that current LLMs struggle not only due to data scarcity but, more importantly, because they lack supervision that guides interpretable and effective performance improvements. In this work, we introduce PerfCoder, a family of LLMs specifically designed to generate performance-enhanced code from source code via interpretable, customized optimizations. PerfCoder is fine-tuned on a curated collection of real-world optimization trajectories with human-readable annotations, and preference-aligned by reinforcement fine-tuning using runtime measurements, enabling it to propose input-specific improvement strategies and apply them directly without relying on iterative refinement. On the PIE code performance benchmark, PerfCoder surpasses all existing models in both runtime speedup and effective optimization rate, demonstrating that performance optimization cannot be achieved by scale alone but requires optimization stratetgy awareness. In addition, PerfCoder can generate interpretable feedback about the source code, which, when provided as input to a larger LLM in a planner-and-optimizer cooperative workflow, can further improve outcomes. Specifically, we elevate the performance of 32B models and GPT-5 to new levels on code optimization, substantially surpassing their original performance.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 38 of its 54 references that are in the map. First posted on arXiv 16 Dec 2025.
Builds on
38 of 54 references.
References · 38
- 2023GPT-4 Technical Reportcited by 18,396
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 367
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 353
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 183
- 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
26 more
- 2023Keep the Conversation Going: Fixing 162 out of 337 bugs for 0.42 each using ChatGPTcited by 125
- 2023InferFix: End-to-End Program Repair with LLMscited by 114
- 2023Learning Performance-Improving Code Editscited by 106
- 2021Examining Zero-Shot Vulnerability Repair with Large Language Modelscited by 105
- 2024HumanEval-XL: A Multilingual Code Generation Benchmark for Cross-lingual Natural Language Generalizationcited by 86
- 2024Enhancing Code LLMs with Reinforcement Learning in Code Generation: A Surveycited by 83
- 2025Kevin: Multi-Turn RL for Generating CUDA Kernelscited by 78
- 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Codecited by 64
- 2023How Effective Are Neural Networks for Fixing Security Vulnerabilitiescited by 52
- 2024A Performance Study of LLM-Generated Code on Leetcodecited by 49
- 2024LLaMoCo: Instruction Tuning of Large Language Models for Optimization Code Generationcited by 45
- 2024Optima: Optimizing Effectiveness and Efficiency for LLM-Based Multi-Agent Systemcited by 43
- 2024Mercury: A Code Efficiency Benchmark for Code Large Language Modelscited by 35
- 2024EvoCodeBench: An Evolving Code Generation Benchmark with Domain-Specific Evaluationscited by 34
- 2024EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimizationcited by 30
- 2023Large Language Models of Code Fail at Completing Code with Potential Bugscited by 29
- 2024Search-Based LLMs for Code Optimizationcited by 28
- 2024ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?cited by 27
- 2024LLM-Vectorizer: LLM-based Verified Loop Vectorizercited by 25
- 2023Fixing Hardware Security Bugs with Large Language Modelscited by 24
- 2024On Evaluating the Efficiency of Source Code Generated by LLMscited by 21
- 2024Performance-Aligned LLMs for Generating Fast Codecited by 21
- 2024LangProp: A code optimization framework using Large Language Models applied to drivingcited by 18
- 2023Supersonic: Learning to Generate Source Code Optimizations in C/C++cited by 16
- 2024DeepCode AI Fix: Fixing Security Vulnerabilities with Large Language Modelscited by 7
- 2024FastFixer: An Efficient and Effective Approach for Repairing Programming Assignmentscited by 3
Built on by
Citing papers per year: 2026: 3.
3 papers.