Ask Me Anything: Dynamic Memory Networks for Natural Language Processing

Ankit Kumar, Ozan İrsoy, Peter Ondrúška, Mohit Iyyer, James Bradbury, Ishaan Gulrajani, Victor W. Zhong, Romain Paulus, Richard Socher

arXiv (Cornell University) · 2015 · 631 citations · 40 references

DOIFull text

Open access

Concepts

TL;DR

Most tasks in natural language processing can be cast into question answering (QA) problems over language input. The study introduces the dynamic memory network (DMN), a neural architecture that processes input sequences and questions to form episodic memories and generate relevant answers. The DMN employs an iterative attention process triggered by questions, conditions attention on inputs and prior iterations, and reasons over the results in a hierarchical recurrent sequence model, trained end‑to‑end using word vectors and input‑question‑answer triplets. The DMN achieves state‑of‑the‑art performance on multiple tasks, including Facebook's bAbI question answering, Stanford Sentiment Treebank classification, and WSJ‑PTB part‑of‑speech tagging.

Abstract

Most tasks in natural language processing can be cast into question answering (QA) problems over language input. We introduce the dynamic memory network (DMN), a neural network architecture which processes input sequences and questions, forms episodic memories, and generates relevant answers. Questions trigger an iterative attention process which allows the model to condition its attention on the inputs and the result of previous iterations. These results are then reasoned over in a hierarchical recurrent sequence model to generate answers. The DMN can be trained end-to-end and obtains state-of-the-art results on several types of tasks and datasets: question answering (Facebook's bAbI dataset), text classification for sentiment analysis (Stanford Sentiment Treebank) and sequence modeling for part-of-speech tagging (WSJ-PTB). The training for these different tasks relies exclusively on trained word vector representations and input-question-answer triplets.

References

40