Abstract
The maximum likelihood estimator (MLE) is generally asymptotically consistent but is susceptible to over-fitting. To combat this problem, regularization methods which reduce the variance at the cost of (slightly) increasing the bias are often employed in practice. In this paper, we present an alternative variance reduction (regularization) technique that quantizes the MLE estimates as a post processing step, yielding a smoother model having several tied parameters. We provide and prove error bounds for our new technique and demonstrate experimentally that it often yields models having higher test-set log-likelihood than the ones learned using the MLE. We also propose a new importance sampling algorithm for fast approximate inference in models having several tied parameters. Our experiments show that our new inference algorithm is superior to existing approaches such as Gibbs sampling and MCSAT on models having tied parameters, learned using our quantization-based approach.
Introduction
In probabilistic graphical models (PGMs), Maximum Likelihood Estimation (MLE) is the standard for learning weights from data. However, MLE often suffers from high variance and overfitting, particularly when datasets are small or the parameter space is vast. Traditional regularization techniques like $L_1$ or $L_2$ penalize weight magnitude, but they do not necessarily simplify the model structure.
This paper explores parameter tying—the practice of forcing multiple features to share identical weights—as a form of regularization. While manual parameter tying is common in specific domains (like HMMs), automated tying is typically an NP-hard structure learning problem. We propose a novel, computationally efficient pipeline that uses quantization to automatically discover and enforce these ties, improving both model generalization and inference speed.
Methodology
The Quantization Pipeline
Our approach consists of a three-step process to transform a high-variance MLE model into a robust, tied-parameter model:
- Initial MLE Learning: Parameters are first learned using standard MLE techniques.
- Quantization: The learned weights are treated as a one-dimensional clustering problem. We employ an optimal dynamic programming-based $k$-means algorithm to map $m$ parameters down to $k$ unique values. This step effectively "ties" parameters with similar learned values.
- Relearning: With the tying structure established, we re-optimize the $k$ unique values to maximize likelihood. By combining sufficient statistics for tied parameters, we increase the effective sample size for each estimate, significantly reducing variance.
Tied Weight Importance Sampling (TW)
To leverage the resulting model symmetries, we introduce the Tied Weight (TW) Importance Sampling algorithm. Standard samplers like Gibbs or MC-SAT often struggle with "local traps" in complex state spaces. TW exploits parameter tying by grouping features with identical weights into "super-features." By using counting assignments (tracking how many features in a group are active) rather than sampling individual features, TW can make larger, more effective moves through the state space, drastically reducing the search space.
Experimental Evaluation
We evaluated our approach on benchmark datasets including bn2o (noisy-or networks), students and friends (relational networks), and grid structures.
Generalization Performance
Our experiments demonstrate that quantization acts as a powerful regularizer. As shown in the figures below, the "Relearned" models consistently outperform the original MLE on test-set log-likelihood across all datasets. Notably, the performance gains are achieved even when the number of unique parameters ($K$) is reduced by orders of magnitude (e.g., from 20,000 to 500 in the bn2o dataset).
Inference Accuracy
We compared the TW importance sampling algorithm against Gibbs sampling and MC-SAT using the Hellinger distance to measure error in probability distributions. The TW sampler, specifically when applied to relearned models (TW RL), consistently achieved lower error rates in the same amount of computation time, demonstrating its ability to exploit model symmetries for more accurate inference.
Conclusion
This work demonstrates that quantization is not merely a compression tool but a viable regularization technique for PGMs. By automatically tying parameters, we can reduce model complexity and prevent overfitting while simultaneously enabling faster, more accurate inference algorithms. Future work will look to extend these techniques to Markov networks and explore automated methods for selecting the optimal number of quantization levels ($K$).
Summary updated