Learning compositionally through attentive guidance
Not on the map. Why?
Abstract (arXiv)
While neural network models have been successfully applied to domains that require substantial generalisation skills, recent studies have implied that they struggle when solving the task they are trained on requires inferring its underlying compositional structure. In this paper, we introduce Attentive Guidance, a mechanism to direct a sequence to sequence model equipped with attention to find more compositional solutions. We test it on two tasks, devised precisely to assess the compositional capabilities of neural models, and we show that vanilla sequence to sequence models with attention overfit the training distribution, while the guided versions come up with compositional solutions that fit the training and testing distributions almost equally well. Moreover, the learned solutions generalise even in cases where the training and testing distributions strongly diverge. In this way, we demonstrate that sequence to sequence models are capable of finding compositional solutions without requiring extra components. These results helps to disentangle the causes for the lack of systematic compositionality in neural networks, which can in turn fuel future work.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). First posted on arXiv 20 May 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 1; 2023: 3; 2024: 1; 2025: 2.
11 papers.
- 2021The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalizationcited by 62
- 2023Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Taskscited by 21
- 2025Complexity Control Facilitates Reasoning-Based Compositional Generalization in Transformerscited by 19
- 2024Initialization is Critical to Whether Transformers Fit Composite Functions by Reasoning or Memorizingcited by 15
- 2021Can Transformers Jump Around Right in Natural Language? Assessing Performance Transfer from SCANcited by 14
- 2025An Analysis for Reasoning Bias of Language Models with Small Initializationcited by 13
- 2022CTL++: Evaluating Generalization on Never-Seen Compositional Patterns of Known Functions, and Compatibility of Neural Representationscited by 12
- 2021On the Interplay Between Fine-tuning and Composition in Transformerscited by 6
- 2021One Semantic Parser to Parse Them All: Sequence to Sequence Multi-Task Learning on Semantic Parsing Datasetscited by 3
- 2023Layer-wise Representation Fusion for Compositional Generalizationcited by 2
- 2023Self-Organising Neural Discrete Representation Learning `a la Kohonencited by 0
- 2025An Analysis for Reasoning Bias of Language Models with Small Initialization5 Feb 2025
- 2025Complexity Control Facilitates Reasoning-Based Compositional Generalization in Transformers15 Jan 2025
- 2024Initialization is Critical to Whether Transformers Fit Composite Functions by Reasoning or Memorizing8 May 2024
- 2023Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks21 Nov 2023
- 2023Layer-wise Representation Fusion for Compositional Generalization20 Jul 2023
- 2023Self-Organising Neural Discrete Representation Learning `a la Kohonen15 Feb 2023
- 2022CTL++: Evaluating Generalization on Never-Seen Compositional Patterns of Known Functions, and Compatibility of Neural Representations12 Oct 2022
- 2021The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalization14 Oct 2021
- 2021Can Transformers Jump Around Right in Natural Language? Assessing Performance Transfer from SCAN3 Jul 2021
- 2021One Semantic Parser to Parse Them All: Sequence to Sequence Multi-Task Learning on Semantic Parsing Datasets8 Jun 2021
- 2021On the Interplay Between Fine-tuning and Composition in Transformers31 May 2021