Episodic Memory Reader: Learning What to Remember for Question Answering from Streaming Data

Moonsu Han, Minki Kang, Hyunwoo Jung, Sung Ju Hwang
3/14/2019
cs.LGcs.CLstat.ML
rl

Official code: h19920918/emr (15 stars, Python, last commit 2022-11-16).

Abstract

We consider a novel question answering (QA) task where the machine needs to read from large streaming data (long documents or videos) without knowing when the questions will be given, which is difficult to solve with existing QA methods due to their lack of scalability. To tackle this problem, we propose a novel end-to-end deep network model for reading comprehension, which we refer to as Episodic Memory Reader (EMR) that sequentially reads the input contexts into an external memory, while replacing memories that are less important for answering \emph{unseen} questions.

Show full abstract

Specifically, we train an RL agent to replace a memory entry when the memory is full, in order to maximize its QA accuracy at a future timepoint, while encoding the external memory using either the GRU or the Transformer architecture to learn representations that considers relative importance between the memory entries. We validate our model on a synthetic dataset (bAbI) as well as real-world large-scale textual QA (TriviaQA) and video QA (TVQA) datasets, on which it achieves significant improvements over rule-based memory scheduling policies or an RL-based baseline that independently learns the query-specific importance of each memory.

View on arXivView PDF

Code Implementations(1)

h19920918/emrOfficial100%

Code for Episodic Memory Reader (EMR) https://arxiv.org/abs/1903.06164

152Python, ShellJun 11, 20194 years ago

Similar Papers

Cite this paper

@article{han2019episodic,
  title  = {Episodic Memory Reader: Learning What to Remember for Question Answering from Streaming Data},
  author = {Moonsu Han and Minki Kang and Hyunwoo Jung and Sung Ju Hwang},
  year   = {2019},
  eprint = {1903.06164},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1903.06164}
}

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

Discussion