ETC: Encoding Long and Structured Inputs in Transformers

By J. Ainslie, Santiago Ontañón, Chris Alberti, Vaclav Cvicek, Zachary Kenneth Fisher, Philip Pham, Anirudh Ravula, Sumit K. Sanghai, Qifan Wang, Li Yang. 2020

415 citations recorded by the source corpus.

Transformer models have advanced the state of the art in many Natural Language Processing (NLP) tasks. In this paper, we present a new Transformer architecture, Extended Transformer Construction (ETC), that addresses two key challenges of standard Transformer architectures, namely scaling input length and encoding structured inputs. To scale attention to longer inputs, we introduce a novel global-local attention mechanism between global tokens and regular input tokens. We also show that combining global-local attention with relative position encodings and a Contrastive Predictive Coding (CPC) pre-training objective allows ETC to encode structured inputs. We achieve state-of-the-art results on four natural language datasets requiring long and/or structured inputs.

Subfields: Artificial Intelligence, Natural Language Processing, Model Architectures

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Jianfeng Gao
  3. Luke S. Zettlemoyer
  4. Quoc V. Le
  5. Graham Neubig
  6. Noah A. Smith
  7. Percy Liang
  8. Yejin Choi

In Natural Language Processing

  1. Graham Neubig
  2. Luke S. Zettlemoyer
  3. Noah A. Smith
  4. Mohit Bansal
  5. Sebastian Ruder
  6. Hinrich Schütze
  7. Yejin Choi
  8. Percy Liang

In Model Architectures

  1. Yi Tay
  2. Mostafa Dehghani
  3. Donald Metzler
  4. J. Ainslie
  5. Dara Bahri
  6. Xiaogang Wang
  7. Alan L. Yuille
  8. Noah A. Smith

Citations in the corpus