Mean-Field Networks

Yujia Li, Richard S. ZemelarXiv 2014

Abstract

Mean-Field Networks (MFNs) bridge the gap between probabilistic graphical models and deep learning by reinterpreting the mean field inference algorithm as a feed-forward neural network. By "untying" the weights across layers, MFNs can achieve better inference results in fewer steps and serve as powerful discriminative models that outperform traditional Markov Random Fields (MRFs).

Introduction

Structured prediction tasks, such as image segmentation or denoising, frequently employ Markov Random Fields (MRFs) to capture dependencies between variables. However, exact inference in these models is often computationally intractable. The standard approach is the mean field algorithm, an iterative variational method that approximates the joint distribution by a product of independent marginals.

Despite its utility, standard mean field inference suffers from two primary limitations: efficiency and rigidity. It often requires many iterations to converge, and its parameters (weights and biases) are fixed by the underlying graphical model, remaining static across all iterations. This paper proposes Mean Field Networks (MFNs), which treat each iteration of the mean field algorithm as a layer in a feed-forward neural network, allowing the inference process itself to be optimized via backpropagation.

Methods

The core contribution is the formal mapping of the mean field update equation to a neural network architecture. The standard mean field update for a variable $x_s$ can be viewed as a neural network layer where the inputs are distributions ($q$ values) from the previous iteration, weights are pairwise potentials ($f_{st}$), and biases are unary potentials ($f_s$). A softmax activation function ensures the output remains a valid probability distribution.

Mapping mean field updates to neural network layers

The "Untying" Innovation

By viewing inference as a network, the authors introduce the concept of "untying" to relax traditional MRF constraints:

  1. Untying from the MRF: Decoupling inference parameters from the original model to accelerate convergence.
  2. Untying across layers: Allowing each iteration (layer) to have unique weights, enabling lower layers to capture coarse features while higher layers perform fine-tuning.
  3. Untying structure: Modifying the connectivity between variables in the network to improve information flow, even if those connections do not exist in the original MRF.
Illustrating untying structure in the network

Experiments and Results

The approach was evaluated on a synthetic image denoising task using $50 \times 100$ pixel images of white English letters on a black background, corrupted by flipping and Gaussian noise.

Results indicate that MFNs are both faster and more accurate than standard mean field. An MFN with 10 layers (MFN-10) outperformed 30 iterations of standard mean field (MF-30) in terms of KL-divergence. On the denoising task, a 3-layer MFN with tied weights achieved an accuracy of 0.8134, surpassing the MF-30 baseline of 0.8109. Untying the weights of the 3-layer MFN further improved accuracy to 0.8151.

Discussion

MFNs transform the search for a fixed point in inference into a supervised learning problem. By training for a fixed budget of $M$ layers, MFNs optimize for performance rather than convergence. This discriminative training allows for the use of loss functions like element-wise hinge loss, which are difficult to integrate into generative MRF frameworks.

While promising, the current evaluation is limited to synthetic datasets. Future work includes scaling to larger, real-world datasets and extending the "unrolling" logic to other inference methods, such as Belief Propagation.

Summary updated

BibTeX
@misc{li2014mean,
  author = {Yujia Li and Richard S. Zemel},
  title = {{Mean-Field Networks}},
  year = {2014},
  eprint = {1410.5884},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1410.5884},
}
Figure