Do Transformer Modifications Transfer Across Implementations and Applications?
Sharan Narang, Hyung Won Chung, Yi Tay, William Fedus, Thibault Fevry,, Michael Matena, Karishma Malkan, Noah Fiedel, Noam Shazeer, Zhenzhong Lan,, Yanqi Zhou, Wei Li, Nan Ding, Jake Marcus, Adam Roberts, Colin Raffel

TL;DR
This paper evaluates numerous Transformer modifications across various NLP tasks, finding that most do not significantly improve performance and highlighting the importance of implementation details.
Contribution
It provides a comprehensive, shared experimental evaluation of Transformer modifications, revealing limited transferability and emphasizing the role of implementation specifics.
Findings
Most modifications do not improve performance significantly
Beneficial variants are often from the same codebase or minor changes
Performance improvements depend heavily on implementation details
Abstract
The research community has proposed copious modifications to the Transformer architecture since it was introduced over three years ago, relatively few of which have seen widespread adoption. In this paper, we comprehensively evaluate many of these modifications in a shared experimental setting that covers most of the common uses of the Transformer in natural language processing. Surprisingly, we find that most modifications do not meaningfully improve performance. Furthermore, most of the Transformer variants we found beneficial were either developed in the same codebase that we used or are relatively minor changes. We conjecture that performance improvements may strongly depend on implementation details and correspondingly make some recommendations for improving the generality of experimental results.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗mosaicml/mosaic-bert-basemodel· 90 dl· ♡ 4790 dl♡ 47
- 🤗mosaicml/mosaic-bert-base-seqlen-512model· 15 dl· ♡ 415 dl♡ 4
- 🤗mosaicml/mosaic-bert-base-seqlen-1024model· 250 dl· ♡ 15250 dl♡ 15
- 🤗mosaicml/mosaic-bert-base-seqlen-2048model· 15 dl· ♡ 1915 dl♡ 19
- 🤗mosaicml/mosaic-bert-base-seqlen-256model· 7 dl· ♡ 27 dl♡ 2
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNatural Language Processing Techniques · Topic Modeling · Software Engineering Research
MethodsLinear Layer · Absolute Position Encodings · Position-Wise Feed-Forward Layer · Residual Connection · Dense Connections · Label Smoothing · Dropout · Attention Is All You Need · Layer Normalization · Softmax
