Better Language Models with Model Merging

Thorsten BrantsEMNLP 1996

Abstract

Statistical language models often struggle with the sparse data problem, where limited training data makes it difficult to estimate probabilities for all possible word sequences. This paper presents "model merging," a technique for automatically inducing both the parameters and the topology of Hidden Markov Models (HMMs). By iteratively merging states of a highly specific initial model, the algorithm discovers a compact, generalized structure. Experiments on the Verbmobil corpus show that merged models can achieve lower perplexity than standard bigram models while using ten times fewer states.

Introduction

Traditional language models, such as word bigrams or trigrams, typically operate on a fixed topology defined prior to training. While techniques like part-of-speech grouping can mitigate data sparsity, they often rely on manual categories or rigid assumptions. Thorsten Brants proposes an alternative: inducing the model's structure directly from data through model merging. This approach allows for the automatic discovery of linguistic categories and structural dependencies, leading to more efficient and predictive models.

Methodology: The Model Merging Process

The core of the approach is an iterative generalization process originally proposed by Omohundro (1992). It consists of three main stages:

  1. The Trivial Model: The algorithm begins with a maximum likelihood model where every individual utterance in the training corpus is represented by a unique path. This model perfectly fits the training data but has zero generalization capability.
  2. Iterative Merging: The algorithm successively selects two states to merge into one. The selection is guided by a greedy heuristic: choose the merge that results in the smallest decrease in the probability of the model generating the training corpus.
  3. Stopping Criterion: Merging continues until a predefined threshold for corpus probability is reached, typically just before the model's predictive power begins to degrade rapidly.
The iterative model merging process, illustrating the transition from a trivial model (a) to a more generalized HMM structure (e).

As illustrated in the figure above, the process naturally groups words into categories based on their distributional similarity. Crucially, this method allows for ambiguity, as a single word can be represented by multiple states if the data suggests it belongs to different functional categories.

Algorithmic Optimizations

To address the $O(l^4)$ time complexity of the basic algorithm, two key optimizations are implemented:

  • Cascaded Constraints: Initially, only states generating the same output (unigram constraint) are eligible for merging. This drastically reduces the search space. Once no further beneficial "same-output" merges exist, the constraint is relaxed.
  • Bigram Initialization: Starting the process from a standard bigram model rather than the massive trivial model significantly accelerates training without sacrificing the quality of the final solution.

Experimental Results

The model was evaluated using the Verbmobil corpus, which contains German business dialogue transcriptions. The training set consisted of approximately 14,000 words, with evaluation performed on disjoint test and validation sets.

Model Type Number of States Log Perplexity (Test)
Standard Bigram 1,440 2.40
Merged Model 113 2.26

The merged model significantly outperformed the baseline, reducing the number of states by over 90% while improving perplexity. On a larger, unseen 9,784-word validation set, the merged model maintained its advantage, scoring a log perplexity of 2.41 compared to 2.78 for the bigram model. This confirms that the induced topology generalizes better to new data than the fixed bigram structure.

Conclusion and Future Work

Model merging provides a robust framework for discovering the hidden structure of language. By automatically inducing model topology, it overcomes many limitations of fixed n-gram models. While the computational cost remains a challenge for very large corpora, optimizations like cascaded constraints and heuristic starting points make the technique viable for medium-scale tasks. Future research could explore the use of trigram starting points and more formal methods for relaxing structural constraints.

Summary updated

BibTeX
@inproceedings{brants1996better,
  author = {Thorsten Brants},
  title = {{Better Language Models with Model Merging}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {1996},
}
Figure