English

Layer-wise Representation Fusion for Compositional Generalization

Computation and Language 2023-12-22 v2

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 \textbf{L}ayer-wise \textbf{R}epresentation \textbf{F}usion framework for CG, which learns to fuse previous layers' information back into the encoding and decoding process effectively through introducing a \emph{fuse-attention module} at each encoder and decoder layer. LRF achieves promising results on two realistic benchmarks, empirically demonstrating the effectiveness of our proposal.

Keywords

Cite

@article{arxiv.2307.10799,
  title  = {Layer-wise Representation Fusion for Compositional Generalization},
  author = {Yafang Zheng and Lei Lin and Shuangtao Li and Yuxuan Yuan and Zhaohong Lai and Shan Liu and Biao Fu and Yidong Chen and Xiaodong Shi},
  journal= {arXiv preprint arXiv:2307.10799},
  year   = {2023}
}

Comments

accepted by aaai24. arXiv admin note: substantial text overlap with arXiv:2305.12169

R2 v1 2026-06-28T11:35:49.128Z