vix.ing · top · new · best · stats

ETC: Encoding Long and Structured Inputs in Transformers

2020/04/17 by Joshua Ainslie, Ainslie, Joshua, Santiago Ontañón +19 · 1 voice · 1 citation
Computer Science · Mathematics · #FOS: Computer and information sciences #Machine Learning (cs.LG) #Machine Learning (stat.ML) #Multimodal Machine Learning Applications #Natural Language Processing Techniques #Topic Modeling #cs.LG #stat.ML

paper · pdf · doi:10.48550/arxiv.2004.08483

Accepted at EMNLP 2020

openalex publication_date 2020/04/17 · arxiv published 2020/04/17 · arxiv created 2020/10/27 · arxiv updated 2020/10/28 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

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.

Citations

Cited by

Discussions

Related