Abstract: A large portion of real-world data is stored in commercial relational database systems. In contrast, most statistical learning methods work only with "flat" data representations. Thus, to apply these methods, we are forced to convert our data into a flat form, thereby losing much of the relational structure present in our database. This paper builds on the recent work on probabilistic relational models (PRMs), and describes how to learn them from databases. PRMs allow the properties of an object to depend probabilistically both on other properties of that object and on properties of related objects. Although PRMs are significantly more expressive than standard models, such as Bayesian networks, we show how to extend well-known statistical methods for learning Bayesian networks to learn these models. We describe both parameter estimation and structure learning -- the automatic induction of the dependency structure in a model. Moreover, we show how the learning procedure can exploit standard database retrieval techniques for efficient learning from large datasets. We present experimental results on both real and synthetic relational databases.
Introduction
In the late 1990s, most statistical learning methods were restricted to "flat" data representations, typically a single table where each row is an independent instance. However, real-world data is predominantly relational, stored in complex database systems where entities are defined by their relationships to others. Flattening this data into a single table inevitably results in significant information loss, discarding the rich, multi-layered structure of the database. While Inductive Logic Programming (ILP) could handle relational data, it was primarily deterministic and struggled with the noise inherent in real-world domains. This paper introduces Probabilistic Relational Models (PRMs), a framework that combines the power of Bayesian networks with the structured richness of relational schemas to learn probabilistic dependencies across entities.
Probabilistic Relational Models
A PRM is defined over a database schema consisting of classes, attributes, and relations. Unlike standard Bayesian networks, PRMs allow an object's properties to depend on both its own attributes and those of related objects.
Key technical components of the PRM framework include:
- Slot Chains and Aggregation: To navigate the database and handle one-to-many relationships, the authors use "slot chains." When an object relates to multiple others, aggregation functions (e.g., mean, mode) summarize the related data into a single input.
- Parameter Tying: PRMs assume that all objects of the same class share the same underlying probabilistic model, allowing for efficient learning from many instances simultaneously.
- Stratification for Acyclicity: To ensure the model remains a valid directed acyclic graph (DAG) on any database instance, the authors introduce a stratification method to color-code and order dependencies.
Experimental Evaluation
The authors evaluated the PRM framework on two distinct domains:
- The Movie Database: A real-world dataset (~11,000 movies, ~7,000 actors) with relations for Movie, Actor, and Appears. This dataset tested the model's ability to handle noisy, real-world data with missing values.
- Genetic Database (Synthetic): An artificial dataset simulating blood type inheritance through family trees, used to verify if the algorithm could recover known biological "gold standard" rules.
Key Results
The PRM framework demonstrated both intuitive structure discovery and strong statistical performance.
In the Movie domain, the algorithm discovered meaningful dependencies, such as a movie's Genre depending on its Decade and Process (color vs. B&W), and an actor's Role-Type depending on their Gender and the movie's Genre. In the Genetic domain, the learning curve (Figure 3b) shows that as the dataset size increases, the learned model's log-likelihood closely approaches the "gold standard." Furthermore, the use of standard database retrieval techniques (SQL-like joins and counts) proved that learning from large-scale relational data is computationally feasible.
Conclusion and Future Work
PRMs represent a significant step beyond "flat" machine learning, providing a principled way to reason about complex relational dependencies. Future work includes addressing "structural uncertainty"—where the existence of a relationship itself is probabilistic—and improving the handling of missing data through techniques like Expectation Maximization. Tighter integration with database engines for query optimization will also be essential for scaling to industrial-sized databases.
Summary updated