Probabilistic Discriminative Learning with Layered Graphical Models

Yuesong Shen, Tao Wu, Csaba Domokos, Daniel CremersarXiv 2019

Introduction

Deep neural networks (NNs) have become the standard for discriminative tasks like image classification due to their hierarchical feature learning. However, they are often criticized as "black boxes" that lack transparent probabilistic reasoning and struggle with missing data or adversarial inputs. Conversely, Probabilistic Graphical Models (PGMs) provide a mathematically grounded framework for uncertainty estimation but have historically struggled to scale to complex, high-dimensional data like images due to the intractability of exact inference.

This paper introduces Layered Graphical Models (LGMs), a framework that combines the architectural strengths of deep learning with the rigorous probabilistic foundations of PGMs. By utilizing tensorized truncated variational inference and a novel input handling technique, LGMs achieve performance parity with NNs while maintaining the benefits of a generative probabilistic model.

Methodology: Layered Graphical Models

LGMs are undirected pairwise graphical models organized into layers, mirroring the structure of neural networks. They support various connection types, including dense, local, and convolutional weight-sharing patterns.

Tensorized Truncated Inference

To overcome the computational hurdles of PGMs, the authors propose truncating iterative inference algorithms—such as Mean Field, Loopy Belief Propagation (LBP), and Tree-Reweighted Message Passing (TRW)—to a fixed number of steps. These steps are implemented as parallelizable tensor operations, allowing the model to leverage modern GPU hardware. Crucially, the entire inference process is differentiable, enabling the use of standard backpropagation to optimize the model's energy parameters.

Handling Continuous Data: Soft Clamping

A significant challenge in applying binary-node PGMs to images is handling continuous pixel values. Traditional quantization methods often lead to information loss or over-parameterization. The authors solve this with soft clamping.

Comparison of discrete quantization (left) versus the proposed soft clamping (right) for continuous input values.

As shown in Figure 5, instead of mapping a pixel to one of many discrete states, soft clamping models a continuous value as the mean of a single binary node's Bernoulli distribution. This approach preserves the continuous nature of the input without expanding the state space, facilitating efficient and accurate learning.

Experimental Evaluation

The authors evaluated LGMs on the MNIST and FashionMNIST benchmarks. The results demonstrate that LGMs are highly competitive with standard neural networks. For instance, on MNIST, a local LGM achieved 98.4% accuracy compared to 98.3% for a comparable NN. On FashionMNIST, the LGM matched the NN's performance at 89.4%.

Among the variational methods tested, Tree-Reweighted Message Passing (TRW) consistently provided the most accurate classifications.

Robustness and Inpainting

One of the primary advantages of the LGM framework is its ability to handle missing data naturally. Because the model learns a joint distribution, missing pixels can be treated as unobserved nodes and inferred during the classification process.

Inpainting results on FashionMNIST, demonstrating the model's ability to reconstruct missing pixels through probabilistic inference.

When 70% of pixels were removed from MNIST images, the local LGM maintained a high accuracy of 95.6%. As illustrated in Figure 6, the model can successfully reconstruct the silhouettes of missing items, demonstrating a level of internal "understanding" that standard discriminative NNs lack.

Conclusion

Layered Graphical Models represent a significant step toward merging deep learning architectures with probabilistic reasoning. By making approximate inference differentiable and scalable, LGMs offer a transparent alternative to traditional neural networks. While currently demonstrated on small-scale datasets, the framework's inherent ability to handle uncertainty and missing data suggests broad potential for future applications in robust and interpretable machine learning.

Summary updated

BibTeX
@misc{shen2019probabilistic,
  author = {Yuesong Shen and Tao Wu and Csaba Domokos and Daniel Cremers},
  title = {{Probabilistic Discriminative Learning with Layered Graphical Models}},
  year = {2019},
  eprint = {1902.00057},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.00057},
}
Figure