Abstract
Traditional statistical language models, such as bigrams and trigrams, are inherently limited by their "short-sighted" nature, predicting the next word based only on the immediate preceding context. This paper introduces a "nonlocal" language model designed to capture long-distance lexical dependencies by representing document context as a vector. By combining local N-grams with a computationally efficient vector space model, the researchers achieved a 27.2% reduction in perplexity for content words, demonstrating that long-term document history is as critical as immediate local syntax.
The Challenge of Short-Sighted Models
Standard N-gram models excel at capturing local syntax (e.g., "New York"), but they often fail to account for the broader topic or "vibe" of a document. For instance, in a political article, the word "minister" is statistically more likely than "monster," even if the immediate preceding words do not provide topical cues. The primary challenge lies in representing the entire preceding text—the nonlocal context—in a mathematically useful and computationally feasible way to enhance word prediction.
Methodology: Context Co-occurrence Vectors
The authors propose a Context Co-occurrence Vector model that operates in three distinct phases:
- Word Co-occurrence Vectors: To avoid the high computational cost of Singular Value Decomposition (SVD), the model employs an iterative learning method. It begins with random "quasi-orthogonal" unit vectors and updates them so that words appearing in similar document contexts point in similar directions.
- Representing Context: The context of a document at any point is defined as the normalized sum of the co-occurrence vectors ($wc$) of all previously encountered content words. This resulting context vector ($cc$) serves as a running summary of the document's topic.
- The Hybrid Model: The final probability of a word is a linear interpolation of a standard trigram model (for local syntax) and a context co-occurrence probability. The latter is calculated using the dot product of the current context vector and the candidate word's vector, often squared or cubed to sharpen the distinction between related and unrelated terms.
Experimental Setup
The model was evaluated using the Mainichi Newspaper corpus, a large-scale Japanese dataset consisting of 440,000 articles from 1991 to 1997. The vocabulary included the top 50,000 content words for the vector space and the top 60,000 words for the N-gram models. Parameters were tuned using an Expectation-Maximization (EM) algorithm on a six-month data slice, with a separate six-month slice reserved for final testing.
Key Results and Qualitative Analysis
The hybrid "Context Language Model" significantly outperformed the baseline trigram model across multiple metrics:
- Overall Perplexity: Reduced by 5.0%.
- Target Vocabulary (Content Words): Reduced by a massive 27.2%.
- Bigram Baseline Comparison: Showed similar gains (5.7% overall reduction).
Qualitatively, the model demonstrated a superior ability to "stay on topic." In a news article regarding the stock market, the context model correctly assigned higher probabilities to words like "investment," "bank," and "corporation" compared to the standard trigram model.
Insights and Future Directions
A key insight from this research is the distinction between content and function words. Context vectors are built exclusively from content words (nouns, verbs), while function words (particles, auxiliary verbs) are handled primarily by the N-gram model. This separation acknowledges that while function words define grammatical structure, content words carry the topical signal.
Furthermore, the discovery that non-linear mapping (using $x^2$ or $x^3$ of the dot product) improves performance suggests that the affinity between a word and its context is not a simple linear scale; amplifying strong matches is necessary for accurate prediction.
Future work may explore adaptive interpolation, where the weights balancing the trigram and context models change dynamically based on the N-gram model's confidence. While the current iterative vector method is efficient, further optimizations could reduce the computational overhead of updating context vectors for every prediction.
Summary updated