HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

OmniNet: Omnidirectional Representations from Transformers

Yi Tay Mostafa Dehghani Vamsi Aribandi Jai Gupta Philip Pham Zhen Qin Dara Bahri Da-Cheng Juan Donald Metzler

OmniNet: Omnidirectional Representations from Transformers

Abstract

This paper proposes Omnidirectional Representations from Transformers (OmniNet). In OmniNet, instead of maintaining a strictly horizontal receptive field, each token is allowed to attend to all tokens in the entire network. This process can also be interpreted as a form of extreme or intensive attention mechanism that has the receptive field of the entire width and depth of the network. To this end, the omnidirectional attention is learned via a meta-learner, which is essentially another self-attention based model. In order to mitigate the computationally expensive costs of full receptive field attention, we leverage efficient self-attention models such as kernel-based (Choromanski et al.), low-rank attention (Wang et al.) and/or Big Bird (Zaheer et al.) as the meta-learner. Extensive experiments are conducted on autoregressive language modeling (LM1B, C4), Machine Translation, Long Range Arena (LRA), and Image Recognition. The experiments show that OmniNet achieves considerable improvements across these tasks, including achieving state-of-the-art performance on LM1B, WMT'14 En-De/En-Fr, and Long Range Arena. Moreover, using omnidirectional representation in Vision Transformers leads to significant improvements on image recognition tasks on both few-shot learning and fine-tuning setups.

Code Repositories

lucidrains/omninet-pytorch
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
language-modelling-on-one-billion-wordOmniNetT (Large)
Number of params: 100M
PPL: 21.5
language-modelling-on-one-billion-wordOmniNetB (Large)
PPL: 22
language-modelling-on-one-billion-wordOmniNetP (Large)
Number of params: 100M
PPL: 21.6
machine-translation-on-wmt2014-english-frenchOmniNetP
BLEU score: 42.6
Hardware Burden:
Operations per network pass:
machine-translation-on-wmt2014-english-germanOmniNetP
BLEU score: 29.8
Hardware Burden:
Operations per network pass:
machine-translation-on-wmt2017-chineseOmniNetP
BLEU: 23.0
machine-translation-on-wmt2017-englishOmniNetP
BLEU: 20.9
machine-translation-on-wmt2017-english-frenchOmniNetP
BLEU: 43.1
machine-translation-on-wmt2017-english-germanOmniNetP
BLEU: 29.0
machine-translation-on-wmt2017-russianOmniNetP
BLEU: 36.2

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
OmniNet: Omnidirectional Representations from Transformers | Papers | HyperAI