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

基于同步的高效长序列编码

Efficient Long Sequence Encoding via Synchronization

Rensselaer Polytechnic Institute(伦斯勒理工学院);WeChat AI, Tencent(腾讯微信人工智能实验室);Virginia Tech(弗吉尼亚理工大学)

Xiangyang Mou, Mo Yu, Bingsheng Yao, Lifu Huang

摘要:

预训练的Transformer模型在广泛的NLP任务中取得了成功,但在处理长输入序列时效率低下。现有的研究试图克服这一挑战,通过分割的长序列,然后分层编码或事后聚合。我们提出了一个同步机制的分层编码。我们的方法首先确定跨段的锚标记,并按其在原始输入序列中的角色对其进行分组。然后在Transformer层中,锚嵌入通过自注意模块在其组内同步。我们的方法是一个具有足够灵活性的通用框架-当适应新任务时,很容易通过特定于任务的锚定义进行增强。两个具有代表性的任务与不同类型的长输入文本,NarrativeQA摘要设置和野生多跳推理HotpotQA的实验表明,我们的方法是能够提高全球的信息交换段之间,同时保持效率。

英文摘要:

Pre-trained Transformer models have achieved successes in a wide range of NLP tasks, but are inefficient when dealing with long input sequences. Existing studies try to overcome this challenge via segmenting the long sequence followed by hierarchical encoding or post-hoc aggregation. We propose a synchronization mechanism for hierarchical encoding. Our approach first identifies anchor tokens across segments and groups them by their roles in the original input sequence. Then inside Transformer layer, anchor embeddings are synchronized within their group via a self-attention module. Our approach is a general framework with sufficient flexibility -- when adapted to a new task, it is easy to be enhanced with the task-specific anchor definitions. Experiments on two representative tasks with different types of long input texts, NarrativeQA summary setting and wild multi-hop reasoning from HotpotQA, demonstrate that our approach is able to improve the global information exchange among segments while maintaining efficiency.

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

↑