atlas

Research map / Large language models / Agents, code and math

REASONING COMPILER: LLM-Guided Optimizations for Efficient Model Serving

NeurIPS 2025 · Large language models › Agents, code and math · approach: LLMs for optimization and heuristics · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Reasoning Compiler, which combines LLM-generated transformation proposals (with parent/grandparent schedule history and cost-model feedback) with Monte Carlo tree search to optimize tensor programs in TVM MetaSchedule with far fewer samples than TVM's evolutionary search, without any retraining.

Problem

Compiler autotuning for neural network layers has a huge, interdependent transformation space, and existing stochastic/evolutionary search methods are sample-inefficient and ignore contextual dependencies between transformations.

Approach

Cast compiler optimization as a finite-horizon MDP searched by UCT-based MCTS, where an off-the-shelf LLM (no fine-tuning) acts as a context-aware proposal engine that reads the code, schedule trace, and predicted costs of the node and its ancestors and proposes the next transformation sequence.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use LLM-guided MCTS instead of TVM searchLayer-wise neural compiler optimization · Layer-wise benchmarks, geomean across 25 platform-operator pairsspeedup: 2.7× -> 5.0×Helped
Use LLM-guided MCTS instead of TVM searchEnd-to-end Llama 3 optimization · Llama 3, geomean across five hardware platformsspeedup: 2.8× -> 4.0×Helped
Add the great-grandparent schedule to the prompt context (ablation)REASONING COMPILER with GPT-4o mini · Llama 3 attention layerspeedup: 11.33 -> 11.87Helped
Add the great-grandparent schedule to the prompt context (ablation)REASONING COMPILER with GPT-4o mini · DeepSeek MoE layerspeedup: 9.45 -> 10.65Helped
Add the great-grandparent schedule to the prompt context (ablation)REASONING COMPILER with GPT-4o mini · Flux attention layerspeedup: 5.43 -> 5.61Helped
Add the great-grandparent schedule to the prompt context (ablation)REASONING COMPILER with GPT-4o mini · Flux convolution layerspeedup: 2.47 -> 2.50Helped
Increase MCTS branching factor from 2 to 4 (ablation)REASONING COMPILER · Llama 3 attention layerspeedup: 11.33 -> 10.99Hurt
Increase MCTS branching factor from 2 to 4 (ablation)REASONING COMPILER · DeepSeek MoE layerspeedup: 9.45 -> 9.10Hurt
Increase MCTS branching factor from 2 to 4 (ablation)REASONING COMPILER · Flux attention layerspeedup: 5.43 -> 5.55Mixed
Increase MCTS branching factor from 2 to 4 (ablation)REASONING COMPILER · Flux convolution layerspeedup: 2.47 -> 2.43Hurt
Use Llama3.3-Instruct (70B) as the proposal model instead of GPT-4o mini (ablation)REASONING COMPILER · Llama 3 attention layerspeedup: 11.33 -> 9.81Mixed
Use DeepSeek-Distill-Qwen (32B) as the proposal model instead of GPT-4o mini (ablation)REASONING COMPILER · DeepSeek MoE layerspeedup: 9.45 -> 12.02Helped

Surprising findings

Limitations

Experimental setup

Datasets: Llama-3-8B self-attention layer kernel DeepSeek-R1 MoE layer kernel FLUX attention layer kernel FLUX convolution layer kernel Llama-4-Scout MLP layer kernel end-to-end Llama-3-8B

Benchmarks: Llama-3-8B attention layer DeepSeek-R1 MoE layer FLUX attention layer FLUX convolution layer Llama-4-Scout MLP layer end-to-end Llama-3-8B

Metrics: speedup over unoptimized code number of samples sample efficiency (speedup per sample)

Baselines: TVM MetaSchedule (evolutionary search) MCTS without LLM guidance

Builds on: Monte Carlo tree search UCT TVM MetaSchedule chain-of-thought prompting

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy