mlsanityData to 14 Oct 2026

ECO: Enhanced Code Optimization via Performance-Aware Prompting for Code-LLMs

arXiv 2510.10517 ↗First posted 12 Oct 2025cs.PL cs.AI cs.SEcited by 2

Not on the map. Why?

Abstract (arXiv)

Code runtime optimization-the task of rewriting a given code to a faster one-remains challenging, as it requires reasoning about performance trade-offs involving algorithmic and structural choices. Recent approaches employ code-LLMs with slow-fast code pairs provided as optimization guidance, but such pair-based methods obscure the causal factors of performance gains and often lead to superficial pattern imitation rather than genuine performance reasoning. We introduce ECO, a performance-aware prompting framework for code optimization. ECO first distills runtime optimization instructions (ROIs) from reference slow-fast code pairs; Each ROI describes root causes of inefficiency and the rationales that drive performance improvements. For a given input code, ECO in parallel employs (i) a symbolic advisor to produce a bottleneck diagnosis tailored to the code, and (ii) an ROI retriever to return related ROIs. These two outputs are then composed into a performance-aware prompt, providing actionable guidance for code-LLMs. ECO's prompts are model-agnostic, require no fine-tuning, and can be easily prepended to any code-LLM prompt. Our empirical studies highlight that ECO prompting significantly improves code-LLMs' ability to generate efficient code, achieving speedups of up to 7.81x while minimizing correctness loss.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 11 of its 17 references that are in the map. First posted on arXiv 12 Oct 2025.

Builds on

11 of 17 references.

References · 11

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  4. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  5. 2022A Systematic Evaluation of Large Language Models of Codecited by 363
  6. 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 200
  7. 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 156
  8. 2023Learning Performance-Improving Code Editscited by 106
  9. 2024Search-Based LLMs for Code Optimizationcited by 28
  10. 2023Supersonic: Learning to Generate Source Code Optimizations in C/C++cited by 16
  11. 2013An Improving Method for Loop Unrollingcited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.