[Paper Review] Episodic Memory Reader: Learning What to Remember for Question Answering from Streaming Data
This paper proposes Episodic Memory Reader (EMR), an end-to-end reinforcement learning model that selectively stores and replaces memory entries from streaming text or video data to maximize future question-answering accuracy. By learning relative importance among memory entries and using a policy network trained via RL, EMR significantly outperforms rule-based and baseline RL methods on TriviaQA and TVQA, demonstrating superior performance in long-context, memory-constrained QA scenarios.
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. 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.
Motivation & Objective
- Address the challenge of question answering from streaming data where context exceeds memory capacity and questions arrive after processing.
- Overcome limitations of existing QA models that require all context to be stored in memory and cannot handle long-term, sequential inputs.
- Develop a memory-augmented network that learns to prioritize and retain the most informative context for future QA tasks.
- Train a reinforcement learning agent to schedule memory replacements based on relative importance of entries, maximizing future QA accuracy.
- Validate the model on real-world large-scale text and video QA datasets under memory constraints.
Proposed method
- Use an external episodic memory to store encoded representations of streaming input (text or video frames) in a sequential manner.
- Employ GRU or Transformer architectures to encode memory entries and model relative importance between them.
- Train a reinforcement learning agent to decide which memory entry to replace when the memory is full, aiming to maximize future QA accuracy.
- Formulate the memory scheduling as a sequential decision-making problem using policy and value networks that consider both query relevance and inter-sentence importance.
- Use REINFORCE for training on TVQA due to high redundancy in video frames, where value function estimation is unstable.
- Integrate the memory module with a QA head (e.g., multi-stream model for video QA) to jointly optimize memory selection and answer prediction.
Experimental results
Research questions
- RQ1Can a memory-augmented network learn to retain the most informative context from streaming data without prior knowledge of future questions?
- RQ2How does modeling relative importance between memory entries improve QA performance compared to query-specific or independent importance estimation?
- RQ3To what extent does the EMR model generalize to unseen memory sizes during inference, especially in long-context scenarios?
- RQ4Does the use of Transformers in memory encoding improve performance over RNNs in capturing long-range dependencies among memory entries?
- RQ5How effective is the RL-based memory scheduling policy compared to rule-based or baseline RL methods in real-world QA tasks?
Key findings
- EMR significantly outperforms rule-based memory scheduling policies and an RL-based baseline that does not model relative importance on both TriviaQA and TVQA.
- On TVQA, EMR-Transformer achieves the highest accuracy, especially when memory size is small, due to its ability to model global relative importance among memory entries.
- The performance gap between EMR variants and baselines is most pronounced at smaller memory sizes, indicating effective selective memorization.
- Even when tested on memory sizes (up to 60) not seen during training, EMR maintains strong performance, showing good generalization.
- Qualitative analysis confirms that EMR preserves semantically critical frames and subtitles—such as those showing key actions or dialogues—despite not knowing the future question.
- The use of REINFORCE for training on TVQA proves effective in handling redundant video frames, where value-based methods fail due to poor reward signal stability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.