FlashBoB: I/O-Efficient Exact Backward-over-Backward for Softmax Attention
Import NeurIPS 2026 submission jDTHY0c03X: 8 notes
@openreview[bot] · 2026-11-22 17:58 UTC · 5b9f42eead3c
.gitattributes added
+++ b/.gitattributes@@ -0,0 +1,10 @@+# PDFs and pictures are kept with Git LFS (https://git-lfs.com). With it installed (`git lfs install`),+# a clone has the files, and `git add` of one stores a pointer. This file is the same on every page.+/.potentialpaper/*.pdf filter=lfs diff=lfs merge=lfs -text+/versions/*.pdf filter=lfs diff=lfs merge=lfs -text+/thumbnail.png filter=lfs diff=lfs merge=lfs -text+/thumbnail.jpg filter=lfs diff=lfs merge=lfs -text+/thumbnail.jpeg filter=lfs diff=lfs merge=lfs -text+/thumbnail.gif filter=lfs diff=lfs merge=lfs -text+/thumbnail.webp filter=lfs diff=lfs merge=lfs -text+/thumbnail.avif filter=lfs diff=lfs merge=lfs -text
.potentialpaper/metadata.json added
+++ b/.potentialpaper/metadata.json@@ -0,0 +1,23 @@+{+ "layout": 5,+ "identifiers": [+ {+ "scheme": "openreview",+ "value": "jDTHY0c03X"+ }+ ],+ "title": "FlashBoB: I/O-Efficient Exact Backward-over-Backward for Softmax Attention",+ "authors": [+ "Anthony Givans",+ "Michael Crawshaw",+ "Mingrui Liu"+ ],+ "abstract": "Transformer models built on the attention mechanism have become a central building block in modern deep learning, yet softmax attention remains a major bottleneck for long-context workloads. While FlashAttention makes the forward and first backward passes I/O-efficient, it does not support backward-over-backward (BoB), which enables exact differentiation through the backward pass for applications such as second-order optimization, test-time training, gradient-written memory, and meta-learning. Existing BoB implementations either materialize large intermediate tensors or exhaust GPU memory at long sequence lengths.\n\nWe present FlashBoB, an exact, I/O-efficient algorithm for BoB in softmax attention that keeps computation within on-chip tiles and avoids all $N \\times N$ intermediate tensors, where $N$ is the sequence length. The key insight is a hierarchical affine structure in the softmax double backward: two row-wise scalars determine all outputs through affine transformations. This yields a two-pass schedule with bounded on-chip static random-access memory (SRAM) usage and minimal off-chip high-bandwidth memory (HBM) traffic. FlashBoB achieves $\\Theta(N^2 d^2/M)$ HBM traffic ($d$ is the head dimension and $M$ is the on-chip SRAM size) and, within the standard FlashAttention-style score-recomputation model, matches the inherited large-cache lower bound for exact forward attention. Empirically, in an isolated attention-layer benchmark on a single A100 80GB GPU, it computes exact attention BoB at $N=262\\text{K}$, where prior PyTorch exact baselines exhaust memory by $N=16\\text{K}$, and it is up to $9.4\\times$ faster than FlashBack. Across complete second-order steps on GPT-2, Pythia, and five native GQA and MoE models, FlashBoB is $1.6$--$3.8\\times$ faster than the fastest exact baseline that fits on chip, supports $2$--$8\\times$ longer contexts, and cuts 1B-token Sophia-H training time and peak memory on FineWeb by $2.2\\times$. These results make exact second-order attention practical at long-context sequence lengths where prior implementations cannot run efficiently.",+ "year": 2026,+ "venue": "NeurIPS 2026",+ "source": "openreview",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}
community/10-tl-dr.md added
+++ b/community/10-tl-dr.md
community/20-summary.md added
+++ b/community/20-summary.md
community/30-why-it-matters.md added
+++ b/community/30-why-it-matters.md
community/40-critique.md added
+++ b/community/40-critique.md
community/50-errata.md added
+++ b/community/50-errata.md
community/60-reproductions.md added
+++ b/community/60-reproductions.md
community/70-follow-ups.md added
+++ b/community/70-follow-ups.md
owners/10-tl-dr.md added
+++ b/owners/10-tl-dr.md
owners/20-overview.md added
+++ b/owners/20-overview.md
owners/30-results.md added
+++ b/owners/30-results.md
owners/40-demos.md added
+++ b/owners/40-demos.md
owners/50-code-and-data.md added
+++ b/owners/50-code-and-data.md
owners/60-talks.md added
+++ b/owners/60-talks.md
prek.toml added
+++ b/prek.toml@@ -0,0 +1,36 @@+# Checks run before each commit, with prek (https://prek.j178.dev): `prek install` once in this clone.+# The site checks every push again; these catch mistakes before you commit. The same on every page.++[[repos]]+repo = "builtin"+hooks = [+ { id = "check-json" },+ { id = "pretty-format-json", args = ["--autofix", "--no-sort-keys", "--no-ensure-ascii"], exclude = '^demos/' },+ { id = "end-of-file-fixer", exclude = '^demos/' },+ { id = "trailing-whitespace", args = ["--markdown-linebreak-ext=md"], exclude = '^demos/' },+ { id = "check-case-conflict" },+ { id = "check-illegal-windows-names" },+ { id = "check-added-large-files", args = ["--maxkb=256"], exclude = '^demos/' },+]++# Each JSON file against its schema (https://papers.potentialhedge.com/schemas/).+[[repos]]+repo = "https://github.com/python-jsonschema/check-jsonschema"+rev = "0.39.0"+hooks = [+ { id = "check-jsonschema", name = "author section plugins files", files = '^owners/plugins\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/authorPlugins.json"] },+ { id = "check-jsonschema", name = "venue files", files = '^venue\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/venue.json"] },+ { id = "check-jsonschema", name = "topic files", files = '^topic\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/topic.json"] },+ { id = "check-jsonschema", name = "organisation files", files = '^org\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/org.json"] },+ { id = "check-jsonschema", name = "link files", files = '^links/[^/]+\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/link.json"] },+ { id = "check-jsonschema", name = "version files", files = '^versions/[^/]+\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/version.json"] },+ { id = "check-jsonschema", name = "picture files", files = '^thumbnail\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/thumbnail.json"] },+]++# Sections formatted the way the web editor formats them.+[[repos]]+repo = "https://github.com/rbubley/mirrors-prettier"+rev = "v3.9.9"+hooks = [+ { id = "prettier", files = '^(owners|community)/.*\.md$' },+]
reviews/openreview/jdthy0c03x/forms.json added
+++ b/reviews/openreview/jdthy0c03x/forms.json@@ -0,0 +1,227 @@+{+ "schema": "forms/1",+ "forms": {+ "Meta_Review": {+ "label": "Meta-review",+ "fields": [+ {+ "key": "metareview",+ "label": "Meta-review",+ "type": "text"+ }+ ]+ },+ "Decision": {+ "label": "Decision",+ "fields": [+ {+ "key": "title",+ "label": "Title",+ "hidden": true+ },+ {+ "key": "decision",+ "label": "Decision",+ "type": "choice"+ },+ {+ "key": "comment",+ "label": "Comment",+ "type": "text"+ },+ {+ "key": "metareview",+ "label": "Meta-review",+ "type": "text"+ },+ {+ "key": "final_justification",+ "label": "Final justification",+ "type": "text"+ }+ ]+ },+ "Official_Comment": {+ "label": "Comment",+ "fields": [+ {+ "key": "title",+ "label": "Title",+ "type": "choice"+ },+ {+ "key": "comment",+ "label": "Comment",+ "type": "text"+ }+ ]+ },+ "Public_Comment": {+ "label": "Public comment",+ "fields": [+ {+ "key": "title",+ "label": "Title",+ "type": "choice"+ },+ {+ "key": "comment",+ "label": "Comment",+ "type": "text"+ }+ ]+ },+ "Withdrawal": {+ "label": "Withdrawal",+ "fields": [+ {+ "key": "withdrawal_confirmation",+ "label": "Confirmation",+ "hidden": true+ }+ ]+ },+ "Desk_Rejection": {+ "label": "Desk rejection",+ "fields": [+ {+ "key": "desk_reject_comments",+ "label": "Reason",+ "type": "text"+ }+ ]+ },+ "Official_Review": {+ "label": "Official review",+ "summary": [+ "rating",+ "confidence",+ "quality",+ "clarity",+ "significance",+ "originality"+ ],+ "fields": [+ {+ "key": "rating",+ "label": "Rating",+ "type": "score",+ "min": 1,+ "max": 6+ },+ {+ "key": "confidence",+ "label": "Confidence",+ "type": "score",+ "min": 1,+ "max": 5+ },+ {+ "key": "quality",+ "label": "Quality",+ "type": "score",+ "min": 1,+ "max": 4+ },+ {+ "key": "clarity",+ "label": "Clarity",+ "type": "score",+ "min": 1,+ "max": 4+ },+ {+ "key": "significance",+ "label": "Significance",+ "type": "score",+ "min": 1,+ "max": 4+ },+ {+ "key": "originality",+ "label": "Originality",+ "type": "score",+ "min": 1,+ "max": 4+ },+ {+ "key": "contribution_type",+ "label": "Contribution type",+ "type": "choice"+ },+ {+ "key": "summary",+ "label": "Summary",+ "type": "text"+ },+ {+ "key": "strengths_and_weaknesses",+ "label": "Strengths and weaknesses",+ "type": "text"+ },+ {+ "key": "questions",+ "label": "Questions",+ "type": "text"+ },+ {+ "key": "limitations",+ "label": "Limitations",+ "type": "text"+ },+ {+ "key": "final_justification",+ "label": "Final justification",+ "type": "text"+ },+ {+ "key": "paper_formatting_concerns",+ "label": "Formatting concerns",+ "type": "text"+ },+ {+ "key": "ethical_concerns",+ "label": "Ethical concerns",+ "type": "choice"+ },+ {+ "key": "code_of_conduct_acknowledgement",+ "label": "Code of conduct",+ "hidden": true+ },+ {+ "key": "responsible_reviewing_acknowledgement",+ "label": "Responsible reviewing",+ "hidden": true+ }+ ]+ },+ "Rebuttal": {+ "label": "Rebuttal",+ "fields": [+ {+ "key": "rebuttal",+ "label": "Rebuttal",+ "type": "text"+ }+ ]+ },+ "Ethics_Review": {+ "label": "Ethics review",+ "fields": [+ {+ "key": "scope_of_ethics_concerns",+ "label": "Scope",+ "type": "choice"+ },+ {+ "key": "ethics_review",+ "label": "Ethics review",+ "type": "text"+ }+ ]+ }+ },+ "url": "https://openreview.net/group?id=NeurIPS.cc%2F2026%2FConference",+ "license": "CC-BY-4.0"+}
reviews/openreview/jdthy0c03x/notes/2bx7nnenp7.json added
+++ b/reviews/openreview/jdthy0c03x/notes/2bx7nnenp7.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "2bx7nNenp7",+ "replyTo": "mbOtYrY0bd",+ "kind": "comment",+ "invitation": "Rebuttal",+ "signature": "Authors",+ "content": {+ "rebuttal": "Thank you for a careful and specific review. You identified three evidence gaps (head dimension $d=128$, the matched FlashBack comparison, and model-family breadth) and two clarifications. We addressed your concerns below.\n\n**W1 (Q1): Head dimension 128.**\n\n**A1:** We ran new experiments with $d=128$, and the new experiments support the same central conclusion as the $d=64$ results in the main paper. **FlashBoB** remains faster wherever the baselines fit, uses substantially less memory, and is the only evaluated method that can handle sequence length $N \\geq 32$K.\n\n**Table R1. Isolated attention BoB at $d=128$.** Batch 4, 12 heads, causal, BF16 with FP32 reductions, NVIDIA B300. Median of 100 timed iterations after 25 warmup iterations. Speedup is relative to the fastest baseline that fits.\n\n| $N$ | Math (ms) | HVP-M (ms) | HVP-S (ms) | **FlashBoB (ms)** | Speedup | FlashBoB memory (MiB) |\n| -----: | --------: | ---------: | ---------: | ----------------: | -----------: | --------------------: |\n| 256 | 1.3 | 1.1 | 1.7 | **0.7** | $1.47\\times$ | 133 |\n| 512 | 2.1 | 1.2 | 1.6 | **0.9** | $1.26\\times$ | 250 |\n| 1,024 | 6.8 | 2.9 | 3.3 | **1.8** | $1.61\\times$ | 485 |\n| 2,048 | 24.9 | 11.6 | 10.8 | **5.2** | $2.08\\times$ | 553 |\n| 4,096 | 94.2 | 41.5 | 39.1 | **18.2** | $2.15\\times$ | 1,106 |\n| 8,192 | 366.3 | 178.6 | 160.7 | **68.2** | $2.36\\times$ | 2,211 |\n| 16,384 | OOM | 620.0 | 602.6 | **263.6** | $2.29\\times$ | 4,422 |\n| 32,768 | OOM | OOM | OOM | **1,037.0** | -- | 8,844 |\n| 65,536 | OOM | OOM | OOM | **4,124.2** | -- | 17,688 |\n\nTable R1 shows the new experimental results at $d=128$. At $N=2{,}048$--$16{,}384$, **FlashBoB** is $2.08$--$2.36\\times$ faster than the best surviving baseline. Its observed pattern matches what was observed at $d=64$. We originally used $d=64$ because it matches the default configurations of GPT-2.\n\n**W1 (Q2): FlashBoB versus FlashBack at head dimension 128.**\n\n**A2:** Thank you for this suggestion. We added a matched comparison with FlashBack at $d=128$. Under the same batch size, number of heads, precision, causal mask, and hardware, **FlashBoB** is faster at every tested sequence length, with speedup increasing from $1.63\\times$ at $N=256$ to $9.43\\times$ at $N=65{,}536$.\n\n**Table R2. Matched FlashBack comparison at $d=128$.** Batch 4, 12 heads, causal BF16, NVIDIA B300.\n\n| $N$ | FlashBack (ms) | **FlashBoB (ms)** | Speedup |\n| -----: | -------------: | ----------------: | -----------: |\n| 256 | 1.217 | **0.747** | $1.63\\times$ |\n| 512 | 3.241 | **0.921** | $3.52\\times$ |\n| 1,024 | 10.689 | **1.786** | $5.98\\times$ |\n| 2,048 | 39.030 | **5.186** | $7.53\\times$ |\n| 4,096 | 156.033 | **18.232** | $8.56\\times$ |\n| 8,192 | 619.004 | **68.227** | $9.07\\times$ |\n| 16,384 | 2,451.531 | **263.646** | $9.30\\times$ |\n| 32,768 | 9,754.575 | **1,037.029** | $9.41\\times$ |\n| 65,536 | 38,902.585 | **4,124.157** | $9.43\\times$ |\n\nFor both methods, we tested multiple kernel configurations and report the fastest at each $N$. For FlashBack, we swept block sizes in ${16,32}$, stages in ${1,2,3}$, and warp counts in ${4,8}$. The widening gap is consistent with FlashBack's contended global atomic updates, whereas **FlashBoB** assigns each output to a unique owning tile and avoids cross-tile accumulation. We report runtime only because different allocation paths make peak-memory measurements not directly comparable.\n\n**W2: Concrete block sizes and Tensor Core compatibility.**\n\n**A3:** Thank you for pointing this out. At $d=128$, the selected row-pass configurations use $(B_r,B_c)\\in{(16,16),(32,16)}$ with two stages, while the column pass uses $(B_m,B_n)\\in{(16,16),(16,32)}$ with two or three stages. All use four warps, and the tile dimensions remain multiples of 16 and Tensor Core-compatible. For larger $d$, configurations exceeding the register or shared-memory budgets are pruned. We will add these practical configurations to the implementation details in the revised version of this paper.\n\n**W3: Model-family breadth.**\n\n**A4:** Thank you for this suggestion. To evaluate whether our end-to-end results extend beyond GPT-2 and to the $d=128$ setting requested in the main text, we added experiments on Pythia-160M and Pythia-410M. Pythia is based on the GPT-NeoX architecture, providing a distinct model family from GPT-2.\n\n**Table R3. End-to-end second-order steps on Pythia (GPT-NeoX) at $d=128$.** Batch 4, BF16 with FP32 reductions, NVIDIA B300. Speedup is relative to the fastest baseline that fits.\n\n| Model | $N$ | Math (ms) | HVP-M (ms) | HVP-S (ms) | **FlashBoB (ms)** | FlashBoB memory (MiB) | Speedup |\n| :---------- | -----: | --------: | ---------: | ---------: | ----------------: | --------------------: | -----------: |\n| Pythia-160M | 512 | 87.9 | 91.0 | 101.8 | **79.1** | 5,062 | $1.11\\times$ |\n| Pythia-160M | 1,024 | 103.2 | 106.0 | 106.2 | **99.3** | 8,942 | $1.04\\times$ |\n| Pythia-160M | 2,048 | 152.4 | 161.4 | 142.7 | **115.7** | 16,702 | $1.23\\times$ |\n| Pythia-160M | 4,096 | 420.8 | 437.0 | 361.7 | **239.8** | 32,222 | $1.51\\times$ |\n| Pythia-160M | 8,192 | OOM | 1,563.1 | 1,195.0 | **659.0** | 63,263 | $1.81\\times$ |\n| Pythia-160M | 16,384 | OOM | 5,069.5 | 4,088.9 | **2,064.2** | 126,273 | $1.98\\times$ |\n| Pythia-160M | 32,768 | OOM | OOM | OOM | **7,114.6** | 250,435 | -- |\n| Pythia-410M | 512 | 93.7 | 91.5 | 92.2 | **81.7** | 8,763 | $1.12\\times$ |\n| Pythia-410M | 1,024 | 161.1 | 158.5 | 148.4 | **126.3** | 14,502 | $1.17\\times$ |\n| Pythia-410M | 2,048 | 368.0 | 393.8 | 328.7 | **242.9** | 25,992 | $1.35\\times$ |\n| Pythia-410M | 4,096 | 1,074.1 | 1,125.0 | 918.4 | **583.7** | 48,974 | $1.57\\times$ |\n| Pythia-410M | 8,192 | OOM | 4,121.5 | 3,121.7 | **1,652.8** | 94,937 | $1.89\\times$ |\n| Pythia-410M | 16,384 | OOM | OOM | OOM | **5,280.2** | 186,863 | -- |\n\nAs shown in Table R3, **FlashBoB** outperforms the fastest baseline that fits in memory across both model sizes. The gains become particularly pronounced at long sequence lengths, reaching $1.98\\times$ for Pythia-160M at $N=16{,}384$ and $1.89\\times$ for Pythia-410M at $N=8{,}192$, the longest sequence lengths supported by the baselines. Moreover, **FlashBoB** continues to $N=32{,}768$ and $N=16{,}384$, respectively, after all baselines run out of memory.\n\nThese results show that the end-to-end speedups and memory advantages extend beyond GPT-2 to the GPT-NeoX model family, across two model scales, and in the requested $d=128$ regime. As expected, the end-to-end speedups are smaller than the isolated attention gains because the non-attention computation remains unchanged.\n\n**Q3: GPT-2 Medium versus Large in Table 2.**\n\n**A5:** Regarding Table 2, we apologize for the confusing presentation. The sequence-length sweep restarts for each model, so reading across the Medium–Large boundary compares Medium at $N=16{,}384$ with Large at $N=2{,}048$. At every matched $N$, GPT-2 Large is slower and uses more memory, as expected. We will clarify in the caption that $N$ restarts for each model and make the model boundaries more prominent.\n\n**Q4: Configuration behind the introductory memory result.**\n\n**A6:** The quoted result refers to the isolated GPT-2 Small attention layer evaluated later in the paper, not to a full-model training step. It uses batch size 4, 12 standard multi-head attention heads with head dimension $d=64$ (hidden size 768), causal masking, BF16 inputs with FP32 reductions, and a single A100 80GB GPU. No grouped-query or multi-query attention is used. We will state this configuration at the first mention of the result."+ },+ "createdAt": "2026-07-28T02:25:44.378Z",+ "modifiedAt": "2026-11-18T17:16:46.387Z",+ "url": "https://openreview.net/forum?id=jDTHY0c03X¬eId=2bx7nNenp7",+ "license": "CC-BY-4.0"+}
reviews/openreview/jdthy0c03x/notes/4p8i1i3f98.json added
+++ b/reviews/openreview/jdthy0c03x/notes/4p8i1i3f98.json@@ -0,0 +1,31 @@+{+ "schema": "review/1",+ "id": "4P8i1I3F98",+ "replyTo": null,+ "kind": "review",+ "invitation": "Official_Review",+ "signature": "Reviewer yBiR",+ "content": {+ "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.",+ "contribution_type": "general",+ "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.",+ "quality": 4,+ "clarity": 3,+ "significance": 4,+ "originality": 4,+ "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.",+ "rating": 6,+ "confidence": 3,+ "ethical_concerns": [+ "NO or VERY MINOR ethics concerns only"+ ],+ "paper_formatting_concerns": "None noted",+ "code_of_conduct_acknowledgement": "Yes",+ "responsible_reviewing_acknowledgement": "Yes"+ },+ "createdAt": "2026-06-22T18:19:24.535Z",+ "modifiedAt": "2026-11-18T13:39:36.572Z",+ "url": "https://openreview.net/forum?id=jDTHY0c03X¬eId=4P8i1I3F98",+ "license": "CC-BY-4.0"+}
reviews/openreview/jdthy0c03x/notes/g4biu4xjin.json added
+++ b/reviews/openreview/jdthy0c03x/notes/g4biu4xjin.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "g4bIU4XjIn",+ "replyTo": null,+ "kind": "meta_review",+ "invitation": "Meta_Review",+ "signature": "Area Chair SB5J",+ "content": {+ "metareview": "This paper proposes FlashBoB, a memory-efficient method for computing gradients over attention for long sequences. The authors leverage a clever affine structure to reduce a four-pass algorithm to a two-pass algorithm while preserving correctness. The reviewers find the evaluation strong, though some reviewers ask for broader experiments on more workloads and better disentanglement of the algorithm from framework-level changes. Such experiments would make the paper stronger."+ },+ "createdAt": "2026-07-23T16:09:56.983Z",+ "modifiedAt": "2026-11-18T15:21:29.868Z",+ "url": "https://openreview.net/forum?id=jDTHY0c03X¬eId=g4bIU4XjIn",+ "license": "CC-BY-4.0"+}
reviews/openreview/jdthy0c03x/notes/gk5x86jm8e.json added
+++ b/reviews/openreview/jdthy0c03x/notes/gk5x86jm8e.json@@ -0,0 +1,19 @@+{+ "schema": "review/1",+ "id": "gK5X86Jm8e",+ "replyTo": null,+ "kind": "decision",+ "invitation": "Decision",+ "signature": "Program Chairs",+ "content": {+ "title": "Paper Decision",+ "decision": "Accept (poster)",+ "comment": "",+ "metareview": "This paper proposes FlashBoB, a memory-efficient method for computing gradients over attention for long sequences. The authors leverage a clever affine structure to reduce a four-pass algorithm to a two-pass algorithm while preserving correctness. The reviewers find the evaluation strong, though some reviewers ask for broader experiments on more workloads and better disentanglement of the algorithm from framework-level changes. Such experiments would make the paper stronger.",+ "final_justification": "The reviewers opinions of the paper remain strong after the rebuttal process."+ },+ "createdAt": "2026-09-24T11:20:52.385Z",+ "modifiedAt": "2026-11-18T14:55:10.123Z",+ "url": "https://openreview.net/forum?id=jDTHY0c03X¬eId=gK5X86Jm8e",+ "license": "CC-BY-4.0"+}
reviews/openreview/jdthy0c03x/notes/jpzpyism8p.json added
+++ b/reviews/openreview/jdthy0c03x/notes/jpzpyism8p.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "JPZpYIsm8p",+ "replyTo": "4P8i1I3F98",+ "kind": "comment",+ "invitation": "Rebuttal",+ "signature": "Authors",+ "content": {+ "rebuttal": "We thank the reviewer for the thoughtful review and positive comments. We answer your questions below.\n\n**W1: Application breadth.**\n\n\n**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.\n\nOptimal-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.\n\n**W2: The $262$K-token claim.**\n\n\n**A2:** We agree that $262$K 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.\n\nWe will revise the first mention to:\n\n> On a single A100 80GB GPU, FlashBoB computes exact BoB for an isolated GPT-2 Small attention layer at $N=262$K; the PyTorch math baseline OOMs at $N=8$K and the HVP baselines by $N=16$K. This is an attention-layer benchmark, not a full-model training length.\n\n**Q1: Architecture-specialized implementations.**\n\n\n**A3:** Our implementation uses upstream Triton. Although Triton lowers `tl.dot` to 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 asymptotic\n\n## References\n\n[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.\n\n[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.\n\n[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.\n\n[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.\n\n[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.\n\n[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."+ },+ "createdAt": "2026-07-28T03:33:24.839Z",+ "modifiedAt": "2026-11-18T17:16:44.608Z",+ "url": "https://openreview.net/forum?id=jDTHY0c03X¬eId=JPZpYIsm8p",+ "license": "CC-BY-4.0"+}
reviews/openreview/jdthy0c03x/notes/lg2inrg8rs.json added
+++ b/reviews/openreview/jdthy0c03x/notes/lg2inrg8rs.json@@ -0,0 +1,32 @@+{+ "schema": "review/1",+ "id": "LG2INRG8rs",+ "replyTo": null,+ "kind": "review",+ "invitation": "Official_Review",+ "signature": "Reviewer eTzo",+ "content": {+ "summary": "This work introduced FlashBoB, which extends the Flash attention scheduling style to exact backward over backward computation for softmax attention useful for meta-learning/ second-order optimization methods. The authors uses the hierarchical affine structure in the softmax double backward utilising a two-pass tiled schedule without materialisation full NXN intermediates, thus making it practical at long-context lengths too. The authors also provide experiment with second order optimizer Sophia-H with their FlashBOB implementation.",+ "contribution_type": "general",+ "strengths_and_weaknesses": "Overall the paper is easy to follow and presents a timely effort as second-order optimizers are on rise again for large-scale training. This work starts to fill an important gap by making exact backward-over-backward computation practical for long-context attention.\n\nStrengths: \n\n- The authors leverage a hierarchical affine structure that enables reducing a natural four-pass BoB computation into a two-pass schedule while preserving exactness.\n- The evaluation benchmarks are comprehensive, covering kernel-level benchmarks, end-to-end training comparisons with baselines, wall-clock time, peak memory, and maximum supported context length.\n- The authors provide an I/O complexity analysis showing optimality under the Flash-attn style score-recomputation model.\n- The reported improvements in runtime and memory efficiency are substantial and consistently demonstrated across experiments.\n\nWeaknesses:\n- Part of the reported end-to-end training speedup appears to arise from retaining optimized attention backends that are unavailable in PyTorch's standard double-backward path, making it somewhat difficult to disentangle algorithmic gains from framework-level integration advantages.",+ "quality": 3,+ "clarity": 3,+ "significance": 4,+ "originality": 3,+ "questions": "How does FlashBoB integrate with distributed training strategies such as FSDP and context/sequence parallelism, and are the reported gains expected to persist when communication costs become significant?",+ "limitations": "yes",+ "rating": 5,+ "confidence": 4,+ "ethical_concerns": [+ "NO or VERY MINOR ethics concerns only"+ ],+ "paper_formatting_concerns": "NA",+ "code_of_conduct_acknowledgement": "Yes",+ "responsible_reviewing_acknowledgement": "Yes",+ "final_justification": "I retain my original score of accept after rebuttal, it was overall a nice read."+ },+ "createdAt": "2026-06-24T14:00:43.872Z",+ "modifiedAt": "2026-11-18T13:39:35.289Z",+ "url": "https://openreview.net/forum?id=jDTHY0c03X¬eId=LG2INRG8rs",+ "license": "CC-BY-4.0"+}
reviews/openreview/jdthy0c03x/notes/mbotyry0bd.json added
+++ b/reviews/openreview/jdthy0c03x/notes/mbotyry0bd.json@@ -0,0 +1,32 @@+{+ "schema": "review/1",+ "id": "mbOtYrY0bd",+ "replyTo": null,+ "kind": "review",+ "invitation": "Official_Review",+ "signature": "Reviewer chBb",+ "content": {+ "summary": "This work presents a memory efficient implementation of taking gradients over the backward pass of attention. It describes fused kernels for backward over backward that deploy the same principles behind FlashAttention which rely on recomputing intermediates rather than materializing them, hence minimizing slow memory transfers and taking advantage of modern GPUs which allow for more compute to balance out the reconstruction. Further, the method establishes a 2-pass split in calculating the backboard over backward of the queries, keys, and values with minimal intermediates stored between the passes. This allows the passes to focus on reductions along different axes. The paper presents theoretical estimates of the memory movements and complexity to further support their method. It claims that this method allows for backward over backward to be calculated much faster and with a much smaller memory budget compared to existing methods.",+ "contribution_type": "general",+ "strengths_and_weaknesses": "Strengths: \n1. The paper presents a clear addition over the previous methods which reduces bandwidth and memory requirements for attention backward over backward. In particular, the choice of the 2-pass kernel split with only O(N) intermediates, makes for a very memory efficient implementation which caters to compute:bandwidth skew of modern accelerators\n2. The paper does a through job of covering the I/O analysis for HBM transfers and prescribes a clear way of understanding the cache / SRAM requirements of the implementation \n3. The paper studies performance and quality over a large sweep of sequence length, which is a useful aspect to highlight for this method that saves a lot of memory compared to other techniques \n\nWeaknesses: \n1. The main benchmark of focus is chosen to be a model with head dimension 64. While the results claimed here are impressive and useful to know, the more common head dimension 128 is not discussed as much as the brief mention in section N shows much more modest results. The spread of ablation, benchmarks, and comparisons are not shown head dimension 128 - particularly, comparison with FlashBack, the closest implementation in spirit, have not been shown at head dimension 128. This choice makes the potential impact of the study weaker.\n2. While the theoretical implications and prescriptions for the block sizes Br and Bc to use are discussed at length, the real block sizes used for the shown examples are not presented in the paper. While this might show up later in the code, it is useful to have in the paper as well since it can give an indication for scaling of a very register-constrained kernel. Particularly as head-dimension scales up, it is useful to know if the Br and Bc remain above the threshold to maintain performance when fed to tensor cores. \n3. The range of the experiments is mostly limited to one model family in GPT-2, and one or two other models, especially in the end to end training tests would be a great way to further solidify the message",+ "quality": 2,+ "clarity": 2,+ "significance": 2,+ "originality": 3,+ "questions": "Key questions:\n1. Did the authors have a chance to run more extensive tests with head-dimension 128 beyond what is presented in section N ? Do the authors expect the scaling between the sequence length and time taken by FlashBoB behaves similarly at head-dim 128 ? \n2. Did the authors run performance comparisons of FlashBoB at head-dim 128 and FlashBack at head-dim128 ? Do the authors expect one to have the advantage ? \n3. In Table 2, it seems the wall clock times of FlashBoB for GPT-2 Large are smaller than those at GPT-2 Medium. It also looks like less memory is used as well. Is this expected behavior ? How do the authors understand this difference ? \n\nOther questions:\n1. Line 41-42 in the introduction read \"exhausts memory at sequence length N = 8,192 on a single A100 80GB GPU\". Can authors clarify the head dimension, number of heads, query grouping, or the data type in question ? Is this line discussing the GPT2 model attention discussed later in the work and if so, is that clarified somewhere in the introduction around this ?",+ "limitations": "Yes",+ "rating": 5,+ "confidence": 3,+ "ethical_concerns": [+ "NO or VERY MINOR ethics concerns only"+ ],+ "paper_formatting_concerns": "None",+ "code_of_conduct_acknowledgement": "Yes",+ "responsible_reviewing_acknowledgement": "Yes",+ "final_justification": "My primary concern was the paper adding sufficient information for practitioners to understand how to apply the method in useful models, or at least understand the extent of limitations. \nThe authors have not only expanded on the limitations of the method and kernels at head-dim 128, but also further shown the method to be an improvement even in other models with a good coverage. \nThis goes beyond my expectations of the scope of additions, so I would be happy to increase my score up to a 5 - on the understanding that the authors make the promised changes to a revision."+ },+ "createdAt": "2026-07-21T02:33:05.350Z",+ "modifiedAt": "2026-11-18T13:39:33.938Z",+ "url": "https://openreview.net/forum?id=jDTHY0c03X¬eId=mbOtYrY0bd",+ "license": "CC-BY-4.0"+}
reviews/openreview/jdthy0c03x/notes/npcymiwsia.json added
+++ b/reviews/openreview/jdthy0c03x/notes/npcymiwsia.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "nPcyMiwSIa",+ "replyTo": "LG2INRG8rs",+ "kind": "comment",+ "invitation": "Rebuttal",+ "signature": "Authors",+ "content": {+ "rebuttal": "We thank the reviewer for the thoughtful review and positive comments. We address the stated weakness and question below.\n\n**W1: Separating the BoB-kernel and integration gains.**\n\n**A1:** We added a matched hybrid control that uses FlashAttention for the ordinary forward and first backward in both methods; only the attention BoB computation during Hessian estimation differs. The hybrid baseline uses PyTorch's `math` path, while **FlashBoB** uses our exact kernel. All other settings are identical.\n\n**Table R1. End-to-end comparison with the matched hybrid control on $8\\times$ A100 80GB GPUs.**\n\n| Hessian interval | Hybrid baseline (hr) | **FlashBoB (hr)** | Speedup |\n| :--------------- | -------------------: | ----------------: | -----------: |\n| Every 10 steps | 0.77 | **0.63** | $1.22\\times$ |\n| Every 5 steps | 1.12 | **0.79** | $1.42\\times$ |\n| Every 2 steps | 2.11 | **1.24** | $1.70\\times$ |\n\n**FlashBoB** remains $1.22$–$1.70\\times$ faster, with larger gains when Hessian estimation is more frequent. This isolates a clear benefit from the BoB kernel itself; the original $2.17\\times$ result additionally includes the benefit of the optimized forward and first-backward integration. We will distinguish these two effects clearly.\n\n**Q1: Distributed training.**\n\n**A2:** **FlashBoB** plays the same local role for attention BoB that FlashAttention plays for the forward and first backward. Our 8-GPU Sophia-H experiment already uses data parallelism: **FlashBoB** changes only the local attention BoB computation and leaves gradient communication unchanged. The same principle applies to head-wise tensor parallelism, pipeline parallelism, and Ulysses-style sequence parallelism, where each device performs local attention for a subset of heads.\n\nRing or context parallelism requires embedding **FlashBoB**'s two passes into the block-circulation and communication-overlap schedule used by distributed FlashAttention; we have not yet implemented this extension. If both methods share communication cost $T_{\\mathrm{comm}}$, the distributed\nspeedup is\n$\\frac{T_{\\mathrm{comm}} + T_{\\mathrm{base}}}\n {T_{\\mathrm{comm}} + T_{\\mathrm{FlashBoB}}}$,\nso the local compute and memory gains persist, while the end-to-end speedup\ndecreases toward $1\\times$ as communication dominates. Standard PyTorch FSDP currently does not support double backward, making FSDP compatibility a framework-level integration issue rather than a limitation specific to **FlashBoB**."+ },+ "createdAt": "2026-07-28T02:46:38.156Z",+ "modifiedAt": "2026-11-18T17:16:46.702Z",+ "url": "https://openreview.net/forum?id=jDTHY0c03X¬eId=nPcyMiwSIa",+ "license": "CC-BY-4.0"+}
reviews/openreview/jdthy0c03x/submission.json added
+++ b/reviews/openreview/jdthy0c03x/submission.json@@ -0,0 +1,12 @@+{+ "schema": "submission/1",+ "id": "jDTHY0c03X",+ "venue": {+ "id": "NeurIPS.cc/2026/Conference",+ "name": "NeurIPS 2026",+ "url": "https://openreview.net/group?id=NeurIPS.cc%2F2026%2FConference"+ },+ "number": 14974,+ "url": "https://openreview.net/forum?id=jDTHY0c03X",+ "license": "CC-BY-4.0"+}
versions/v_h964ehzn.json added
+++ b/versions/v_h964ehzn.json@@ -0,0 +1,22 @@+{+ "date": "2026-05-02",+ "kind": "submitted",+ "label": "NeurIPS 2026",+ "submissions": [+ {+ "venue": "NeurIPS 2026",+ "status": "accepted",+ "decision": "Accept (poster)",+ "number": 14974,+ "url": "https://openreview.net/forum?id=jDTHY0c03X",+ "reviews": "openreview/jdthy0c03x",+ "evidence": [+ "https://openreview.net/forum?id=jDTHY0c03X"+ ]+ }+ ],+ "url": "https://openreview.net/forum?id=jDTHY0c03X",+ "evidence": [+ "https://openreview.net/forum?id=jDTHY0c03X"+ ]+}