- Rating
- 3
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
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.
Paper formatting concerns
No major NeurIPS formatting or anonymity violations that would affect scientific review.
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.