paper-with-me

Papers

Improving Transformer Models by Reordering their Sublayers

2019-11-10 · ACL 2020 6 · Ofir Press, Noah A. Smith, Omer Levy

Multilayer transformer networks consist of interleaved self-attention and feedforward sublayers. Could ordering the sublayers in a different pattern lead to better performance? We generate randomly ordered transformers and train them with the language modeling objective. We observe that some of these models are able to achieve better performance than the interleaved baseline, and that those successful variants tend to have more self-attention at the bottom and more feedforward sublayers at the top. We propose a new transformer pattern that adheres to this property, the sandwich transformer, and show that it improves perplexity on multiple word-level and character-level language modeling benchmarks, at no cost in parameters, memory, or training time. However, the sandwich reordering pattern does not guarantee performance gains across every task, as we demonstrate on machine translation models. Instead, we suggest that further exploration of task-specific sublayer reorderings is needed in order to unlock additional gains.

📄 PDF Abstract BibTeX arXiv:1911.03864

Code (2)

JunnYu/x-transformers-paddle jax
ofirpress/sandwich_transformer pytorch

Tasks

Language ModelingLanguage ModellingMachine TranslationTranslation

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
L1 Regularization $L_{1}$ Regularization is a regularization technique applied to the weights of a neural network. We minimize a loss function compromising both the primary loss function and a…
Embedding Dropout Embedding Dropout is equivalent to performing dropout on the embedding matrix at a word level, where the dropout is broadcast…
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
Adaptive Masking 설명 없음
Adaptive Span Transformer 설명 없음
Sandwich Transformer A Sandwich Transformer is a variant of a Transformer that reorders sublayers in the architecture to achieve better…
Residual Connection 설명 없음

Similar Papers 제목 키워드 기반

Greedy Ordering of Layer Weight Matrices in Transformers Improves Translation

2023-02-04 · Elicia Ye

Prior work has attempted to understand the internal structures and functionalities of Transformer-based encoder-decoder architectures on the level of multi-head attention and feed-forward sublayers. Interpretations have …

DecoderTranslation

Merging Feed-Forward Sublayers for Compressed Transformers

2025-01-10 · Neha Verma, Kenton Murray, Kevin Duh

With the rise and ubiquity of larger deep learning models, the need for high-quality compression techniques is growing in order to deploy these models widely. The sheer parameter count of these models makes it difficult …

image-classificationImage ClassificationLanguage ModelingLanguage Modelling+2

Mask Attention Networks: Rethinking and Strengthen Transformer

2021-03-25 · NAACL 2021 4 · Zhihao Fan, Yeyun Gong, Dayiheng Liu, Zhongyu Wei 외

Transformer is an attention-based neural network, which consists of two sublayers, namely, Self-Attention Network (SAN) and Feed-Forward Network (FFN). Existing research explores to enhance the two sublayers separately t…

Abstractive Text SummarizationMachine TranslationRepresentation LearningText Summarization+1

Neural Machine Translation with Reordering Embeddings

2019-07-01 · ACL 2019 7 · Kehai Chen, Rui Wang, Masao Utiyama, Eiichiro Sumita

The reordering model plays an important role in phrase-based statistical machine translation. However, there are few works that exploit the reordering information in neural machine translation. In this paper, we propose …

DecoderMachine TranslationSentenceTranslation

Explicit Reordering for Neural Machine Translation

2020-04-08 · Kehai Chen, Rui Wang, Masao Utiyama, Eiichiro Sumita

In Transformer-based neural machine translation (NMT), the positional encoding mechanism helps the self-attention networks to learn the source representation with order dependency, which makes the Transformer-based NMT a…

Machine TranslationNMTSentenceTranslation