mlsanityData to 14 Oct 2026

Learning to Compose Representations of Different Encoder Layers towards Improving Compositional Generalization

arXiv 2305.12169 ↗First posted 20 May 2023cs.CLcited by 3

Not on the map. Why?

Abstract (arXiv)

Recent studies have shown that sequence-to-sequence (seq2seq) models struggle with compositional generalization (CG), i.e., the ability to systematically generalize to unseen compositions of seen components. There is mounting evidence that one of the reasons hindering CG is the representation of the encoder uppermost layer is entangled, i.e., the syntactic and semantic representations of sequences are entangled. However, we consider that the previously identified representation entanglement problem is not comprehensive enough. Additionally, we hypothesize that the source keys and values representations passing into different decoder layers are also entangled. Starting from this intuition, we propose textscCompoSition (Compose Syntactic and Semantic Representations), an extension to seq2seq models which learns to compose representations of different encoder layers dynamically for different tasks, since recent studies reveal that the bottom layers of the Transformer encoder contain more syntactic information and the top ones contain more semantic information. Specifically, we introduce a textitcomposed layer between the encoder and decoder to compose different encoder layers' representations to generate specific keys and values passing into different decoder layers. textscCompoSition achieves competitive results on two comprehensive and realistic benchmarks, which empirically demonstrates the effectiveness of our proposal. Codes are available at~urlhttps://github.com/thinkaboutzero/COMPOSITION.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 54 of its 74 references that are in the map. First posted on arXiv 20 May 2023.

Builds on

54 of 74 references.

References · 54

  1. 2017Attention Is All You Needcited by 60,361
  2. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  5. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
  6. 2014Sequence to Sequence Learning with Neural Networkscited by 2,986
  7. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
  8. 2018A Call for Clarity in Reporting BLEU Scorescited by 1,799
  9. 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,488
  10. 2018Universal Transformerscited by 647
  11. 2019Learning Deep Transformer Models for Machine Translationcited by 309
  12. 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 284
38 more
  1. 2017Beam Search Strategies for Neural Machine Translationcited by 232
  2. 2019The Evolved Transformercited by 180
  3. 2016Language to Logical Form with Neural Attentioncited by 158
  4. 2019Good-Enough Compositional Data Augmentationcited by 158
  5. 2019The Bottom-up Evolution of Representations in the Transformer: A Study with Machine Translation and Language Modeling Objectivescited by 139
  6. 2019Compositional generalization through meta sequence-to-sequence learningcited by 99
  7. 2020Compositional Generalization in Semantic Parsing: Pre-training vs. Specialized Architecturescited by 95
  8. 2020Span-based Semantic Parsing for Compositional Generalizationcited by 77
  9. 2020Learning Compositional Rules via Neural Program Synthesiscited by 74
  10. 2020Sequence-Level Mixed Sample Data Augmentationcited by 71
  11. 2020AdvAug: Robust Adversarial Augmentation for Neural Machine Translationcited by 67
  12. 2020Learning to Recombine and Resample Data for Compositional Generalizationcited by 65
  13. 2021Meta-Learning to Compositionally Generalizecited by 62
  14. 2021The paradox of the compositionality of natural language: a neural machine translation case studycited by 59
  15. 2019Compositional generalization in a deep seq2seq model by separating syntax and semanticscited by 56
  16. 2021Unlocking Compositional Generalization in Pre-trained Models Using Intermediate Representationscited by 55
  17. 2020Compositional Generalization by Learning Analytical Expressionscited by 53
  18. 2019Compositional Generalization for Primitive Substitutionscited by 48
  19. 2017The Parallel Meaning Bank: Towards a Multilingual Corpus of Translations Annotated with Compositional Meaning Representationscited by 42
  20. 2020Shallow-to-Deep Training for Neural Machine Translationcited by 36
  21. 2021On Compositional Generalization of Neural Machine Translationcited by 34
  22. 2020Compositional Generalization via Semantic Taggingcited by 32
  23. 2021Learning Algebraic Recombination for Compositional Generalizationcited by 31
  24. 2021Disentangled Sequence to Sequence Learning for Compositional Generalizationcited by 30
  25. 2021Lexicon Learning for Few-Shot Neural Sequence Modelingcited by 28
  26. 2020Hierarchical Poset Decoding for Compositional Generalization in Languagecited by 26
  27. 2022Structural generalization is hard for sequence-to-sequence modelscited by 24
  28. 2018Exploiting Deep Representations for Neural Machine Translationcited by 23
  29. 2021Inducing Transformer's Compositional Generalization Ability via Auxiliary Sequence Prediction Taskscited by 19
  30. 2022SUBS: Subtree Substitution for Compositional Semantic Parsingcited by 16
  31. 2020Multi-layer Representation Fusion for Neural Machine Translationcited by 15
  32. 2019On Compositionality in Neural Machine Translationcited by 14
  33. 2021Can Transformers Jump Around Right in Natural Language? Assessing Performance Transfer from SCANcited by 14
  34. 2022Improving Systematic Generalization Through Modularity and Augmentationcited by 13
  35. 2022Neural-Symbolic Recursive Machine for Systematic Generalizationcited by 12
  36. 2019Dynamic Layer Aggregation for Neural Machine Translation with Routing-by-Agreementcited by 11
  37. 2021Addressing the Vulnerability of NMT in Input Perturbationscited by 6
  38. 2018Dense Information Flow for Neural Machine Translationcited by 5

50 most cited of 54 All 54 (JSON)

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 0; 2025: 2.

3 papers.