paper-with-me

홈 › Papers

CODA: Rewriting Transformer Blocks as GEMM-Epilogue Programs

2026-05-19 · Han Guo, Jack Zhang, Arjun Menon, Driss Guessous, Vijay Thakkar, Yoon Kim, Tri Dao 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.

📄 PDF Abstract BibTeX arXiv:2605.19269

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Realizing Native INT8 Compute for Diffusion Transformers on Consumer GPUs: A Fused INT8 GEMM Kernel for Ideogram 4.0

2026-06-12 · Ali Asaria, Tony Salomone, Deep Gandhi arxiv

Post-training INT8 (W8A8) quantization of diffusion transformers is widely deployed as a speed optimization, yet on consumer Ampere GPUs it is frequently slower than the FP8 and NF4 alternatives it is meant to beat. We t…

Tile-Level Activation Overlap for Efficient LLM Inference

2026-05-05 · Abhinav Jangda, Tyler Sorensen, Sebastian Burckhardt, Jianlan YE 외 arxiv

SwiGLU is the dominant MLP activation in modern large language models, yet its intermediate tensor materialization costs 9-37% of MLP execution time. We present two complementary CUTLASS-based SM90 kernels that fuse SwiG…

FlashOmni: A Unified Sparse Attention Engine for Diffusion Transformers

2025-09-29 · Liang Qiao, Yue Dai, Yeqi Huang, Hongyu Kan 외 arxiv

Multi-Modal Diffusion Transformers (DiTs) demonstrate exceptional capabilities in visual synthesis, yet their deployment remains constrained by substantial computational demands. To alleviate this bottleneck, many sparsi…

Equivalence of Context and Parameter Updates in Modern Transformer Blocks

2025-11-22 · Adrian Goldwaser, Michael Munn, Javier Gonzalvo, Benoit Dherin arxiv

Recent research has established that the impact of context in a vanilla transformer can be represented implicitly by forming a token-dependent, rank-1 patch to its MLP weights. This work extends that foundational theory …

FOCUS: DLLMs Know How to Tame Their Compute Bound

2026-01-30 · Kaihua Liang, Xin Tan, An Zhong, Hong Xu 외 arxiv

Diffusion Large Language Models (DLLMs) offer a compelling alternative to Auto-Regressive models, but their deployment is constrained by high decoding cost. In this work, we identify a key inefficiency in DLLM decoding: …