<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>2609.04105v1 on Jaehun's Blog</title><link>https://jaehun.me/en/tags/2609.04105v1/</link><description>Recent content in 2609.04105v1 on Jaehun's Blog</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Tue, 08 Sep 2026 01:04:59 +0000</lastBuildDate><atom:link href="https://jaehun.me/en/tags/2609.04105v1/index.xml" rel="self" type="application/rss+xml"/><item><title>Hardware-Aware FP4 FlashAttention-4</title><link>https://jaehun.me/en/posts/hardware-aware-fp4-flashattention-4/</link><pubDate>Mon, 07 Sep 2026 00:00:00 +0900</pubDate><guid>https://jaehun.me/en/posts/hardware-aware-fp4-flashattention-4/</guid><description>&lt;p&gt;&lt;a&#10; href="https://arxiv.org/abs/2609.04105v1"target="_blank"&#10; class="inline-flex items-center gap-1"&#10; &gt;Paper&lt;svg class="h-3 w-3 flex-shrink-0" id="external-link" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"&gt;&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 3h6v6m-11 5L21 3m-3 10v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/&gt;&lt;/svg&gt;&#10; &lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="why-dont-fp4-tensor-cores-make-attention-faster-blackwell-flashattention-4-solved-with-direct-p-and-quantized-backprop"&gt;Why Don&amp;rsquo;t FP4 Tensor Cores Make Attention Faster? Blackwell FlashAttention-4, Solved with Direct-P and Quantized Backprop&lt;a href="#why-dont-fp4-tensor-cores-make-attention-faster-blackwell-flashattention-4-solved-with-direct-p-and-quantized-backprop" class="heading-anchor" aria-label="Link to this section"&gt;&lt;svg class="h-4 w-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"&gt;&lt;g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"&gt;&lt;path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/&gt;&lt;path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; — Blackwell&amp;rsquo;s FP4 tensor cores handle matrix multiplication far faster than BF16, but attention does not automatically inherit that benefit, because a &amp;ldquo;middle operation&amp;rdquo; — &lt;strong&gt;softmax&lt;/strong&gt; — sits between the &lt;em&gt;two matrix multiplications&lt;/em&gt;. This paper shortens the critical path with &lt;strong&gt;Direct-P&lt;/strong&gt;, which reframes softmax probability generation not as a sequential &amp;ldquo;accurate exponential → round&amp;rdquo; path but as a problem of &lt;strong&gt;directly classifying scores into E2M1 codes&lt;/strong&gt;, achieving up to &lt;strong&gt;2.13×&lt;/strong&gt; forward throughput over BF16 on an NVIDIA GB200 (source: §Abstract). For training, backward reuses the quantization state that forward produced to speed a single step of an 8B model by up to &lt;strong&gt;1.14×&lt;/strong&gt;, but lowering P/V to MXFP4 makes &lt;strong&gt;every trajectory diverge&lt;/strong&gt;, so P/V must be kept in FP8 (source: §7.6).&lt;/p&gt;</description></item></channel></rss>