[Paper Review] Broad Context Language Modeling as Reading Comprehension
This paper proposes treating the LAMBADA language modeling task as a reading comprehension problem by training neural readers on a large automatically constructed dataset of 1.8 million instances where the correct word appears in the context. By leveraging attention-based neural networks trained on this data, the approach improves zero-shot language modeling accuracy on LAMBADA from 7.3% to 49.0%, demonstrating that context-aware neural readers significantly outperform traditional language models on broad-context word prediction tasks.
Progress in text understanding has been driven by large datasets that test particular capabilities, like recent datasets for reading comprehension (Hermann et al., 2015). We focus here on the LAMBADA dataset (Paperno et al., 2016), a word prediction task requiring broader context than the immediate sentence. We view LAMBADA as a reading comprehension problem and apply comprehension models based on neural networks. Though these models are constrained to choose a word from the context, they improve the state of the art on LAMBADA from 7.3% to 49%. We analyze 100 instances, finding that neural network readers perform well in cases that involve selecting a name from the context based on dialogue or discourse cues but struggle when coreference resolution or external knowledge is needed.
Motivation & Objective
- To improve state-of-the-art performance on the LAMBADA benchmark, a challenging word prediction task requiring broad context.
- To investigate whether neural reading comprehension models can be adapted to language modeling by treating word prediction as a reading comprehension problem.
- To analyze the types of linguistic phenomena that challenge current models, particularly coreference resolution and external knowledge.
- To construct a large-scale, automatically generated training dataset for context-aware language modeling using the LAMBADA-like structure.
- To evaluate the generalization gap between neural readers and human performance on both test and control subsets of LAMBADA.
Proposed method
- The authors create a training set of 1.8 million instances by automatically selecting passages from BookCorpus where the target word appears in the context, enabling supervised learning.
- Neural readers—specifically Stanford, Attention Sum, and Gated-Attention readers—are trained on this synthetic dataset to predict the last word of a passage based on context.
- Each model uses bidirectional RNNs to encode the context and question (with a blank), computes attention weights over context positions using the question representation, and selects the answer via a weighted sum of context vectors.
- The models are trained end-to-end with word embeddings learned from random initialization, without using pre-trained embeddings.
- The attention mechanism varies by model: inner product in Attention Sum, bilinear in Stanford, and a more complex gated attention in the Gated-Attention Reader.
- The evaluation is conducted on the original LAMBADA test set, with performance measured as top-1 accuracy on predicting the last word.
Experimental results
Research questions
- RQ1Can neural reading comprehension models trained on automatically constructed data significantly improve performance on the LAMBADA language modeling benchmark?
- RQ2What types of linguistic phenomena—such as coreference, discourse inference, or external knowledge—are most challenging for current neural readers on LAMBADA?
- RQ3How does the performance of neural readers compare to strong language modeling baselines, especially on instances where the correct word is not present in the context?
- RQ4To what extent does the presence of the answer in the context correlate with model success, and how does this affect generalization?
- RQ5What is the estimated human performance on the LAMBADA test set, and how does it compare to model performance?
Key findings
- The proposed method improves the state of the art on the LAMBADA benchmark from 7.3% to 49.0% accuracy, representing a 41.7 percentage point improvement.
- Neural readers perform best on instances requiring simple name selection or speaker tracking, achieving 100% and 84% accuracy respectively on 9 and 19 instances.
- The models struggle significantly on instances requiring coreference resolution or external knowledge, with accuracy dropping substantially on these categories.
- The authors estimate human performance on the test set at 36%, indicating a 14-percentage-point gap between the best model and human performance.
- Despite the 49% accuracy, the models fail on 17% of instances where the correct word is not in the context, highlighting a key limitation of the approach.
- The study reveals that the control set (where the answer is not in the context) is more challenging than the test set, and that performance rankings on the two sets are similar, suggesting the training data is representative.
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.