Abstract
Propositionalization is the process of summarizing relational data into a tabular (attribute-value) format. The resulting table can next be used by any propositional learner. This approach makes it possible to apply a wide variety of learning methods to relational data. However, the transformation from relational to propositional format is generally not lossless: different relational structures may be mapped onto the same feature vector. At the same time, features may be introduced that are not needed for the learning task at hand. In general, it is hard to define a feature space that contains all and only those features that are needed for the learning task. This paper presents LazyBum, a system that can be considered a lazy version of the recently proposed OneBM method for propositionalization. LazyBum interleaves OneBM's feature construction method with a decision tree learner. This learner both uses and guides the propositionalization process. It indicates when and where to look for new features. This approach is similar to what has elsewhere been called dynamic propositionalization. In an experimental comparison with the original OneBM and with two other recently proposed propositionalization methods (nFOIL and MODL, which respectively perform dynamic and static propositionalization), LazyBum achieves a comparable accuracy with a lower execution time on most of the datasets.
Introduction
Relational data is ubiquitous in real-world applications, typically stored across multiple tables with complex interdependencies. Standard machine learning algorithms, however, generally require a single "flat" attribute-value table. Propositionalization is the technique used to summarize these relational structures into a tabular format using aggregation functions (like count, mean, or max). Traditional "static" propositionalization generates all possible features upfront, which often leads to significant computational waste and "feature noise" that can degrade model performance.
The LazyBum System
LazyBum (Lazy Button Machine) addresses these issues by adopting a dynamic, or "lazy," approach. Rather than flattening the entire database before learning begins, LazyBum integrates feature construction directly into a top-down decision tree induction algorithm. This ensures that features are only created when and where they are needed to improve the model's predictive power, avoiding the overhead of computing thousands of irrelevant features.
Methodology
The core of LazyBum is the interleaving of feature construction with decision tree growth. The algorithm maintains a "Local Data Table" (LDT) at each node, which initially contains only basic features from the target table. As the tree grows, the system explores "join paths" to distant tables only if the current features fail to provide an adequate split.
Key technical innovations include:
- Join Path Caching: To avoid redundant computations, LazyBum caches primary key identifiers at each node. Child nodes inherit the work of their ancestors, ensuring that the system does not re-calculate join paths already explored.
- Restricted Strategy: This heuristic limits the search for new features to join paths that have already proven useful in ancestor nodes. This focuses the search on the most relevant parts of the database schema.
- Aggregation Handling: The system supports a wide range of aggregations for both numerical and categorical data, including a specialized "contains" function for categorical multisets.
Experimental Evaluation
LazyBum was evaluated on several standard benchmarks from the CTU Prague Relational Dataset Repository, including Hepatitis, UW-CSE, University, and the large-scale IMDb dataset. The results demonstrate that LazyBum is significantly faster than state-of-the-art competitors like OneBM, MODL, and Wordification, achieving speedups between 1.2x and 35.8x. On the IMDb dataset, LazyBum successfully completed the task while several other methods failed to finish within an 8-hour window.
Crucially, this speed does not come at the cost of accuracy. LazyBum consistently achieved comparable or superior predictive performance. By generating fewer, more targeted features, it prevents the decision tree from being overwhelmed by irrelevant features that can lead to overfitting or poor split choices.
Discussion and Insights
The "less is more" philosophy is a key takeaway from the LazyBum research. By restricting the feature space, the learner is less likely to find spurious correlations in the data. Furthermore, the "Restricted" strategy highlights how the structure of the decision tree itself can serve as a guide for data exploration. If a specific table provides useful information for a split, its related tables are statistically more likely to contain relevant features for subsequent splits. This approach bridges the gap between traditional Inductive Logic Programming (ILP) and modern data science pipelines, gaining the efficiency of database-oriented propositionalization and the targeted search of ILP.
Conclusion
LazyBum represents a significant step forward in relational learning. While powerful, current limitations include a focus on "forward-only" join paths and simple aggregations. Future work will explore "backward" joins to capture even more complex relational patterns and incorporate complex aggregates with internal selection conditions.
Summary updated