QANet: Combining Local Convolution with Global Self-Attention for Reading Comprehension

Adams Wei Yu, David Dohan, Minh-Thang Luong, Rui Zhao, Kai Chen +2 more
4/23/2018
1,170 citations
cs.CLcs.AIcs.LG
transformer-attention

No official code found. Best implementation: BangLiu/QANet-PyTorch (120 stars). 2 more below.

Abstract

Current end-to-end machine reading and question answering (Q\&A) models are primarily based on recurrent neural networks (RNNs) with attention. Despite their success, these models are often slow for both training and inference due to the sequential nature of RNNs.

Show full abstract

We propose a new Q\&A architecture called QANet, which does not require recurrent networks: Its encoder consists exclusively of convolution and self-attention, where convolution models local interactions and self-attention models global interactions. On the SQuAD dataset, our model is 3x to 13x faster in training and 4x to 9x faster in inference, while achieving equivalent accuracy to recurrent models. The speed-up gain allows us to train the model with much more data. We hence combine our model with data generated by backtranslation from a neural machine translation model. On the SQuAD dataset, our single model, trained with augmented data, achieves 84.6 F1 score on the test set, which is significantly better than the best published F1 score of 81.8.

View on arXivView PDF

Code Implementations(3)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
BangLiu/QANet-PyTorchCommunity120–––
ni9elf/QANetCommunity31–––
iam-Raghav/QANet-QuestionAndanswering-systemCommunity3–––

Re-implement "QANet: Combining Local Convolution with Global Self-Attention for Reading Comprehension"

12025
ni9elf/QANetCommunity25%

A TensorFlow implementation of "QANet: Combining Local Convolution with Global Self-Attention for Reading Comprehension"

3113

Implementation of QANet: Combining Local Convolution with Global Self-Attention for Reading Comprehension using BIDAF

30

Similar Papers

Cite this paper

@article{yu2018qanet,
  title  = {QANet: Combining Local Convolution with Global Self-Attention for Reading Comprehension},
  author = {Adams Wei Yu and David Dohan and Minh-Thang Luong and Rui Zhao and Kai Chen and Mohammad Norouzi and Quoc V. Le},
  year   = {2018},
  eprint = {1804.09541},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1804.09541}
}

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

Discussion