paper-with-me

Papers

Universal Transformers

2018-07-10 · ICLR 2019 5 · Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, Łukasz Kaiser

Recurrent neural networks (RNNs) sequentially process data by updating their state with each new data point, and have long been the de facto choice for sequence modeling tasks. However, their inherently sequential computation makes them slow to train. Feed-forward and convolutional architectures have recently been shown to achieve superior results on some sequence modeling tasks such as machine translation, with the added advantage that they concurrently process all inputs in the sequence, leading to easy parallelization and faster training times. Despite these successes, however, popular feed-forward sequence models like the Transformer fail to generalize in many simple tasks that recurrent models handle with ease, e.g. copying strings or even simple logical inference when the string or formula lengths exceed those observed at training time. We propose the Universal Transformer (UT), a parallel-in-time self-attentive recurrent sequence model which can be cast as a generalization of the Transformer model and which addresses these issues. UTs combine the parallelizability and global receptive field of feed-forward sequence models like the Transformer with the recurrent inductive bias of RNNs. We also add a dynamic per-position halting mechanism and find that it improves accuracy on several tasks. In contrast to the standard Transformer, under certain assumptions, UTs can be shown to be Turing-complete. Our experiments show that UTs outperform standard Transformers on a wide range of algorithmic and language understanding tasks, including the challenging LAMBADA language modeling task where UTs achieve a new state of the art, and machine translation where UTs achieve a 0.9 BLEU improvement over Transformers on the WMT14 En-De dataset.

📄 PDF Abstract BibTeX arXiv:1807.03819

Code (8)

tensorflow/tensor2tensor 공식 구현 tf
MostafaDehghani/bAbI-T2T tf
andreamad8/Universal-Transformer-Pytorch pytorch
cfiken/universal_transformer tf
kpot/keras-transformer tf
moon23k/Transformer_Archs pytorch
sidney1505/arc_maml_transformer tf
ypeleg/MinimalIsAllYouNeed

Tasks

Inductive BiasLAMBADALanguage ModelingLanguage ModellingLearning to ExecuteMachine TranslationTranslation

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 설명 없음
Residual Connection 설명 없음
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
Universal Transformer The Universal Transformer is a generalization of the Transformer architecture. Universal Transformers combine the…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…

Similar Papers 제목 키워드 기반

Fixed Universal Transformers

2026-05-29 · Jingwen Liu, Alexandr Andoni, Daniel Hsu arxiv

We introduce \emph{universal transformers}: fixed transformers that can simulate any transformer in a given class via a suitable input embedding. Analogous to a universal Turing machine, the input embedding encodes a des…

Investigating Recurrent Transformers with Dynamic Halt

2024-02-01 · Jishnu Ray Chowdhury, Cornelia Caragea

In this paper, we comprehensively study the inductive biases of two major approaches to augmenting Transformers with a recurrent mechanism: (1) the approach of incorporating a depth-wise recurrence similar to Universal T…

DiagnosticLanguage ModelingLanguage ModellingListOps

Sumformer: Universal Approximation for Efficient Transformers

2023-07-05 · Silas Alberti, Niclas Dern, Laura Thesing, Gitta Kutyniok

Natural language processing (NLP) made an impressive jump with the introduction of Transformers. ChatGPT is one of the most famous examples, changing the perception of the possibilities of AI even outside the research co…

Universal Approximation of Operators with Transformers and Neural Integral Operators

2024-09-01 · Emanuele Zappala, Maryam Bagherian

We study the universal approximation properties of transformers and neural integral operators for operators in Banach spaces. In particular, we show that the transformer architecture is a universal approximator of integr…

Is In-Context Universality Enough? MLPs are Also Universal In-Context

2025-02-05 · Anastasis Kratsios, Takashi Furuya

The success of transformers is often linked to their ability to perform in-context learning. Recent work shows that transformers are universal in context, capable of approximating any real-valued continuous function of a…

In-Context LearningInductive Bias