potentialpaper

FlashFFN: Multi-Head Decomposition Enables I/O-Aware Feed-Forward Network

Minshen Zhang, Xiang Hu, Jianguo Li, Wei Wu, Kewei Tu

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

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).

Code: https://github.com/alexzms/FlashMHF

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 paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
30 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:46 UTC.

Program Chairs · DecisionOpenReview ↗
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.

Area Chair FXkw · Meta-reviewOpenReview ↗
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.

Reviewer iEsDOpenReview ↗
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 dmodeld_{\mathrm{model}} on chip, which exceeds per-SM SRAM on common datacenter GPUs; reducing the accumulator to per-head width dh=dmodel/Hd_h = d_{\mathrm{model}}/H via multi-head decomposition is presented as the simplest way to make fused FFN execution feasible.

Architecturally, the FFN input X∈RL×dmodelX \in \mathbb{R}^{L \times d_{\mathrm{model}}} is projected by WinW_{\mathrm{in}} and split along the model dimension into HH heads. Within each head, EE parallel SwiGLU sub-networks of intermediate width de≈(8/3) dhd_e \approx (8/3)\,d_h are combined by per-token sigmoid-normalized gating; head outputs are concatenated and mapped back to dmodeld_{\mathrm{model}} by WoutW_{\mathrm{out}}. 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 L×deL \times d_e 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 H=1H=1, 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 L×dffL \times d_{\mathrm{ff}} activations in HBM.
  • Prop.3.1 / Fig.1 / App.B motivate multi-head dhd_h 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 (dh=128d_h=128, H=16H=16, E=15E=15, de=384d_e=384).

Clarity

  • Figs.2--3, Eqs.~(5)--(8): full block via WinW_{\mathrm{in}}, splitH\mathrm{split}_{H}, EE sub-networks, and WoutW_{\mathrm{out}}.
  • FFN heads ≠\neq attention heads (16 vs 32 at 1.3B).
  • Table5 documents matched params/FLOPs and 24L vs 20L trade-off.

Significance

  • Up to ∼3\sim 3-4×4\times lower activation memory at long LL (prefill-relevant).
  • 1.3B: PPL 17.17→16.3317.17 \rightarrow 16.33 and downstream gains at dh=128d_h=128.
  • Pseudocode + configs support reproducibility.

Originality

  • SRAM constraint →\rightarrow architecture-kernel co-design is a useful lens.
  • Links accumulator width dhd_h to on-chip feasibility.

Weaknesses

Quality — latency and deployment (Priority 1)

  • Latency is regime-dependent: FlashFFN is slower at short LL (1.051.05 vs 0.66 ms0.66\,\mathrm{ms} at L=192L=192; 1.541.54 vs 1.321.32 at L=384L=384), only faster at long LL (peak ∼1.32×\sim 1.32\times at L=8064L=8064; App.~G).
  • Benchmarks are prefill-like (LL sweep, bs=8); no decode-like setting (L=1L=1) 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 WinW_{\mathrm{in}}, routing, head merge, and output projection WoutW_{\mathrm{out}}, whose matmul cost scales as Ldmodel2L d_{\mathrm{model}}^2 per projection and may dominate at small LL.
  • Algorithm~1 starts from pre-formed QQ and RR, so reported latency may cover the fused inner loop only, not full X→OX \rightarrow O.
  • No FLOP/latency breakdown (disaggregate | core | aggregate); App.~G does not explicitly state SwiGLU dff=5504d_{\mathrm{ff}}=5504 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): WheadW_{\mathrm{head}}/split/experts/merge vs WinW_{\mathrm{in}}/split/sub-networks/WoutW_{\mathrm{out}}.
  • 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 HH.
  • Cost and inclusion of WinW_{\mathrm{in}}, router, and WoutW_{\mathrm{out}} in App.~G timings are not stated clearly.
Questions

Questions for Authors

  1. Latency scope and short-LL regression (App.~G). Appendix G shows FlashFFN is slower than SwiGLU at L=192L=192 and L=384L=384 before becoming faster at long LL. Do the reported timings include the full replacement block (XWinX W_{\mathrm{in}}, routing, fused per-head compute, concat, and WoutW_{\mathrm{out}}), or only the fused kernel starting from precomputed QQ and RR as in Algorithm~1? Please also confirm the SwiGLU baseline uses dff=5504d_{\mathrm{ff}}=5504 for the 1.3B configuration. A component-wise latency table (disaggregate | core | aggregate) would clarify whether short-LL overhead comes from projections, routing, or kernel launch.

  2. Decode-heavy and end-to-end serving. App.G varies prefill LL at bs=8; it does not cover decode (L≈1L \approx 1, often bs=1), where activation memory is small but routing and WinW_{\mathrm{in}} and WoutW_{\mathrm{out}} overhead remain. Can you report (a) single-layer latency at L∈{1,8,64}L \in \{1, 8, 64\} 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 LL, 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.

  3. 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.

  4. 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 (17.17→16.3317.17 \rightarrow 16.33) comes from the FFN block design or mainly from depth rebalancing.

  5. 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 LL 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 LL; no decode-heavy or L≈1L \approx 1 / bs=1 evaluation, where activation savings are small but overhead may dominate. (2) State exactly what App. G times (full block WinW_{\mathrm{in}}–WoutW_{\mathrm{out}} vs fused kernel only from QQ, RR). (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
Authors · RebuttalOpenReview ↗
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:

bs=8 L=192 384 768 1536 1920
speedup 1.00x 1.03x 1.04x 1.05x 1.07x

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:

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 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:

Prefill bs=8 L=256 1024 4096 8192 16384 32768
speedup 1.00x 1.07x 1.10x 1.12x 1.14x 1.18x

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:

Peak memory (MB) L=4032 L=8064 L=16128 L=32832
Torch eager 1240 2384 4666 9398
Liger 1240 2384 4666 9398
torch.compile 901 1706 3311 6640
xFormers 1579 3062 6020 12156
FlashFFN 524 931 1746 3434

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):

Scale FlashFFN SwiGLU
128M 348 MB 903 MB
370M 460 MB 1210 MB
1.3B 931 MB 2384 MB

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.

Reviewer iEsD · CommentOpenReview ↗

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

Authors · CommentOpenReview ↗

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.

Authors · CommentOpenReview ↗

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.

Reviewer UAELOpenReview ↗
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
  1. The authors should provide clearer motivation for their work and better clarify the scope of the paper.
  2. 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
Authors · RebuttalOpenReview ↗
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.

Reviewer eS5XOpenReview ↗
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
Authors · RebuttalOpenReview ↗
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.

Missing a submission?

Loading the discussion…