Skip to main content
QUICK REVIEW

[Paper Review] Neural Markov Logic Networks

Giuseppe Marra, Ondřej Kuželka|Lirias (KU Leuven)|May 31, 2019
Bayesian Modeling and Causal InferenceComputer Science43 references7 citations
TL;DR

Neural Markov Logic Networks (NMLNs) introduce a differentiable, end-to-end statistical relational learning framework that replaces hand-crafted logical rules in Markov Logic Networks with learnable neural potential functions. By modeling relational symmetries via fragment-based neural potentials, NMLNs enable joint probabilistic modeling of relational structures—achieving state-of-the-art performance in knowledge base completion, triple classification, and molecular graph generation without relying on predefined logic rules or constant embeddings.

ABSTRACT

We introduce neural Markov logic networks (NMLNs), a statistical relational learning system that borrows ideas from Markov logic. Like Markov logic networks (MLNs), NMLNs are an exponential-family model for modelling distributions over possible worlds, but unlike MLNs, they do not rely on explicitly specified first-order logic rules. Instead, NMLNs learn an implicit representation of such rules as a neural network that acts as a potential function on fragments of the relational structure. Similarly to many neural symbolic methods, NMLNs can exploit embeddings of constants but, unlike them, NMLNs work well also in their absence. This is extremely important for predicting in settings other than the transductive one. We showcase the potential of NMLNs on knowledge-base completion, triple classification and on generation of molecular (graph) data.

Motivation & Objective

  • To address the limitations of traditional Markov Logic Networks (MLNs), which require hand-crafted logical rules or combinatorial structure learning.
  • To develop a statistical relational learning model that can learn joint probability distributions over relational structures without relying on explicit first-order logic rules.
  • To enable effective learning in both transductive and inductive settings, including scenarios without constant embeddings.
  • To unify the strengths of neural networks (representation learning) and probabilistic logic (uncertainty modeling) in a principled maximum-entropy framework.
  • To demonstrate the model’s effectiveness across diverse tasks: knowledge base completion, triple classification, and molecular graph generation.

Proposed method

  • NMLNs define relational potential functions based on fragments of relational structures, using neural networks to implicitly represent logical regularities.
  • The model employs fragment potentials—parametric functions over substructures (fragments) of a possible world—learned via gradient descent.
  • Global potential functions are constructed from fragment potentials, enabling the modeling of joint distributions over entire relational structures.
  • The framework is grounded in a Min-Max-entropy principle, providing theoretical justification for the model’s design.
  • Neural architectures are designed to exploit symmetries in relational data, allowing generalization across different constant sets.
  • The model supports both inductive and transductive reasoning, and works effectively even when constant embeddings are not available.

Experimental results

Research questions

  • RQ1Can a neural network-based potential function effectively replace hand-crafted logical rules in statistical relational models?
  • RQ2How can relational symmetries be systematically encoded in a differentiable, end-to-end learning framework for joint probability modeling?
  • RQ3Can NMLNs generalize to inductive settings where constant embeddings are not available or not used?
  • RQ4How does the performance of NMLNs compare to specialized models like knowledge graph embeddings in tasks such as link prediction and molecular generation?
  • RQ5Can NMLNs jointly model unary relations (attributes) and binary relations (links), unlike many existing KGE methods?

Key findings

  • NMLNs achieve state-of-the-art performance on knowledge base completion and triple classification tasks, outperforming both traditional MLNs and knowledge graph embedding methods.
  • The model successfully generates realistic molecular graphs with chemical properties that are statistically indistinguishable from real molecules, demonstrating strong generative capability.
  • NMLNs perform well even in the absence of constant embeddings, making them suitable for inductive learning beyond the transductive setting.
  • The framework supports joint modeling of both unary and binary relations, a capability missing in standard knowledge graph embedding methods.
  • Experiments show that NMLNs can implicitly learn complex relational regularities that would require prohibitively many logical rules in classical MLNs.
  • The model is scalable and efficient, with specialized subclasses enabling faster inference while preserving predictive performance.

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.