Abstract
In this paper we propose a novel statistical language model to capture long-range semantic dependencies. Specifically, we apply the concept of semantic composition to the problem of constructing predictive history representations for upcoming words. We also examine the influence of the underlying semantic space on the composition task by comparing spatial semantic representations against topic-based ones. The composition models yield reductions in perplexity when combined with a standard n-gram language model over the n-gram model alone. We also obtain perplexity reductions when integrating our models with a structured language model.
Introduction
Traditional $n$-gram language models are inherently limited by their "short-sighted" nature. By predicting the next word based only on a local window of the previous 2–4 words, these models struggle to maintain thematic consistency or capture complex syntactic relationships over long distances. While previous attempts to incorporate semantic histories (such as Latent Semantic Analysis) have been made, they often relied on simple mathematical shortcuts like vector addition (centroids). This research argues that simple addition fails to capture how word meanings interact. Instead, we propose a formal framework for composing the meaning of a sentence's history to improve predictive accuracy.
Methodology
Semantic Representations
We explore two distinct ways to represent word meaning:
- Simple Semantic Space (SSM): A high-dimensional vector space where word representations are derived from co-occurrence patterns with the 2,000 most frequent words in the corpus.
- Topic Models (LDA): A probabilistic approach where words are represented as distributions over a set of latent "topics."
Composition Functions
To combine these individual word vectors into a representation of the history ($h$), we compare two functions:
- Additive: $h = u + v$. This acts as a logical "OR" operation, accumulating all features from the constituent words.
- Multiplicative: $h = u \cdot v$. This acts as a logical "AND" or a filter, scaling components based on shared strengths between vectors, effectively "picking out" shared context.
These compositions are integrated into a probabilistic framework as a semantic component ($\Delta$) that scales the predictions of a standard $n$-gram model. Furthermore, we test these models alongside a Structured Language Model (a syntactic parser) to determine if semantic and syntactic signals are complementary.
Experimental Setup
The models were evaluated using the BLLIP Corpus, consisting of approximately 38.5 million words from Wall Street Journal texts. We utilized a vocabulary of the 20,000 most frequent words. Performance was measured using perplexity, where a lower score indicates a more predictive and accurate model.
Experimental Results
The integration of semantic composition consistently improved model performance over the baseline trigram. As shown in the results below, the multiplicative SSM provided a more significant reduction in perplexity than the additive version.
The most effective configuration combined the $n$-gram model, the syntactic parser, and the multiplicative SSM, achieving the lowest overall perplexity (71.32). This confirms that semantic and syntactic information provide distinct, additive benefits for language prediction.
The LDA Sparsity Challenge
An interesting finding was the poor performance of multiplicative composition when applied to LDA topic models. While LDA is a sophisticated representation, its distributions are naturally sparse—a word typically belongs to only a few topics. Multiplying two sparse LDA vectors often results in a vector of nearly all zeros, which destroys its predictive utility.
As illustrated in the figure above, while additive LDA maintains stable perplexity, the multiplicative variant suffers from significantly higher perplexity, highlighting the "sparsity trap" inherent in combining generative topic models with bottom-up multiplicative composition.
Conclusion
This work demonstrates that multiplicative semantic composition in a high-dimensional space (SSM) effectively captures long-range dependencies that $n$-grams miss. While current models are "bag-of-words" and ignore word order, they provide a strong foundation for future work. Potential avenues include optimizing vector components specifically for composition and developing models that integrate syntactic structure directly into the composition process, such as composing verbs specifically with their subjects.
Summary updated