NeurIPS 2026QuestionsPapersAreasAboutMarkdown

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

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

NeurIPS page · Open on the map

Category: Efficient LLM Inference & Training › Efficient Attention Mechanisms · Type: new method · Keywords: feed-forward network optimization, SRAM-feasible design, multi-head decomposition, I/O-aware tiling, large language model efficiency

Areas: Memory › Model Memory Optimization › Efficient Attention for LLMs; Model Architectures & Sequence Modeling › Language Model Architectures › Efficient Attention

Summary

FlashFFN introduces a multi-head decomposition of the feed-forward network to make it fit within on-chip SRAM, achieving up to 4× lower activation memory and better quality than the standard SwiGLU.

Explained to a 5-year-old

The big computer brain uses a part called the feed-forward network that needs a lot of memory. This memory is like a big bucket that can overflow. By splitting that bucket into many small buckets, the brain can hold more information without getting too full. Adding a tiny helper makes sure the information stays balanced. This helps the brain run faster and use less memory, so it can think bigger and quicker.

Explained to a 5-year-old, longer

Imagine you have a huge box of LEGO bricks that you need to move from one place to another. The box is so big that it takes a lot of space and is hard to carry. You decide to open the box and split the bricks into many smaller boxes, each just big enough to fit comfortably in your hands. This way, you can carry each small box easily without dropping any bricks. But when you split them, the bricks might not be evenly distributed, so you add a small helper that sorts the bricks back to the right proportions. With these smaller, balanced boxes, you can move many more bricks at once, and you don’t need a bigger truck - you just use the same truck more efficiently. This makes the whole process faster and lets you build even bigger creations without running out of space.

For a technical reader

The paper identifies a hardware limitation where the FFN’s intermediate tensor exceeds on-chip SRAM for large models. By decomposing the FFN across multiple heads, the per-head accumulator fits within SRAM, and a dense correction restores the optimal expansion ratio. This yields an SRAM-feasible FFN that reduces activation memory, speeds up inference, and improves downstream task performance.

Problem

Modern Transformers' feed-forward networks (FFNs) consume large activation memory because the intermediate tensor is stored in high-bandwidth memory. Existing I/O-aware tiling techniques work for the attention module but not for FFN due to hardware geometry constraints that require an on-chip accumulator larger than available SRAM for typical model widths.

Method

The approach decomposes the FFN across multiple heads, reducing the per-head accumulator width to fit within on-chip SRAM, and adds a dense MoE-like correction to preserve the optimal expansion ratio. This yields an SRAM-feasible FFN block that can be tiled similarly to FlashAttention.

Results

The approach achieves up to ~4× lower peak activation memory at long sequences, inference latency matching or improving SwiGLU (up to ~1.32× faster on H100), and quality gains of up to -0.84 perplexity and +1.60 accuracy across six downstream benchmarks at 1.3B parameters.

Contributions

It identifies the SRAM-feasibility constraint for FFNs, proposes multi-head decomposition with a dense correction to keep the expansion ratio optimal, and demonstrates Pareto improvements in memory, speed, and downstream task performance.

Practical relevance

The approach enables larger models and longer sequences on existing GPUs by drastically reducing activation memory, leading to faster and more memory-efficient inference for large language models.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction