[Paper Review] Adaptive Memory Networks
Adaptive Memory Networks (AMN) dynamically construct variable-depth memory architectures for Question Answering by creating discrete memory banks based on entity relevance to the input question, enabling faster inference through selective bank access. The model achieves state-of-the-art accuracy on bAbI tasks while reducing inference time by up to 87% by examining only a fraction of entities via a differentiable, discrete bank controller.
We present Adaptive Memory Networks (AMN) that processes input-question pairs to dynamically construct a network architecture optimized for lower inference times for Question Answering (QA) tasks. AMN processes the input story to extract entities and stores them in memory banks. Starting from a single bank, as the number of input entities increases, AMN learns to create new banks as the entropy in a single bank becomes too high. Hence, after processing an input-question(s) pair, the resulting network represents a hierarchical structure where entities are stored in different banks, distanced by question relevance. At inference, one or few banks are used, creating a tradeoff between accuracy and performance. AMN is enabled by dynamic networks that allow input dependent network creation and efficiency in dynamic mini-batching as well as our novel bank controller that allows learning discrete decision making with high accuracy. In our results, we demonstrate that AMN learns to create variable depth networks depending on task complexity and reduces inference times for QA tasks.
Motivation & Objective
- To reduce inference time in Question Answering systems without sacrificing accuracy.
- To enable end-to-end training of memory networks with dynamic architecture creation based on input complexity.
- To learn discrete, differentiable decisions for memory bank creation and entity routing.
- To improve efficiency in long-context QA by limiting decoding to only relevant memory banks.
- To enhance interpretability by organizing entities into semantically coherent, question-relevant memory banks.
Proposed method
- AMN processes input stories to extract entities and stores them in memory banks, with the number of banks dynamically increasing as entropy in a single bank exceeds a threshold.
- A novel differentiable bank controller uses the reparameterization trick to make discrete decisions on entity placement across banks, enabling backpropagation through discrete choices.
- Entities are grouped into banks based on their relevance to the input question, forming a hierarchical structure that reflects question-dependent entity clustering.
- The model uses a dynamic network architecture that creates only the necessary number of banks per input, reducing computation during inference.
- AMN supports multi-question processing by generating a shared memory structure across multiple questions, avoiding redundant network construction.
- The decoder accesses only the most relevant banks during inference, creating a trade-off between speed and accuracy.
Experimental results
Research questions
- RQ1Can a memory network dynamically construct its architecture at inference time to reduce computational cost?
- RQ2How can discrete memory management decisions be made differentiable for end-to-end training?
- RQ3To what extent can adaptive memory organization improve inference efficiency without reducing accuracy?
- RQ4Can the model generalize across diverse QA tasks with varying complexity and entity relationships?
- RQ5How does the number of memory banks correlate with task difficulty and entity relevance?
Key findings
- AMN reduces inference time by up to 87% compared to standard memory networks by examining only a fraction of entities.
- On the bAbI 100-entities task, AMN creates 6 memory banks but only uses 13% of the total entities (ratio 0.13), significantly reducing computation.
- For multi-question tasks, AMN maintains high efficiency, using only 38% of entities on average despite increased input complexity.
- AMN achieves state-of-the-art performance on all 20 bAbI tasks, including complex reasoning tasks like path finding and counting.
- The model learns to create only one memory bank when entities are sparse or highly relevant, indicating effective relevance-based routing.
- AMN’s differentiable discrete controller enables stable training without curriculum learning, unlike NTMs.
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.