Skip to main content
QUICK REVIEW

[Paper Review] Mean-Field Networks

Yujia Li, Richard S. Zemel|arXiv (Cornell University)|Oct 21, 2014
Neural Networks and ApplicationsComputer Science9 references19 citations
TL;DR

This paper introduces Mean Field Networks (MFNs), a neural network architecture that models the mean field inference algorithm as a feed-forward network with tied weights across layers. By relaxing weight tying and retraining with backpropagation, MFNs achieve faster inference and superior discriminative performance compared to standard mean field, especially with fewer iterations—e.g., MFN-10 outperforms MF-30 in accuracy and convergence speed.

ABSTRACT

The mean field algorithm is a widely used approximate inference algorithm for graphical models whose exact inference is intractable. In each iteration of mean field, the approximate marginals for each variable are updated by getting information from the neighbors. This process can be equivalently converted into a feedforward network, with each layer representing one iteration of mean field and with tied weights on all layers. This conversion enables a few natural extensions, e.g. untying the weights in the network. In this paper, we study these mean field networks (MFNs), and use them as inference tools as well as discriminative models. Preliminary experiment results show that MFNs can learn to do inference very efficiently and perform significantly better than mean field as discriminative models.

Motivation & Objective

  • To reframe the mean field inference algorithm as a feed-forward neural network with tied weights across layers.
  • To explore relaxations of weight tying and network structure to improve inference efficiency and discriminative performance.
  • To evaluate MFNs as both inference engines and end-to-end discriminative models for structured prediction tasks.
  • To demonstrate that MFNs can outperform standard mean field inference in terms of accuracy and convergence speed, especially with limited iterations.

Proposed method

  • Map each mean field iteration to a feed-forward layer, with variables as nodes, messages as activations, and potentials as learnable weights and biases.
  • Represent the mean field update rule as a feed-forward operation using softmax nonlinearity, forming a differentiable network structure.
  • Train MFNs via backpropagation to minimize KL divergence or hinge loss, allowing end-to-end optimization of both inference and discriminative objectives.
  • Relax weight tying across layers (untied MFNs) to allow each layer to learn distinct parameters, improving expressiveness and convergence.
  • Use a conditional random field (CRF) as the underlying graphical model, with unary and pairwise potentials parameterized by features and edge penalties.
  • Apply gradient-based optimization to learn parameters for both inference and discriminative modeling, using iterative inference as a differentiable subroutine.

Experimental results

Research questions

  • RQ1Can the mean field inference algorithm be effectively reformulated as a deep feed-forward neural network with tied weights across layers?
  • RQ2Does untying the weights across layers in such a network improve inference accuracy and convergence speed compared to standard mean field?
  • RQ3Can MFNs serve as effective discriminative models for structured prediction tasks, outperforming traditional mean field inference?
  • RQ4How does the performance of MFNs scale with the number of layers (iterations), especially when compared to standard mean field with more iterations?
  • RQ5What are the benefits of training MFNs end-to-end with discriminative objectives versus using them solely for inference?

Key findings

  • MFN-10, with only 10 iterations, achieved a lower KL-divergence (-12908.80) than MF-30 (-12908.54), indicating faster and more accurate inference.
  • MFN-10 outperformed MF-30 in test accuracy, demonstrating that MFNs can achieve better results in fewer iterations.
  • The untied MFN (MFN-3) achieved a test accuracy of 0.8151, surpassing MF-30 with learned parameters (0.8109) and outperforming all mean field baselines.
  • MFN-3-t (tied weights) with standard learning rates failed to converge stably, while untied training enabled faster convergence and higher performance.
  • The gradients for different layers in MFNs varied significantly, justifying the use of untied weights to allow layer-specific optimization.
  • MFNs trained as discriminative models achieved 0.8151 test accuracy, exceeding MF-30 with learned parameters (0.8109), showing strong discriminative capability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.