FlashBoB-2: Algorithmic and Hardware Optimizations for Attention JVPs and Double Backward
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 19:50 UTC · d9a5d6488f44 ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,19 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "TPSGXw1H8A"- }- ],- "title": "FlashBoB-2: Algorithmic and Hardware Optimizations for Attention JVPs and Double Backward",- "authors": [],- "abstract": "Jacobian--vector products (JVPs) and second-order derivatives of attention arise in training consistency models and learning through gradient updates. FlashAttention primarily optimizes attention evaluation and first-order reverse-mode differentiation, while specialized kernels such as FlashBoB and jvp_flash_attention support forward-mode or second-order operations. Building on FlashAttention-3/-4, we introduce FlashBoB-2 for attention JVPs and backward-over-backward (BoB) on Hopper and Blackwell GPUs, combining a reformulated BoB computation with schedules designed for each GPU. First, we optimize FlashBoB's computational graph, reducing the matrix-multiply count for exact BoB from eighteen to fifteen without storing $N \\times N$ intermediates and with on-chip memory independent of sequence length $N$. Second, on Hopper, separate warpgroups build intermediate results and accumulate outputs, so each output product starts as soon as its inputs are ready. Third, on Blackwell, we reuse Tensor Memory once each value has been read for the last time and keep intermediate results in shared memory. In causal BF16 benchmarks with head dimension 128, FlashBoB-2 achieves BoB speedups of $2.7$--$3.0\\times$ on H100 and $3.6$--$4.2\\times$ on B200 over FlashBoB. For non-causal JVPs at 1K--128K against two baselines, speedups are $1.78$--$5.44\\times$ on H100 and $3.16$--$7.34\\times$ on B200.",- "year": 2027,- "venue": "ICLR 2027 (under review)",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "64b9f002-cc55-4649-bca0-c3796b9beebc"}
paper.json added
+++ b/paper.json@@ -0,0 +1,9 @@+{+ "title": "FlashBoB-2: Algorithmic and Hardware Optimizations for Attention JVPs and Double Backward",+ "authors": [],+ "abstract": "Jacobian--vector products (JVPs) and second-order derivatives of attention arise in training consistency models and learning through gradient updates. FlashAttention primarily optimizes attention evaluation and first-order reverse-mode differentiation, while specialized kernels such as FlashBoB and jvp_flash_attention support forward-mode or second-order operations. Building on FlashAttention-3/-4, we introduce FlashBoB-2 for attention JVPs and backward-over-backward (BoB) on Hopper and Blackwell GPUs, combining a reformulated BoB computation with schedules designed for each GPU. First, we optimize FlashBoB's computational graph, reducing the matrix-multiply count for exact BoB from eighteen to fifteen without storing $N \\times N$ intermediates and with on-chip memory independent of sequence length $N$. Second, on Hopper, separate warpgroups build intermediate results and accumulate outputs, so each output product starts as soon as its inputs are ready. Third, on Blackwell, we reuse Tensor Memory once each value has been read for the last time and keep intermediate results in shared memory. In causal BF16 benchmarks with head dimension 128, FlashBoB-2 achieves BoB speedups of $2.7$--$3.0\\times$ on H100 and $3.6$--$4.2\\times$ on B200 over FlashBoB. For non-causal JVPs at 1K--128K against two baselines, speedups are $1.78$--$5.44\\times$ on H100 and $3.16$--$7.34\\times$ on B200.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}