Ultra-Fast, Low-Storage, Highly Effective Coarse-grained Selection in Retrieval-based Chatbot by Using Deep Semantic Hashing

Tian Lan, Xian-Ling Mao, Xiaoyan Gao, Wei Wei, Heyan Huang
12/17/2020
cs.CL

Official code: gmftbyGMFTBY/HashRetrieval (1 star, Python, MIT, last commit 2020-12-18).

Abstract

We study the coarse-grained selection module in retrieval-based chatbot. Coarse-grained selection is a basic module in a retrieval-based chatbot, which constructs a rough candidate set from the whole database to speed up the interaction with customers.

Show full abstract

So far, there are two kinds of approaches for coarse-grained selection module: (1) sparse representation; (2) dense representation. To the best of our knowledge, there is no systematic comparison between these two approaches in retrieval-based chatbots, and which kind of method is better in real scenarios is still an open question. In this paper, we first systematically compare these two methods from four aspects: (1) effectiveness; (2) index stoarge; (3) search time cost; (4) human evaluation. Extensive experiment results demonstrate that dense representation method significantly outperforms the sparse representation, but costs more time and storage occupation. In order to overcome these fatal weaknesses of dense representation method, we propose an ultra-fast, low-storage, and highly effective Deep Semantic Hashing Coarse-grained selection method, called DSHC model. Specifically, in our proposed DSHC model, a hashing optimizing module that consists of two autoencoder models is stacked on a trained dense representation model, and three loss functions are designed to optimize it. The hash codes provided by hashing optimizing module effectively preserve the rich semantic and similarity information in dense vectors. Extensive experiment results prove that, our proposed DSHC model can achieve much faster speed and lower storage than sparse representation, with limited performance loss compared with dense representation. Besides, our source codes have been publicly released for future research.

View on arXivView PDF

Code Implementations(1)

MIT

Learning to Hash for Coarse Retrieval in Open-Domain Dialog Systems

10Python, Jupyter NotebookNov 10, 20205 years agoMIT

Similar Papers

Cite this paper

@article{lan2020ultrafast,
  title  = {Ultra-Fast, Low-Storage, Highly Effective Coarse-grained Selection in Retrieval-based Chatbot by Using Deep Semantic Hashing},
  author = {Tian Lan and Xian-Ling Mao and Xiaoyan Gao and Wei Wei and Heyan Huang},
  year   = {2020},
  eprint = {2012.09647},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.09647}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2012.09647.svg)](https://codeofpaper.com/paper/2012.09647)

Discussion