Improving Optimization-Based Approximate Inference by Clamping Variables

Junyao Zhao, Josip Djolonga, Sebastian Tschiatschek, Andreas Krause

Introduction

In probabilistic modeling, the partition function ($Z$) is the critical normalization constant required to convert raw energy scores into valid probabilities. However, for most complex models, computing $Z$ is #P-hard and computationally intractable. Researchers typically rely on optimization-based approximations that provide an upper bound on $Z$. Two prominent frameworks for this are Perturb-and-MAP and Infinite Rényi Divergence ($D_\infty$).

This paper investigates whether "clamping"—fixing specific variables to set values and summing the resulting approximations—can systematically improve these bounds. The authors demonstrate that breaking a difficult problem into simpler sub-problems through clamping is theoretically guaranteed to yield tighter approximations for these specific inference techniques.

Theoretical Foundations and Heuristics

The core contribution of this work is the proof that for any discrete multi-label model, clamping any subset of variables is guaranteed to either improve or maintain the tightness of the bounds for both $D_\infty$ and Perturb-and-MAP. This "monotonic improvement" property ensures that clamping is always beneficial, trading increased computation for higher accuracy.

Since clamping $k$ binary variables requires solving $2^k$ sub-problems, selecting the most impactful variables is essential. The authors propose two primary heuristics:

  1. Branch-Max-Range (BMR): Designed for $D_\infty$, this method identifies variables whose optimization parameters exhibit the greatest potential variability.
  2. Perturb-and-Min-Marginals (PMIN): A greedy strategy for Perturb-and-MAP that uses min-marginal computations to efficiently estimate which variable will most significantly reduce the bound.
Performance of different heuristics for selecting conditioned pairs.

Experimental Results

The authors evaluated these methods on grid-structured Ising models, complete graphs with spatial distance-based weights (conditioned pairs), and higher-order random cover models.

Tighter Bounds and Improved Marginals

The experiments confirm that clamping even a small number of variables (2 to 4) leads to a measurable reduction in the log-partition function error. Furthermore, while the theoretical guarantees focus on the partition function, the results show a significant reduction in the Mean Absolute Error (MAE) of estimated marginal probabilities.

Impact of clamping on log-partition function bounds and marginal error across various model types.

Heuristic Performance

The proposed bmr strategy consistently outperformed random selection and other baseline heuristics across all tested models. For Perturb-and-MAP, the pmin heuristic provided a scalable alternative to exhaustive greedy searches, making clamping practical for larger models.

Conclusion and Future Work

Clamping provides a reliable mechanism to improve optimization-based inference. The primary trade-off is computational: the cost scales exponentially with the number of clamped variables ($L^k$). While the current heuristics are highly effective for submodular (attractive) models, future research could explore their performance on frustrated models or investigate combining clamping with other variational bounds such as Tree-Reweighted (TRW) belief propagation or Mean Field methods.

Summary updated

BibTeX
@inproceedings{zhao2017improving,
  author = {Junyao Zhao and Josip Djolonga and Sebastian Tschiatschek and Andreas Krause},
  title = {{Improving Optimization-Based Approximate Inference by Clamping Variables}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2017},
}
Figure