Skip to main content
QUICK REVIEW

[Paper Review] Learning Dense Representations of Phrases at Scale

Jinhyuk Lee, Mujeen Sung|arXiv (Cornell University)|Dec 23, 2020
Topic ModelingComputer Science45 references5 citations
TL;DR

This paper introduces DensePhrases, a method to learn dense vector representations of phrases at scale using supervision from reading comprehension tasks, enhanced by novel negative sampling (including pre-batch negatives) and query-side fine-tuning. The approach achieves state-of-the-art performance in open-domain question answering—matching retriever-reader models—while reducing storage by 80% and enabling over 10 questions per second on CPUs.

ABSTRACT

Open-domain question answering can be reformulated as a phrase retrieval problem, without the need for processing documents on-demand during inference (Seo et al., 2019). However, current phrase retrieval models heavily depend on sparse representations and still underperform retriever-reader approaches. In this work, we show for the first time that we can learn dense representations of phrases alone that achieve much stronger performance in open-domain QA. We present an effective method to learn phrase representations from the supervision of reading comprehension tasks, coupled with novel negative sampling methods. We also propose a query-side fine-tuning strategy, which can support transfer learning and reduce the discrepancy between training and inference. On five popular open-domain QA datasets, our model DensePhrases improves over previous phrase retrieval models by 15%-25% absolute accuracy and matches the performance of state-of-the-art retriever-reader models. Our model is easy to parallelize due to pure dense representations and processes more than 10 questions per second on CPUs. Finally, we directly use our pre-indexed dense phrase representations for two slot filling tasks, showing the promise of utilizing DensePhrases as a dense knowledge base for downstream tasks.

Motivation & Objective

  • To develop a fully dense phrase retrieval system that eliminates reliance on sparse representations for open-domain question answering.
  • To improve phrase representation learning by leveraging supervision from reading comprehension datasets and data augmentation.
  • To reduce the distribution shift between training and inference via query-side fine-tuning for better generalization.
  • To enable efficient, scalable phrase retrieval with low storage and high throughput on CPU hardware.
  • To demonstrate the utility of DensePhrases as a dense knowledge base for downstream tasks like slot filling.

Proposed method

  • Train a phrase encoder using contrastive learning on question-answer pairs from reading comprehension datasets, with phrase-level representations derived from the same context.
  • Apply data augmentation and knowledge distillation to improve phrase representation quality within a single passage.
  • Introduce pre-batch negatives, which use embeddings from previous mini-batches as negative examples to enhance contrastive learning without requiring large-batch training.
  • Use in-batch negatives as a baseline for negative sampling, improving discrimination between positive and negative phrases.
  • Implement query-side fine-tuning, where the question encoder is fine-tuned on downstream QA datasets to align query representations with the pre-indexed phrase representations.
  • Pre-index all phrase representations from Wikipedia into a dense vector database for efficient similarity search during inference.

Experimental results

Research questions

  • RQ1Can fully dense phrase representations achieve state-of-the-art performance in open-domain question answering without relying on sparse retrieval?
  • RQ2How effective are novel negative sampling strategies—particularly pre-batch negatives—in improving phrase representation learning at scale?
  • RQ3To what extent does query-side fine-tuning reduce the distribution shift between training and inference, and improve zero-shot generalization?
  • RQ4Can DensePhrases serve as a viable dense knowledge base for downstream tasks like slot filling with minimal fine-tuning?
  • RQ5What is the trade-off between model performance, storage efficiency, and inference speed when replacing sparse with dense phrase representations?

Key findings

  • DensePhrases improves over previous phrase retrieval models by 15%–25% absolute accuracy on five open-domain QA benchmarks, including Natural Questions and SQuAD.
  • The model matches the performance of state-of-the-art retriever-reader models (e.g., DPR and REALM), achieving 40.9% EM on Natural Questions and 38.0% on SQuAD.
  • Storage for the full English Wikipedia is reduced from 1.5TB to 320GB, a 79% reduction, due to the elimination of sparse representations.
  • The model processes over 10 questions per second on CPU, demonstrating high inference efficiency.
  • Query-side fine-tuning improves performance by 15%–20% on out-of-distribution datasets (e.g., TQA, WQ, TREC), even when the phrase encoder was not trained on those datasets.
  • Using only 5% of the training data for fine-tuning, DensePhrases achieves state-of-the-art results on two slot-filling tasks, demonstrating its viability as a dense knowledge base.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.