2023

Brainformers: Trading Simplicity for Efficiency

Zhou, Yanqi, Du, Nan, Huang, Yanping et al.

Understand

Transformers are central to recent successes in natural language processing and computer vision.

  • Transformers have a mostly uniform backbone where layers alternate between feed-forward and self-attention in order to build a deep network.
  • Here we investigate this design choice and find that more complex blocks that have different permutations of layer primitives can be more efficient.
  • Using this insight, we develop a complex block, named Brainformer, that consists of a diverse sets of layers such as sparsely gated feed-forward layers, dense feed-forward layers, attention layers, and various forms of layer normalization and activation functions.

Reading the bibliography…