IOT: Instance-wise Layer Reordering for Transformer Structures
Not on the map. Why?
Abstract (arXiv)
With sequentially stacked self-attention, (optional) encoder-decoder attention, and feed-forward layers, Transformer achieves big success in natural language processing (NLP), and many variants have been proposed. Currently, almost all these models assume that the layer order is fixed and kept the same across data samples. We observe that different data samples actually favor different orders of the layers. Based on this observation, in this work, we break the assumption of the fixed layer order in the Transformer and introduce instance-wise layer reordering into the model structure. Our Instance-wise Ordered Transformer (IOT) can model variant functions by reordered layers, which enables each sample to select the better one to improve the model performance under the constraint of almost the same number of parameters. To achieve this, we introduce a light predictor with negligible parameter and inference cost to decide the most capable and favorable layer order for any input sequence. Experiments on 3 tasks (neural machine translation, abstractive summarization, and code generation) and 9 datasets demonstrate consistent improvements of our method. We further show that our method can also be applied to other architectures beyond Transformer. Our code is released at Github.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 43 of its 58 references that are in the map. First posted on arXiv 5 Mar 2021.
Builds on
43 of 58 references.
References · 43
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020End-to-End Object Detection with Transformerscited by 7,414
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,475
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,739
- 2016Identity Mappings in Deep Residual Networkscited by 1,965
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
31 more
- 2020Reformer: The Efficient Transformercited by 1,668
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,488
- 2018Self-Attention with Relative Position Representationscited by 1,120
- 2019Cross-lingual Language Model Pretrainingcited by 1,090
- 2018Learning to Reweight Examples for Robust Deep Learningcited by 675
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 439
- 2019Depth-Adaptive Transformercited by 236
- 2020FastBERT: a Self-distilling BERT with Adaptive Inference Timecited by 226
- 2019Pay Less Attention with Lightweight and Dynamic Convolutionscited by 211
- 2018Scaling Neural Machine Translationcited by 204
- 2019The Evolved Transformercited by 180
- 2019Facebook FAIR's WMT19 News Translation Task Submissioncited by 179
- 2017Active Bias: Training More Accurate Neural Networks by Emphasizing High Variance Samplescited by 147
- 2020The Right Tool for the Job: Matching Model and Instance Complexitiescited by 126
- 2018Achieving Human Parity on Automatic Chinese to English News Translationcited by 119
- 2019Understanding and Improving Transformer From a Multi-Particle Dynamic System Point of Viewcited by 113
- 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 100
- 2019Graph Transformer for Graph-to-Sequence Learningcited by 82
- 2016Edinburgh Neural Machine Translation Systems for WMT 16cited by 76
- 2019Code Generation as a Dual Task of Code Summarizationcited by 62
- 2017A parallel corpus of Python functions and documentation strings for automated code documentation and code generationcited by 57
- 2019Improving Transformer Models by Reordering their Sublayerscited by 52
- 2019Improving Neural Language Modeling via Adversarial Trainingcited by 49
- 2019Learning Data Manipulation for Augmentation and Weightingcited by 45
- 2020Controlling Computation versus Quality for Neural Sequence Modelscited by 27
- 2018A Reinforced Topic-Aware Convolutional Sequence-to-Sequence Model for Abstractive Text Summarizationcited by 21
- 2017Weighted Transformer Network for Machine Translationcited by 16
- 2018Global Encoding for Abstractive Summarizationcited by 16
- 2019Concept Pointer Network for Abstractive Summarizationcited by 13
- 2019Joint Source-Target Self Attention with Locality Constraintscited by 4
- 2016Neural Headline Generation with Sentence-wise Optimizationcited by 1
Built on by
Citing papers per year: 2021: 2; 2022: 0; 2023: 2; 2024: 1.
5 papers.
- 2021Dual-view Molecule Pre-trainingcited by 27
- 2021UniDrop: A Simple yet Effective Technique to Improve Transformer without Extra Costcited by 11
- 2023Centered Self-Attention Layerscited by 7
- 2024LayerShuffle: Enhancing Robustness in Vision Transformers by Randomizing Layer Execution Ordercited by 2
- 2023Greedy Ordering of Layer Weight Matrices in Transformers Improves Translationcited by 0
- 2024LayerShuffle: Enhancing Robustness in Vision Transformers by Randomizing Layer Execution Order5 Jul 2024
- 2023Centered Self-Attention Layers2 Jun 2023
- 2023Greedy Ordering of Layer Weight Matrices in Transformers Improves Translation4 Feb 2023
- 2021Dual-view Molecule Pre-training17 Jun 2021
- 2021UniDrop: A Simple yet Effective Technique to Improve Transformer without Extra Cost11 Apr 2021