Iterative Decoding for Compositional Generalization in Transformers
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2015Pointer Networkscited by 882
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
- 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 280
- 2019Compositionality decomposed: how do neural networks generalise?cited by 264
- 2016Incorporating Copying Mechanism in Sequence-to-Sequence Learningcited by 217
- 2019Good-Enough Compositional Data Augmentationcited by 158
- 2021PonderNet: Learning to Pondercited by 156
- 2018ListOps: A Diagnostic Dataset for Latent Tree Learningcited by 128
8 more
- 2019HIBERT: Document Level Pre-training of Hierarchical Bidirectional Transformers for Document Summarizationcited by 120
- 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
- 2020Compositional Generalization in Semantic Parsing: Pre-training vs. Specialized Architecturescited by 95
- 2021Making Transformers Solve Compositional Taskscited by 72
- 2020The EOS Decision and Length Extrapolationcited by 46
- 2016Pointing the Unknown Wordscited by 42
- 2018Memorize or generalize? Searching for a compositional RNN in a haystackcited by 41
- 2021Improving Compositional Generalization in Classification Tasks via Structure Annotationscited by 12
Built on by
Citing papers per year: 2021: 1; 2022: 3; 2023: 1; 2024: 0; 2025: 1.
6 papers.
- 2022Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsingcited by 50
- 2021Improving Compositional Generalization with Latent Structure and Data Augmentationcited by 46
- 2022Recursive Decoding: A Situated Cognition Approach to Compositional Generation in Grounded Language Understandingcited by 3
- 2023A Hybrid System for Systematic Generalization in Simple Arithmetic Problemscited by 1
- 2022A Short Survey of Systematic Generalizationcited by 0
- 2025Learning neuro-symbolic convergent term rewriting systemscited by 0
- 2025Learning neuro-symbolic convergent term rewriting systems25 Jul 2025
- 2023A Hybrid System for Systematic Generalization in Simple Arithmetic Problems29 Jun 2023
- 2022A Short Survey of Systematic Generalization22 Nov 2022
- 2022Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsing24 May 2022
- 2022Recursive Decoding: A Situated Cognition Approach to Compositional Generation in Grounded Language Understanding27 Jan 2022
- 2021Improving Compositional Generalization with Latent Structure and Data Augmentation14 Dec 2021