Lune

EMNLP2021Top-tier venue

Inducing Transformer's Compositional Generalization Ability via Auxiliary Sequence Prediction Tasks

Yichen Jiang, Mohit Bansal

Abstract

Systematic compositionality is an essential mechanism in human language, allowing the recombination of known parts to create novel expressions. However, existing neural models have been shown to lack this basic ability in learning symbolic structures. Motivated by the failure of a Transformer model on the SCAN compositionality challenge (Lake and Baroni, 2018), which requires parsing a command into actions, we propose two auxiliary sequence prediction tasks as additional training supervision. These automatically-generated sequences are more representative of the underlying compositional symbolic structures of the input data. During inference, the model jointly predicts the next action and the next tokens in the auxiliary sequences at each step. Experiments on the SCAN dataset show that our method encourages the Transformer to understand compositional structures of the command, improving its accuracy on multiple challenging splits from ≤ 10% to 100%. With only 418 (5%) training instances, our approach still achieves 97.8% accuracy on the MCD1 split. Therefore, we argue that compositionality can be induced in Transformers given minimal but proper guidance. We also show that a better result is achieved using less contextualized vectors as the attention's query, providing insights into architecture choices in achieving systematic compositionality. Finally, we show positive generalization results on the grounded-SCAN task (Ruis et al., 2020) . 1

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsing cites Learning Compositional Rules via Neural Program Synthesis
  • Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsing cites Compositional Generalization by Learning Analytical Expressions
  • Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsing cites COGS: A Compositional Generalization Challenge Based on Semantic Interpretation
  • Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsing cites Measuring Compositional Generalization: A Comprehensive Method on Realistic Data
  • Compositional Generalization by Learning Analytical Expressions cites Learning Compositional Rules via Neural Program Synthesis
  • Compositional Generalization by Learning Analytical Expressions cites Measuring Compositional Generalization: A Comprehensive Method on Realistic Data
  • COGS: A Compositional Generalization Challenge Based on Semantic Interpretation cites Measuring Compositional Generalization: A Comprehensive Method on Realistic Data
  • Data Factors for Better Compositional Generalization cites Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsing
  • Data Factors for Better Compositional Generalization cites COGS: A Compositional Generalization Challenge Based on Semantic Interpretation
  • A Benchmark for Systematic Generalization in Grounded Language Understanding cites Learning Compositional Rules via Neural Program Synthesis
  • A Benchmark for Systematic Generalization in Grounded Language Understanding cites Measuring Compositional Generalization: A Comprehensive Method on Realistic Data
  • NeSyCoCo: A Neuro-Symbolic Concept Composer for Compositional Generalization cites A Benchmark for Systematic Generalization in Grounded Language Understanding
  • Toward Compositional Behavior in Neural Models: A Survey of Current Views cites Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsing
  • Toward Compositional Behavior in Neural Models: A Survey of Current Views cites Learning Compositional Rules via Neural Program Synthesis
  • Toward Compositional Behavior in Neural Models: A Survey of Current Views cites COGS: A Compositional Generalization Challenge Based on Semantic Interpretation
  • Toward Compositional Behavior in Neural Models: A Survey of Current Views cites Measuring Compositional Generalization: A Comprehensive Method on Realistic Data
  • Layer-Wise Representation Fusion for Compositional Generalization cites Learning Compositional Rules via Neural Program Synthesis
  • Layer-Wise Representation Fusion for Compositional Generalization cites Compositional Generalization by Learning Analytical Expressions
  • Layer-Wise Representation Fusion for Compositional Generalization cites Measuring Compositional Generalization: A Comprehensive Method on Realistic Data
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. Evaluating the Impact of Model Scale for Compositional Generalization in Semantic ParsingLinlu Qiu, Peter Shaw, Panupong Pasupat, Tianze Shi et al.EMNLP 2022 · 21 citations
  2. Toward Compositional Behavior in Neural Models: A Survey of Current ViewsKate McCurdy, Paul Soulos, Paul Smolensky, Roland Fernandez et al.EMNLP 2024 · 12 citations
  3. NeSyCoCo: A Neuro-Symbolic Concept Composer for Compositional GeneralizationDanial Kamali, Elham J. Barezi, Parisa KordjamshidiAAAI 2025 · 4 citations
  4. Layer-Wise Representation Fusion for Compositional GeneralizationYafang Zheng, Lei Lin, Shuangtao Li, Yuxuan Yuan et al.AAAI 2024 · 4 citations
  5. Data Factors for Better Compositional GeneralizationXiang Zhou, Yichen Jiang, Mohit BansalEMNLP 2023 · 2 citations

Builds on9

  1. Measuring Compositional Generalization: A Comprehensive Method on Realistic DataDaniel Keysers, Nathanael Schärli, Nathan Scales, Hylke Buisman et al.ICLR 2020 · 401 citations
  2. A Benchmark for Systematic Generalization in Grounded Language UnderstandingLaura Ruis, Jacob Andreas, Marco Baroni, Diane Bouchacourt et al.NeurIPS 2020 · 169 citations
  3. COGS: A Compositional Generalization Challenge Based on Semantic InterpretationNajoung Kim, Tal LinzenEMNLP 2020 · 149 citations
  4. Learning Compositional Rules via Neural Program SynthesisMaxwell I. Nye, Armando Solar-Lezama, Josh Tenenbaum, Brenden M. LakeNeurIPS 2020 · 120 citations
  5. Compositional Generalization by Learning Analytical ExpressionsQian Liu, Shengnan An, Jian-Guang Lou, Bei Chen et al.NeurIPS 2020 · 79 citations

Related papers

  1. Compositional Networks Enable Systematic Generalization for Grounded Language UnderstandingYen-Ling Kuo, Boris Katz, Andrei BarbuEMNLP Findings 2021 · 12 citations
  2. Learning to Recombine and Resample Data For Compositional GeneralizationEkin Akyürek, Afra Feyza Akyürek, Jacob AndreasICLR 2021 · 36 citations
  3. Permutation Equivariant Models for Compositional Generalization in LanguageJonathan Gordon, David Lopez-Paz, Marco Baroni, Diane BouchacourtICLR 2020 · 112 citations
  4. Mutual Exclusivity Training and Primitive Augmentation to Induce CompositionalityYichen Jiang, Xiang Zhou, Mohit BansalEMNLP 2022 · 1 citation
  5. Towards Equipping Transformer with the Ability of Systematic CompositionalityChen Huang, Peixin Qin, Wenqiang Lei, Jiancheng LvAAAI 2024 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines