FlashFFN: Multi-Head Decomposition Enables I/O-Aware Feed-Forward Network
Minshen Zhang, Xiang Hu, Jianguo Li, Wei Wu, Kewei Tu
NeurIPS 2026
TL;DR. We propose a novel multi-head FFN that achieves better transformer model performance while using 3-4x less memory and running 1.00-1.32x faster than standard SwiGLU FFNs.
Abstract. The Feed-Forward Network (FFN) dominates the activation memory of modern Transformers because the wide intermediate tensor is materialized in off-chip HBM between the two matmul stages. FlashAttention-style I/O-aware tiling avoids the analogous cost in attention, but the same one-pass fusion does not fit a monolithic FFN. We identify the reason as a hardware-geometry constraint: under one-pass tiled accumulation a fused FFN kernel must keep an output accumulator spanning the full hidden dimension in on-chip SRAM, which is infeasible for hidden dimensions of 2048 or more on currently shipping NVIDIA datacenter GPUs (A100/H100/B200) under one-pass tiled execution with sequence tiles of 128 or more tokens. We formalize this as an SRAM-feasibility proposition and prove a corollary: multi-head decomposition is the simplest architectural transform that brings FFN inside this SRAM-feasible regime, because it makes the per-head accumulator width (the hidden dimension divided by the number of FFN heads) a free parameter that can be driven below the GPU's SRAM cutoff. Naïve multi-head FFN, however, blows up the per-head expansion ratio as the hidden dimension grows, drifting away from the well-validated SwiGLU 8/3 optimum and degrading quality at scale; we resolve this with a dense MoE-like sub-network correction that restores the optimal ratio while preserving SRAM-feasibility. The resulting architecture, FlashFFN, is an SRAM-feasible FFN block that replaces SwiGLU under matched parameter and FLOPs budgets and derives directly from the SRAM constraint. Across 128M–1.3B parameter models trained on 60–100B tokens of The Pile, FlashFFN achieves a Pareto improvement over SwiGLU at fixed compute: up to 2.7× lower peak activation memory at long sequences, inference latency that matches or improves over SwiGLU (up to 1.18× faster end-to-end prefill and 1.19× faster decode on H100), and consistent quality gains (up to -0.84 in evaluation perplexity (PPL) and +1.60 average accuracy points across six downstream benchmarks at 1.3B).
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:46 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
Reviewers are split on this paper. The rating-2 review is notably brief and does not engage substantively with the technical contribution; I discount it accordingly. The rating-3 reviewer raises valid concerns about the lack of model-level acceleration benchmarks, though some criticisms are not aligned with current LLM deployment practice. The rating-5 reviewer finds the core idea of applying FlashAttention-style tiling to FFN layers elegant and well-executed, with solid ablations and open-source implementations. Looking at the paper myself for a few minutes, it seems to have measured as much as can be measured, and I would not have as many concerns regarding this as the rating-3 reviewer. I recommend acceptance, but would not mind if the submission is not included in the proceedings.
Read meta-review
Meta-review
Reviewers are split on this paper. The rating-2 review is notably brief and does not engage substantively with the technical contribution; I discount it accordingly. The rating-3 reviewer raises valid concerns about the lack of model-level acceleration benchmarks, though some criticisms are not aligned with current LLM deployment practice. The rating-5 reviewer finds the core idea of applying FlashAttention-style tiling to FFN layers elegant and well-executed, with solid ablations and open-source implementations. Looking at the paper myself for a few minutes, it seems to have measured as much as can be measured, and I would not have as many concerns regarding this as the rating-3 reviewer. I recommend acceptance, but would not mind if the submission is not included in the proceedings.
- Rating
- 3/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
FlashFFN proposes a replacement for the standard monolithic SwiGLU feed-forward network (FFN) in Transformer blocks, motivated by on-chip memory limits when applying FlashAttention-style tiled fusion to FFNs. The authors formalize an SRAM-feasibility condition for one-pass blockwise SwiGLU accumulation (Proposition~3.1) and argue that, for typical large language model widths, a monolithic FFN must keep an output accumulator of width on chip, which exceeds per-SM SRAM on common datacenter GPUs; reducing the accumulator to per-head width via multi-head decomposition is presented as the simplest way to make fused FFN execution feasible.
Architecturally, the FFN input is projected by and split along the model dimension into heads. Within each head, parallel SwiGLU sub-networks of intermediate width are combined by per-token sigmoid-normalized gating; head outputs are concatenated and mapped back to by . This design is intended to restore a SwiGLU-like expansion ratio per head while keeping the fused kernel SRAM-resident. Computation is implemented as a blockwise fused kernel that accumulates partial results over tiles of the intermediate dimension without materializing the full activation in HBM.
The paper evaluates 128M, 370M, and 1.3B models trained on The Pile against a Llama-style SwiGLU baseline and ablations (naive MH-FFN, Dense-MoE with , and PKV), matching parameter count and per-step training FLOPs at each scale. Results include PG19 perplexity, six downstream benchmarks, and single-layer H100 peak activation memory and latency versus SwiGLU, using the trained 1.3B-style FFN configuration for microbenchmarks. Forward and backward kernel pseudocode is provided for Triton and Hopper/ThunderKittens implementations.
Strengths and weaknesses
Strengths
Quality
- Clear FFN bottleneck: large activations in HBM.
- Prop.3.1 / Fig.1 / App.B motivate multi-head for SRAM-feasible fusion.
- 370M R1/R2 ablations: gain needs R1+R2, not either alone.
- Single-layer H100 benchmarks (Fig.5, Table3, App.~G) use 1.3B-style config (, , , ).
Clarity
- Figs.2--3, Eqs.~(5)--(8): full block via , , sub-networks, and .
- FFN heads attention heads (16 vs 32 at 1.3B).
- Table5 documents matched params/FLOPs and 24L vs 20L trade-off.
Significance
- Up to - lower activation memory at long (prefill-relevant).
- 1.3B: PPL and downstream gains at .
- Pseudocode + configs support reproducibility.
Originality
- SRAM constraint architecture-kernel co-design is a useful lens.
- Links accumulator width to on-chip feasibility.
Weaknesses
Quality — latency and deployment (Priority 1)
- Latency is regime-dependent: FlashFFN is slower at short ( vs at ; vs at ), only faster at long (peak at ; App.~G).
- Benchmarks are prefill-like ( sweep, bs=8); no decode-like setting () or end-to-end latency for the trained 20-layer vs 24-layer models.
- Claims that latency matches or improves over SwiGLU are too broad for short prefill and decode-heavy use.
Quality — pre/post processing and timing scope (Priority 2)
- The full block includes input projection , routing, head merge, and output projection , whose matmul cost scales as per projection and may dominate at small .
- Algorithm~1 starts from pre-formed and , so reported latency may cover the fused inner loop only, not full .
- No FLOP/latency breakdown (disaggregate | core | aggregate); App.~G does not explicitly state SwiGLU for the 1.3B baseline.
Quality — missing baselines (Priority 3)
- No comparison to Multi-Head Mixture-of-Experts (Wu et al., NeurIPS 2024) at matched params/FLOPs; this is the closest architectural prior (split along model dim, parallel FFN-like paths, merge projections).
- The paper does not implement the FLOP/parameter-rebalanced MH-MoE formulation in MH-MoE: Multi-Head Mixture-of-Experts (Huang et al., 2024), which is the natural fair baseline when claiming improvement over the MH-MoE line.
- MH-FFN and Dense-MoE ablations isolate parts of the design but do not replace an MH-MoE baseline; gains from multi-head split, dense sub-networks, and the fused kernel remain entangled.
- Memory/speed likely vs standard unfused SwiGLU; Liger Kernel: Efficient Triton Kernels for LLM Training (Hsu et al., 2024) is cited but not benchmarked.
Quality — PPL and depth (Priority 4)
- Table~1 PPL is full-model (all layers + LM head), not one FFN layer.
- At 1.3B, quality compares 20-layer FlashFFN vs 24-layer SwiGLU under matched FLOPs — compute-budget fair, not iso-depth.
- No 24-vs-24 ablation; single-run results with no error bars (checklist §7); Fig.~4 memory at 128M/370M is scaled, not measured.
Originality
- FFN-side split and merge is structurally close to Multi-Head Mixture-of-Experts (Wu et al., NeurIPS 2024): /split/experts/merge vs /split/sub-networks/.
- Main delta vs MH-MoE is dense per-head sub-networks plus a fused kernel, not the split–merge pattern itself.
- Cor.~3.2 depends on one-pass tiled execution; alternatives noted in related work (output tiling, split-K) are not empirically tested against strong fused monolithic SwiGLU implementations.
Clarity
- “Multi-head” is easily confused with multi-head self-attention despite decoupled FFN head count .
- Cost and inclusion of , router, and in App.~G timings are not stated clearly.
Questions
Questions for Authors
-
Latency scope and short- regression (App.~G). Appendix G shows FlashFFN is slower than SwiGLU at and before becoming faster at long . Do the reported timings include the full replacement block (, routing, fused per-head compute, concat, and ), or only the fused kernel starting from precomputed and as in Algorithm~1? Please also confirm the SwiGLU baseline uses for the 1.3B configuration. A component-wise latency table (disaggregate | core | aggregate) would clarify whether short- overhead comes from projections, routing, or kernel launch.
-
Decode-heavy and end-to-end serving. App.G varies prefill at bs=8; it does not cover decode (, often bs=1), where activation memory is small but routing and and overhead remain. Can you report (a) single-layer latency at with bs=1 where possible, (b) decode tokens/sec or per-step FFN time, (c) end-to-end latency or throughput for 20-layer FlashFFN vs 24-layer SwiGLU on short- and long-prompt settings, and (d) one mixed prefill+generation profile? Given App.G regressions at short , do you expect decode-heavy deployments to be net faster, slower, or neutral vs SwiGLU? If slower, please narrow latency claims in the abstract and Sec.~5.3 to long prefill or training.
-
MH-MoE baseline (closest prior). The FFN-side split/merge is structurally similar to Multi-Head Mixture-of-Experts (Wu et al., NeurIPS 2024). Can you add a parameter/FLOP-matched comparison to MH-MoE, ideally using the rebalanced formulation in MH-MoE: Multi-Head Mixture-of-Experts (Huang et al., 2024)? Even a 370M pilot with matched tokens would help separate (a) multi-head decomposition, (b) dense sub-network gating, and (c) the fused kernel.
-
Iso-depth quality ablation. Table~1 compares a 20-layer FlashFFN model to a 24-layer SwiGLU baseline under matched FLOPs. Can you report a 24-vs-24 comparison (same depth, same tokens), or show PPL vs number of layers at fixed per-step FLOPs? This would clarify whether the 1.3B PPL gap () comes from the FFN block design or mainly from depth rebalancing.
-
Fused monolithic SwiGLU baseline (lighter-weight). Related work cites Liger Kernel: Efficient Triton Kernels for LLM Training (Hsu et al., 2024). Can you report single-layer peak activation memory (and optionally latency) for fused SwiGLU with and without activation checkpointing, using the same sweep as App.~G? This would clarify how much of the memory advantage over SwiGLU comes from architecture vs from comparing against an unfused implementation.
Limitations
They are upfront (Appendix A on future sparse routing; Table 5 on depth/FLOP trade-off; checklist on single-run, no error bars), but several limitations that affect how to read the claims are missing or too brief.
Suggestions: (1) Qualify latency claims: App. G shows regressions at short ; no decode-heavy or / bs=1 evaluation, where activation savings are small but overhead may dominate. (2) State exactly what App. G times (full block – vs fused kernel only from , ). (3) Note that 1.3B PPL compares 20-layer FlashFFN to 24-layer SwiGLU (matched FLOPs, not iso-depth). (4) Flag Fig. 4 memory at 128M/370M as scaled, not measured. (5) Acknowledge missing empirical comparison to Multi-Head Mixture-of-Experts (Wu et al., NeurIPS 2024) when discussing architectural novelty.
Formatting concerns
No major NeurIPS formatting or anonymity violations that would affect scientific review.
4 comments
Follow-up on rebuttal: efficiency improved; problem/novelty framing and baselines still open
We thank the authors for the rebuttal and the new efficiency results. At this stage we summarize our remaining view.
-
Efficiency (largely improved).
The clarification that App. G covers the full FFN replacement block, together with the updated short-L, decode, and model-level prefill numbers, substantially strengthens the systems case relative to the submitted App. G (which showed short-L regressions). Please include absolute latencies and tokens/sec (not only speedups) in the revision, confirm whether model-level comparisons use 20-layer FlashFFN versus 24-layer SwiGLU, and align the abstract and Sec. 5.3 with the revised measurements. The peak-memory comparison against Torch / Liger / torch.compile / xFormers is convincing for the memory claim; latency against at least one strong fused SwiGLU baseline under the same L sweep would still help. -
Problem framing.
The claim that FlashAttention-style I/O-aware tiling “has not been brought to FFN” overstates the gap. Tiling and kernel fusion are already standard in LLM training and deployment. The research problem should not be framed as introducing tiling/fusion to FFN. A clearer statement is the SRAM-feasibility issue for one-pass fused monolithic SwiGLU at large d_model, and multi-head decomposition plus dense sub-networks as an architectural response. -
Novelty relative to established techniques and MH-MoE.
Tiling, fusion, accumulator/output blocking, and FFN-side multi-head split/merge are established; MH-MoE (Wu et al., 2024) already proposes a multi-head FFN-side decomposition. The distinctive contribution, if any, must therefore rest on the SRAM-feasibility argument, dense (rather than sparse) per-head sub-networks, and the fused kernel’s ability to avoid materializing [B, L, d_ff]—not on multi-head splitting itself. Table 1’s MH-FFN and Dense-MoE ablations are useful but are not an MH-MoE baseline. We understand the sparse params–FLOPs mismatch, yet even an imperfect matched pilot would strengthen the architectural claim. Without it, novelty and SOTA comparison on the architecture axis remain only partially convincing. -
Iso-depth quality.
The MH-FFN 20-layer control and d_h sweep help, but they do not replace a 24-versus-24 FlashFFN versus SwiGLU comparison. It remains unclear how much of the 1.3B PPL gain is the block design versus depth rebalancing under matched FLOPs.
We thank the reviewer for the constructive follow-up and are glad the new results have substantially addressed the efficiency concern. We address the four remaining points in order.
Efficiency. All four requests are adopted. (1) The revised App. G master table will report absolute latencies and tokens/sec alongside the speedups, for both the per-layer and the model-level measurements. (2) We confirm the model-level comparison is between the two trained Table 5 configurations, the 20-layer FlashFFN model and the 24-layer SwiGLU baseline. What the protocol aligns is the budget itself: total parameters (FlashFFN 1.3210B vs SwiGLU 1.3233B, matched within 0.18%, with FlashFFN the slightly smaller of the two) and total FLOPs; depth is each architecture's internal allocation of that shared budget. We also note that the FlashFFN model is the stronger of the two in quality (Tables 1 and 2), so the efficiency gains are not traded against quality. (3) The abstract, Sec. 5.3, and App. G will all be restated from the revised measurements. (4) On latency against a strong fused baseline: we have now measured Liger, a strong and widely deployed fused SwiGLU implementation, swapped into the baseline model, at the model level and in absolute tokens/sec, under the same sweeps:
| Prefill throughput, bs=8 | L=256 | 1024 | 4096 | 8192 | 16384 | 32768 |
|---|---|---|---|---|---|---|
| FlashFFN (tok/s) | 113.9K | 131.3K | 125.7K | 109.5K | 89.6K | 65.4K |
| Liger-fused SwiGLU (tok/s) | 111.3K | 125.0K | 115.6K | 100.0K | 79.0K | 56.1K |
| speedup | 1.02x | 1.05x | 1.09x | 1.09x | 1.13x | 1.17x |
| Decode throughput (CUDA graphs) | bs=1, 4K ctx | bs=1, 32K | bs=8, 4K | bs=8, 32K |
|---|---|---|---|---|
| FlashFFN (tok/s) | 576 | 305 | 2064 | 366 |
| Liger-fused SwiGLU (tok/s) | 548 | 272 | 1842 | 308 |
| speedup | 1.05x | 1.12x | 1.12x | 1.19x |
Liger moves the baseline only marginally at the model level (within about 2%), as expected for elementwise fusion, and the picture is unchanged: FlashFFN is faster than the Liger-fused baseline at every prefill length and in all four decode settings. In the revision we update every performance-related statement, covering tokens/sec, memory, latency, and speedup, to reflect these final measurements, including the fused-baseline comparisons above.
Problem framing. We agree, and in the revision we adopt exactly the framing the reviewer suggests: the research problem is stated as the SRAM-feasibility of one-pass fused execution for monolithic SwiGLU at large d_model (Prop. 3.1), with multi-head decomposition plus dense sub-networks presented as an architectural response. Claims of the form "tiling/fusion has not been brought to FFN" are removed, and the wording is made precise throughout.
Novelty. We agree with the reviewer's framing of where the contribution must rest; we would note that our contribution is neither multi-head splitting nor tiling in isolation, both of which are established, but their composition on the FFN. Tiling alone is SRAM-infeasible for the monolithic FFN (Prop. 3.1); the split alone is quality-neutral (MH-FFN control) and a memory problem (as MH-MoE itself reports). Composed, each resolves exactly what blocks the other, and the pair wins on both quality and memory. This "1+1>2" interaction is the central insight we offer the community, together with its concrete product: FlashFFN, a dense architecture that outperforms the dense SwiGLU baseline across the board, in quality, memory, and latency, at a matched parameter budget. We thank the reviewer for this suggestion; the revision refines the contribution statement accordingly and states this scope precisely.
On the MH-MoE comparison: Our reservation is not only the matching difficulty discussed earlier, but more fundamentally the scope of our claim. We do not claim that FlashFFN outperforms sparse MH-MoE architectures; we claim that, within a matched parameter budget, FlashFFN is a dense architecture that dominates the dense SwiGLU baseline on both quality and efficiency. An MH-MoE comparison, whatever its outcome, would neither support nor undermine that claim, while its training cost is substantial. Sparse routing is instead an orthogonal dimension: whether the Flash design composes with MoE-style sparsity is precisely what the FlashMoE follow-up future work investigates, with sparsity as the subject and MH-MoE as the natural baseline; we have preliminary experiments there (a shared cross-head expert pool with top-k routing) and commit to the rigorous comparison in that work. This paper lays the foundation first: the dense regime is an important branch of LLM research and production, and within this branch we establish the FlashFFN contribution. In the revision we further sharpen our claim to make this dense-regime scope explicit.
Iso-depth. We agree a 24-vs-24 comparison is an interesting control, and we will discuss this limitation explicitly in the revision. We would note, however, why we chose the protocol we did. When the block architecture changes, many single-axis alignments are available (iso-depth, iso-width, iso-d_ff), but they cannot all be satisfied simultaneously with total parameters and total FLOPs; fixing any single internal knob unmatches the global budget. Rebalancing depth to preserve the budget is therefore the standard protocol in cross-architecture comparisons (e.g., Dao & Gu, 2024). Under this protocol our claim is existential and deployment-relevant: within a fixed total parameter and FLOP budget, the FlashFFN family contains a model that is simultaneously better in quality and faster than the SwiGLU baseline, which is the question a practitioner with a fixed budget faces. For attribution within that result, the two controls we reported remain informative: the MH-FFN control also runs 20 layers under the same budget and gains nothing, so depth rebalancing alone does not produce the gain, and the d_h sweep moves quality substantially at fixed depth and parameters, so the block design does.
We thank the reviewer again for the exceptionally careful engagement, which has measurably improved the paper. With the systems case now resolved by direct measurement and the remaining items incorporated in the revision, we hope the reviewer will consider whether these resolutions merit a corresponding update to the overall assessment; we remain happy to run any further comparison within our means before the discussion closes.
- Rating
- 2/6
- Confidence
- 3/5
- Quality
- 1/4
- Clarity
- 1/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors propose a multi-head decomposition method that enables an I/O-aware implementation of FFNs. Building on the proposed method, they implement CUDA on Nvidia GPUs that reduces memory traffic by leveraging on-chip SRAM of Nvidia GPUs, in a manner similar to FlashAttention. The authors also provide theoretical analysis and proofs of the proposed decomposition method in Sections 2 and 3.
Strengths and weaknesses
A strength of the paper is its reproducibility. The authors release both CUDA and Triton implementations, which facilitates independent verification of the results and lowers the barrier for future work to reproduce, compare against, or extend the proposed method.
The paper has two major weaknesses. 1: Model-level acceleration evaluation for LLMs is more valuable than layer-level evaluation. Layer-level results can show kernel efficiency, but they may not reflect the end-to-end speedup of a full LLM system. The authors should provide model-level latency or throughput results to demonstrate the practical benefits for LLM inference and training. 2: The paper appears to overgeneralize its scope. Although SwiGLU is widely used in LLM models, accelerating SwiGLU-based FFNs does not mean accelerating all LLM models. FFN layers can use other activations, such as ReLU, GELU and so on. The authors should evaluate these variants or clearly state that the method is specialized for SwiGLU-based FFNs.
Questions
- The authors should provide clearer motivation for their work and better clarify the scope of the paper.
- The authors should improve the writing and notation. For example, many symbols are introduced in the abstract, but their full names are only provided later in Section 2.
Limitations
yes
Final justification
Thank you for the authors' rebuttal. I am still questioning the motivation: what percentage of the whole-model inference time is spent on the FFN? For acceleration works, the key is to identify a bottleneck and solve it. The two tables do not directly answer my question: whether or not the FFN is a major bottleneck of LLM inference.
Formatting concerns
N/A
1 comment
Rebuttal
We thank the reviewer for the careful review and address both weaknesses directly, with new measurements.
Model-level evaluation. We built both trained 1.3B architectures end-to-end (matched total parameters and FLOPs) and measured full-model performance on H100:
| Prefill bs=8 | L=256 | 1024 | 4096 | 8192 | 16384 | 32768 |
|---|---|---|---|---|---|---|
| speedup | 1.00x | 1.07x | 1.10x | 1.12x | 1.14x | 1.18x |
Decode throughput, measured under CUDA graphs with a dedicated decode-step kernel (released with the code), is likewise faster in all four settings:
| Decode tokens/sec | bs=1, 4K ctx | bs=1, 32K | bs=8, 4K | bs=8, 32K |
|---|---|---|---|---|
| FlashFFN | 572 | 302 | 2078 | 366 |
| SwiGLU | 531 | 266 | 1833 | 308 |
| speedup | 1.08x | 1.13x | 1.13x | 1.19x |
We note the quality results were already model-level (full 1.3B models trained on 100B tokens, evaluated on PPL and six downstream benchmarks); the new results extend the evaluation to model-level latency and throughput.
Scope beyond SwiGLU. In the revision we have narrowed the stated scope accordingly: the method is presented and evaluated for SwiGLU-based LLMs, as the reviewer suggests. It is worth noting that SwiGLU is both the strongest-performing GLU variant (Shazeer, 2020, arXiv:2002.05202) and the FFN adopted by essentially all modern open LLMs (Llama, Mistral, Qwen), so the narrowed scope covers the dominant deployment case.
Notation and writing. We thank the reviewer for the careful reading of the notation. In the revision every symbol in the abstract is defined at first use, and we have made a full-text pass to ensure the notation and prose read smoothly throughout.
Given the new model-level results and the clarified scope, we would be grateful if the reviewer would revisit their assessment; we are happy to answer any further questions during the discussion period.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 4/4
- Clarity
- 3/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper applies the general idea of FlashAttention to the FFN layer. They do this by implementing multihead decomposition of the feed forward block with a hidden dimension so that the tiles that can fit on SRAM. They show that their approach leads to a pareto improvement over SwiGLU FFN (4× lower peak activation memory at long sequences, and 1.3x faster inference on H100s). The FFN layer is a good target because the standard implementation materializes an intermediate activation tensor of shape L × dff (with dff in the thousands) in High Bandwith Memory between the two matmul stages, which dominates activation memory.
Strengths and weaknesses
Strengths
This main idea of this paper is elegant, clear, and well executed. The authors first motivate their design by explaining the limitations of SRAM, and then run multiple experiments across model sizes (370M and 1.3B) and against multiple baselines (e.g. PKV).
Section B1, for example, is helpful for building intutitions (e.g. “The final output is identical to the naive approach, but the intermediate matrix A was never stored in HBM.”)
They share anonymized Triton code and ThunderKittens/CUDA code for H100 GPUs, which is very helpful for gauging the quality of this work. One can see here that the authors pay attention to subtle details (e.g. in the kernel code, using exp2 instead of exp for potential speedup).
Weaknesses
-
The authors acknowledge that they have not tested their approach on sparse MoEs (confusingly the code uses “moe” to mean multi-expert dense subnetwork architecture, where all subnetworks are evaluated every step). There is no sparse-routing kernel, top-k, or dispatch logic if I understand correctly.
-
Table 3 has speedup results for 1.3B only - what does speedup look like for smaller models?
-
Why no PKV (control) for the 1.3B model in Table 2? Is it because it does so poorly at 370M?
-
Table 1 is missing 4 values - it would be helpful to complete.
Could be worth citing Deep Kernel Fusion for Transformers from February 2026 (contemporary work) https://arxiv.org/abs/2602.11808. They claim it cuts HBM traffic and boosts cache reuse, and get up to 13.2% speedup on H100 and 9.7% on A100 over SGLang
Minor Comments
-
Table 2 appears higher up on the page than Table 1
-
I find the Corollary language unnecessary (Corollary 3.1, 3.2, 3.3). Why not just explain in more straightforward language?
-
There are hints of Claude Code writing with phrases like “This is the load bearing claim of the paper” and 31 em-dashes. However this is not against NeurIPS policy. For those of us who use Claude everyday, it feels simultaneously familiar and mediocre.
Questions
I am trying to understand why downstream benchmarks would improve (Table 2) if everything remains roughly the same? If this method is a strict speedup, wouldn’t we expect performance to be roughly the same and the speedup to be the main result? My current belief is that this is because of the multihead decomposition, which is not equivalent to SwiGLU. Is this correct?
Limitations
Yes
Final justification
The authors have adequately addressed my concerns. I really like this paper and think it should be accepted.
Formatting concerns
NA
1 comment
Rebuttal
We thank the reviewer for the careful reading and for checking the released kernels.
Why does quality improve? Is it because of the multi-head decomposition? Yes, the gain comes from the multi-head decomposition working in concert with the dense-MoE routing network we designed for it: each alone is neutral or negative, and only their composition wins (Table 1). The same decomposition is also what makes the fused kernel SRAM-feasible — FlashFFN is a software–hardware co-design that improves model quality and speed at the same time.
Speedup for smaller models. Measured on H100 at the 128M and 370M FFN configurations. At the smaller scales the FlashFFN block is faster than the SwiGLU FFN, per layer, while using less memory:
| Scale | FlashFFN (ms) | SwiGLU (ms) | FlashFFN mem (MB) | SwiGLU mem (MB) |
|---|---|---|---|---|
| 128M | 0.60 | 0.68 | 71 | 106 |
| 370M | 1.03 | 1.11 | 95 | 143 |
The revision includes the full small-scale tables.
Missing Table 1/2 entries. Candidly: PKV is a validated-negative control (28.05 PPL vs 20.70 at 370M, and weakest on downstream) and spending a 100B-token 1.3B run on it would not be informative, so we reserved 1.3B compute for the main variant and the baseline. The R1/R2 controls exist at 128M and 370M because that is where the mechanistic attribution is done; 370M carries the full set. We will state this policy in the caption.
Deep Kernel Fusion (arXiv 2602.11808). Thank you for the pointer, we now cite this excellent and relevant work in Related Work for sharing insights on eliminating memory bandwith for model speedup.
Formatting and style. Table 1/2 float order fixed; the wording of the Corollaries are rewritten in the revision for better readability.
Finally, we sincerely thank the reviewer for the careful reading, the constructive suggestions, and the recognition of our work. The feedback has directly improved the paper, and we are happy to answer any further questions during the discussion period.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We thank the reviewer for an exceptionally thorough review. We address each question below, in order.
Q1 (timing scope and short-L). App. G timings cover the full replacement block including input projection W_in, routing, fused per-head kernel, concat, and W_out, not just the inner kernel alone; and we confirm the SwiGLU baseline uses d_ff=5504, the trained 1.3B configuration of Table 5. On the short-L regression: we have updated the kernel to perform better under short sequence length now. With the updated kernel, measured stably in our current environment at short lengths:
The short-length regression is closed and FlashFFN is now at parity or faster at every short length. We have measured the corresponding long lengths under the same protocol and will update App. G and its figures in full in the revision; the paper's conclusions are unchanged. We have updated the kernel code in the open-source repo.
Q2 (decode and end-to-end serving).
(a) Decode: we update the kernel so that the decoding part to use a dedicated decode-step kernel. Model-level per-token throughput under CUDA graphs indicates FlashFFN is faster in all four settings:
We have updated the kernel code in the open-source repo.
(b) Model-level end-to-end prefill latency, short through long prompts: parity at the shortest prompts and faster everywhere else:
The advantage widens monotonically with prompt length since the HBM traffic FlashFFN eliminates scales with L, while short prompts remain at parity rather than paying overhead.
(c) For the mixed prefill+generation profile, in industry practice, production serving increasingly disaggregates prefill and decode onto separate instances (P/D disaggregation), with which FlashFFN is fully compatible: each instance runs exactly one of the phases measured above. Therefore any mixed prefill+generation workload is therefore a combination of two phases in which FlashFFN is individually faster, so the end-to-end advantage holds regardless of the mix ratio.
Q3 (MH-MoE baseline). We agree MH-MoE is the closest architectural prior and cite it as such, but it is very hard to have emperical comparison between these two model architectures.
On the matched comparison: a parameter/FLOP-matched MH-MoE is not well-defined, because sparse top-k routing decouples total parameters from activated FLOPs. We are hard to compare those two because at matched FLOPs an MH-MoE exceeds our parameter budget, and at matched parameters it activates fewer FLOPs per token; either choice confounds the comparison, and the rebalanced formulation of Huang et al. addresses expert-width accounting rather than this decoupling therefore can only guarantee fair comparison when two architecture are both sparse. We do view sparse routing as the natural next step, and FlashFFN admits a stronger design for it than the existing MH-MoE formulation: since the block already carries H*E sub-networks, each head's experts can be shared across heads as a single expert pool with top-k routing on top, inheriting the fused kernel minorly changed. We have built preliminary experiments with this design and will pursue it as the follow-up work of the FlashFFN series.
On separating (a) multi-head decomposition, (b) dense sub-network gating, and (c) the fused kernel: Table 1 already provides exactly this separation under strict parameter/FLOP parity — MH-FFN isolates (a) alone and Dense-MoE isolates (b) alone; both fail to beat SwiGLU, and only their ratio-corrected composition wins. As for (c), the fused kernel computes the architecture exactly (App. B worked example; outputs match the reference implementation), so it contributes efficiency only and has zero effect on quality. The three factors are therefore disentangled by construction.
Q4 (iso-depth). Two pieces of evidence separate the block design from depth rebalancing. (a) Our MH-FFN control at 370M also runs 20 layers vs the baseline's 24 at matched budget and gains nothing (PPL 20.74 vs 20.70), therefore depth rebalancing alone does not produce the gain. (b) The d_h in {64,128,256} sweep at fixed depth and params moves 1.3B PPL across 16.33–17.27 indicates that the block design, not depth, controls quality. We note matched params+FLOPs with free depth is the standard cross-architecture protocol (Dao & Gu, 2024 https://arxiv.org/abs/2405.21060).
Q5 (fused monolithic SwiGLU). We measured peak memory for all fused SwiGLU baselines under identical scope:
As the table shows, FlashFFN is the most memory-efficient across the sweep. The reason is that it eliminates the [B,L,d_ff] intermediate itself — a large tensor that ordinary fusion cannot remove. Sec. 3 and App. B give the detailed memory and I/O-bandwidth analysis and explain how this architectural advantage yields the memory gain.
Clarity and limitations. We adopt all five suggestions verbatim: qualified latency claims; explicit App. G scope statement; 20L-vs-24L stated in the main text; Fig. 4 points re-measured rather than scaled; and the MH-MoE discussion above added to Related Work. FFN head count is now written H_ffn at first use to avoid collision with attention heads. On Fig. 4's 128M/370M points: we have now measured peak per-layer FFN memory at every scale directly (trained configurations, H100, bs=8, L=8064):
The advantage is uniform across scales (2.6x). We will update Fig. 4 — including its caption — from these measured values in the revision; the paper's claims are unaffected.
We believe these additions, including a fully specified efficiency protocol, end-to-end model-level results, and same-scope fused-baseline comparisons can directly address the review, and we would be grateful if the reviewer would reconsider their assessment in light of them.