Bidirectional Attention Flow for Machine Comprehension

Min Joon Seo, Aniruddha Kembhavi, Ali Farhadi, Hannaneh Hajishirzi

arXiv (Cornell University) · 2016 · 1.3K citations · 0 references

DOIFull text

Open access

Concepts

TL;DR

Machine comprehension requires modeling complex interactions between context and query, and recent attention mechanisms have been extended to MC, typically focusing on small context portions, summarizing them with fixed‑size vectors, coupling attentions temporally, or forming uni‑directional attention. The study introduces the Bi‑Directional Attention Flow (BIDAF) network to represent context at multiple granularities and obtain query‑aware representations without early summarization. BIDAF employs a multi‑stage hierarchical process with bi‑directional attention flow to capture interactions between context and query. Experimental evaluations show that BIDAF achieves state‑of‑the‑art results on SQuAD and CNN/DailyMail cloze tests.

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.