mlsanityData to 14 Oct 2026

REASONING COMPILER: LLM-Guided Optimizations for Efficient Model Serving

arXiv 2506.01374 ↗First posted 2 Jun 2025cs.LG cs.AI cs.PLcited by 3

On the map: LLM reasoning → Test-time compute and efficient thinking

Abstract (arXiv)

While model serving has unlocked unprecedented capabilities, the high cost of serving large-scale models continues to be a significant barrier to widespread accessibility and rapid innovation. Compiler optimizations have long driven substantial performance improvements, but existing compilers struggle with neural workloads due to the exponentially large and highly interdependent space of possible transformations. Although existing stochastic search techniques can be effective, they are often sample-inefficient and fail to leverage the structural context underlying compilation decisions. We set out to investigate the research question of whether reasoning with large language models (LLMs), without any retraining, can leverage the context-aware decision space of compiler optimizations to significantly improve sample efficiency. To that end, we introduce a novel compilation framework (dubbed REASONING COMPILER) that formulates optimization as a sequential, context-aware decision process guided by a large language model and structured Monte Carlo tree search (MCTS). The LLM acts as a proposal mechanism, suggesting hardware-informed transformations that reflect the current program state and accumulated performance feedback. MCTS incorporates the LLM-generated proposals to balance exploration and exploitation, facilitating a structured, context-sensitive traversal of the expansive compiler optimization space. By achieving substantial speedups with markedly fewer samples than leading neural compilers, our approach demonstrates the potential of LLM-guided reasoning to transform the landscape of compiler optimization.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 30 of its 63 references that are in the map. First posted on arXiv 2 Jun 2025.

Builds on

30 of 63 references.

References · 30

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  3. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  4. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  5. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
  6. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 333
  7. 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 300
  8. 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 256
  9. 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 201
  10. 2018Learning to Optimize Tensor Programscited by 140
  11. 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
  12. 2023Learning Performance-Improving Code Editscited by 106
18 more
  1. 2018Tensor Comprehensions: Framework-Agnostic High-Performance Machine Learning Abstractionscited by 85
  2. 2018Tiramisu: A Polyhedral Compiler for Expressing Fast and Portable Codecited by 53
  3. 2023Large Language Models for Compiler Optimizationcited by 52
  4. 2021MLGO: a Machine Learning Guided Compiler Optimizations Frameworkcited by 40
  5. 2022Tensor Program Optimization with Probabilistic Programscited by 30
  6. 2018Optimizing CNN Model Inference on CPUscited by 29
  7. 2020Chameleon: Adaptive Code Optimization for Expedited Deep Neural Network Compilationcited by 29
  8. 2020Transferable Graph Optimizers for ML Compilerscited by 29
  9. 2022Hidet: Task-Mapping Programming Paradigm for Deep Learning Tensor Programscited by 28
  10. 2021Equality Saturation for Tensor Graph Superoptimizationcited by 27
  11. 2020AutoPhase: Juggling HLS Phase Orderings in Random Forests with Deep Reinforcement Learningcited by 24
  12. 2020IOS: Inter-Operator Scheduler for CNN Accelerationcited by 20
  13. 2017Deep Learning with Dynamic Computation Graphscited by 15
  14. 2022BaCO: A Fast and Portable Bayesian Compiler Optimization Frameworkcited by 11
  15. 2021UNIT: Unifying Tensorized Instruction Compilationcited by 10
  16. 2020ProTuner: Tuning Programs with Monte Carlo Tree Searchcited by 9
  17. 2020FusionStitching: Boosting Memory Intensive Computations for Deep Learning Workloadscited by 9
  18. 2022Transfer-Tuning: Reusing Auto-Schedules for Efficient Tensor Program Code Generationcited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Towards LLM-based optimization compilers. Can LLMs learn how to apply a single peephole optimization? Reasoning is all LLMs need!
  2. 2026Frontier LLMs are effective batch optimizers: Assessing reasoning models in continuous and discrete settings
  3. 2024Inference Scaling vs Reasoning: An Empirical Analysis of Compute-Optimal LLM Problem-Solving
  4. 2026LiteCoOp: Lightweight Multi-LLM Shared-Tree Reasoning for Model-Serving Compiler Optimizations
  5. 2026OPT-Engine: Benchmarking the Limits of LLMs in Optimization Modeling via Complexity Scaling
  6. 2025Think, Prune, Train, Improve: Scaling Reasoning without Scaling Models
  7. 2025Thinking Short and Right Over Thinking Long: Serving LLM Reasoning Efficiently and Accurately
  8. 2025A Theory of Inference Compute Scaling: Reasoning through Directed Stochastic Skill Search