Relational Neural Markov Random Fields

Yuqiao Chen, Sriraam Natarajan, Nicholas RuozziAISTATS 2022

Researchers from the University of Texas at Dallas have introduced Relational Neural Markov Random Fields (RN-MRFs), a framework designed to bridge the gap between structured logic-based reasoning and the flexible representation power of deep learning. Presented at AISTATS 2022, this model specifically targets "hybrid" datasets that contain both discrete categories and continuous numerical values.

Introduction

Statistical Relational Learning (SRL) excels at handling data with complex relationships, such as social networks or biological systems. However, traditional SRL models often struggle with continuous data, typically resorting to discretization or assuming simple distributions like Gaussians. These assumptions fail in real-world scenarios where data is multi-modal or follows non-linear patterns.

Conversely, while deep learning handles continuous data effectively, standard neural networks lack a native mechanism to incorporate explicit relational logic or expert knowledge. RN-MRFs provide a middle ground: a model that maintains relational structure and expert-defined logic while utilizing neural networks to learn complex continuous distributions.

Methodology

The core innovation of RN-MRFs lies in defining "potentials" within a factor graph using neural networks:

  1. Neural Potentials: Instead of fixed mathematical functions, Neural Networks (NNs) represent log-potential functions, allowing the model to learn arbitrary interaction shapes between variables.
  2. Helper Distributions: To ensure mathematical stability in unbounded continuous spaces, neural potentials are multiplied by a "helper distribution" (e.g., a wide Gaussian), preventing the network from predicting infinite values.
  3. Knowledge Integration: The framework supports three types of human input: manual structure definition, feature mapping (e.g., pixel differences), and weighted first-order logic rules to enforce domain constraints.
  4. Learning via MPLE: Training is performed using Maximum Pseudolikelihood Estimation (MPLE) combined with Importance Sampling, enabling efficient parameter optimization for complex factor graphs.

Experimental Evaluation

The authors evaluated RN-MRFs across three distinct domains:

  • Image Denoising: A synthetic task using images corrupted with multi-modal noise (a mixture of two Gaussians).
  • Digit Deduction: A hybrid task combining MNIST digits with synthetic rules to predict local time based on UTC and time zone images.
  • Robot Mapping: Real-world laser range scan data from the Radish robotics repository, classifying segments as 'Wall', 'Door', or 'Other'.

Key Results

Comparison of denoising performance across different models. RN-MRF successfully recovers the structure from multi-modal noise where Gaussian-MRFs and standard CNNs struggle.
  • Image Denoising: RN-MRFs achieved an $\ell_1$ error of 58.55, significantly outperforming standard CNNs (120.33) and Gaussian-MRFs (186.14). As shown in the figure above, the RN-MRF is uniquely capable of recovering the underlying signal from multi-modal noise.
  • Digit Deduction: With only 1,000 samples, the RN-MRF achieved 97% accuracy, compared to 92.5% for a standalone CNN. The inclusion of symbolic logic rules allowed the model to compensate for limited training data.
  • Robot Mapping: On real-world data, the RN-MRF reached 87.6% accuracy, surpassing "Expert HMLN" models (76.1%) that rely on hand-crafted Gaussian features.

Conclusion

RN-MRFs demonstrate that breaking the Gaussian constraint in graphical models is essential for handling complex real-world noise. By treating discrete labels and continuous measurements as equal citizens within a unified factor graph, the model enables seamless hybrid reasoning. Future work will focus on scaling the approach to handle missing data and optimizing the training of diverse neural potentials within a single graph.

Summary updated

BibTeX
@inproceedings{chen2022relational,
  author = {Yuqiao Chen and Sriraam Natarajan and Nicholas Ruozzi},
  title = {{Relational Neural Markov Random Fields}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
}
Figure