When Can Transformers Ground and Compose: Insights from Compositional Generalization Benchmarks
Not on the map. Why?
Abstract (arXiv)
Humans can reason compositionally whilst grounding language utterances to the real world. Recent benchmarks like ReaSCAN use navigation tasks grounded in a grid world to assess whether neural models exhibit similar capabilities. In this work, we present a simple transformer-based model that outperforms specialized architectures on ReaSCAN and a modified version of gSCAN. On analyzing the task, we find that identifying the target location in the grid world is the main challenge for the models. Furthermore, we show that a particular split in ReaSCAN, which tests depth generalization, is unfair. On an amended version of this split, we show that transformers can generalize to deeper input structures. Finally, we design a simpler grounded compositional generalization task, RefEx, to investigate how transformers reason compositionally. We show that a single self-attention layer with a single head generalizes to novel combinations of object attributes. Moreover, we derive a precise mathematical construction of the transformer's computations from the learned network. Overall, we provide valuable insights about the grounded compositional generalization task and the behaviour of transformers on it, which would be useful for researchers working in this area.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 27 of its 36 references that are in the map. First posted on arXiv 23 Oct 2022.
Builds on
27 of 36 references.
References · 27
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2019ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Taskscited by 2,219
- 2016CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoningcited by 1,445
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 831
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
- 2015Neural Module Networkscited by 375
- 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 280
- 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
15 more
- 2021Thinking Like Transformerscited by 182
- 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
- 2020A Benchmark for Systematic Generalization in Grounded Language Understandingcited by 108
- 2019Compositional generalization through meta sequence-to-sequence learningcited by 98
- 2020Compositional Generalization via Neural-Symbolic Stack Machinescited by 80
- 2019CLEVR-Ref+: Diagnosing Visual Reasoning with Referring Expressionscited by 73
- 2019CLOSURE: Assessing Systematic Generalization of CLEVR Modelscited by 63
- 2019Compositional Generalization for Primitive Substitutionscited by 48
- 2021Learning Algebraic Recombination for Compositional Generalizationcited by 31
- 2022Revisiting the Compositional Generalization Abilities of Neural Sequence Modelscited by 20
- 2021ReaSCAN: Compositional Reasoning in Language Groundingcited by 19
- 2020Compositional Networks Enable Systematic Generalization for Grounded Language Understandingcited by 18
- 2020Systematic Generalization on gSCAN with Language Conditioned Embeddingcited by 15
- 2021Systematic Generalization on gSCAN: What is Nearly Solved and What is Next?cited by 15
- 2020Think before you act: A simple baseline for compositional generalizationcited by 11
Built on by
Citing papers per year: 2023: 5; 2024: 2; 2025: 1; 2026: 3.
11 papers.
- 2023ReCOGS: How Incidental Details of a Logical Form Overshadow an Evaluation of Semantic Interpretationcited by 24
- 2024A Survey on Compositional Learning of AI Models: Theoretical and Experimental Practicescited by 15
- 2023MAGNIFICo: Evaluating the In-Context Learning Ability of Large Language Models to Generalize to Novel Interpretationscited by 7
- 2023Can LLM find the green circle? Investigation and Human-guided tool manipulation for compositional generalizationcited by 7
- 2024What makes Models Compositional? A Theoretical View: With Supplementcited by 5
- 2025CARMA: Enhanced Compositionality in LLMs via Advanced Regularisation and Mutual Information Alignmentcited by 3
- 2026MetaOthello: A Controlled Study of Multiple World Models in Transformerscited by 3
- 2023Is Feedback All You Need? Leveraging Natural Language Feedback in Goal-Conditioned Reinforcement Learningcited by 2
- 2023Syntax-Guided Transformers: Elevating Compositional Generalization and Grounding in Multimodal Environmentscited by 1
- 2026Do Visual Grounding Decoders Need Feed-Forward Networks? A Controlled Study over Frozen Vision-Language Featurescited by 0
- 2026What Do Current Systematic Generalization Tasks Miss? A Reasoning-Centered Analysiscited by 0
- 2026What Do Current Systematic Generalization Tasks Miss? A Reasoning-Centered Analysis16 Sep 2026
- 2026Do Visual Grounding Decoders Need Feed-Forward Networks? A Controlled Study over Frozen Vision-Language Features15 Aug 2026
- 2026MetaOthello: A Controlled Study of Multiple World Models in Transformers26 Feb 2026
- 2025CARMA: Enhanced Compositionality in LLMs via Advanced Regularisation and Mutual Information Alignment16 Feb 2025
- 2024A Survey on Compositional Learning of AI Models: Theoretical and Experimental Practices13 Jun 2024
- 2024What makes Models Compositional? A Theoretical View: With Supplement2 May 2024
- 2023Can LLM find the green circle? Investigation and Human-guided tool manipulation for compositional generalization12 Dec 2023
- 2023Is Feedback All You Need? Leveraging Natural Language Feedback in Goal-Conditioned Reinforcement Learning7 Dec 2023
- 2023Syntax-Guided Transformers: Elevating Compositional Generalization and Grounding in Multimodal Environments7 Nov 2023
- 2023MAGNIFICo: Evaluating the In-Context Learning Ability of Large Language Models to Generalize to Novel Interpretations18 Oct 2023
- 2023ReCOGS: How Incidental Details of a Logical Form Overshadow an Evaluation of Semantic Interpretation24 Mar 2023