First order random forests: Learning relational classifiers with complex aggregates

Anneleen Van Assche, Celine Vens, Hendrik Blockeel, Saso DzeroskiMachine Learning 2006 · DOI

Introduction

Relational learning aims to classify entities not just by their intrinsic properties, but by their relationships with other entities. While powerful, this field faces a significant hurdle: the "feature space explosion." As we move from simple properties to complex relational queries—especially those involving aggregates—the number of possible features to test grows exponentially. This paper introduces First Order Random Forests (FORF), an ensemble method that leverages the efficiency of Random Forests to scale relational learning while incorporating complex aggregates.

The Challenge of Relational Learning

In a typical relational database, data is spread across multiple tables. For instance, a "Person" might be linked to multiple "Accounts," which in turn are linked to many "Transactions."

Relational schema example showing the connections between Person, Account, and Transaction entities.

Traditional relational learners, such as those using Inductive Logic Programming (ILP), often struggle with two main approaches:

  1. Existential Queries: Checking if a related record exists (e.g., "Does this person have a savings account?").
  2. Propositionalization: Using simple aggregate statistics (e.g., "What is the total balance across all accounts?").

The most predictive features often lie in complex aggregates—aggregating over a specific subset of related items (e.g., "What is the total amount of withdrawals in the last month?"). However, searching for these features is computationally expensive because every possible filter on the related items creates a new potential feature.

First Order Random Forests (FORF)

To address these scalability issues, the authors propose FORF, which upgrades the TILDE (Top-down Induction of Logical Decision Trees) algorithm into an ensemble framework. FORF introduces several key mechanisms:

Ensemble Learning and Feature Sampling

Instead of searching for the single best split at every node in a massive decision tree, FORF builds an ensemble of trees. Each tree is trained on a bootstrap sample of the data. Crucially, at each node, the algorithm only evaluates a random subset of possible logical queries. This stochastic approach prevents the learner from getting bogged down in exhaustive searches, significantly reducing training time while often improving generalization through the ensemble effect.

Handling Complex Aggregates

FORF explicitly supports the refinement of "inner queries" within aggregates. Consider the data instance below:

Sample relational data illustrating how accounts are linked to multiple transactions with different types and amounts.

A simple aggregate might count the number of transactions. A complex aggregate, however, can refine this to count only transactions where Type = Withdrawal. The paper introduces A-subsumption, a formal refinement relation that allows the system to systematically specialize these aggregate clauses during tree induction.

Experimental Evaluation

The authors tested FORF on several benchmarks, including the Mutagenesis and Diterpenes chemical datasets, a Financial loan classification dataset, and an artificial Trains dataset designed to necessitate complex aggregates.

Key findings include:

  • Performance: FORF consistently outperformed the single-tree TILDE algorithm. On the Financial dataset, the inclusion of aggregates provided a 14% accuracy boost.
  • Efficiency: Query sampling allowed for speedups of up to two orders of magnitude compared to exhaustive search. Interestingly, sampling as few as 25% of available features often yielded results comparable to a full search.
  • Robustness: The ensemble approach significantly increased the Area Under the ROC Curve (AUC), demonstrating better stability and predictive power across diverse relational patterns.

Conclusion

First Order Random Forests represent a significant step forward in relational learning. By combining the theoretical foundations of first-order logic with the practical scalability of Random Forests, the authors demonstrate that it is possible to learn from complex, multi-relational data without succumbing to the curse of dimensionality. While the "black box" nature of forests reduces interpretability compared to single rules, the gains in accuracy and efficiency make FORF a powerful tool for modern relational data mining.

Summary updated

BibTeX
@article{assche2006first,
  author = {Anneleen Van Assche and Celine Vens and Hendrik Blockeel and Saso Dzeroski},
  title = {{First order random forests: Learning relational classifiers with complex aggregates}},
  journal = {Machine Learning},
  year = {2006},
  doi = {10.1007/s10994-006-8713-9},
}
Figure