atlas

Research map / Architectures and efficiency / Attention and transformers

CODA: Rewriting Transformer Blocks as GEMM-Epilogue Programs

NeurIPS 2026 · Architectures and efficiency › Attention and transformers · approach: Sparse efficient transformers for long context · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes CODA, a GPU kernel abstraction that fixes a GEMM mainloop and exposes composable epilogue primitives so that non-attention Transformer forward and backward operators (RMSNorm, RoPE, SwiGLU, cross-entropy) can be fused into GEMM epilogues.

Problem

Memory-bound operators surrounding GEMMs in Transformer training (normalization, activations, residual updates, reductions) move large intermediate tensors through global memory, and framework operator boundaries prevent fusion across forward and backward passes.

Approach

Algebraically reparameterize Transformer computations (e.g., delaying the RMSNorm row scale past the next GEMM, accumulating RMSNorm backward statistics from the following GEMM's output, pairing adjacent features for RoPE/SwiGLU) so they become GEMM-plus-epilogue programs built from five restricted primitive classes, with only lightweight tile-partial reductions remaining outside the GEMM.

Key results

Surprising findings

Limitations

Experimental setup

Benchmarks: Transformer++ forward/backward kernel suite (GEMM-RMSNorm-GEMM, pairwise activations, cross-entropy) LLaMA-style block and layer benchmarks at hidden sizes 2048/4096/8192

Metrics: kernel speedup relative to cuBLAS with torch.compile relative numerical error vs FP32 reference block-level speedup

Baselines: cuBLAS with torch.compile Liger Kernel FlashInfer QuACK PyTorch/cuBLAS raw GEMM

Builds on: Epilogue Visitor Trees CUTLASS QuACK Cut Cross-Entropy CuTeDSL

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy