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

基于哈希的答案选择

Hashing based Answer Selection

Nanjing University(南京大学)

Dong Xu, Wu-Jun Li

摘要:

答案选择是问答(QA)的一个重要子任务,其中深度模型通常可以实现更好的性能。大多数深度模型采用问答交互机制,例如注意力,以获得答案的向量表示。当这些基于交互的深度模型被部署用于在线预测时,需要为每个问题重新计算所有答案的表示。对于具有复杂编码器(如BERT)的深度模型,此过程非常耗时,复杂编码器通常比简单编码器具有更好的精度。一个可能的解决方案是将每个答案的矩阵表示(编码器输出)存储在内存中,以避免重新计算。但这会带来较大的内存开销。在本文中,我们提出了一种新的方法,称为基于哈希的答案选择(HAS),来解决这个问题。HAS采用哈希策略来学习每个答案的二进制矩阵表示,这可以大大减少存储答案的矩阵表示的内存成本。因此,HAS可以在模型中采用类似BERT的复杂编码器,但HAS的在线预测仍然快速且存储成本低。在三个流行的答案选择数据集上的实验结果表明,HAS可以超越现有的模型,达到最先进的性能。

英文摘要:

Answer selection is an important subtask of question answering (QA), where deep models usually achieve better performance. Most deep models adopt question-answer interaction mechanisms, such as attention, to get vector representations for answers. When these interaction based deep models are deployed for online prediction, the representations of all answers need to be recalculated for each question. This procedure is time-consuming for deep models with complex encoders like BERT which usually have better accuracy than simple encoders. One possible solution is to store the matrix representation (encoder output) of each answer in memory to avoid recalculation. But this will bring large memory cost. In this paper, we propose a novel method, called hashing based answer selection (HAS), to tackle this problem. HAS adopts a hashing strategy to learn a binary matrix representation for each answer, which can dramatically reduce the memory cost for storing the matrix representations of answers. Hence, HAS can adopt complex encoders like BERT in the model, but the online prediction of HAS is still fast with a low memory cost. Experimental results on three popular answer selection datasets show that HAS can outperform existing models to achieve state-of-the-art performance.

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

↑