BERT-kNN: Adding a kNN Search Component to Pretrained Language Models for Better QA

By Nora Kassner, Hinrich Schütze. 2020

72 citations recorded by the source corpus.

Khandelwal et al. (2020) use a k-nearest-neighbor (kNN) component to improve language model performance. We show that this idea is beneficial for open-domain question answering (QA). To improve the recall of facts encountered during training, we combine BERT (Devlin et al., 2019) with a traditional information retrieval step (IR) and a kNN search over a large datastore of an embedded text collection. Our contributions are as follows: i) BERT-kNN outperforms BERT on cloze-style QA by large margins without any further training. ii) We show that BERT often identifies the correct response category (e.g., US city), but only kNN recovers the factually correct answer (e.g.,“Miami”). iii) Compared to BERT, BERT-kNN excels for rare facts. iv) BERT-kNN can easily handle facts not covered by BERT’s training set, e.g., recent events.

Subfields: Artificial Intelligence, Information Retrieval & Search, Large Language Models

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Lawrence Carin
  2. Dinghan Shen
  3. Jianfeng Gao
  4. Yizhe Zhang
  5. Peter Clark
  6. Dani Yogatama
  7. Chunyuan Li
  8. Weizhu Chen

In Information Retrieval & Search

  1. Cyprien de Masson d'Autume
  2. Lawrence Carin
  3. Dani Yogatama
  4. Dinghan Shen
  5. Weizhu Chen
  6. Bhavana Dalvi
  7. Lingpeng Kong
  8. Peter Clark

In Large Language Models

  1. Cyprien de Masson d'Autume
  2. Lawrence Carin
  3. Dani Yogatama
  4. Dinghan Shen
  5. Weizhu Chen
  6. Yizhe Zhang
  7. Lingpeng Kong
  8. Peter Clark

Citations in the corpus