paper-with-me

홈 › Papers

ETC: Encoding Long and Structured Inputs in Transformers

2020-04-17 · EMNLP 2020 11 · Joshua Ainslie, Santiago Ontanon, Chris Alberti, Vaclav Cvicek, Zachary Fisher, Philip Pham, Anirudh Ravula, Sumit Sanghai, Qifan Wang, Li Yang

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.

📄 PDF Abstract BibTeX arXiv:2004.08483

Code (2)

google-research/google-research/tree/master/etcmodel 공식 구현 tf
google-research/longt5 tf

Tasks

PositionQuestion Answering

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Relative Position Encodings Relative Position Encodings are a type of position embeddings for Transformer-based models that attempts to exploit…
Global-Local Attention 설명 없음
ETC Extended Transformer Construction, or ETC, is an extension of the Transformer architecture with a new attention mechanism…
InfoNCE 설명 없음
Contrastive Predictive Coding Contrastive Predictive Coding (CPC) learns self-supervised representations by predicting the future in latent space by using powerful autoregressive models. The model uses a…

Similar Papers 제목 키워드 기반

Novel positional encodings to enable tree-structured transformers

2018-09-27 · Vighnesh Leonardo Shiv, Chris Quirk

With interest in program synthesis and similarly flavored problems rapidly increasing, neural models optimized for tree-domain problems are of great value. In the sequence domain, transformers can learn relationships acro…

Program SynthesisSemantic ParsingTranslation

Functional Interpolation for Relative Positions Improves Long Context Transformers

2023-10-06 · Shanda Li, Chong You, Guru Guruganesh, Joshua Ainslie 외

Preventing the performance decay of Transformers on inputs longer than those used for training has been an important challenge in extending the context length of these models. Though the Transformer architecture has fund…

Language ModelingLanguage ModellingPosition

Systematic Generalization and Emergent Structures in Transformers Trained on Structured Tasks

2022-10-02 · YuXuan Li, James L. McClelland

Transformer networks have seen great success in natural language processing and machine vision, where task objectives such as next word prediction and image classification benefit from nuanced context sensitivity across …

image-classificationImage ClassificationSystematic Generalization

Transformers and Cortical Waves: Encoders for Pulling In Context Across Time

2024-01-25 · Lyle Muller, Patricia S. Churchland, Terrence J. Sejnowski

The capabilities of transformer networks such as ChatGPT and other Large Language Models (LLMs) have captured the world's attention. The crucial computational mechanism underlying their performance relies on transforming…

Sentence

Promoting Graph Awareness in Linearized Graph-to-Text Generation

2020-12-31 · Findings (ACL) 2021 8 · Alexander Hoyle, Ana Marasović, Noah Smith

Generating text from structured inputs, such as meaning representations or RDF triples, has often involved the use of specialized graph-encoding neural networks. However, recent applications of pretrained transformers to…

DenoisingText Generation