arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.07973cs.CLcs.LG
收藏

基于BERT的通用文本表示:一项实证研究

Universal Text Representation from BERT: An Empirical Study

AWS AI Labs(AWS人工智能实验室)

Xiaofei Ma, Zhiguo Wang, Patrick Ng, Ramesh Nallapati, Bing Xiang

摘要:

我们提出了一个系统的调查逐层BERT激活通用文本表示,以了解他们捕获的语言信息,以及如何转移他们在不同的任务。句子级嵌入是针对SentEval的下游和探测任务的两个最先进的模型进行评估的,而句子级嵌入是在学习排名问题设置下的四个问答(QA)数据集上进行评估的。预训练的BERT模型的嵌入在语义相似度和句子表面信息探测任务中表现不佳。对自然语言推理数据的微调BERT极大地提高了嵌入的质量。组合来自不同BERT层的嵌入可以进一步提高性能。BERT嵌入在通道水平上的模拟QA数据集上的表现显著优于BM 25基线,但在非模拟数据集上的表现未能优于BM 25。对于所有QA数据集,基于嵌入的方法和域内微调的BERT之间存在差距(我们报告了两个数据集的最新结果),这表明问题和答案对之间的深度交互对于这些硬任务至关重要。

英文摘要:

We present a systematic investigation of layer-wise BERT activations for general-purpose text representations to understand what linguistic information they capture and how transferable they are across different tasks. Sentence-level embeddings are evaluated against two state-of-the-art models on downstream and probing tasks from SentEval, while passage-level embeddings are evaluated on four question-answering (QA) datasets under a learning-to-rank problem setting. Embeddings from the pre-trained BERT model perform poorly in semantic similarity and sentence surface information probing tasks. Fine-tuning BERT on natural language inference data greatly improves the quality of the embeddings. Combining embeddings from different BERT layers can further boost performance. BERT embeddings outperform BM25 baseline significantly on factoid QA datasets at the passage level, but fail to perform better than BM25 on non-factoid datasets. For all QA datasets, there is a gap between embedding-based method and in-domain fine-tuned BERT (we report new state-of-the-art results on two datasets), which suggests deep interactions between question and answer pairs are critical for those hard tasks.

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

↑