Layer-Wise Representation Fusion for Compositional Generalization
Yafang Zheng, Lei Lin, Shuangtao Li, Yuxuan Yuan, Zhaohong Lai, Shan Liu, Biao Fu, Yidong Chen, Xiaodong Shi
Abstract
Existing neural models are demonstrated to struggle with compositional generalization (CG), i.e., the ability to systematically generalize to unseen compositions of seen components. A key reason for failure on CG is that the syntactic and semantic representations of sequences in both the uppermost layer of the encoder and decoder are entangled. However, previous work concentrates on separating the learning of syntax and semantics instead of exploring the reasons behind the representation entanglement (RE) problem to solve it. We explain why it exists by analyzing the representation evolving mechanism from the bottom to the top of the Transformer layers. We find that the ``shallow'' residual connections within each layer fail to fuse previous layers' information effectively, leading to information forgetting between layers and further the RE problems. Inspired by this, we propose LRF, a novel Layer-wise Representation Fusion framework for CG, which learns to fuse previous layers' information back into the encoding and decoding process effectively through introducing a fuse-attention module at each encoder and decoder layer. LRF achieves promising results on two realistic benchmarks, empirically demonstrating the effectiveness of our proposal. Codes are available at https://github.com/thinkaboutzero/LRF.
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.
Lineage
- Least-to-Most Prompting Enables Complex Reasoning in Large Language Models cites Learning Compositional Rules via Neural Program Synthesis
- Least-to-Most Prompting Enables Complex Reasoning in Large Language Models cites Measuring Compositional Generalization: A Comprehensive Method on Realistic Data
Builds on23
- Measuring Compositional Generalization: A Comprehensive Method on Realistic DataDaniel Keysers, Nathanael Schärli, Nathan Scales, Hylke Buisman et al.ICLR 2020 · 401 citations
- Least-to-Most Prompting Enables Complex Reasoning in Large Language ModelsDenny Zhou, Nathanael Schärli, Le Hou, Jason Wei et al.ICLR 2023 · 318 citations
- Deep Encoder, Shallow Decoder: Reevaluating Non-autoregressive Machine TranslationJungo Kasai, Nikolaos Pappas, Hao Peng, James Cross et al.ICLR 2021 · 154 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
Related papers
- Learning to Compose Representations of Different Encoder Layers towards Improving Compositional GeneralizationLei Lin, Shuangtao Li, Yafang Zheng, Biao Fu et al.EMNLP Findings 2023 · 1 citation
- 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
- 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
