GLOW : Global Weighted Self-Attention Network for Web Search

Xuan Shan, Chuanjie Liu, Yiqian Xia, Qi Chen, Yusi Zhang +4 more
7/10/2020
cs.IR
transformer-attention

Official code: cadobe/bison (26 stars, Python, last commit 2020-07-20).

Abstract

Deep matching models aim to facilitate search engines retrieving more relevant documents by mapping queries and documents into semantic vectors in the first-stage retrieval. When leveraging BERT as the deep matching model, the attention score across two words are solely built upon local contextualized word embeddings.

Show full abstract

It lacks prior global knowledge to distinguish the importance of different words, which has been proved to play a critical role in information retrieval tasks. In addition to this, BERT only performs attention across sub-words tokens which weakens whole word attention representation. We propose a novel Global Weighted Self-Attention (GLOW) network for web document search. GLOW fuses global corpus statistics into the deep matching model. By adding prior weights into attention generation from global information, like BM25, GLOW successfully learns weighted attention scores jointly with query matrix $Q$ and key matrix $K$. We also present an efficient whole word weight sharing solution to bring prior whole word knowledge into sub-words level attention. It aids Transformer to learn whole word level attention. To make our models applicable to complicated web search scenarios, we introduce combined fields representation to accommodate documents with multiple fields even with variable number of instances. We demonstrate GLOW is more efficient to capture the topical and semantic representation both in queries and documents. Intrinsic evaluation and experiments conducted on public data sets reveal GLOW to be a general framework for document retrieve task. It significantly outperforms BERT and other competitive baselines by a large margin while retaining the same model complexity with BERT.

View on arXivView PDF

Code Implementations(1)

cadobe/bisonOfficial100%

source code of bison

262PythonMay 21, 20206 years ago

Similar Papers

Cite this paper

@article{shan2020glow,
  title  = {GLOW : Global Weighted Self-Attention Network for Web Search},
  author = {Xuan Shan and Chuanjie Liu and Yiqian Xia and Qi Chen and Yusi Zhang and Kaize Ding and Yaobo Liang and Angen Luo and Yuxiang Luo},
  year   = {2020},
  eprint = {2007.05186},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2007.05186}
}

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/2007.05186.svg)](https://codeofpaper.com/paper/2007.05186)

Discussion