LLM Program Optimization via Retrieval Augmented Search
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 18:50 UTC · 289cc9bde3af ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,23 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "EMtKLsHLxT"- }- ],- "title": "LLM Program Optimization via Retrieval Augmented Search",- "authors": [- "Sagnik Anupam",- "Alexander Shypula",- "Osbert Bastani"- ],- "abstract": "With the advent of large language models (LLMs), there has been great interest in applying them to solve difficult programming tasks. Recent work has demonstrated their potential at program optimization, a key challenge in programming languages research. We propose a blackbox adaptation method called Retrieval Augmented Search (RAS) that performs beam search over candidate optimizations; at each step, it retrieves in-context examples from a given training dataset of slow-fast program pairs to guide the LLM. Critically, we find that performing contextual retrieval based on an LLM-generated natural language description significantly outperforms retrieval based on the source code. In addition, we propose a method called AEGIS for improving interpretability by decomposing training examples into ''atomic edits'' that are significantly more incremental in nature. We show that RAS performs up to 2.04$\\times$ better than prior state-of-the-art blackbox adaptation strategies on optimizing C++ programs, and that AEGIS performs 1.37$\\times$ better while performing significantly smaller edits. We also show that using RAS improves the mean runtime percentile of Python programs by 10.27 as compared to other strategies.",- "year": 2026,- "venue": "ICLR 2026 submission",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "e26ddeb8-5bca-4dbc-9314-9239c960c5b9"}
paper.json added
+++ b/paper.json@@ -0,0 +1,13 @@+{+ "title": "LLM Program Optimization via Retrieval Augmented Search",+ "authors": [+ "Sagnik Anupam",+ "Alexander Shypula",+ "Osbert Bastani"+ ],+ "abstract": "With the advent of large language models (LLMs), there has been great interest in applying them to solve difficult programming tasks. Recent work has demonstrated their potential at program optimization, a key challenge in programming languages research. We propose a blackbox adaptation method called Retrieval Augmented Search (RAS) that performs beam search over candidate optimizations; at each step, it retrieves in-context examples from a given training dataset of slow-fast program pairs to guide the LLM. Critically, we find that performing contextual retrieval based on an LLM-generated natural language description significantly outperforms retrieval based on the source code. In addition, we propose a method called AEGIS for improving interpretability by decomposing training examples into ''atomic edits'' that are significantly more incremental in nature. We show that RAS performs up to 2.04$\\times$ better than prior state-of-the-art blackbox adaptation strategies on optimizing C++ programs, and that AEGIS performs 1.37$\\times$ better while performing significantly smaller edits. We also show that using RAS improves the mean runtime percentile of Python programs by 10.27 as compared to other strategies.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}