[Paper Review] Larger-Context Language Modelling
This paper proposes a larger-context language model that enhances recurrent neural network language models by incorporating discourse-level context through a late fusion mechanism with attention-based sentence encoding. The method significantly reduces perplexity, especially for content words like nouns, adjectives, and verbs, by improving document-level theme modeling compared to standard autoregressive models.
In this work, we propose a novel method to incorporate corpus-level discourse information into language modelling. We call this larger-context language model. We introduce a late fusion approach to a recurrent language model based on long short-term memory units (LSTM), which helps the LSTM unit keep intra-sentence dependencies and inter-sentence dependencies separate from each other. Through the evaluation on three corpora (IMDB, BBC, and PennTree Bank), we demon- strate that the proposed model improves perplexity significantly. In the experi- ments, we evaluate the proposed approach while varying the number of context sentences and observe that the proposed late fusion is superior to the usual way of incorporating additional inputs to the LSTM. By analyzing the trained larger- context language model, we discover that content words, including nouns, adjec- tives and verbs, benefit most from an increasing number of context sentences. This analysis suggests that larger-context language model improves the unconditional language model by capturing the theme of a document better and more easily.
Motivation & Objective
- To improve neural language modeling by incorporating corpus-level discourse context beyond sentence-level dependencies.
- To address the limitation of standard RNN language models that assume mutual independence among sentences.
- To investigate whether larger context improves perplexity and whether content words benefit more than function words.
- To compare late fusion and early fusion strategies for integrating context into LSTM units.
- To analyze how context length affects model performance and word predictability by part-of-speech category.
Proposed method
- Proposes a late fusion approach where the context vector from preceding sentences is concatenated with the LSTM hidden state at each time step, rather than being fed into the input gate early.
- Uses a bag-of-words (BoW) or sequential BoW representation with an attention mechanism to compress multiple context sentences into a single context vector.
- Employs an attention mechanism over context sentences to weight their relevance dynamically, improving context representation quality.
- Trains the model end-to-end using cross-entropy loss to minimize perplexity on next-word prediction.
- Applies a modified LSTM architecture that maintains separate processing of intra-sentence and inter-sentence dependencies via late fusion.
- Uses Stanford POS tagger to classify words and compute perplexity per part-of-speech tag for analysis.
Experimental results
Research questions
- RQ1Does incorporating discourse-level context from multiple preceding sentences improve language model perplexity compared to standard autoregressive models?
- RQ2Is late fusion of context vectors into the LSTM hidden state superior to early fusion in terms of performance and generalization?
- RQ3Do content words (nouns, adjectives, verbs) benefit more from larger context than function words (e.g., pronouns, determiners)?
- RQ4How does the number of context sentences affect model performance and word predictability?
- RQ5Can attention mechanisms effectively compress long context sequences into meaningful vectors for language modeling?
Key findings
- The larger-context language model significantly reduces per-word perplexity on IMDB, BBC, and Penn Treebank compared to standard RNN language models.
- The late fusion approach outperforms early fusion across all datasets and context lengths, demonstrating its effectiveness in integrating discourse context.
- Content words—nouns, adjectives, and verbs—show the largest improvement in predictability (lowest perplexity) as context length increases.
- Function words like pronouns (PRP), determiners (DT), and coordinating conjunctions (CC) show slight degradation in perplexity with more context, indicating a trade-off in model capacity.
- The model improves document-level coherence by better capturing thematic dependencies, as evidenced by the improved performance on open-class, content-rich words.
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.