mlsanityData to 7 Oct 2026

Iterative Decoding for Compositional Generalization in Transformers

arXiv 2110.04169 ↗First posted 8 Oct 2021cs.LG cs.CLcited by 6

Not on the map. Why?

Abstract (arXiv)

Deep learning models generalize well to in-distribution data but struggle to generalize compositionally, i.e., to combine a set of learned primitives to solve more complex tasks. In sequence-to-sequence (seq2seq) learning, transformers are often unable to predict correct outputs for longer examples than those seen at training. This paper introduces iterative decoding, an alternative to seq2seq that (i) improves transformer compositional generalization in the PCFG and Cartesian product datasets and (ii) evidences that, in these datasets, seq2seq transformers do not learn iterations that are not unrolled. In iterative decoding, training examples are broken down into a sequence of intermediate steps that the transformer learns iteratively. At inference time, the intermediate outputs are fed back to the transformer as intermediate inputs until an end-of-iteration token is predicted. We conclude by illustrating some limitations of iterative decoding in the CFQ dataset.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 20 of its 25 references that are in the map. First posted on arXiv 8 Oct 2021.

Builds on

20 of 25 references.

References · 20

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2018Self-Attention with Relative Position Representationscited by 1,112
  5. 2015Pointer Networkscited by 882
  6. 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
  7. 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 280
  8. 2019Compositionality decomposed: how do neural networks generalise?cited by 264
  9. 2016Incorporating Copying Mechanism in Sequence-to-Sequence Learningcited by 217
  10. 2019Good-Enough Compositional Data Augmentationcited by 158
  11. 2021PonderNet: Learning to Pondercited by 156
  12. 2018ListOps: A Diagnostic Dataset for Latent Tree Learningcited by 128
8 more
  1. 2019HIBERT: Document Level Pre-training of Hierarchical Bidirectional Transformers for Document Summarizationcited by 120
  2. 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
  3. 2020Compositional Generalization in Semantic Parsing: Pre-training vs. Specialized Architecturescited by 95
  4. 2021Making Transformers Solve Compositional Taskscited by 72
  5. 2020The EOS Decision and Length Extrapolationcited by 46
  6. 2016Pointing the Unknown Wordscited by 42
  7. 2018Memorize or generalize? Searching for a compositional RNN in a haystackcited by 41
  8. 2021Improving Compositional Generalization in Classification Tasks via Structure Annotationscited by 12

Built on by

Cited by year

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

6 papers.