Ada-MK: Adaptive MegaKernel Optimization via Automated DAG-based Search for LLM Inference
Not on the map. Why?
Abstract (arXiv)
When large language models (LLMs) serve real-time inference in commercial online advertising systems, end-to-end latency must be strictly bounded to the millisecond range. Yet every token generated during the decode phase triggers thousands of kernel launches, and kernel launch overhead alone can account for 14.6% of end-to-end inference time. MegaKernel eliminates launch overhead and inter-operator HBM round-trips by fusing multiple operators into a single persistent kernel. However, existing MegaKernel implementations face a fundamental tension between portability and efficiency on resource-constrained GPUs such as NVIDIA Ada: hand-tuned solutions are tightly coupled to specific architectures and lack portability, while auto-compiled approaches introduce runtime dynamic scheduling whose branch penalties are unacceptable in latency-critical settings. We observe that under a fixed deployment configuration, the optimal execution path of a MegaKernel is uniquely determined, and runtime dynamic decision-making can be entirely hoisted to compile time. Building on this insight, we propose Ada-MK: (1) a three-dimensional shared-memory constraint model combined with K-dimension splitting that reduces peak shared memory usage by 50%; (2) MLIR-based fine-grained DAG offline search that solidifies the optimal execution path, completely eliminating runtime branching; and (3) a heterogeneous hybrid inference engine that embeds MegaKernel as a plugin into TensorRT-LLM, combining high-throughput Prefill with low-latency Decode. On an NVIDIA L20, Ada-MK improves single-batch throughput by up to 23.6% over vanilla TensorRT-LLM and 50.2% over vLLM, achieving positive gains across all tested scenarios--the first industrial deployment of MegaKernel in a commercial online advertising system.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 17 of its 31 references that are in the map. First posted on arXiv 12 May 2026.
Builds on
17 of 31 references.
References · 17
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,919
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,141
- 2024QServe: W4A8KV4 Quantization and System Co-design for Efficient LLM Servingcited by 208
- 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 201
- 2024Mirage: A Multi-Level Superoptimizer for Tensor Programscited by 41
- 2022TensorIR: An Abstraction for Automatic Tensorized Program Optimizationcited by 38
- 2022Hidet: Task-Mapping Programming Paradigm for Deep Learning Tensor Programscited by 28
- 2025TileLink: Generating Efficient Compute-Communication Overlapping Kernels using Tile-Centric Primitivescited by 24
- 2025MPK: A Compiler and Runtime for Mega-Kernelizing Tensor Programscited by 15
- 2023Relax: Composable Abstractions for End-to-End Dynamic Machine Learningcited by 12
5 more
- 2025Neptune: Advanced ML Operator Fusion for Locality and Parallelism on GPUscited by 4
- 2026Axe: A Simple Unified Layout Abstraction for Machine Learning Compilerscited by 3
- 2024Pruner: A Draft-then-Verify Exploration Mechanism to Accelerate Tensor Program Tuningcited by 2
- 2025Hexcute: A Compiler Framework for Automating Layout Synthesis in GPU Programscited by 2
- 2025MCFuser: High-Performance and Rapid Fusion of Memory-Bound Compute-Intensive Operatorscited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.