arXiv:2610.25012cs.LGOct 2026

Manuscript Offprint

arXiv:2610.25012

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

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

ABSTRACT

As LLM adoption surges, scaling model serving requires not only adding more GPUs but also unlocking the substantial capacity stranded in those already deployed. 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 therefore ask whether co-locating the draft and target models on the same GPU and co-compiling their execution can reclaim this stranded capacity. 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. One of our key insights 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.37×1.37\times over conventional execution. Interleaved kernels raise this speedup to 1.45×1.45\times, reaching 1.59×1.59\times in the best case. CONJUGATE COMPILATION also improves GPU utilization on average by 1.46×1.46\times on RTX 5090 and 1.50×1.50\times on B300. These results demonstrate the potential of cross-model conjugate compilation guided by measurements of the co-located shared execution.

1 INTRODUCTION

As demand for LLM serving grows, expanding GPU infrastructure is only one way to increase serving capacity (International Energy Agency, 2025). Another is to recover the substantial capacity that remains unused within existing deployments. Figure 1 shows one week of hourly GPU compute utilization measurements across enterprise users, illustrating how low average utilization persists despite variation across users and time. Across 6,000 measurements from 350 users collected between May and August 2026, average GPU compute utilization is 17.6%, with 94% of users averaging below 50% (Systalyze, 2026). These observations motivate us to examine how execution-informed compilation can turn more of the GPUs already deployed into useful capacity for model serving.

Turning this capacity into useful work depends in part on compilation, which determines how a model’s operations and data are organized for GPU execution (Li et al., 2020). The common practice is to compile and optimize each model individually (Lu et al., 2025). Yet a single model’s operations may provide too little parallel work to fill the GPU or leave compute resources underused while waiting for data (Ding et al., 2021; Pope et al., 2023). This limitation motivates us to expand the compiler’s optimization boundary: rather than optimize each model in isolation, we bring multiple models into concurrent execution on the same GPU and jointly optimize them informed by their co-located shared execution.

Speculative decoding provides a setting for exploring this opportunity because two models already cooperate to generate each response. A small draft model proposes several tokens, and a larger target model verifies them in a single forward pass, reducing the number of target-model passes needed for generation (Leviathan et al., 2023). This cooperation, however, does not by itself coordinate how their operations share GPU resources, nor does it bring their co-located shared execution within the scope of compiler optimization (Liu et al., 2025; Zhang et al., 2026). We therefore pose a central research question: without changing either model's underlying computations, can we coordinate and co-compile the draft and target models to reclaim the capacity left unused when they are optimized individually?

Figure

Figure 1: Hourly GPU compute utilization across enterprise users measured with Systalyze Utilize from May to August 2026. The black line shows the hourly average across users; average utilization over the full dataset is 17.6%.

Speculative decoding provides a concrete setting for exploring this opportunity because two models already cooperate to generate each response. A small draft model proposes several tokens, and a larger target model verifies them in a single forward pass, reducing the number of target-model passes needed for generation (Leviathan et al., 2023). Prior approaches primarily exploit this structure as a scheduling, placement, or resource-allocation opportunity, either distributing draft and target execution across multiple GPUs or within a single GPU, while leaving their shared execution outside the compiler's optimization boundary (Liu et al., 2025; Zhang et al., 2026; Chen et al., 2026). We instead pose a central research question: what becomes possible when we co-locate them on the same GPU and let their shared execution directly inform cross-model compilation.

We introduce CONJUGATE COMPILATION, which reframes speculative decoding as a cross-model compilation problem by bringing the draft and target models into a common optimization boundary on the same GPU. Their co-located shared execution uses capacity left idle by either model, but also changes the conditions under which their operations execute. An optimization that improves a kernel in isolation may increase contention, disrupt beneficial overlap, or otherwise fail to improve the models when they execute together (Elvinger et al., 2025). One of our key insights is therefore that cross-model compilation should be informed by the measured performance of the co-located shared execution it produces. CONJUGATE COMPILATION uses this joint execution feedback to jointly optimize the draft and target models rather than optimizing each model independently.

Optimizing within this co-located shared execution requires a search that can respond to how the draft and target models actually behave together. We therefore contribute a self-improving agentic system that couples an LLM with Monte Carlo tree search (MCTS) (Tang et al., 2025), using the compiler and GPU execution as its environment. The LLM proposes edits to cross-model compilation plans, which the compiler checks, builds, and tunes before we measure the performance of the resulting co-located shared execution. We use MCTS as the agent's search medium, organizing explored plans and propagating their measured rewards to guide further exploration, while returning the complete execution score, kernel-level verdicts, and compiler feedback to the LLM to inform subsequent proposals. This coupling allows the agent to improve its proposals from accumulated execution evidence and directs exploration toward plans that improve the models together.

To give the agentic system choices beyond coordinating separate kernels, we contribute an operand memory layout transformation that brings work from both models into a common kernel. By in-

Figure

Figure 2: Illustration of (a) conventional execution of speculative decoding, (b) with CONJUGATE COMPILATION, and (c) with CONJUGATE COMPILATION plus Interleaved Kernels. Llama-3.2-1B (draft, γ=4\gamma = 4) and Llama-3.1-8B (target).

terleaving operand blocks within common tiles, we co-locate their work while preserving which operands participate in each computation and where its results belong. The interleaved kernels support GEMM and non-GEMM operation groups, including RMSNorm (Zhang & Sennrich, 2019) and residual addition (He et al., 2016), without changing their mathematics. The agent explores which operation groups to interleave and how much work to draw from each model, while the compiler optimizes these transformations as part of the broader cross-model compilation plan. Because an interleaved kernel that improves in isolation need not improve the models together, CONJUGATE COMPILATION evaluates these choices using the measured performance of the complete co-located shared execution.

We also contribute an operand memory layout transformation that brings work from both models into a common kernel. By interleaving operand blocks within common tiles, we co-locate their work while preserving which operands participate in each computation and where its results belong. The interleaved kernels support GEMM and non-GEMM operation groups, including RMSNorm (Zhang & Sennrich, 2019) and residual addition (He et al., 2016), without changing their mathematics. The agent explores which operation groups to interleave and how much work to draw from each model, while CONJUGATE COMPILATION optimizes these choices using the measured performance of their co-located shared execution.

We evaluate CONJUGATE COMPILATION across six single-GPU speculative-decoding configurations on NVIDIA RTX 5090 and B300 GPUs. Compared with compiling and optimizing each model in isolation, CONJUGATE COMPILATION achieves a geometric-mean per-round speedup of 1.37×1.37\times. Adding selectively interleaved kernels raises this speedup to 1.45×1.45\times, reaching 1.59×1.59\times in the best case. CONJUGATE COMPILATION also improves GPU utilization by 1.46×1.46\times on RTX 5090 and 1.50×1.50\times on B300, on average, respectively. Together, these results show that cross-model conjugate compilation, informed by the measured performance of co-located shared execution, can recover stranded capacity by jointly optimizing multiple models on a single GPU.

References (34)