Boosting gets full Attention for Relational Learning

Mathieu Guillame-Bert, Richard NockarXiv 2024 · DOI

Introduction

Traditional Gradient Boosted Decision Trees (GBDTs), such as XGBoost and LightGBM, are the gold standard for tabular data. However, real-world data is rarely confined to a single table; it is typically relational, spread across multiple tables (e.g., users, transactions, and products). To apply GBDTs to such data, practitioners usually perform "propositionalization"—manually flattening the relational structure into a single table. This process is labor-intensive, prone to "relational shortsightedness" (missing patterns that span multiple joins), and can lead to a massive explosion in feature count.

This paper introduces Relational GBDT, a novel framework that enables tree-based models to navigate complex relational schemas automatically. By integrating a non-differentiable attention mechanism, the authors allow GBDTs to leverage structural topology without the need for manual feature engineering or differentiable backpropagation.

Methodology: The Two-Pass Training Process

Relational GBDT operates by augmenting each weak learner (tree) within a gradient boosting loop through a two-pass process:

  1. The Schedule: The database schema is represented as a directed acyclic graph (DAG) or "schedule" that defines how information flows between tables.
  2. Forward Pass (Top-Down): Starting from the "root" table (containing the target labels), the algorithm propagates pseudo-responses (residuals) down to child tables. Local regressive models are trained for each table to predict these residuals based on local features.
  3. Backward Pass (Bottom-Up): Information is aggregated back up the schedule using an attention mechanism. This includes Soft Attention (weighting child features by forward-pass model scores), Hard Attention (selecting features from the most relevant related row), and Score Aggregation (pulling up summary statistics like min, max, or mean of child model predictions).
  4. Final Tree Construction: The root table is enriched with these aggregated features, and a final decision tree is trained on the complete set.
Relational schedule unrolling a schema.

Experimental Evaluation

The authors evaluated Relational GBDT on five diverse datasets, including synthetic benchmarks designed to test relational depth and real-world datasets like the Arxiv citation network and financial loan records.

Dataset statistics and relational schemas.

Key Results

Relational GBDT consistently outperformed standard GBDTs and Neural Networks applied to both root-only and flattened data:

  • Synthetic Accuracy: Achieved 98.96%, significantly higher than the 92% reached by standard GBDTs on flattened data, proving its ability to overcome relational shortsightedness.
  • Arxiv Performance: Reached 66.70% accuracy, a substantial improvement over the 52.92% achieved by flattening the citation data.
  • Efficiency and Interpretability: The method is computationally efficient and maintains the interpretability of standard trees. Users can analyze feature importance for both local and attention-derived relational features.

Conclusion and Future Work

Relational GBDT bridges the gap between the structural awareness of deep learning and the high performance of tree-based models on tabular data. While current limitations include the lack of native support for temporal ordering and complex circular schemas, the framework provides a powerful, interpretable alternative to manual propositionalization. Future work may focus on optimizing pseudo-label updates to further improve boosting rates.

Summary updated

Abstract

More often than not in benchmark supervised ML, tabular data is flat, i.e. consists of a single $m \times d$ (rows, columns) file, but cases abound in the real world where observations are described by a set of tables with structural relationships. Neural nets-based deep models are a classical fit to incorporate general topological dependence among description features (pixels, words, etc.), but their suboptimality to tree-based models on tabular data is still well documented. In this paper, we introduce an attention mechanism for structured data that blends well with tree-based models in the training context of (gradient) boosting. Each aggregated model is a tree whose training involves two steps: first, simple tabular models are learned descending tables in a top-down fashion with boosting's class residuals on tables' features. Second, what has been learned progresses back bottom-up via attention and aggregation mechanisms, progressively crafting new features that complete at the end the set of observation features over which a single tree is learned, boosting's iteration clock is incremented and new class residuals are computed. Experiments on simulated and real-world domains display the competitiveness of our method against a state of the art containing both tree-based and neural nets-based models.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
syntheticRelational GBDT (this paper)Accuracy98.96%+6.96 vs baselineBinary Classification · split: val
Source quote
L261: Relational GBDT (this paper) │ 98.96 │ 91.05 ± 6.25 │ 88.33 ± 8.18 │ 66.70 │ 80.16 \\\hdashline
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
syntheticGBDT flatten features baselineAccuracy92.00%Binary Classification · split: val · features=flattened
Source quote
L263: GBDT flatten features │ 92.00 │ 89.74 ± 6.55 │ 88.41 ± 8.24 │ 52.92 │ 75.11
BibTeX
@misc{guillamebert2024boosting,
  author = {Mathieu Guillame-Bert and Richard Nock},
  title = {{Boosting gets full Attention for Relational Learning}},
  year = {2024},
  eprint = {2402.14926},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.14926},
}
Figure