HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Bidirectional Attention Flow for Machine Comprehension

Minjoon Seo; Aniruddha Kembhavi; Ali Farhadi; Hannaneh Hajishirzi

Bidirectional Attention Flow for Machine Comprehension

Abstract

Machine comprehension (MC), answering a query about a given context paragraph, requires modeling complex interactions between the context and the query. Recently, attention mechanisms have been successfully extended to MC. Typically these methods use attention to focus on a small portion of the context and summarize it with a fixed-size vector, couple attentions temporally, and/or often form a uni-directional attention. In this paper we introduce the Bi-Directional Attention Flow (BIDAF) network, a multi-stage hierarchical process that represents the context at different levels of granularity and uses bi-directional attention flow mechanism to obtain a query-aware context representation without early summarization. Our experimental evaluations show that our model achieves the state-of-the-art results in Stanford Question Answering Dataset (SQuAD) and CNN/DailyMail cloze test.

Code Repositories

white127/squad-2.0-bidaf
tf
Mentioned in GitHub
shmsw25/qa-transfer
tf
Mentioned in GitHub
minstar/BIDAF
tf
Mentioned in GitHub
allenai/bi-att-flow
Official
tf
Mentioned in GitHub
rajatgermany/qa-nlp
pytorch
Mentioned in GitHub
GauthierDmn/question_answering
pytorch
Mentioned in GitHub
WarruzuEndo/BiDAF_mindspore
mindspore
Mentioned in GitHub
xiaobaicxy/Bidaf_SQuAD_MC_Pytorch
pytorch
Mentioned in GitHub
surekhamedapati/NLPA_NEO
pytorch
Mentioned in GitHub
galsang/BiDAF-pytorch
pytorch
Mentioned in GitHub
baidu/DuReader
tf
Mentioned in GitHub
davidgolub/QuestionGeneration
pytorch
Mentioned in GitHub
suryaiyer/squad-bidaf
pytorch
Mentioned in GitHub
Deepak-Work/Passage_Retrieval
tf
Mentioned in GitHub
kokikwbt/deepsect
Mentioned in GitHub
tikyau/bidaf-quick-test
tf
Mentioned in GitHub
lmn-extracts/dcn_plus
tf
Mentioned in GitHub
dsouzadaniel/BiDAF
pytorch
Mentioned in GitHub
ghus75/Question_Answering
tf
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
open-domain-question-answering-on-quasarBiDAF
EM (Quasar-T): 25.9
F1 (Quasar-T): 28.5
question-answering-on-cnn-daily-mailBiDAF
CNN: 76.9
Daily Mail: 79.6
question-answering-on-ms-marcoBiDaF Baseline
BLEU-1: 10.64
Rouge-L: 23.96
question-answering-on-narrativeqaBiDAF
BLEU-1: 33.45
BLEU-4: 15.69
METEOR: 15.68
Rouge-L: 36.74
question-answering-on-squad11BiDAF (single model)
EM: 67.974
F1: 77.323
question-answering-on-squad11BiDAF (ensemble)
EM: 73.744
F1: 81.525
question-answering-on-squad11-devBIDAF (single)
EM: 67.7
F1: 77.3

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp