On Sparsifying Encoder Outputs in Sequence-to-Sequence Models
Not on the map. Why?
Abstract (arXiv)
Sequence-to-sequence models usually transfer all encoder outputs to the decoder for generation. In this work, by contrast, we hypothesize that these encoder outputs can be compressed to shorten the sequence delivered for decoding. We take Transformer as the testbed and introduce a layer of stochastic gates in-between the encoder and the decoder. The gates are regularized using the expected value of the sparsity-inducing L0penalty, resulting in completely masking-out a subset of encoder outputs. In other words, via joint training, the L0DROP layer forces Transformer to route information through a subset of its encoder states. We investigate the effects of this sparsification on two machine translation and two summarization tasks. Experiments show that, depending on the task, around 40-70% of source encodings can be pruned without significantly compromising quality. The decrease of the output length endows L0DROP with the potential of improving decoding efficiency, where it yields a speedup of up to 1.65x on document summarization tasks against the standard Transformer. We analyze the L0DROP behaviour and observe that it exhibits systematic preferences for pruning certain word types, e.g., function words and punctuation get pruned most. Inspired by these observations, we explore the feasibility of specifying rule-based patterns that mask out encoder outputs based on information such as part-of-speech tags, word frequency and word position.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). First posted on arXiv 24 Apr 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 1; 2023: 2; 2024: 1; 2025: 1.
8 papers.
- 2021Learning When to Translate for Streaming Speechcited by 30
- 2024MultiMax: Sparse and Multi-Modal Attention Learningcited by 5
- 2025Encoder-Decoder or Decoder-Only? Revisiting Encoder-Decoder Large Language Modelcited by 4
- 2022Evade the Trap of Mediocrity: Promoting Diversity and Novelty in Text Generation via Concentrating Attentioncited by 3
- 2023Learning to Group Auxiliary Datasets for Moleculecited by 3
- 2021Inducing Meaningful Units from Character Sequences with Dynamic Capacity Slot Attentioncited by 2
- 2021Bag-of-Vectors Autoencoders for Unsupervised Conditional Text Generationcited by 1
- 2023On the Relationship between Skill Neurons and Robustness in Prompt Tuningcited by 1
- 2025Encoder-Decoder or Decoder-Only? Revisiting Encoder-Decoder Large Language Model30 Oct 2025
- 2024MultiMax: Sparse and Multi-Modal Attention Learning3 Jun 2024
- 2023On the Relationship between Skill Neurons and Robustness in Prompt Tuning21 Sep 2023
- 2023Learning to Group Auxiliary Datasets for Molecule8 Jul 2023
- 2022Evade the Trap of Mediocrity: Promoting Diversity and Novelty in Text Generation via Concentrating Attention14 Nov 2022
- 2021Bag-of-Vectors Autoencoders for Unsupervised Conditional Text Generation13 Oct 2021
- 2021Learning When to Translate for Streaming Speech15 Sep 2021
- 2021Inducing Meaningful Units from Character Sequences with Dynamic Capacity Slot Attention1 Feb 2021