arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1909.07940cs.CLcs.LG
收藏

NLP型号知道数字吗?嵌入中的数字性探讨

Do NLP Models Know Numbers? Probing Numeracy in Embeddings

Allen Institute for Artificial Intelligence(艾伦人工智能研究所);Peking University(北京大学);University of California, Irvine(加州大学欧文分校)

Eric Wallace, Yizhong Wang, Sujian Li, Sameer Singh, Matt Gardner

摘要:

理解和处理数字的能力(计算能力)对于许多复杂的推理任务至关重要。目前,大多数NLP模型以与其他标记相同的方式处理文本中的数字-它们将其嵌入为分布式向量。这是否足以说明数学的重要性?我们首先调查的数字推理能力的最先进的问答模型的DROP数据集。我们发现这个模型在需要数值推理的问题上表现出色,即,它已经捕捉到了计算能力。为了理解这种能力是如何出现的,我们探讨了令牌嵌入方法(例如,BERT,GloVe)在合成列表最大化,数字解码和加法任务上的应用。在标准嵌入中,自然存在令人惊讶的计算能力。例如,GloVe和word 2 vec可以准确地对最大为1000的数字进行幅度编码。此外,字符级嵌入更加精确--ELMo捕获了所有预训练方法中最好的计算能力--但使用子字单元的BERT不太精确。

英文摘要:

The ability to understand and work with numbers (numeracy) is critical for many complex reasoning tasks. Currently, most NLP models treat numbers in text in the same way as other tokens---they embed them as distributed vectors. Is this enough to capture numeracy? We begin by investigating the numerical reasoning capabilities of a state-of-the-art question answering model on the DROP dataset. We find this model excels on questions that require numerical reasoning, i.e., it already captures numeracy. To understand how this capability emerges, we probe token embedding methods (e.g., BERT, GloVe) on synthetic list maximum, number decoding, and addition tasks. A surprising degree of numeracy is naturally present in standard embeddings. For example, GloVe and word2vec accurately encode magnitude for numbers up to 1,000. Furthermore, character-level embeddings are even more precise---ELMo captures numeracy the best for all pre-trained methods---but BERT, which uses sub-word units, is less exact.

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

↑