Search-Based LLMs for Code Optimization
Shuzheng Gao, Cuiyun Gao, Wenchao Gu, Michael Lyu

TL;DR
This paper introduces SBLLM, a search-based framework combining LLMs with evolutionary search to iteratively refine code optimization, overcoming limitations of one-step generation methods.
Contribution
It proposes a novel search-based approach that integrates LLMs with evolutionary search techniques for more effective code optimization.
Findings
SBLLM enables iterative refinement of optimized code.
The framework improves optimization quality over traditional one-step methods.
Experimental results demonstrate enhanced code efficiency and bug reduction.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsDistributed and Parallel Computing Systems
