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

句子嵌入的有效比较

Efficient comparison of sentence embeddings

Ionian University(伊奥尼亚大学);University of the Aegean(爱琴海大学)

Spyros Zoupanos, Stratis Kolovos, Athanasios Kanavos, Orestis Papadimitriou, Manolis Maragoudakis

摘要:

自然语言处理(NLP)领域在过去几年中有了很大的发展,并从单词和句子嵌入的最新发展中受益匪浅。这样的嵌入可以将复杂的NLP任务(如语义相似性或问题和提问(Q&A))转换为更简单的向量比较。然而,这样的问题转换提出了新的挑战,如嵌入的有效比较及其操作。在这项工作中,我们将讨论各种单词和句子嵌入算法,我们将选择句子嵌入算法,BERT,作为我们的选择算法,我们将评估两种向量比较方法,FAISS和Elasticsearch,在句子嵌入的特定问题中的性能。根据结果,当在只有一个节点的集中式环境中使用时,FAISS的性能优于Elasticsearch,特别是当包含大数据集时。

英文摘要:

The domain of natural language processing (NLP), which has greatly evolved over the last years, has highly benefited from the recent developments in word and sentence embeddings. Such embeddings enable the transformation of complex NLP tasks, like semantic similarity or Question and Answering (Q&A), into much simpler to perform vector comparisons. However, such a problem transformation raises new challenges like the efficient comparison of embeddings and their manipulation. In this work, we will discuss about various word and sentence embeddings algorithms, we will select a sentence embedding algorithm, BERT, as our algorithm of choice and we will evaluate the performance of two vector comparison approaches, FAISS and Elasticsearch, in the specific problem of sentence embeddings. According to the results, FAISS outperforms Elasticsearch when used in a centralized environment with only one node, especially when big datasets are included.

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

↑