FFN Fusion: Rethinking Sequential Computation in Large Language Models

A. Bercovich, Mohammad Dabbah, Omri Puny, Ido Galil, Amnon Geifman +13 more
1/1/2025
transformer-attention

No confident code implementation found for this paper.

Abstract

We introduce FFN Fusion , an architectural optimization technique that reduces sequential computation in large language models by identifying and exploiting natural opportunities for parallelization. Our key insight is that sequences of Feed-Forward Network (FFN) layers, particularly those remaining after the removal of specific attention layers, can often be parallelized with minimal accuracy impact.

Show full abstract

We develop a principled methodology for identifying and fusing such sequences, transforming them into parallel operations that significantly reduce inference latency while preserving model behavior. Applying these techniques to Llama-3 . 1 - 405 B-Instruct, we create Llama-Nemotron-Ultra-253 B-Base (Ultra-253 B-Base), an efficient model that achieves a 1 . 71 × speedup in inference latency and 35 × lower per token cost while maintaining strong performance across benchmarks. Most intriguingly, we find that even full transformer blocks containing both attention and FFN layers can sometimes be parallelized, suggesting new directions for neural architecture design.

DOISemantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{bercovich2025fusion,
  title  = {FFN Fusion: Rethinking Sequential Computation in Large Language Models},
  author = {A. Bercovich and Mohammad Dabbah and Omri Puny and Ido Galil and Amnon Geifman and Yonatan Geifman and I. Golan and Ehud Karpas and Itay Levy and Zach Moshe and Najeeb Nabwani and Tomer Ronen and I. Schen and Elad Segal and Ido Shahaf and Oren Tropp and Ran Zilberstein and Ran El-Yaniv},
  year   = {2025},
  doi    = {10.48550/arXiv.2503.18908},
  url    = {https://doi.org/10.48550/arXiv.2503.18908},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/a23a7dfc30b5b6666acc2f7eb109ce65fc107c9b.svg)](https://codeofpaper.com/paper/a23a7dfc30b5b6666acc2f7eb109ce65fc107c9b)

Discussion