Skip to content

ABC Tool

  • Home
  • About / Contect
    • PRIVACY POLICY
Rewriting Transformer Blocks as GEMM-Epilogue Programs

Rewriting Transformer Blocks as GEMM-Epilogue Programs

Posted on May 22, 2026 By safdargal12 No Comments on Rewriting Transformer Blocks as GEMM-Epilogue Programs
Blog


[Submitted on 19 May 2026 (v1), last revised 20 May 2026 (this version, v2)]

View a PDF of the paper titled CODA: Rewriting Transformer Blocks as GEMM-Epilogue Programs, by Han Guo and 6 other authors

View PDF
HTML (experimental)

Abstract: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.

Submission history

From: Han Guo [view email]
[v1]
Tue, 19 May 2026 02:30:43 UTC (1,121 KB)
[v2]
Wed, 20 May 2026 17:38:24 UTC (493 KB)



Source link

Post Views: 4

Post navigation

❮ Previous Post: Google Wallet will soon become a smarter travel and loyalty hub with these new features
Next Post: States ask judge to break up Live Nation-Ticketmaster ❯

You may also like

ChatGPT 5.5 Is All About Math, Science and AI Research
Blog
ChatGPT 5.5 Is All About Math, Science and AI Research
April 24, 2026
Dear Google, Please Don’t Ever Mention Doom Again
Blog
Dear Google, Please Don’t Ever Mention Doom Again
May 20, 2026
How to Host a Blog on a Subdirectory instead of a Subdomain with Cloudflare Workers
Blog
How to Host a Blog on a Subdirectory instead of a Subdomain with Cloudflare Workers
April 17, 2026
Maine Governor Vetoes State Temporary Ban on New Large Data Centers
Blog
Maine Governor Vetoes State Temporary Ban on New Large Data Centers
April 25, 2026

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • OnePlus Nord 6 just got more expensive
  • Galaxy Z Fold 8 release date: should you wait for Apple's foldable iPhone or the Pixel 11 Pro Fold?
  • T-Mobile responds to reports of its controversial T-Life self-service app mandate
  • States ask judge to break up Live Nation-Ticketmaster
  • Rewriting Transformer Blocks as GEMM-Epilogue Programs

Recent Comments

No comments to show.

Archives

  • May 2026
  • April 2026

Categories

  • Blog

Copyright © 2026 ABC Tool.

Theme: Oceanly News by ScriptsTown