A Chain Graph Interpretation of Real-World Neural Networks

Yuesong Shen, Daniel Cremers · DOI

Abstract

The last decade has witnessed a boom of deep learning research and applications achieving state-of-the-art results in various domains. However, most advances have been established empirically, and their theoretical analysis remains lacking. One major issue is that our current interpretation of neural networks (NNs) as function approximators is too generic to support in-depth analysis. In this paper, we remedy this by proposing an alternative interpretation that identifies NNs as chain graphs (CGs) and feed-forward as an approximate inference procedure. The CG interpretation specifies the nature of each NN component within the rich theoretical framework of probabilistic graphical models, while at the same time remains general enough to cover real-world NNs with arbitrary depth, multi-branching and varied activations, as well as common structures including convolution / recurrent layers, residual block and dropout. We demonstrate with concrete examples that the CG interpretation can provide novel theoretical support and insights for various NN techniques, as well as derive new deep learning approaches such as the concept of partially collapsed feed-forward inference. It is thus a promising framework that deepens our understanding of neural networks and provides a coherent theoretical formulation for future deep learning research.

Introduction

Despite the transformative success of deep learning, the field remains largely driven by empirical experimentation. Concepts like Residual Networks (ResNets), Dropout, and specific activation functions are widely used because they work, yet a unified theoretical framework explaining why they work is still emerging. This paper addresses this gap by re-interpreting Neural Networks (NNs) through the lens of Probabilistic Graphical Models (PGMs), specifically as Layered Chain Graphs (CGs). By viewing the feed-forward pass as an approximate probabilistic inference procedure, we can formally justify existing heuristics and derive novel regularizers.

The Layered Chain Graph Framework

The proposed framework models an NN as a sequence of layers where each layer contains a set of random variables. These layers form a bipartite structure: nodes within a given layer are conditionally independent given the values of the preceding layer.

Feed-Forward as Approximate Inference

Under this interpretation, the standard deterministic feed-forward pass is shown to be a first-order linear approximation of the expected features of these random variables. Crucially, the choice of activation function in a standard NN corresponds to the underlying probability distribution of the nodes in the CG. For instance:

  • Sigmoid and Tanh activations emerge from binary nodes.
  • Softmax corresponds to multilabel nodes.
  • ReLU and Softplus are derived from "rectified Gaussian" distributions.
Figure 1: Decomposition of a neural network into bipartite chain graph layers and the corresponding mapping of activation functions to probabilistic distributions.

This mapping provides a rigorous statistical basis for activation functions that were previously chosen based on empirical performance or simple mathematical properties.

Theoretical Insights into Deep Learning Components

The CG interpretation allows us to derive mathematical justifications for several common deep learning techniques:

Dropout and Weight Decay

Dropout is conventionally viewed as a heuristic for ensemble learning. In the CG framework, it is mathematically derived as the marginalization of auxiliary Bernoulli random variables. Furthermore, the linear approximations required for the feed-forward-as-inference view are most accurate when weights are small, providing a new theoretical justification for weight decay.

Residual Networks (ResNets)

ResNets can be interpreted as "refinement modules" within the graph. The CG framework shows that a pre-activation residual block is mathematically equivalent to adding a non-linear extension term that enhances the model's representational capacity beyond what a standard layer can achieve.

Figure 4: Probabilistic graph representation of a residual block, illustrating how ResNets function as refinement modules within the chain graph framework.

Recurrent Neural Networks (RNNs)

The theory also sheds light on RNN architectures. Independent RNNs (IndRNNs) are shown to be superior to vanilla RNNs because they enforce intra-layer independence across time steps. This aligns with the "local receptive field" principle found in CNNs, preventing the gradient issues associated with dense temporal dependencies.

Partially Collapsed Feed-Forward (PCFF)

Beyond interpreting existing methods, the CG framework enables the creation of new ones. We introduce Partially Collapsed Feed-Forward (PCFF), a stochastic inference method that mixes deterministic feed-forward logic with actual sampling from the graph's distributions.

Experimental results on benchmarks like CIFAR-10 (using ResNet20) and Sequential MNIST demonstrate that PCFF serves as a robust regularizer. Unlike Dropout, which can degrade performance at high drop rates, PCFF remains stable and consistently outperforms both standard Dropout and unregularized baselines.

Conclusion

The Chain Graph interpretation offers a promising path toward a "First Principles" understanding of deep learning. By bridging NNs and PGMs, we gain a coherent language to analyze complex architectures and a principled way to design next-generation neural layers. Future work will investigate more sophisticated PGM inference techniques, such as loopy belief propagation, to further expand the capabilities of neural architectures.

Summary updated

Abstract

The last decade has witnessed a boom of deep learning research and applications achieving state-of-the-art results in various domains. However, most advances have been established empirically, and their theoretical analysis remains lacking. One major issue is that our current interpretation of neural networks (NNs) as function approximators is too generic to support in-depth analysis. In this paper, we remedy this by proposing an alternative interpretation that identifies NNs as chain graphs (CGs) and feed-forward as an approximate inference procedure. The CG interpretation specifies the nature of each NN component within the rich theoretical framework of probabilistic graphical models, while at the same time remains general enough to cover real-world NNs with arbitrary depth, multi-branching and varied activations, as well as common structures including convolution / recurrent layers, residual block and dropout. We demonstrate with concrete examples that the CG interpretation can provide novel theoretical support and insights for various NN techniques, as well as derive new deep learning approaches such as the concept of partially collapsed feed-forward inference. It is thus a promising framework that deepens our understanding of neural networks and provides a coherent theoretical formulation for future deep learning research.
BibTeX
@misc{shen2020chain,
  author = {Yuesong Shen and Daniel Cremers},
  title = {{A Chain Graph Interpretation of Real-World Neural Networks}},
  year = {2020},
  eprint = {2006.16856},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.16856},
}
Figure