# Conjugate Compilation: Self-Improving Agentic Co-Compilation for Speculative Decoding

DevFeed: [Conjugate Compilation: Self-Improving Agentic Co-Compilation for Speculative Decoding](<https://devfeed.tech/articles/conjugate-compilation-self-improving-agentic-co-compilation-for-speculative-decoding-93403.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.25012>)

Author: Annabelle Sujun Tang, Rohan Mahapatra, Christopher Priebe, Hanyang Xu, Manya Ghobadi, Christopher Rossbach, Hadi Esmaeilzadeh

Published: 2026-10-21T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [Model Optimizer](<https://devfeed.tech/topics/model-optimizer.md>), [GPU optimization](<https://devfeed.tech/topics/gpu-optimization.md>), [monte carlo tree search](<https://devfeed.tech/topics/monte-carlo-tree-search.md>), [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>)

Tags: [agentic](<https://devfeed.tech/tags/agentic.md>), [b300](<https://devfeed.tech/tags/b300.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-pl](<https://devfeed.tech/tags/cs-pl.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [gpu-utilization](<https://devfeed.tech/tags/gpu-utilization.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [performance](<https://devfeed.tech/tags/performance.md>), [rtx-5090](<https://devfeed.tech/tags/rtx-5090.md>), [speculative-decoding](<https://devfeed.tech/tags/speculative-decoding.md>)

## AI overview

Conjugate Compilation jointly optimizes the draft and target models in speculative decoding by evaluating each compiled plan in their co-located shared execution; isolated kernel improvements may not translate to faster joint execution. An LLM proposes cross-model optimization plans, with measured execution scores, kernel verdicts, compiler feedback, and Monte Carlo tree search guiding later proposals. Interleaved operand layouts place blocks from both models in common tiles to co-locate GEMM and non-GEMM work while preserving their mathematics. Across six single-GPU configurations on NVIDIA B300 and RTX 5090, the system reports 1.37x geometric-mean per-round speedup over conventional execution, rising to 1.45x with interleaved kernels and 1.59x in the best case. Average GPU utilization improves 1.50x on B300 and 1.46x on RTX 5090.

## Source excerpt

arXiv:2610.25012v1 Announce Type: new Abstract: As LLM adoption surges, scaling model serving requires unlocking stranded GPU capacity alongside deploying more GPUs. Speculative decoding brings two models into the serving process: a small draft model proposes tokens that a larger target model verifies. Yet compiling these models individually leaves their shared execution outside the compiler's optimization boundary. We introduce CONJUGATE COMPILATION, which reframes speculative decoding as a cross-model compilation problem and jointly optimizes the draft and target models within their shared execution rather than treating each in isolation. Our key insight is that cross-model compilation should be informed by the measured performance of the co-located shared execution it produces: an optimization that improves a kernel in isolation need not improve the models when they execute together. To expand cross-model opportunities, we devise operand layouts that interleave blocks from both models within common tiles, co-locating GEMM and non-GEMM work while preserving their mathematics. We realize CONJUGATE COMPILATION through a self-improving agentic search system in which an LLM edits cross-model optimization plans using the compiler and GPU execution as its environment. Each proposed plan is compiled and evaluated through its co-located shared execution, whose measured score, together with kernel-level verdicts and compiler feedback, informs subsequent proposals, while Monte Carlo tree search accumulates rewards to guide exploration. Across six single-GPU speculative-decoding configurations on NVIDIA B300 and RTX 5090 GPUs, CONJUGATE COMPILATION achieves a geometric-mean per-round speedup of 1.37x over conventional execution. Interleaved kernels raise this speedup to 1.45x, reaching 1.59x in the best case. CONJUGATE COMPILATION also improves GPU utilization on average by 1.46x on RTX 5090 and 1.50x on B300.