Introduction
The "Attention-over-Attention" (AoA) Reader addresses the challenge of cloze-style reading comprehension. In this task, a machine must identify a missing word in a query sentence by extracting the correct answer from a provided document. While previous models utilized one-sided "query-to-document" attention, the AoA Reader introduces a more interactive approach, capturing the mutual influence between document and query words to focus on the most relevant information.
Methods
The AoA Reader architecture is designed for simplicity and mathematical clarity, avoiding the complex heuristic merging functions used in earlier models. It follows a streamlined four-step process:
- Contextual Embedding: Bi-directional Gated Recurrent Units (GRUs) process both the document and the query to capture the context of every word.
- Pair-wise Matching: The model generates a similarity matrix by calculating the dot product between every word in the document and every word in the query.
- Individual Attentions: It calculates two distributions: Query-to-Document (which document words match a query word) and Document-to-Query (which query words match a document word).
- Attention-over-Attention: This is the core innovation. The model averages the document-to-query distributions to find the "importance" of each query word. It then uses these weights to calculate a weighted sum of the query-to-document attentions, resulting in an "attended attention" over the document.
Finally, a Sum Attention mechanism aggregates scores for words that appear multiple times in the document, ensuring the final prediction is based on total evidence. The authors also employ an N-best Re-ranking Strategy using external language models to refine the top candidates for grammatical and contextual fit.
Datasets
The model was evaluated on two primary large-scale benchmarks:
- CNN/Daily Mail: News articles where the query is a summary sentence with a named entity removed.
- Children’s Book Test (CBT): Consecutive sentences from stories, split into Named Entities (NE) and Common Nouns (CN) tasks.
Results and Insights
The AoA Reader set new records across all tested datasets at the time of publication. A key insight from the quantitative analysis is that the AoA Reader's performance gap over baselines actually increases as documents get longer (700+ tokens), suggesting it is more robust at filtering out noise in lengthy texts than its predecessors.
Key performance highlights include:
- CBT-NE: The AoA ensemble with re-ranking reached 75.6% accuracy, significantly outperforming the previous state-of-the-art (72.0%).
- CBT-CN: Reached 74.1% accuracy, a substantial jump over the best baseline (71.0%).
- CNN News: Achieved 74.4% on the test set, outperforming the Stanford AR and GA Reader.
Even without ensembling or re-ranking, the basic AoA Reader often outperformed the ensemble versions of competing models, highlighting the effectiveness of its mutual attention mechanism.
Conclusion
The AoA Reader demonstrates that a simpler, more mathematically principled attention mechanism can outperform complex, heuristic-heavy models. While currently optimized for cloze-style tasks, future work aims to extend this architecture to generative answering and multi-sentence reasoning tasks.
Summary updated