LUNA:通过数字插件和预训练在Transformers上进行数字增强的语言理解
LUNA: Language Understanding with Number Augmentations on Transformers via Number Plugins and Pre-training
摘要:
Transformers广泛用于NLP任务。然而,目前利用Transformers来理解语言的方法暴露了一个弱点:数字理解。在某些情况下,数字经常出现,特别是在半结构化数据(如表)中。但是,目前使用基于transformer的语言模型来处理富数任务的方法放弃或丢失了一些计算信息-例如,将数字分解为子单词标记-这会导致许多与数字相关的错误。在本文中,我们提出了LUNA框架,提高了基于transformer的语言模型的数值推理和计算能力。通过NumTok和NumBed的数字插件,LUNA将每个数字作为一个整体来表示以模型输入。通过数字预训练,包括回归损失和模型蒸馏,LUNA弥合了数字和词汇嵌入之间的差距。据我们所知,这是第一个工作,显式地注入到语言模型使用数字插件的计算能力。除了在玩具任务上评估玩具模型外,我们还在三个大规模Transformer模型(RoBERTa,BERT,TabBERT)上评估LUNA在三个不同下游任务(TATQA,TabFact,CrediTrans)上的性能,并观察到LUNA不断提高语言模型的性能。增强模型还提高了TAT-QA的官方基线(EM:50.15 -> 59.58),并在CrediTrans上实现了SOTA性能(F1 = 86.17)。
英文摘要:
Transformers are widely used in NLP tasks. However, current approaches to leveraging transformers to understand language expose one weak spot: Number understanding. In some scenarios, numbers frequently occur, especially in semi-structured data like tables. But current approaches to rich-number tasks with transformer-based language models abandon or lose some of the numeracy information - e.g., breaking numbers into sub-word tokens - which leads to many number-related errors. In this paper, we propose the LUNA framework which improves the numerical reasoning and calculation capabilities of transformer-based language models. With the number plugin of NumTok and NumBed, LUNA represents each number as a whole to model input. With number pre-training, including regression loss and model distillation, LUNA bridges the gap between number and vocabulary embeddings. To the best of our knowledge, this is the first work that explicitly injects numeracy capability into language models using Number Plugins. Besides evaluating toy models on toy tasks, we evaluate LUNA on three large-scale transformer models (RoBERTa, BERT, TabBERT) over three different downstream tasks (TATQA, TabFact, CrediTrans), and observe the performances of language models are constantly improved by LUNA. The augmented models also improve the official baseline of TAT-QA (EM: 50.15 -> 59.58) and achieve SOTA performance on CrediTrans (F1 = 86.17).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。