EMNLP Findings2023
Learning to Compose Representations of Different Encoder Layers towards Improving Compositional Generalization
Lei Lin, Shuangtao Li, Yafang Zheng, Biao Fu, Shan Liu, Yidong Chen, Xiaodong Shi
Abstract
Recent studies have shown that sequence-tosequence (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 COMPOSI-TION (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 composed layer between the encoder and decoder to compose different encoder layers' representations to generate specific keys and values passing into different decoder layers. COMPOSITION achieves competitive results on two comprehensive and realistic benchmarks, which empirically demonstrates the effectiveness of our proposal. Codes are available at https://github. com/thinkaboutzero/COMPOSITION.
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.
3 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- 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
- Benchmarking and Improving Compositional Generalization of Multi-aspect Controllable Text Generation 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 AdvAug: Robust Adversarial Augmentation for Neural Machine Translation
- Layer-Wise Representation Fusion for Compositional Generalization cites Measuring Compositional Generalization: A Comprehensive Method on Realistic Data
- CARMA: Enhanced Compositionality in LLMs via Advanced Regularisation and Mutual Information Alignment cites Benchmarking and Improving Compositional Generalization of Multi-aspect Controllable Text Generation
Cited by top-tier papers3
- Layer-Wise Representation Fusion for Compositional GeneralizationYafang Zheng, Lei Lin, Shuangtao Li, Yuxuan Yuan et al.AAAI 2024 · 4 citations
- Benchmarking and Improving Compositional Generalization of Multi-aspect Controllable Text GenerationTianqi Zhong, Zhaoyi Li, Quan Wang, Linqi Song et al.ACL 2024
- CARMA: Enhanced Compositionality in LLMs via Advanced Regularisation and Mutual Information AlignmentNura Aljaafari, Danilo S. Carvalho, André FreitasEMNLP 2025
Builds on22
- Measuring Compositional Generalization: A Comprehensive Method on Realistic DataDaniel Keysers, Nathanael Schärli, Nathan Scales, Hylke Buisman et al.ICLR 2020 · 401 citations
- Learning Compositional Rules via Neural Program SynthesisMaxwell I. Nye, Armando Solar-Lezama, Josh Tenenbaum, Brenden M. LakeNeurIPS 2020 · 120 citations
- AdvAug: Robust Adversarial Augmentation for Neural Machine TranslationYong Cheng, Lu Jiang, Wolfgang Macherey, Jacob EisensteinACL 2020 · 105 citations
- Compositional Generalization by Learning Analytical ExpressionsQian Liu, Shengnan An, Jian-Guang Lou, Bei Chen et al.NeurIPS 2020 · 79 citations
- Shallow-to-Deep Training for Neural Machine TranslationBei Li, Ziyang Wang, Hui Liu, Yufan Jiang et al.EMNLP 2020 · 41 citations
Related papers
- Real-World Compositional Generalization with Disentangled Sequence-to-Sequence LearningHao Zheng, Mirella LapataACL Findings 2023 · 3 citations
- Disentangled Sequence to Sequence Learning for Compositional GeneralizationHao Zheng, Mirella LapataACL 2022 · 41 citations
- Learning Algebraic Recombination for Compositional GeneralizationChenyao Liu, Shengnan An, Zeqi Lin, Qian Liu et al.ACL Findings 2021 · 22 citations
- Compositional Generalization via Semantic TaggingHao Zheng, Mirella LapataEMNLP Findings 2021 · 22 citations
- Compositional Generalization and Natural Language Variation: Can a Semantic Parsing Approach Handle Both?Peter Shaw, Ming-Wei Chang, Panupong Pasupat, Kristina ToutanovaACL 2021
