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

最佳多语言文档嵌入是否仅仅基于句子嵌入?

Are the Best Multilingual Document Embeddings simply Based on Sentence Embeddings?

Saarland University(萨尔兰大学);German Research Center for Artificial Intelligence (DFKI)(德国人工智能研究中心(DFKI))

Sonal Sannigrahi, Josef van Genabith, Cristina Espana-Bonet

AI总结:

本文系统比较了基于 LASER、LaBSE 和 Sentence BERT 的多语言文档嵌入方法,发现在 8 种语言的多语言与跨语言任务中,巧妙组合句子嵌入通常优于直接编码完整文档,且分类任务可用简单平均,语义任务则需更复杂组合。

摘要:

文本数据的稠密向量表示在现代自然语言处理(NLP)中至关重要。从原始文本中估计得到的词嵌入和句子嵌入,是在各种需要语义理解的任务中取得最先进结果的关键。然而,由于计算需求和缺乏合适的数据,在文档级别获得嵌入具有挑战性。相反,大多数方法退而求其次,基于句子表示来计算文档嵌入。尽管存在能够完整编码文档的架构和模型,但它们通常仅限于英语和少数其他高资源语言。在这项工作中,我们基于 LASER、LaBSE 和 Sentence BERT 预训练多语言模型,对从句子生成文档级表示的方法进行了系统性比较。我们在 3 个多语言和跨语言任务上,针对属于 3 个不同语系的 8 种语言,比较了输入 token 数量截断、句子平均以及一些简单的窗口化方法,并在某些情况下比较了新的增强型和可学习方法。我们基于任务的外部评估表明,与语言无关地,对句子嵌入进行巧妙组合通常优于将完整文档作为单个单元进行编码,即使后者是可行的。我们证明,虽然简单的句子平均为分类任务提供了强大的基线,但更复杂的组合对于语义任务是必要的。

英文摘要:

Dense vector representations for textual data are crucial in modern NLP. Word embeddings and sentence embeddings estimated from raw texts are key in achieving state-of-the-art results in various tasks requiring semantic understanding. However, obtaining embeddings at the document level is challenging due to computational requirements and lack of appropriate data. Instead, most approaches fall back on computing document embeddings based on sentence representations. Although there exist architectures and models to encode documents fully, they are in general limited to English and few other high-resourced languages. In this work, we provide a systematic comparison of methods to produce document-level representations from sentences based on LASER, LaBSE, and Sentence BERT pre-trained multilingual models. We compare input token number truncation, sentence averaging as well as some simple windowing and in some cases new augmented and learnable approaches, on 3 multi- and cross-lingual tasks in 8 languages belonging to 3 different language families. Our task-based extrinsic evaluations show that, independently of the language, a clever combination of sentence embeddings is usually better than encoding the full document as a single unit, even when this is possible. We demonstrate that while a simple sentence average results in a strong baseline for classification tasks, more complex combinations are necessary for semantic tasks.

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

↑