Recursive Random Fields

Daniel Lowd, Pedro M. DomingosIJCAI 2007

Abstract

Recursive Random Fields (RRFs) bridge the gap between first-order logic and probabilistic graphical models by allowing for the softening of nested logical structures. Unlike Markov Logic Networks (MLNs), which often struggle with existential quantifiers and nested disjunctions due to their deterministic nature, RRFs utilize a recursive, differentiable architecture. This approach enables compact representation of complex logic and efficient learning via backpropagation, outperforming traditional structure learning in noisy environments.

Introduction

Markov Logic Networks (MLNs) have emerged as a powerful framework for combining first-order logic with probability. However, they suffer from a fundamental asymmetry: while top-level universal quantifiers are softened by weights, nested operators like existential quantifiers remain "hard" and deterministic. This creates representational inefficiencies, often leading to an exponential explosion of clauses when converted to Normal Form, and results in a brittle logic that cannot distinguish between varying degrees of formula violation.

Recursive Random Fields (RRFs) address these limitations by treating logical formulas as recursive features within a directed acyclic graph. By softening the entire logic tree, RRFs provide a more fluid integration of logic and probability, allowing for more robust modeling of complex relational data.

Methodology

RRFs represent knowledge as a hierarchy of features. A feature in an RRF is either a base case (a ground atom) or a recursive case defined as a weighted sum of child features passed through an exponential activation function. This architecture allows RRFs to handle "parfeatures" (parameterized features), which tie weights across different groundings of the same logical relationship.

Comparison of a logical tree and its corresponding RRF structure.

By replacing hard logical connectives with weighted sums, RRFs eliminate the mathematical distinction between how different operators like "AND" and "OR" are handled. Inference is performed using Gibbs sampling for probabilistic queries or Iterated Conditional Modes (ICM) for MAP inference. Learning is achieved through a variant of backpropagation that optimizes the joint pseudo-log-likelihood of the data, allowing the model to effectively "discover" logical structures from scratch.

Experimental Evaluation

The authors evaluated RRFs against MLNs using synthetic datasets focused on Probabilistic Integrity Constraints in relational databases:

  1. Inclusion Constraints: A domain of 100 people and 100 projects was used to model relationships such as ProjectLead and ManagerOf. The objective was to recover underlying logic from noisy observations.
  2. Functional Dependencies: This dataset involved 30 tax IDs and 30 company names, designed to simulate entity resolution tasks (e.g., determining if "Microsoft" and "MSFT" refer to the same entity) under varying levels of noise and data duplication.

Results and Discussion

RRFs consistently demonstrated superior performance compared to MLNs, particularly in handling noise and complex logical dependencies.

Performance comparison between RRF and MLN across different experimental setups, showing pseudo-log-likelihood against noise levels and data constraints.

Key insights from the results include:

  • Superior Noise Handling: In inclusion constraint experiments, RRFs captured the nuance that an employee managing many people is more likely to be a project leader, whereas MLNs treated one manager the same as ten.
  • Exponential Compactness: RRFs avoided the "CNF explosion" typical of MLNs when dealing with existential quantifiers, making learning and inference more tractable for complex formulas.
  • Structure Discovery: The backpropagation-based learning allowed RRFs to initialize with a dense network and prune it into a meaningful structure, effectively performing theory revision without the need for discrete search.

Conclusion

RRFs offer a significant advancement over standard MLNs by softening the entire logic tree and enabling gradient-based structure learning. While the resulting models may be less immediately interpretable than standard logic formulas, their representational efficiency and robustness to noise make them a powerful tool for relational probability. Future research will focus on extracting human-readable formulas from trained RRFs and scaling the framework to massive, real-world relational databases.

Summary updated

BibTeX
@inproceedings{lowd2007recursive,
  author = {Daniel Lowd and Pedro M. Domingos},
  title = {{Recursive Random Fields}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2007},
}
Figure