Search-Based LLMs for Code Optimization
Not on the map. Why?
Abstract (arXiv)
The code written by developers usually suffers from efficiency problems and contain various performance bugs. These inefficiencies necessitate the research of automated refactoring methods for code optimization. Early research in code optimization employs rule-based methods and focuses on specific inefficiency issues, which are labor-intensive and suffer from the low coverage issue. Recent work regards the task as a sequence generation problem, and resorts to deep learning (DL) techniques such as large language models (LLMs). These methods typically prompt LLMs to directly generate optimized code. Although these methods show state-of-the-art performance, such one-step generation paradigm is hard to achieve an optimal solution. First, complex optimization methods such as combinatorial ones are hard to be captured by LLMs. Second, the one-step generation paradigm poses challenge in precisely infusing the knowledge required for effective code optimization within LLMs, resulting in under-optimized code.To address these problems, we propose to model this task from the search perspective, and propose a search-based LLMs framework named SBLLM that enables iterative refinement and discovery of improved optimization methods. SBLLM synergistically integrate LLMs with evolutionary search and consists of three key components: 1) an execution-based representative sample selection part that evaluates the fitness of each existing optimized code and prioritizes promising ones to pilot the generation of improved code; 2) an adaptive optimization pattern retrieval part that infuses targeted optimization patterns into the model for guiding LLMs towards rectifying and progressively enhancing their optimization methods; and 3) a genetic operator-inspired chain-of-thought prompting part that aids LLMs in combining different optimization methods and generating improved optimization methods.
Key facts. Cited by 27 papers in the map (data through 7 Oct 2026). Builds on 32 of its 55 references that are in the map. First posted on arXiv 22 Aug 2024.
Builds on
32 of 55 references.
References · 32
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2023Large Language Models Cannot Self-Correct Reasoning Yetcited by 965
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2023StarCoder: may the source be with you!cited by 790
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
20 more
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 199
- 2023Planning with Large Language Models for Code Generationcited by 179
- 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
- 2023Self-Edit: Fault-Aware Code Editor for Code Generationcited by 110
- 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
- 2023Learning Performance-Improving Code Editscited by 103
- 2021A Syntax-Guided Edit Decoder for Neural Program Repaircited by 57
- 2023What Makes Good In-context Demonstrations for Code Intelligence Tasks with LLMs?cited by 47
- 2021Code Structure Guided Transformer for Source Code Summarizationcited by 29
- 2023Domain Knowledge Matters: Improving Prompts with Fix Templates for Repairing Python Type Errorscited by 22
- 2023ITER: Iterative Neural Repair for Multi-Location Patchescited by 16
- 2023Supersonic: Learning to Generate Source Code Optimizations in C/C++cited by 15
- 2023RAPGen: An Approach for Fixing Code Inefficiencies in Zero-Shotcited by 14
- 2023Enhancing Genetic Improvement Mutations Using Large Language Modelscited by 12
- 2024Learning in the Wild: Towards Leveraging Unlabeled Data for Effectively Tuning Pre-trained Code Modelscited by 9
- 2023Generative Type Inference for Pythoncited by 6
- 2022Triangulating Python Performance Issues with Scalenecited by 5
- 2024Search-based Optimisation of LLM Learning Shots for Story Point Estimationcited by 5
- 2022Learning to Improve Code Efficiencycited by 4
- 2023Towards Objective-Tailored Genetic Improvement Through Large Language Modelscited by 4
Built on by
Citing papers per year: 2024: 2; 2025: 16; 2026: 9.
27 papers.
Sort:
By area:
- 2025Agent READMEs: An Empirical Study of Context Files for Agentic Codingcited by 21
- 2026SWE-MeM: Learning Adaptive Memory Management for Long-Horizon Coding Agentscited by 12
- 2024Multi-Programming Language Sandbox for LLMscited by 9
- 2024CoopetitiveV: Leveraging LLM-powered Coopetitive Multi-Agent Prompting for High-quality Verilog Generationcited by 9
- 2026EffiSkill: Agent Skill Based Automated Code Efficiency Optimizationcited by 9
- 2025Knowledge Augmented Complex Problem Solving with Large Language Models: A Surveycited by 6
- 2025RobuNFR: Evaluating the Robustness of Large Language Models on Non-Functional Requirements Aware Code Generationcited by 5
- 2025LLM Program Optimization via Retrieval Augmented Searchcited by 4
- 2025RAG or Fine-tuning? A Comparative Study on LCMs-based Code Completion in Industrycited by 4
- 2025FALCON: Transforming Cyber Threat Intelligence into Deployable IDS Rules with Self-Reflectioncited by 4
- 2025PerfCoder: Large Language Models for Interpretable Code Performance Optimizationcited by 3
- 2025FasterPy: An LLM-based Code Execution Efficiency Optimization Frameworkcited by 3
15 more
- 2026AutoTrainess: Teaching Language Models to Improve Language Models Autonomouslycited by 2
- 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimizationcited by 2
- 2025Optimizing Code Runtime Performance through Context-Aware Retrieval-Augmented Generationcited by 1
- 2025Investigating Execution-Aware Language Models for Code Optimizationcited by 1
- 2025A Blueprint for AI-Driven Software Quality: Integrating LLMs with Established Standardscited by 1
- 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
- 2026AutoPass: Evidence-Guided LLM Agents for Compiler Performance Tuningcited by 1
- 2025Search-Based Software Engineering and AI Foundation Models: Current Landscape and Future Roadmapcited by 0
- 2025GrowthHacker: Automated Off-Policy Evaluation Optimization Using Code-Modifying LLM Agentscited by 0
- 2025Toward Automated and Trustworthy Scientific Analysis and Visualization with LLM-Generated Codecited by 0
- 2026The New Compiler Stack: A Survey on the Synergy of LLMs and Compilerscited by 0
- 2026Coding in a Bubble? Evaluating LLMs in Resolving Context Adaptation Bugs During Code Adaptationcited by 0
- 2026ConceptCoder: Improve Code Reasoning via Concept Learningcited by 0
- 2026Can Coding Agents Implement Missed Compiler Optimizations? Evaluating LLM Agents on LLVM Peephole Optimizationscited by 0
- 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimization22 Jul 2026
- 2026Can Coding Agents Implement Missed Compiler Optimizations? Evaluating LLM Agents on LLVM Peephole Optimizations2 Jul 2026
- 2026AutoTrainess: Teaching Language Models to Improve Language Models Autonomously30 Jun 2026
- 2026SWE-MeM: Learning Adaptive Memory Management for Long-Horizon Coding Agents26 Jun 2026
- 2026AutoPass: Evidence-Guided LLM Agents for Compiler Performance Tuning18 Jun 2026
- 2026EffiSkill: Agent Skill Based Automated Code Efficiency Optimization29 Mar 2026
- 2026ConceptCoder: Improve Code Reasoning via Concept Learning24 Mar 2026
- 2026Coding in a Bubble? Evaluating LLMs in Resolving Context Adaptation Bugs During Code Adaptation10 Jan 2026
- 2026The New Compiler Stack: A Survey on the Synergy of LLMs and Compilers5 Jan 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
15 more
- 2025Toward Automated and Trustworthy Scientific Analysis and Visualization with LLM-Generated Code26 Nov 2025
- 2025Agent READMEs: An Empirical Study of Context Files for Agentic Coding17 Nov 2025
- 2025GrowthHacker: Automated Off-Policy Evaluation Optimization Using Code-Modifying LLM Agents2 Nov 2025
- 2025ECO: Enhanced Code Optimization via Performance-Aware Prompting for Code-LLMs12 Oct 2025
- 2025FALCON: Transforming Cyber Threat Intelligence into Deployable IDS Rules with Self-Reflection26 Aug 2025
- 2025Search-Based Software Engineering and AI Foundation Models: Current Landscape and Future Roadmap26 May 2025
- 2025RAG or Fine-tuning? A Comparative Study on LCMs-based Code Completion in Industry21 May 2025
- 2025A Blueprint for AI-Driven Software Quality: Integrating LLMs with Established Standards19 May 2025
- 2025Knowledge Augmented Complex Problem Solving with Large Language Models: A Survey6 May 2025
- 2025RobuNFR: Evaluating the Robustness of Large Language Models on Non-Functional Requirements Aware Code Generation28 Mar 2025
- 2025Investigating Execution-Aware Language Models for Code Optimization11 Mar 2025
- 2025LLM Program Optimization via Retrieval Augmented Search31 Jan 2025
- 2025Optimizing Code Runtime Performance through Context-Aware Retrieval-Augmented Generation28 Jan 2025
- 2024CoopetitiveV: Leveraging LLM-powered Coopetitive Multi-Agent Prompting for High-quality Verilog Generation15 Dec 2024
- 2024Multi-Programming Language Sandbox for LLMs30 Oct 2024
- 2025Agent READMEs: An Empirical Study of Context Files for Agentic Codingcited by 21
- 2026SWE-MeM: Learning Adaptive Memory Management for Long-Horizon Coding Agentscited by 12
- 2024CoopetitiveV: Leveraging LLM-powered Coopetitive Multi-Agent Prompting for High-quality Verilog Generationcited by 9
- 2026EffiSkill: Agent Skill Based Automated Code Efficiency Optimizationcited by 9
- 2026AutoTrainess: Teaching Language Models to Improve Language Models Autonomouslycited by 2
- 2026AutoPass: Evidence-Guided LLM Agents for Compiler Performance Tuningcited by 1
- 2025GrowthHacker: Automated Off-Policy Evaluation Optimization Using Code-Modifying LLM Agentscited by 0
- 2026Can Coding Agents Implement Missed Compiler Optimizations? Evaluating LLM Agents on LLVM Peephole Optimizationscited by 0
- 2026Can Coding Agents Implement Missed Compiler Optimizations? Evaluating LLM Agents on LLVM Peephole Optimizations2 Jul 2026
- 2026AutoTrainess: Teaching Language Models to Improve Language Models Autonomously30 Jun 2026
- 2026SWE-MeM: Learning Adaptive Memory Management for Long-Horizon Coding Agents26 Jun 2026
- 2026AutoPass: Evidence-Guided LLM Agents for Compiler Performance Tuning18 Jun 2026
- 2026EffiSkill: Agent Skill Based Automated Code Efficiency Optimization29 Mar 2026
- 2025Agent READMEs: An Empirical Study of Context Files for Agentic Coding17 Nov 2025
- 2025GrowthHacker: Automated Off-Policy Evaluation Optimization Using Code-Modifying LLM Agents2 Nov 2025
- 2024CoopetitiveV: Leveraging LLM-powered Coopetitive Multi-Agent Prompting for High-quality Verilog Generation15 Dec 2024
- 2025LLM Program Optimization via Retrieval Augmented Searchcited by 4
- 2025RAG or Fine-tuning? A Comparative Study on LCMs-based Code Completion in Industrycited by 4
- 2025Optimizing Code Runtime Performance through Context-Aware Retrieval-Augmented Generationcited by 1
- 2025LOOPRAG: Enhancing Loop Transformation Optimization with Retrieval-Augmented Large Language Modelscited by 1
- 2025LOOPRAG: Enhancing Loop Transformation Optimization with Retrieval-Augmented Large Language Models12 Dec 2025
- 2025RAG or Fine-tuning? A Comparative Study on LCMs-based Code Completion in Industry21 May 2025
- 2025LLM Program Optimization via Retrieval Augmented Search31 Jan 2025
- 2025Optimizing Code Runtime Performance through Context-Aware Retrieval-Augmented Generation28 Jan 2025
- 2024Multi-Programming Language Sandbox for LLMscited by 9
- 2025RobuNFR: Evaluating the Robustness of Large Language Models on Non-Functional Requirements Aware Code Generationcited by 5
- 2025FALCON: Transforming Cyber Threat Intelligence into Deployable IDS Rules with Self-Reflectioncited by 4
- 2025PerfCoder: Large Language Models for Interpretable Code Performance Optimizationcited by 3
- 2025FasterPy: An LLM-based Code Execution Efficiency Optimization Frameworkcited by 3
- 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimizationcited by 2
- 2025Investigating Execution-Aware Language Models for Code Optimizationcited by 1
- 2025A Blueprint for AI-Driven Software Quality: Integrating LLMs with Established Standardscited by 1
- 2025ECO: Enhanced Code Optimization via Performance-Aware Prompting for Code-LLMscited by 1
- 2025Search-Based Software Engineering and AI Foundation Models: Current Landscape and Future Roadmapcited by 0
- 2025Toward Automated and Trustworthy Scientific Analysis and Visualization with LLM-Generated Codecited by 0
- 2026The New Compiler Stack: A Survey on the Synergy of LLMs and Compilerscited by 0
12 most cited of 13 All 13 (JSON)
- 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimization22 Jul 2026
- 2026Coding in a Bubble? Evaluating LLMs in Resolving Context Adaptation Bugs During Code Adaptation10 Jan 2026
- 2026The New Compiler Stack: A Survey on the Synergy of LLMs and Compilers5 Jan 2026
- 2025FasterPy: An LLM-based Code Execution Efficiency Optimization Framework28 Dec 2025
- 2025PerfCoder: Large Language Models for Interpretable Code Performance Optimization16 Dec 2025
- 2025Toward Automated and Trustworthy Scientific Analysis and Visualization with LLM-Generated Code26 Nov 2025
- 2025ECO: Enhanced Code Optimization via Performance-Aware Prompting for Code-LLMs12 Oct 2025
- 2025FALCON: Transforming Cyber Threat Intelligence into Deployable IDS Rules with Self-Reflection26 Aug 2025
- 2025Search-Based Software Engineering and AI Foundation Models: Current Landscape and Future Roadmap26 May 2025
- 2025A Blueprint for AI-Driven Software Quality: Integrating LLMs with Established Standards19 May 2025
- 2025RobuNFR: Evaluating the Robustness of Large Language Models on Non-Functional Requirements Aware Code Generation28 Mar 2025
- 2025Investigating Execution-Aware Language Models for Code Optimization11 Mar 2025
12 newest of 13 All 13 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Fine-tuning Large Language Model for Automated Algorithm Design
- 2024Performance-Aligned LLMs for Generating Fast Code
- 2025Holistic Evaluation of State-of-the-Art LLMs for Code Generation
- 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval
- 2025Step-Opt: Boosting Optimization Modeling in LLMs through Iterative Data Synthesis and Structured Validation
- 2025Let's Revise Step-by-Step: A Unified Local Search Framework for Code Generation with LLMs
- 2024Enhancing Code Generation Performance of Smaller Models by Distilling the Reasoning Ability of LLMs
- 2024Scattered Forest Search: Smarter Code Space Exploration with LLMs