- Rating
- 6
- Clarity
- 3
- Confidence
- 3
- Originality
- 4
- Quality
- 4
- Significance
- 4
Read review
Summary
The paper presents FlashBoB, an algorithm designed to compute the exact backward-over-backward derivative for softmax attention. Existing software implementations run out of memory on longer sequences. To resolve this limitation, the authors restructure the double-backward computation into a two-pass schedule. By leveraging an internal hierarchical affine structure, the algorithm separates gradient calculations into distinct row-major and column-major sweeps. This specific execution model allows the system to process intermediate variables strictly within on-chip static memory instead of utilizing off-chip high-bandwidth storage. Theoretical modeling confirms the methodology matches established data traffic bounds, and empirical testing demonstrates successful scaling up to 262,144 tokens on a single graphics processing unit.
Strengths and weaknesses
This is a well-written, clever paper that addresses a narrow but important problem. The separation of the complex NxN problem into order(N) row-major and column-major steps is insightful and clearly a great idea. This leads to more efficient data-local computation and allows an elegant back-propagation approach. The experimentation is strong, but the only weaknesses are in a narrow testing domain. It would be interesting to see their ideas applied to attention-aware Post-Training Quantization (PTQ) or optimal transport models. Further, the claim to scale to 262K tokens may not be so useful as in a real case, as one is limited by storage limits imposed by saving non-attention activation tensors.
Questions
What happens if you use versions of Triton optimized to particular advanced architectures rather than generic Triton
Limitations
There are limitations, but they do not invalidate the method's utility, and the authors do not make unreasonable claims.
Paper formatting concerns
None noted
We thank the reviewer for the thoughtful review and positive comments. We answer your questions below.
W1: Application breadth.
A1: Attention-aware post-training quantization (PTQ) is a natural application direction for FlashBoB. In particular, Q-BERT [1] estimates Transformer-layer Hessian spectra through matrix-free Hessian-vector products, for which FlashBoB can directly accelerate the softmax-attention BoB component without introducing any additional approximation. Recent attention-aware PTQ methods such as APTQ and BoA avoid exact attention BoB through approximate or backpropagation-free curvature constructions [5, 6]. FlashBoB opens a complementary, previously impractical design point: attention-aware PTQ based on exact Hessian-vector products, which can retain curvature information omitted by these approximations. We have not yet evaluated this direction end to end, so we present it as a newly enabled application rather than an established empirical improvement.
Optimal-transport models based on Sinkhorn attention [2] use a different normalization operator from row-wise softmax. Supporting them would require a new BoB derivation and kernel, and is an interesting extension rather than a direct application of the current implementation.
W2: The 262K-token claim.
A2: We agree that 262K should be described explicitly as an isolated attention-layer feasibility result, not a full-model training context. Our full-model benchmarks reach N=32,768 for GPT-2 Small and N=16,384 for GPT-2 Medium/Large, where non-attention activations and model state also consume memory.
We will revise the first mention to:
Q1: Architecture-specialized implementations.
A3: Our implementation uses upstream Triton. Although Triton lowers
tl.dotto the target GPU, we do not explicitly use Tensor Memory Accelerator (TMA) pipelines, warp specialization, or architecture-specific Matrix Multiply Accumulate (MMA) schedules. Hopper- or Blackwell-specialized implementations could therefore improve absolute runtime, as demonstrated by FlashAttention-3/4 [3, 4]. The magnitude of this improvement requires measurement, but it would not change FlashBoB's exactness, two-pass ownership structure, or asymptoticReferences
[1] S. Shen, Z. Dong, J. Ye, L. Ma, Z. Yao, A. Gholami, M. W. Mahoney, and K. Keutzer. Q-BERT: Hessian based ultra low precision quantization of BERT. In Proceedings of the AAAI Conference on Artificial Intelligence, 2020.
[2] M. E. Sander, P. Ablin, M. Blondel, and G. Peyré. Sinkformers: Transformers with doubly stochastic attention. In Proceedings of the International Conference on Artificial Intelligence and Statistics, 2022.
[3] J. Shah, G. Bikshandi, Y. Zhang, V. Thakkar, P. Ramani, and T. Dao. FlashAttention-3: Fast and accurate attention with asynchrony and low-precision. In Advances in Neural Information Processing Systems, 2024.
[4] T. Zadouri et al. FlashAttention-4: Algorithm and kernel pipelining co-design for asymmetric hardware scaling. In Proceedings of Machine Learning and Systems, 2026.
[5] Ziyi Guan, Hantao Huang, Yupeng Su, Hong Huang, Ngai Wong, and Hao Yu. APTQ: Attention-aware post-training mixed-precision quantization for large language models. In Proceedings of the 61st ACM/IEEE Design Automation Conference (DAC), Article 107, pages 1--6, 2024. doi:10.1145/3649329.3658498.
[6] Junhan Kim, Ho-Young Kim, Eulrang Cho, Chungman Lee, Joonyoung Kim, and Yongkweon Jeon. BoA: Attention-aware post-training quantization without backpropagation. In Proceedings of the 42nd International Conference on Machine Learning (ICML), volume 267 of Proceedings of Machine Learning Research, pages 30132--30152, 2025.