arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.10799cs.CL
收藏

层间表示融合用于组合泛化

Layer-wise Representation Fusion for Compositional Generalization

Xiamen University(厦门大学);Kuaishou Technology(快手科技)

Yafang Zheng, Lei Lin, Shuangtao Li, Yuxuan Yuan, Zhaohong Lai, Shan Liu, Biao Fu, Yidong Chen, Xiaodong Shi

AI总结:

针对组合泛化中表示纠缠问题,提出LRF层间表示融合框架,通过融合注意力模块有效融合前层信息,在现实基准上取得良好效果。

摘要:

现有神经模型被证明在处理组合泛化(CG)方面存在困难,即系统性地泛化到未见过的已见组件组合的能力。CG失败的一个关键原因是编码器和解码器最上层中序列的句法和语义表示相互纠缠。然而,以往的工作侧重于分离句法和语义的学习,而非探索表示纠缠(RE)问题背后的原因以解决它。我们通过分析Transformer层从底部到顶部的表示演化机制来解释其存在的原因。我们发现,每层内的“浅层”残差连接未能有效融合前几层的信息,导致层间信息遗忘,进而引发RE问题。受此启发,我们提出了LRF,一种新颖的用于CG的层间表示融合框架,它通过在编码器和解码器的每一层引入融合注意力模块,学习有效地将前几层的信息融合回编码和解码过程中。LRF在两个现实基准上取得了有希望的结果,实证证明了我们提出的方法的有效性。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑