[Paper Review] Focused Hierarchical RNNs for Conditional Sequence Processing
This paper proposes a focused hierarchical RNN (FHE) that uses a discrete, context-conditioned gating mechanism to selectively encode relevant input segments for question answering. By training the gates via policy gradients and employing soft attention over high-level representations, the model achieves state-of-the-art performance on MS MARCO and SearchQA, with significant gains in generalization and answer quality over strong baselines.
Recurrent Neural Networks (RNNs) with attention mechanisms have obtained state-of-the-art results for many sequence processing tasks. Most of these models use a simple form of encoder with attention that looks over the entire sequence and assigns a weight to each token independently. We present a mechanism for focusing RNN encoders for sequence modelling tasks which allows them to attend to key parts of the input as needed. We formulate this using a multi-layer conditional sequence encoder that reads in one token at a time and makes a discrete decision on whether the token is relevant to the context or question being asked. The discrete gating mechanism takes in the context embedding and the current hidden state as inputs and controls information flow into the layer above. We train it using policy gradient methods. We evaluate this method on several types of tasks with different attributes. First, we evaluate the method on synthetic tasks which allow us to evaluate the model for its generalization ability and probe the behavior of the gates in more controlled settings. We then evaluate this approach on large scale Question Answering tasks including the challenging MS MARCO and SearchQA tasks. Our models shows consistent improvements for both tasks over prior work and our baselines. It has also shown to generalize significantly better on synthetic tasks as compared to the baselines.
Motivation & Objective
- To improve sequence modeling in conditional generation tasks by enabling RNN encoders to focus selectively on relevant input segments based on context or questions.
- To develop a discrete, stochastic gating mechanism that controls information flow from word-level to concept-level representations in a hierarchical RNN architecture.
- To train the gating mechanism using reinforcement learning (policy gradients) to optimize for downstream task performance.
- To evaluate the model's generalization and attention behavior on synthetic tasks and real-world QA benchmarks like MS MARCO and SearchQA.
- To close the gap between span-based and generative QA models by enabling better answer generalization through structured, context-aware encoding.
Proposed method
- The model uses a two-layer LSTM architecture: a lower layer processes input tokens sequentially, while an upper layer captures high-level representations of relevant sub-sequences.
- A conditional boundary gate, informed by the current lower-layer hidden state and the question embedding, decides when to update the upper-layer LSTM with a summary of the current token group.
- The gate is trained using policy gradient methods to maximize task reward (e.g., BLEU or ROUGE scores), enabling end-to-end learning of selective attention.
- The upper-layer LSTM states are updated only when the gate is open, allowing the model to group and compress relevant information based on context.
- Soft attention is applied over the upper-level hidden states to generate answers, enabling dynamic focus on salient document parts.
- The model incorporates a pointer-softmax mechanism to handle rare words, improving generation on low-frequency vocabulary in large-scale datasets like MS MARCO.
Experimental results
Research questions
- RQ1Can a discrete, context-conditioned gating mechanism improve the ability of RNN encoders to focus on relevant input segments in sequence modeling tasks?
- RQ2Does training the gating mechanism with policy gradients lead to better generalization on synthetic tasks with controlled input-output relationships?
- RQ3To what extent does the focused hierarchical encoder improve performance on large-scale, real-world question answering benchmarks like MS MARCO and SearchQA?
- RQ4How do the learned boundaries and attention mechanisms contribute to answer quality and generalization compared to standard attention mechanisms?
- RQ5Can a generative QA model with structured encoding outperform span-based models in terms of answer generalization while maintaining strong performance on standard metrics?
Key findings
- The model outperforms all competing methods on the MS MARCO dataset, achieving state-of-the-art results in both BLEU-1 and ROUGE-L scores.
- On the SearchQA benchmark, the model significantly outperforms prior work, including recent methods like those by Buck et al. (2018).
- Ablation studies show that the element-wise product between question and context embeddings provides the largest performance gain, highlighting its importance for context integration.
- The pointer-softmax mechanism contributes significantly to performance, especially in handling rare words, which constitute around 90% of the vocabulary in MS MARCO.
- The learned boundary mechanism is critical for performance, as removing it leads to a substantial drop in accuracy, validating its role in structured encoding.
- Human evaluation shows that 63% of volunteers preferred answers generated by the proposed model over those from a strong LSTM baseline, indicating improved answer quality and coherence.
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.