Together Compiler: Continual Compilation for AI Inference
On the map: Mixture-of-experts → MoE in reinforcement learning and robotics also fits: Efficient MoE training and inference systems
Abstract (arXiv)
Today's AI workloads are rapidly changing: new models are released more often, model architectures are increasingly diverse, and traffic distributions change frequently. The challenge we face at Together AI is continual optimization for these changing workloads. Compiling a deployment into an optimized forward pass is a challenge that is well-suited for agent hill-climbing. Existing systems struggle with continual compilation due to a tradeoff between measurement throughput and fidelity. Many systems use agents to optimize individual kernels from the inference forward pass using offline benchmarks, but timings are low-fidelity because of data-dependent behavior in primitives like mixture-of-experts (MoE). On the other hand, systems use agents to directly optimize end-to-end engines but suffer from slow engine launch times. To address these challenges, we build Together Compiler (TKCC), the first truly continual agent loop designed for AI inference optimization. To address the throughput-fidelity tradeoff, we propose: (1) a Tiered Persistent Engine that decouples engine launch overheads from forward pass computation; (2) a cost model to select the parallelism configurations that seed the optimization process. We also conduct extensive ablations on agent context management and present our insights on deploying TKCC in production. TKCC outperforms highly-optimized hand-written Megakernels on the Llama 1B workhorse workload by up to 1.7x and the best open source engines on the latest frontier models (Kimi K3, GLM 5.3, MiniMax M3.1 Flash, DeepSeek v4.1 Flash) across hardware platforms by up to 2.6x higher TPS on the InferenceX benchmark. TKCC also sets the state-of-the-art performance at batch size 1, with 1111 TPS on M3.1 Flash and 1205 TPS on DeepSeek v4.1 Flash. Finally, TKCC generalizes beyond frontier language model inference. TKCC serves trillions of tokens across our production fleet.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in MoE in reinforcement learning and robotics, one of 12 directions in Mixture-of-experts. Builds on 30 of its 59 references that are in the map. Submitted 10 Nov 2026.
Builds on
30 of 59 references.
References · 30
- 2017Attention Is All You Needcited by 62,125
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,767
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,272
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 2,029
- 2019Generating Long Sequences with Sparse Transformerscited by 1,641
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,372
- 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 940
- 2024DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Servingcited by 683
- 2022Efficiently Scaling Transformer Inferencecited by 581
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 469
- 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 232
18 more
- 2026DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compressioncited by 220
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 63
- 2024ThunderKittens: Simple, Fast, and Adorable AI Kernelscited by 43
- 2025MegaScale-Infer: Serving Mixture-of-Experts at Scale with Disaggregated Expert Parallelismcited by 37
- 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimizationcited by 33
- 2025STARK: Strategic Team of Agents for Refining Kernelscited by 30
- 2026SOL-ExecBench: Speed-of-Light Benchmarking for Real-World GPU Kernels Against Hardware Limitscited by 26
- 2025MPK: A Compiler and Runtime for Mega-Kernelizing Tensor Programscited by 25
- 2025Speculative Decoding: Performance or Illusion?cited by 23
- 2026Towards Automated Kernel Generation in the Era of LLMscited by 19
- 2025Panda: A pretrained forecast model for chaotic dynamicscited by 18
- 2025Autocomp: A Powerful and Portable Code Optimizer for Tensor Acceleratorscited by 17
- 2026CAKE: Compiler-Agent Co-Design for Frontier Kernel Evolutioncited by 12
- 2025A multi-scale loss formulation for learning a probabilistic model with proper score optimisationcited by 9
- 2026Agentic Kernel Optimization: Generating State-of-the-Art GPU Kernels Without Hand-Written CUDAcited by 5
- 2026Mixture-of-Kittens: MoE Megakernel for NVL72scited by 4
- 2026Kerncap: Automated Kernel Extraction and Isolation for AMD GPUscited by 1
- 2026KREX: Concurrent Kernel Benchmarking on Shared GPUs via Region-Granular Exclusivitycited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Evaluating Inference Compute for Generative AI: A Framework for Enterprise Workloads
- 2026Reducing Inference Cost of Coding Agents with Timeout Cascades
- 2026Optimizing AI Inference Across the Deployment Stack
- 2026ISO-Bench: Can Coding Agents Optimize Real-World Inference Workloads?
- 2026Scalable Inference Architectures for Compound AI Systems: A Production Deployment Study
- 2026KernelShift: Benchmarking Kernel Optimization Across Evolving Hardware
- 2026InfraDev: Can Coding Agents Develop AI Infrastructure, and How Can We Tell?
- 2026SAGA: Workflow-Atomic Scheduling for AI Agent Inference on GPU Clusters