CODA: Rewriting Transformer Blocks as GEMM-Epilogue Programs
Not on the map. Why?
Abstract (arXiv)
Transformer training systems are built around dense linear algebra, yet a nontrivial fraction of end-to-end time is spent on surrounding memory-bound operators. Normalization, activations, residual updates, reductions, and related computations repeatedly move large intermediate tensors through global memory while performing little arithmetic, making data movement an increasingly important bottleneck in otherwise highly optimized training stacks. We introduce CODA, a GPU kernel abstraction that expresses these computations as GEMM-plus-epilogue programs. CODA is based on the observation that many Transformer operators exposed as separate framework kernels can be algebraically reparameterized to execute while a GEMM output tile remains on chip, before it is written to memory. The abstraction fixes the GEMM mainloop and exposes a small set of composable epilogue primitives for scaling, reductions, pairwise transformations, and accumulation. This constrained interface preserves the performance structure of expert-written GEMMs while remaining expressive enough to cover nearly all non-attention computation in the forward and backward pass of a standard Transformer block. Across representative Transformer workloads, both human- and LLM-authored CODA kernels achieve high performance, suggesting that GEMM-plus-epilogue programming offers a practical path toward combining framework-level productivity with hardware-level efficiency.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 18 of its 24 references that are in the map. First posted on arXiv 19 May 2026.
Builds on
18 of 24 references.
References · 18
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,141
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Servingcited by 258
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 225
- 2024Liger Kernel: Efficient Triton Kernels for LLM Trainingcited by 130
- 2026Learning to Discover at Test Timecited by 115
- 2020Data Movement Is All You Need: A Case Study on Optimizing Transformerscited by 108
- 2024TorchTitan: One-stop PyTorch native solution for production ready LLM pre-trainingcited by 85
- 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimizationcited by 56
- 2025TileLang: A Composable Tiled Programming Model for AI Systemscited by 43
6 more
- 2024Mirage: A Multi-Level Superoptimizer for Tensor Programscited by 41
- 2024Cut Your Losses in Large-Vocabulary Language Modelscited by 40
- 2024ThunderKittens: Simple, Fast, and Adorable AI Kernelscited by 36
- 2025CUDA-LLM: LLMs Can Write Efficient CUDA Kernelscited by 34
- 2025CUDA-L2: Surpassing cuBLAS Performance for Matrix Multiplication through Reinforcement Learningcited by 13
- 2025ParallelKittens: Systematic and Practical Simplification of Multi-GPU AI Kernelscited by 12
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026Sol Video Inference Engine: Agent-Native Full-Stack Acceleration Framework for Efficient Video Generationcited by 8
- 2026Full-Stack FP4: Stable LLM Pretraining with Quantized Projections, Optimizers, and Attentioncited by 8
- 2026FORGE: Fused On-Register Gradient Elimination for Memory-Efficient LLM Trainingcited by 2
- 2026Sol-H3: Recursive Self-Improvement for MiniMax-H3 Inference Acceleration on Sol-Engine across Cloud and Edgecited by 0
- 2026Format-Aware Fusion for Fast FP4 Pretrainingcited by 0
- 2026Sol-H3: Recursive Self-Improvement for MiniMax-H3 Inference Acceleration on Sol-Engine across Cloud and Edge28 Sep 2026
- 2026Format-Aware Fusion for Fast FP4 Pretraining4 Sep 2026
- 2026Full-Stack FP4: Stable LLM Pretraining with Quantized Projections, Optimizers, and Attention5 Jul 2026
- 2026FORGE: Fused On-Register Gradient Elimination for Memory-Efficient LLM Training22 Jun 2026
- 2026Sol Video Inference Engine: Agent-Native Full-Stack Acceleration Framework for Efficient Video Generation21 Jun 2026