Skip to main content
QUICK REVIEW

[Paper Review] Accelerating Real-Time Question Answering via Question Generation

Yuwei Fang, Shuohang Wang|arXiv (Cornell University)|Sep 10, 2020
Topic ModelingComputer Science46 references10 citations
TL;DR

Ocean-Q accelerates real-time question answering by generating a large pool of QA pairs offline using a question generation (QG) model, enabling online inference through n-gram matching without real-time neural encoding. It achieves 4x speedup over the fastest RTQA system with only a 3+% accuracy drop, significantly reducing computational and energy costs while maintaining competitive performance.

ABSTRACT

Although deep neural networks have achieved tremendous success for question answering (QA), they are still suffering from heavy computational and energy cost for real product deployment. Further, existing QA systems are bottlenecked by the encoding time of real-time questions with neural networks, thus suffering from detectable latency in deployment for large-volume traffic. To reduce the computational cost and accelerate real-time question answering (RTQA) for practical usage, we propose to remove all the neural networks from online QA systems, and present Ocean-Q (an Ocean of Questions), which introduces a new question generation (QG) model to generate a large pool of QA pairs offline, then in real time matches an input question with the candidate QA pool to predict the answer without question encoding. Ocean-Q can be readily deployed in existing distributed database systems or search engine for large-scale query usage, and much greener with no additional cost for maintaining large neural networks. Experiments on SQuAD(-open) and HotpotQA benchmarks demonstrate that Ocean-Q is able to accelerate the fastest state-of-the-art RTQA system by 4X times, with only a 3+% accuracy drop.

Motivation & Objective

  • To address the high computational and latency overhead of real-time question answering (RTQA) systems that rely on real-time neural encoding of questions.
  • To eliminate the need for maintaining and running large neural networks during online inference in RTQA systems.
  • To accelerate RTQA by pre-generating a large pool of candidate QA pairs offline using question generation (QG), enabling fast matching at inference time.
  • To improve QG quality through data augmentation, multi-task learning, and diverse beam search to enhance downstream RTQA performance.
  • To establish a new benchmark for open-domain RTQA without neural networks in real-time inference.

Proposed method

  • Offline generation of candidate QA pairs using an end-to-end question generation model trained on answer spans extracted from documents.
  • Use of answer extraction from context followed by question generation to create diverse candidate QA pairs.
  • Application of QA-pair verification via a state-of-the-art QA model to filter and correct low-quality or incorrect QA pairs.
  • Online matching of incoming questions to the pre-generated QA pool using n-gram overlap for instant retrieval, bypassing neural encoding.
  • Adoption of a two-step ranker in online matching to efficiently retrieve top candidate QA pairs before n-gram matching.
  • Employment of multi-task learning and diverse beam search during QG training to improve question diversity and quality.

Experimental results

Research questions

  • RQ1Can offline question generation significantly reduce real-time inference latency in question answering systems?
  • RQ2To what extent can a neural network-free online inference pipeline maintain competitive accuracy compared to state-of-the-art RTQA models?
  • RQ3How does data augmentation and QG quality enhancement impact the performance of the resulting RTQA system?
  • RQ4What is the trade-off between speedup and accuracy when replacing real-time neural encoding with pre-computed QA matching?
  • RQ5Can a QG model trained with multi-task learning and diverse beam search generate higher-quality candidate questions that improve RTQA performance?

Key findings

  • Ocean-Q accelerates the fastest existing RTQA system by 4x while incurring only a 3.0% to 3.8% accuracy drop on SQuAD-Open and HotpotQA benchmarks.
  • The two-step ranker improves retrieval accuracy, achieving 83.4% on SQuAD-Open with 200 paragraphs per query, outperforming DrQA (77.8%) with fewer paragraphs.
  • Increasing the number of candidate answers from 10 to 100 improved RTQA scores by 16.96 and 18.85 points on SQuAD and HotpotQA, respectively.
  • Increasing beam size from 1 to 20 improved RTQA scores by 12.02 and 11.59 points, demonstrating the benefit of generating more diverse questions.
  • Ablating the QA-pair verification step caused a 9.46% drop in accuracy, confirming its critical role in improving output quality.
  • Data augmentation with in-domain data (DA-sim) improved QG metrics by 0.83/0.61/0.71 on SQuAD and 2.07/1.61/2.14 on HotpotQA, while diverse data (DA-div) underperformed the baseline on SQuAD.

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.