[Paper Review] Hierarchical Memory Networks for Answer Selection on Unknown Words
This paper proposes Hierarchical Memory Networks (HMN), a novel architecture that jointly models sentence-level and word-level memory for answer selection in question answering. By applying k-max pooling to select top-k relevant sentences and then using attention over word-level memory, HMN effectively captures fine-grained semantic details, especially for rare or unknown words, outperforming standard memory networks on synthetic dialogue datasets with unseen answers.
Recently, end-to-end memory networks have shown promising results on Question Answering task, which encode the past facts into an explicit memory and perform reasoning ability by making multiple computational steps on the memory. However, memory networks conduct the reasoning on sentence-level memory to output coarse semantic vectors and do not further take any attention mechanism to focus on words, which may lead to the model lose some detail information, especially when the answers are rare or unknown words. In this paper, we propose a novel Hierarchical Memory Networks, dubbed HMN. First, we encode the past facts into sentence-level memory and word-level memory respectively. Then, (k)-max pooling is exploited following reasoning module on the sentence-level memory to sample the (k) most relevant sentences to a question and feed these sentences into attention mechanism on the word-level memory to focus the words in the selected sentences. Finally, the prediction is jointly learned over the outputs of the sentence-level reasoning module and the word-level attention mechanism. The experimental results demonstrate that our approach successfully conducts answer selection on unknown words and achieves a better performance than memory networks.
Motivation & Objective
- To address the challenge of answer selection on rare or unknown words in question answering, where standard models discard or mask such terms.
- To improve reasoning over long-context facts by incorporating both sentence-level and word-level memory representations.
- To jointly learn from sentence-level reasoning and word-level attention to enhance model robustness on unseen or rare entities.
- To reduce computational cost while maintaining high performance by using k-max pooling to limit attention scope to the most relevant sentences.
- To demonstrate that hierarchical memory with context-aware word encoding (e.g., BiGRU) enhances performance on unknown word detection in QA.
Proposed method
- The model encodes input sentences into a sentence-level memory using temporal encoding, enabling multi-hop reasoning to retrieve relevant facts.
- k-max pooling is applied to the sentence-level memory outputs to select the k most relevant sentences for the question.
- Word-level memory is constructed using BiGRU or GRU to encode individual words with contextual information, improving representation quality.
- An attention mechanism is applied on the word-level memory of the selected k sentences, focusing on semantically relevant words.
- The final prediction is made by jointly learning from the output of the sentence-level reasoning module and the word-level attention mechanism.
- The probe vector for word-level attention is generated from the sentence-level reasoning module, ensuring semantic alignment with target answers.
Experimental results
Research questions
- RQ1Can a hierarchical memory architecture improve answer selection performance on rare or unknown words in question answering?
- RQ2Does combining sentence-level reasoning with word-level attention lead to better performance than standard memory networks?
- RQ3How does the choice of word-level encoding (e.g., BiGRU vs. GRU vs. embedding) affect performance on unknown words?
- RQ4What is the optimal value of k in k-max pooling for balancing performance and computational cost?
- RQ5Can attention mechanisms effectively filter out noise words (e.g., 'the', 'on') while focusing on key named entities in unseen answers?
Key findings
- HMN achieves superior performance on answer selection compared to standard memory networks, particularly on synthetic datasets with abundant unseen or rare words.
- Using BiGRU for word-level memory encoding significantly improves performance over simple embeddings or GRU, especially as k increases.
- The performance of HMN-Joint with BiGRU remains stable across different k values, indicating robustness and scalability.
- k=4 provides a good trade-off between performance and computational cost, as higher k values do not yield significant gains.
- The attention mechanism effectively filters out irrelevant words like 'time' and 'go', focusing on key named entities such as 'Wainwright' or '899917359'.
- The probe vector derived from sentence-level reasoning enhances word-level attention by aligning it with the semantic intent of the question.
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.