Lune

AAAI2021Top-tier venue

An Efficient Transformer Decoder with Compressed Sub-layers

Yanyang Li, Ye Lin, Tong Xiao, Jingbo Zhu

Abstract

The large attention-based encoder-decoder network (Transformer) has become prevailing recently due to its effectiveness. But the high computation complexity of its decoder raises the inefficiency issue. By examining the mathematic formulation of the decoder, we show that under some mild conditions, the architecture could be simplified by compressing its sub-layers, the basic building block of Transformer, and achieves a higher parallelism. We thereby propose Compressed Attention Network, whose decoder layer consists of only one sub-layer instead of three. Extensive experiments on 14 WMT machine translation tasks show that our model is 1.42x faster with performance on par with a strong baseline. This strong baseline is already 2x faster than the widely used standard baseline without loss in performance.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • RankNAS: Efficient Neural Architecture Search by Pairwise Ranking cites On Layer Normalization in the Transformer Architecture
  • Efficient Inference for Multilingual Neural Machine Translation cites Shallow-to-Deep Training for Neural Machine Translation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Towards Continual Knowledge Learning of Language ModelsJoel Jang, Seonghyeon Ye, Sohee Yang, Joongbo Shin et al.ICLR 2022 · 204 citations
  2. UniTabE: A Universal Pretraining Protocol for Tabular Foundation Model in Data ScienceYazheng Yang, Yuqi Wang, Guang Liu, Ledell Wu et al.ICLR 2024 · 35 citations
  3. RankNAS: Efficient Neural Architecture Search by Pairwise RankingChi Hu, Chenglong Wang, Xiangnan Ma, Xia Meng et al.EMNLP 2021 · 10 citations
  4. Probing Structured Pruning on Multilingual Pre-trained Models: Settings, Algorithms, and EfficiencyYanyang Li, Fuli Luo, Runxin Xu, Songfang Huang et al.ACL 2022 · 3 citations
  5. Efficient Inference for Multilingual Neural Machine TranslationAlexandre Berard, Dain Lee, Stéphane Clinchant, Kweon Woo Jung et al.EMNLP 2021

Builds on5

  1. Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 citations
  2. On Layer Normalization in the Transformer ArchitectureRuibin Xiong, Yunchang Yang, Di He, Kai Zheng et al.ICML 2020 · 1,388 citations
  3. Reducing Transformer Depth on Demand with Structured DropoutAngela Fan, Edouard Grave, Armand JoulinICLR 2020 · 695 citations
  4. Shallow-to-Deep Training for Neural Machine TranslationBei Li, Ziyang Wang, Hui Liu, Yufan Jiang et al.EMNLP 2020 · 41 citations
  5. Neural Machine Translation with Joint RepresentationYanyang Li, Qiang Wang, Tong Xiao, Tongran Liu et al.AAAI 2020 · 10 citations

Related papers

  1. Learning Hard Retrieval Decoder Attention for TransformersHongfei Xu, Qiuhui Liu, Josef van Genabith, Deyi XiongEMNLP Findings 2021
  2. Bag of Tricks for Optimizing Transformer EfficiencyYe Lin, Yanyang Li, Tong Xiao, Jingbo ZhuEMNLP Findings 2021 · 4 citations
  3. Glancing Transformer for Non-Autoregressive Neural Machine TranslationLihua Qian, Hao Zhou, Yu Bao, Mingxuan Wang et al.ACL 2021
  4. Simplifying Transformer BlocksBobby He, Thomas HofmannICLR 2024 · 52 citations
  5. Attention-Only Transformers via Unrolled Subspace DenoisingPeng Wang, Yifu Lu, Yaodong Yu, Druv Pai et al.ICML 2025
Dusk over the sea between two cliffs drawn in fine vertical lines