mlsanityData to 7 Oct 2026

Agentic Auto-Scheduling: An Experimental Study of LLM-Guided Loop Optimization

arXiv 2511.00592 ↗First posted 1 Nov 2025cs.PL cs.DC cs.LGcited by 4

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Automatic code optimization remains a difficult challenge, particularly for complex loop nests on modern hardware. This paper investigates a novel approach to code optimization where Large Language Models (LLMs) guide the process through a closed-loop interaction with a compiler. We present ComPilot, an experimental framework that leverages off-the-shelf LLMs, without any task-specific fine-tuning, as interactive optimization agents. ComPilot establishes a feedback loop where an LLM proposes transformations for a given loop nest to a compiler. The compiler attempts the transformations, reporting back legality status and measured speedup or slowdown. The LLM utilizes this concrete feedback to iteratively refine its optimization strategy. Our extensive evaluation across the PolyBench benchmark suite demonstrates the effectiveness of this zero-shot approach. ComPilot achieves geometric mean speedups of 2.66x (single run) and 3.54x (best-of-5 runs) over the original code. Furthermore, ComPilot demonstrates competitive performance against the state-of-the-art Pluto polyhedral optimizer, outperforming it in many cases. This experimental study demonstrates that general-purpose LLMs can effectively guide the code optimization process when grounded by compiler feedback, opening promising research directions for agentic AI in code optimization.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 19 of its 51 references that are in the map. First posted on arXiv 1 Nov 2025.

Builds on

19 of 51 references.

References · 19

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  4. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  5. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  6. 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 199
  7. 2018Learning to Optimize Tensor Programscited by 138
  8. 2023Learning Performance-Improving Code Editscited by 103
  9. 2018Tensor Comprehensions: Framework-Agnostic High-Performance Machine Learning Abstractionscited by 84
  10. 2023A Survey of Large Language Models for Code: Evolution, Benchmarking, and Future Trendscited by 66
  11. 2018Tiramisu: A Polyhedral Compiler for Expressing Fast and Portable Codecited by 53
  12. 2023Large Language Models for Compiler Optimizationcited by 52
7 more
  1. 2024Meta Large Language Model Compiler: Foundation Models of Compiler Optimizationcited by 39
  2. 2021A Deep Learning Based Cost Model for Automatic Code Optimizationcited by 33
  3. 2024LLM-Vectorizer: LLM-based Verified Loop Vectorizercited by 25
  4. 2024Compiler generated feedback for Large Language Modelscited by 9
  5. 2020TIRAMISU: A Polyhedral Compiler for Dense and Sparse Deep Learningcited by 7
  6. 2024LOOPer: A Learned Automatic Code Optimizer For Polyhedral Compilerscited by 7
  7. 2025CompilerGPT: Leveraging Large Language Models for Analyzing and Acting on Compiler Optimization Reportscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026AutoPass: Evidence-Guided LLM Agents for Compiler Performance Tuning
  2. 2026Prior Knowledge or Search? A Study of LLM Agents in Hardware-Aware Code Optimization
  3. 2024Should AI Optimize Your Code? A Comparative Study of Classical Optimizing Compilers Versus Current Large Language Models
  4. 2025MARCO: Multi-Agent Code Optimization with Real-Time Knowledge Integration for High-Performance Computing
  5. 2025VFlow: Discovering Optimal Agentic Workflows for Verilog Generation
  6. 2025AwareCompiler: Agentic Context-Aware Compiler Optimization via a Synergistic Knowledge-Data Driven Framework
  7. 2026Can Coding Agents Implement Missed Compiler Optimizations? Evaluating LLM Agents on LLVM Peephole Optimizations
  8. 2026EffiSkill: Agent Skill Based Automated Code Efficiency Optimization