Sequence Prediction Exploiting Similary Information

István Bíró, Zoltán Szamonek, Csaba SzepesváriIJCAI 2007

Abstract

Statistical language modeling frequently encounters the data sparsity problem, where many valid word combinations are absent from training sets. This paper introduces Similarity Based Smoothing (SBS), a novel approach that leverages external similarity information to improve $n$-gram probability estimation. By treating log-probabilities as smooth functions on a similarity graph and utilizing spectral basis functions, SBS generalizes more effectively than traditional methods like Kneser-Ney. Experiments on synthetic and real-world data demonstrate that SBS is particularly effective when training data is limited and remains robust even when similarity information is noisy.

1. Introduction

In natural language processing, predicting the next word in a sequence is a fundamental task. However, the vastness of natural language vocabularies leads to the "data sparsity problem," where many legitimate $n$-grams never appear in a given training corpus. Standard smoothing techniques, such as Interpolated Kneser-Ney (IKN), address this by redistributing probability mass from observed to unobserved events, typically by backing off to shorter sequences. While effective, these methods often ignore semantic or syntactic similarities between words (e.g., "apple" and "pear"). This work proposes bridging this gap by incorporating a similarity graph directly into the probability estimation process.

2. Methodology: Similarity Based Smoothing (SBS)

The SBS framework integrates spectral graph theory with regularized logistic regression through a four-step process:

  1. Similarity Graph Construction: The vocabulary is represented as a graph where nodes are words and edges denote similarity based on synonyms or parts of speech.
  2. Spectral Basis Functions: Singular Value Decomposition (SVD) is performed on the graph's normalized adjacency matrix. The resulting eigenvectors serve as basis functions that capture "smooth" signals over the graph, ensuring similar words have similar values.
  3. Feature Expansion: The log-conditional probability of a bigram is modeled as a linear combination of these spectral basis functions. Standard "Euclidean" basis functions (Kronecker deltas) are included as a safety net to ensure the model defaults to standard behavior if the similarity graph is poor.
  4. Regularized Regression: Model parameters are solved using Sparse Multinomial Logistic Regression (SMLR) with $L_1$ (Laplacian) or $L_2$ (Gaussian) priors to prevent overfitting in high-dimensional feature spaces.

3. Experimental Evaluation

The proposed method was evaluated using synthetic data from clustered Markov models and real-world Part-of-Speech (POS) sequences from the Wall Street Journal (WSJ) corpus. External knowledge for the similarity graph was derived from WordNet and the Brown Corpus.

3.1 Performance in Data-Scarce Regimes

A key advantage of SBS is its performance when training data is limited. As shown in the figure below, SBS variants (including the primary model and SBS with Gaussian/Laplacian priors) maintain significantly lower cross-entropy than IKN and basic bigram models as the number of training sentences decreases, particularly in the extreme low-data regime.

Performance vs. training set size

3.2 Robustness to Noise

The model's robustness was tested by intentionally degrading the similarity graph with masking noise. The results illustrate that SBS maintains its performance advantage over IKN across a wide range of noise levels. Even as noise increases, the inclusion of Euclidean features prevents the model from performing worse than standard baselines.

Robustness to masking noise

On real-world WSJ POS tagging, SBS achieved a 2% reduction in perplexity compared to IKN for rare bigrams (those appearing 4 or fewer times in training), demonstrating practical utility against strong industry standards.

4. Conclusion

Similarity Based Smoothing offers a principled way to incorporate external knowledge into language models. While computational complexity currently limits its application to smaller vocabularies, its superior performance in low-data environments and robustness to noisy similarity information make it a promising direction for future research. Future work will focus on more efficient graph construction and scaling the approach to higher-order $n$-grams.

Summary updated

BibTeX
@inproceedings{biro2007sequence,
  author = {István Bíró and Zoltán Szamonek and Csaba Szepesvári},
  title = {{Sequence Prediction Exploiting Similary Information}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2007},
  url = {https://openreview.net/forum?id=B1VAKBzuZH},
}
Figure