mlsanityData to 7 Oct 2026

When Can Transformers Ground and Compose: Insights from Compositional Generalization Benchmarks

arXiv 2210.12786 ↗First posted 23 Oct 2022cs.CLcited by 11

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  6. 2019ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Taskscited by 2,219
  7. 2016CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoningcited by 1,445
  8. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 831
  9. 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
  10. 2015Neural Module Networkscited by 375
  11. 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 280
  12. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
15 more
  1. 2021Thinking Like Transformerscited by 182
  2. 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
  3. 2020A Benchmark for Systematic Generalization in Grounded Language Understandingcited by 108
  4. 2019Compositional generalization through meta sequence-to-sequence learningcited by 98
  5. 2020Compositional Generalization via Neural-Symbolic Stack Machinescited by 80
  6. 2019CLEVR-Ref+: Diagnosing Visual Reasoning with Referring Expressionscited by 73
  7. 2019CLOSURE: Assessing Systematic Generalization of CLEVR Modelscited by 63
  8. 2019Compositional Generalization for Primitive Substitutionscited by 48
  9. 2021Learning Algebraic Recombination for Compositional Generalizationcited by 31
  10. 2022Revisiting the Compositional Generalization Abilities of Neural Sequence Modelscited by 20
  11. 2021ReaSCAN: Compositional Reasoning in Language Groundingcited by 19
  12. 2020Compositional Networks Enable Systematic Generalization for Grounded Language Understandingcited by 18
  13. 2020Systematic Generalization on gSCAN with Language Conditioned Embeddingcited by 15
  14. 2021Systematic Generalization on gSCAN: What is Nearly Solved and What is Next?cited by 15
  15. 2020Think before you act: A simple baseline for compositional generalizationcited by 11

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 5; 2024: 2; 2025: 1; 2026: 3.

11 papers.