Back to Annotated Deep Learning Paper Implementations

FNet: Mixing Tokens with Fourier Transforms

docs/transformers/fnet/readme.html

latest923 B
Original Source

hometransformersfnet

View code on Github

#

FNet: Mixing Tokens with Fourier Transforms

This is a PyTorch implementation of the paper FNet: Mixing Tokens with Fourier Transforms.

This paper replaces the self-attention layer with two Fourier transforms to mix tokens. This is a 7X more efficient than self-attention. The accuracy loss of using this over self-attention is about 92% for BERT on GLUE benchmark.

labml.ai