arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2106.00479cs.CL
收藏

DoT:一个高效的用于NLP表任务的双Transformer

DoT: An efficient Double Transformer for NLP tasks with tables

Google Research(谷歌研究院);Symanto Research(Symanto研究院)

Syrine Krichene, Thomas Müller, Julian Martin Eisenschlos

摘要:

基于转换器的方法已经成功地用于在具有半结构化表的自然语言处理(NLP)任务上获得最先进的准确性。这些模型架构通常很深,导致训练和推理缓慢,特别是对于长输入。为了提高效率,同时保持高精度,我们提出了一种新的架构,DoT,一个双Transformer模型,将问题分解为两个子任务:一个浅修剪Transformer,选择前K个令牌,其次是一个深任务特定的Transformer,作为输入的K个令牌。此外,我们修改了特定于任务的注意力,将修剪分数。通过优化特定于任务的损耗来联合训练两个Transformers。我们在三个基准上进行了实验,包括蕴涵和问答。我们发现,对于一个小的准确率下降,DoT将训练和推理时间提高了至少50%。我们还表明,修剪Transformer有效地选择相关的令牌,使端到端的模型,以保持类似的精度较慢的基线模型。最后,我们分析了修剪,并给出了一些洞察其对任务模型的影响。

英文摘要:

Transformer-based approaches have been successfully used to obtain state-of-the-art accuracy on natural language processing (NLP) tasks with semi-structured tables. These model architectures are typically deep, resulting in slow training and inference, especially for long inputs. To improve efficiency while maintaining a high accuracy, we propose a new architecture, DoT, a double transformer model, that decomposes the problem into two sub-tasks: A shallow pruning transformer that selects the top-K tokens, followed by a deep task-specific transformer that takes as input those K tokens. Additionally, we modify the task-specific attention to incorporate the pruning scores. The two transformers are jointly trained by optimizing the task-specific loss. We run experiments on three benchmarks, including entailment and question-answering. We show that for a small drop of accuracy, DoT improves training and inference time by at least 50%. We also show that the pruning transformer effectively selects relevant tokens enabling the end-to-end model to maintain similar accuracy as slower baseline models. Finally, we analyse the pruning and give some insight into its impact on the task model.

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

↑