Automatic Parameter Tying: A New Approach for Regularized Parameter Learning in Markov Networks

Li Chou, Pracheta Sahoo, Somdeb Sarkhel, Nicholas Ruozzi, Vibhav GogateAAAI 2018

Abstract

Parameter tying is a regularization method in which parameters (weights) of a machine learning model are partitioned into groups by leveraging prior knowledge, and all parameters in each group are constrained to take the same value. In this paper, we consider the problem of parameter learning in Markov networks and propose a novel approach called automatic parameter tying (APT) that uses automatic instead of a priori and soft instead of hard parameter tying as a regularization method to alleviate overfitting. The key idea behind APT is to set up the learning problem as the task of finding parameters and groupings of parameters such that the likelihood plus a regularization term is maximized. The regularization term penalizes models where parameter values deviate from their group mean parameter value. We propose and use a block coordinate ascent algorithm to solve the optimization task. We analyze the sample complexity of our new learning algorithm and show that it yields optimal parameters with high probability when the groups are well separated. Experimentally, we show that our method improves upon $L_2$ regularization and suggest several pragmatic techniques for good practical performance.

Introduction

Markov Networks (MNs) are powerful probabilistic graphical models used to capture complex dependencies between variables. However, training them is challenging, particularly when the available data is sparse relative to the number of parameters. In such cases, models are prone to overfitting, capturing noise rather than the true underlying distribution.

Standard regularization techniques like $L_2$ regularization push all parameters toward zero. Alternatively, parameter tying reduces model complexity by forcing groups of parameters to share the same value. Traditionally, this requires expert prior knowledge to define groupings (e.g., weight sharing in CNNs). Furthermore, MNs suffer from non-identifiability, where different parameter settings represent the same distribution, making "hard" tying mathematically brittle. This paper introduces Automatic Parameter Tying (APT), which automatically discovers and "softly" ties similar parameters during the learning process.

Methodology: Soft Tying and Optimization

APT treats the grouping of parameters as an integral part of the optimization problem. Unlike traditional hard tying, which enforces strict equality, APT employs a soft tying objective.

Conceptual illustration of soft parameter tying

As shown in the conceptual diagram above, parameters $\theta_i$ are encouraged to cluster around group means $\mu_j$. This is achieved by adding a penalty term to the log-likelihood that mirrors the k-means objective function, penalizing the squared distance between each parameter and its assigned cluster mean. This formulation effectively acts as a prior distribution consisting of $k$ different Gaussians.

To solve this joint optimization, the authors utilize a Block Coordinate Ascent algorithm:

  1. Parameter Update: Fix the clusters and update parameters ($\theta$) via gradient ascent.
  2. Cluster Update: Fix the parameters and update cluster assignments and means using an optimal 1D k-means algorithm.

To maintain computational tractability in complex MNs, the authors recommend using Maximum Pseudo-Log-Likelihood (MPLE) as a faster proxy for standard likelihood during optimization.

Experimental Evaluation

The researchers evaluated APT against standard $L_2$ regularization across 20 real-world datasets, ranging from low-dimensional sets (e.g., nltcs) to high-dimensional, dense networks (e.g., audio, dna, bbc).

Key Results

APT consistently outperformed $L_2$ regularization on nearly all benchmarks. A critical finding is that the advantage of APT becomes more pronounced as the network structure becomes denser (i.e., variables have more neighbors).

Performance comparison across four datasets

As illustrated in the performance plots above, APT (solid lines) achieves lower average negative test set PLL compared to the $L_2$ baselines (dashed lines) across various datasets. Notably, as the structure density increases (from Struct=5 to Struct=50), the performance gap widens, demonstrating APT's robustness in complex modeling scenarios. The algorithm successfully discovers symmetries and parameter groupings that improve generalization without manual intervention.

Discussion and Insights

  • Generalization of $L_2$: The authors demonstrate that $L_2$ regularization is a special case of APT where $k=1$ and the mean is fixed at zero. APT provides a more flexible framework that allows parameters to "shift" while still reducing effective model complexity.
  • Theoretical Strength: Sample complexity analysis proves that if the true parameters are naturally grouped, APT requires significantly less data to reach optimal performance than standard MLE with $L_2$.
  • Limitations: The joint objective is non-convex, meaning the algorithm may converge to local optima. Additionally, the number of clusters ($k$) and penalty strength ($\lambda$) remain hyperparameters that require tuning via validation.

Conclusion

Automatic Parameter Tying offers a principled way to regularize Markov Networks by discovering latent parameter symmetries. By replacing hard constraints with a soft, k-means-style penalty, APT bypasses non-identifiability issues and provides superior generalization, particularly in dense, high-dimensional domains where traditional regularization often fails.

Summary updated

BibTeX
@inproceedings{chou2018automatic,
  author = {Li Chou and Pracheta Sahoo and Somdeb Sarkhel and Nicholas Ruozzi and Vibhav Gogate},
  title = {{Automatic Parameter Tying: A New Approach for Regularized Parameter Learning in Markov Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  url = {https://openreview.net/forum?id=SyWR4x-_bH},
}
Figure