mlsanityData to 14 Oct 2026

IOT: Instance-wise Layer Reordering for Transformer Structures

arXiv 2103.03457 ↗First posted 5 Mar 2021cs.CL cs.AIcited by 5

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  4. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  5. 2020End-to-End Object Detection with Transformerscited by 7,414
  6. 2015Rethinking the Inception Architecture for Computer Visioncited by 5,475
  7. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
  8. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
  9. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
  10. 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,739
  11. 2016Identity Mappings in Deep Residual Networkscited by 1,965
  12. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
31 more
  1. 2020Reformer: The Efficient Transformercited by 1,668
  2. 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,488
  3. 2018Self-Attention with Relative Position Representationscited by 1,120
  4. 2019Cross-lingual Language Model Pretrainingcited by 1,090
  5. 2018Learning to Reweight Examples for Robust Deep Learningcited by 675
  6. 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 439
  7. 2019Depth-Adaptive Transformercited by 236
  8. 2020FastBERT: a Self-distilling BERT with Adaptive Inference Timecited by 226
  9. 2019Pay Less Attention with Lightweight and Dynamic Convolutionscited by 211
  10. 2018Scaling Neural Machine Translationcited by 204
  11. 2019The Evolved Transformercited by 180
  12. 2019Facebook FAIR's WMT19 News Translation Task Submissioncited by 179
  13. 2017Active Bias: Training More Accurate Neural Networks by Emphasizing High Variance Samplescited by 147
  14. 2020The Right Tool for the Job: Matching Model and Instance Complexitiescited by 126
  15. 2018Achieving Human Parity on Automatic Chinese to English News Translationcited by 119
  16. 2019Understanding and Improving Transformer From a Multi-Particle Dynamic System Point of Viewcited by 113
  17. 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 100
  18. 2019Graph Transformer for Graph-to-Sequence Learningcited by 82
  19. 2016Edinburgh Neural Machine Translation Systems for WMT 16cited by 76
  20. 2019Code Generation as a Dual Task of Code Summarizationcited by 62
  21. 2017A parallel corpus of Python functions and documentation strings for automated code documentation and code generationcited by 57
  22. 2019Improving Transformer Models by Reordering their Sublayerscited by 52
  23. 2019Improving Neural Language Modeling via Adversarial Trainingcited by 49
  24. 2019Learning Data Manipulation for Augmentation and Weightingcited by 45
  25. 2020Controlling Computation versus Quality for Neural Sequence Modelscited by 27
  26. 2018A Reinforced Topic-Aware Convolutional Sequence-to-Sequence Model for Abstractive Text Summarizationcited by 21
  27. 2017Weighted Transformer Network for Machine Translationcited by 16
  28. 2018Global Encoding for Abstractive Summarizationcited by 16
  29. 2019Concept Pointer Network for Abstractive Summarizationcited by 13
  30. 2019Joint Source-Target Self Attention with Locality Constraintscited by 4
  31. 2016Neural Headline Generation with Sentence-wise Optimizationcited by 1

Built on by

Cited by year

Citing papers per year: 2021: 2; 2022: 0; 2023: 2; 2024: 1.

5 papers.