CharacterBERT和自学提高密集检索器对错别字检索的鲁棒性
CharacterBERT and Self-Teaching for Improving the Robustness of Dense Retrievers on Queries with Typos
摘要:
当前的密集检索器对域外和离群查询不鲁棒,即它们对这些查询的有效性比人们预期的要差得多。在本文中,我们考虑这样的查询的一个具体实例:包含错别字的查询。我们发现,一个小的字符级扰动查询(如错别字所造成的)高度影响密集检索的有效性。然后,我们证明了这一问题的根本原因在于BERT采用的输入标记化策略。在BERT中,使用BERT的WordPiece tokenizer执行标记化,并且我们表明,具有错别字的令牌将显着改变标记化后获得的令牌分布。这种分布变化转化为传递给密集检索器的基于BERT的查询编码器的输入嵌入的变化。然后,我们把注意力转向设计密集检索方法,这些方法对有错别字的查询是鲁棒的,同时仍然像以前的方法一样对没有错别字的查询具有高性能。为此,我们使用QuarterBERT作为骨干编码器和一种高效而有效的训练方法,称为自教学(ST),它将知识从没有错别字的查询中提取出来。实验结果表明,与以往的方法相比,该算法在处理拼写错误时具有更高的效率。随着这些结果和方法的开源实现,我们还提供了一个新的通道检索数据集,包括真实世界的查询与错别字和相关的相关性评估的MS MARCO语料库,从而支持研究界在调查有效和强大的密集检索。代码、实验结果和数据集可在https://github.com/ielab/CharacterBERT-DR上获得。
英文摘要:
Current dense retrievers are not robust to out-of-domain and outlier queries, i.e. their effectiveness on these queries is much poorer than what one would expect. In this paper, we consider a specific instance of such queries: queries that contain typos. We show that a small character level perturbation in queries (as caused by typos) highly impacts the effectiveness of dense retrievers. We then demonstrate that the root cause of this resides in the input tokenization strategy employed by BERT. In BERT, tokenization is performed using the BERT's WordPiece tokenizer and we show that a token with a typo will significantly change the token distributions obtained after tokenization. This distribution change translates to changes in the input embeddings passed to the BERT-based query encoder of dense retrievers. We then turn our attention to devising dense retriever methods that are robust to such queries with typos, while still being as performant as previous methods on queries without typos. For this, we use CharacterBERT as the backbone encoder and an efficient yet effective training method, called Self-Teaching (ST), that distills knowledge from queries without typos into the queries with typos. Experimental results show that CharacterBERT in combination with ST achieves significantly higher effectiveness on queries with typos compared to previous methods. Along with these results and the open-sourced implementation of the methods, we also provide a new passage retrieval dataset consisting of real-world queries with typos and associated relevance assessments on the MS MARCO corpus, thus supporting the research community in the investigation of effective and robust dense retrievers. Code, experimental results and dataset are made available at https://github.com/ielab/CharacterBERT-DR.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。