SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.01374 · NeurIPS · 2025

REASONING COMPILER: LLM-Guided Optimizations for Efficient Model Serving

Hadi Esmaeilzadeh, Lianhui Qin, San Diego, Annabelle Tang, Christopher Priebe, Rohan Mahapatra

arXiv · PDF · Open in the Atlas

Code that ran

2 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 0 failures of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2506.01374.json · badge: /api/ran/2506.01374.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
he-actlab/REASONING_COMPILER canonical (classifier label)
classifier basis not recorded on the link
2 ran · 3 no recorded run
Anna-Bele/LLM_MCTS_Search community (classifier label)
classifier basis not recorded on the link
0 ran · 1 no recorded run
FunctionStatusWhere it lives
change_type Ran
ran on a synthesized input
he-actlab/REASONING_COMPILER/ci/jenkins/generate.py
code served (permissive licence) · get_code("92355c2360a14ceb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned object. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re
from typing import List, Optional

class Change:
    IMAGES_ONLY = object()
    NONE = object()
    FULL = object()

def change_type(lines: List[str]) -> Change:
    """
    Return True if 'line' only edits an image tag or if 'line' is not a changed
    line in a diff
    """
    added_images = []
    removed_images = []
    diff_lines = []
    for line in lines[2:]:
        if not line.startswith('-') and (not line.startswith('+')):
            continue
        diff_lines.append(line)
    if len(diff_lines) == 0:
        return Change.NONE
    for line in diff_lines:
        is_add = line.startswith('+')
        line = line.strip().lstrip('+').lstrip('-')
        match = re.search("^(ci_[a-zA-Z0-9]+) = \\'.*\\'$", line.strip().lstrip('+').lstrip('-'), flags=re.MULTILINE)
        if match is None:
            return Change.FULL
        if is_add:
            added_images.append(match.groups()[0])
        else:
            removed_images.append(match.groups()[0])
    if len(added_images) > 0 and added_images == removed_images:
        return Change.IMAGES_ONLY
    else:
        return Change.FULL

# Test case 1: NONE - no diff lines
test_lines_none = [
    "diff --git a/file.txt b/file.txt",
    "index 123..456 100644",
]

# Test case 2: IMAGES_ONLY - only image variable changes, added and removed match
test_lines_images_only = [
    "diff --git a/file.txt b/file.txt",
    "index 123..456 100644",
    "-ci_image1 = 'old_value'",
    "+ci_image1 = 'new_value'",
]

# Test case 3: FULL - non-image changes present
test_lines_full = [
    "diff --git a/file.txt b/file.txt",
    "index 123..456 100644",
    "-some_other_var = 'value'",
    "+modified_var = 'new_value'",
]

ARGS = {
    "lines": test_lines_images_only
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type object — a object output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a object output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
lines_without_generated_tag Ran
ran on a synthesized input
he-actlab/REASONING_COMPILER/ci/jenkins/generate.py
code served (permissive licence) · get_code("416247bc8c60fa6a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# Analyze the function: lines_without_generated_tag(content)
# It takes 'content' and calls .splitlines(keepends=True) on it
# Then filters lines that don't start with '// Generated at'
# So 'content' must be a string

# Create sample content with some lines starting with '// Generated at' and some without
content = """// Generated at 2024-01-01
def hello():
    pass
// Generated at 2024-01-02
    return 42
// This is a normal comment
x = 5
"""

ARGS = {
    'content': content
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_module Not yet run
unverified (harvested, no recorded run)
he-actlab/REASONING_COMPILER/python/tvm/runtime/module.py
code served (permissive licence) · get_code("833de9a5dfdc5c20")
How it ran

no invocation recorded.

load_static_library Not yet run
unverified (harvested, no recorded run)
he-actlab/REASONING_COMPILER/python/tvm/runtime/module.py
code served (permissive licence) · get_code("0ae10ec0399c40ac")
How it ran

no invocation recorded.

parse_semver Not yet run
unverified (harvested, no recorded run)
Anna-Bele/LLM_MCTS_Search/python/gen_requirements.py
code served (permissive licence) · get_code("bea3ea982f5980fc")
How it ran

no invocation recorded.

system_lib Not yet run
unverified (harvested, no recorded run)
he-actlab/REASONING_COMPILER/python/tvm/runtime/module.py
code served (permissive licence) · get_code("8c09f14919be3f2b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
load_static_library 1 other paper
1 dated earlier
aaai_17462 (2021 (year only))
OpEvo: An Evolutionary Method for Tensor Operator Optimization

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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. 1 1 Code is available at https://github.com/he-actlab/REASONING_COMPILER * Equal contribution 39th Conference on Neural Information Processing Systems (NeurIPS 2025).

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2506.01374")
get_code_for_paper("2506.01374")
have("2506.01374")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2506.01374.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2506.01374.svg)](https://syntology.ai/paper/2506.01374)

Connect an agent — have() is free.