Fast Feedforward Networks

Peter Belcak, Roger Wattenhofer
8/28/2023
cs.LGcs.AIcs.PF

No official code found. Best implementation: pbelcak/fastfeedforward (223 stars, MIT, last commit 2024-04-09).

Abstract

We break the linear link between the layer size and its inference cost by introducing the fast feedforward (FFF) architecture, a log-time alternative to feedforward networks. We demonstrate that FFFs are up to 220x faster than feedforward networks, up to 6x faster than mixture-of-experts networks, and exhibit better training properties than mixtures of experts thanks to noiseless conditional execution. Pushing FFFs to the limit, we show that they can use as little as 1% of layer neurons for inference in vision transformers while preserving 94.2% of predictive performance.

View on arXivView PDF

Code Implementations(1)

MIT

A repository for log-time feedforward networks

22321Python, Jupyter NotebookAug 27, 20232 years agoMIT

Similar Papers

Cite this paper

@article{belcak2023fast,
  title  = {Fast Feedforward Networks},
  author = {Peter Belcak and Roger Wattenhofer},
  year   = {2023},
  eprint = {2308.14711},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.14711v2}
}

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/2308.14711.svg)](https://codeofpaper.com/paper/2308.14711)

Discussion