Concepedia

Publication | Open Access

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

417

Citations

30

References

2018

Year

TLDR

End‑to‑end Q&A models largely rely on RNNs with attention, but their sequential nature makes training and inference slow. The authors propose QANet, a Q&A architecture that replaces recurrent networks with convolution and self‑attention to capture local and global interactions. QANet’s encoder uses only convolution for local patterns and self‑attention for global context, and the model is trained on data augmented via back‑translation from a neural machine translation system. On SQuAD, QANet trains 3–13× faster and infers 4–9× faster than RNN baselines while matching accuracy, and with back‑translated data it achieves an 84.6 F1 score, surpassing the previous best of 81.8.

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. 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.

References

YearCitations

Page 1