Lifted Weight Learning of Markov Logic Networks Revisited

Ondrej Kuzelka, Vyacheslav Kungurtsev

Abstract: We study lifted weight learning of Markov logic networks. We show that there is an algorithm for maximum-likelihood learning of 2-variable Markov logic networks which runs in time polynomial in the domain size. Our results are based on existing lifted-inference algorithms and recent algorithmic results on computing maximum entropy distributions.

Introduction

Markov Logic Networks (MLNs) represent a cornerstone of Statistical Relational Learning (SRL), providing a formal framework that integrates first-order logic with probabilistic graphical models. By assigning weights to logical formulas, MLNs can model complex, uncertain relationships between objects in a domain. However, the practical application of MLNs has long been hindered by a significant scalability barrier: as the number of objects (the domain size) increases, the underlying ground Markov random field grows exponentially, making standard inference and learning algorithms computationally intractable.

To address this, the field of lifted inference emerged, focusing on reasoning about groups of symmetric objects collectively rather than individually. While it has been established that inference is "domain-liftable" for formulas containing at most two variables—meaning it can be performed in time polynomial to the domain size—the complexity of weight learning remained an open question. This paper bridges that gap, providing a theoretical proof that maximum-likelihood learning for 2-variable MLNs is also domain-liftable.

The Learning Problem: Beyond Gradient Calculation

Weight learning in MLNs typically involves finding the parameters that maximize the likelihood of observed data. While previous research (e.g., Van Haaren et al., 2016) demonstrated that individual steps of the learning process, such as calculating the gradient, could be performed efficiently using lifted inference, a critical piece of the puzzle was missing. Specifically, it was unknown whether the optimization process as a whole would converge in a polynomial number of steps relative to the domain size.

The authors frame this challenge as a Relational Marginal Problem. By leveraging the duality between Maximum Likelihood Estimation (MLE) and the Maximum Entropy principle, the researchers sought to determine if a distribution matching the statistics of the training data could be found efficiently.

Methodology

The proof of domain-liftability relies on three primary technical components:

  1. The Ellipsoid Algorithm: Unlike standard gradient descent, which is common in practice but difficult to bound theoretically for this problem, the authors utilize the Ellipsoid algorithm. This classic convex optimization method allows them to prove that the optimal weights can be found within a polynomial number of iterations, provided there is an efficient "oracle" to guide it.
  2. Weighted First-Order Model Counting (WFOMC): This serves as the necessary oracle. For 2-variable MLNs, WFOMC can compute the partition functions and gradients required for the optimization in polynomial time relative to the domain size.
  3. Relational Marginal Polytopes and $\eta$-interiority: The authors analyze the geometric space of all possible statistics the model can produce, known as the marginal polytope. A key insight is the concept of $\eta$-interiority, which measures how close the training data statistics are to the boundaries of what is logically possible. If the data is "extreme" (e.g., a social network where every possible friendship exists), the weights required to model it approach infinity, which impacts the complexity of the learning process.

Theoretical Results

As a theoretical contribution, the paper establishes its findings through rigorous mathematical proofs rather than empirical benchmarks. The headline results are contained in two primary theorems:

  • Theorem 11: Establishes that there exists an algorithm for maximum-likelihood learning of 2-variable MLNs that runs in time polynomial in the domain size ($|\Delta|$), the required precision ($1/\epsilon$), and the interiority of the data ($1/\eta$).
  • Theorem 12: Extends these guarantees to the relational marginal problem, proving that a distribution matching observed statistics within a specific error bound can be computed in polynomial time.

Furthermore, the paper provides a concrete "bounding box" for weights. This proves that the search space for optimal parameters is finite and manageable, ensuring that weights do not need to grow indefinitely to reach a near-optimal solution unless the data sits exactly on the boundary of the polytope.

Discussion and Limitations

While this work provides a vital theoretical guarantee, the authors note several limitations regarding its immediate practical application. The Ellipsoid algorithm, while useful for proving polynomial complexity, is often outperformed in real-world scenarios by variants of gradient descent. Additionally, the results are strictly limited to 2-variable MLNs. The inclusion of a third variable in logical formulas generally renders the problem #P-complete, suggesting that a general polynomial-time solution for all MLNs is unlikely to exist.

Conclusion

This research completes a significant chapter in the study of Statistical Relational Learning. By proving that weight learning for 2-variable MLNs is domain-liftable, the authors provide the first comprehensive guarantee that both reasoning and parameter estimation can scale polynomially with the number of objects in a domain. Future work will likely focus on translating these theoretical bounds into more practical, high-performance algorithms, such as projected gradient descent, while maintaining the established complexity guarantees.

Summary updated

BibTeX
@inproceedings{kuzelka2019lifted,
  author = {Ondrej Kuzelka and Vyacheslav Kungurtsev},
  title = {{Lifted Weight Learning of Markov Logic Networks Revisited}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2019},
  url = {https://openreview.net/forum?id=6I2AHiSmrI},
}
Figure