Graph Trees with Attention

Maya Bechler-Speicher, Amir Globerson, Ran Gilad-BachracharXiv 2022 · OpenReview

Introduction

Decision trees and ensemble methods like XGBoost are the gold standard for tabular data analysis. However, graph-structured data—such as molecular structures, social networks, and citation maps—presents a unique challenge. Traditionally, researchers have relied on Graph Neural Networks (GNNs) to handle these structures, as standard decision trees require manual, labor-intensive feature engineering to capture topological information. TREE-G addresses this gap by introducing a "pure" decision tree framework that natively and dynamically learns from graph structures.

Methodology: Specialized Splits and Pointer Mechanisms

The core innovation of TREE-G lies in its specialized split function. Unlike traditional trees that evaluate single features against a threshold, a TREE-G split node incorporates the graph's topology through two primary mechanisms:

  1. Feature Propagation: The model uses powers of the adjacency matrix ($A^d$) to aggregate node features over walks of length $d$. This allows a node to evaluate features across local neighborhoods (e.g., the sum of a feature across neighbors two steps away).
  2. The Pointer Mechanism: This mechanism acts as a form of "hard attention." Each split node generates two subsets of vertices based on its decision. Descendant nodes can then use a "pointer" to restrict their calculations to a specific subset generated by an ancestor. This enables the tree to dynamically "zoom in" on specific motifs or substructures as it grows.
TREE-G decision tree structure with specialized split functions and pointer mechanisms.

The framework also supports various walk restrictions (Source, Cycle, Target, and Target-Source), allowing it to capture diverse structural patterns. TREE-G is typically deployed as a "weak learner" within a Gradient Boosted Tree (GBT) ensemble to maximize predictive accuracy.

Experimental Evaluation

The authors evaluated TREE-G across 17 diverse benchmarks, including 10 graph classification datasets (e.g., Mutag, Proteins, NCI1) and 7 node labeling datasets (e.g., Cora, Citeseer, Arxiv).

Key Results

TREE-G demonstrated significant empirical advantages over both traditional GNNs and existing tree-based models for graphs:

  • Superior Performance: It outperformed popular GNN architectures like GCN, GIN, and GAT on 7 out of 10 graph classification tasks. On the IMDb-M dataset, it exceeded GNN performance by over 6.4 percentage points.
  • Dominance over Tree Baselines: TREE-G consistently surpassed other graph-oriented tree methods, such as XGraphBoost and BGNN, across all 17 evaluated tasks.
Performance of TREE-G vs. GNN baselines on graph classification tasks.

Theoretical and Practical Insights

Beyond empirical performance, TREE-G offers several theoretical advantages:

  • Expressivity: Most GNNs are limited by the 1-WL graph isomorphism test. The authors prove that TREE-G is not bound by this limit, allowing it to distinguish between certain non-isomorphic graphs that GNNs cannot.
  • Dynamic Attention: The pointer mechanism effectively performs a dynamic search for relevant subgraphs without the computational weight of neural attention layers.
  • Explainability: As a tree-based model, TREE-G allows for importance-scoring. The authors demonstrated this by visualizing how the model identifies mutagenic structures (like $NO_2$ groups) in molecules, providing transparency often missing in deep learning models.

Conclusion

TREE-G successfully bridges the gap between the efficiency of decision trees and the complexity of graph data. While current limitations include the lack of native edge feature support, the model's ability to outperform GNNs on diverse benchmarks while maintaining explainability makes it a powerful new tool for graph machine learning.

Summary updated

BibTeX
@misc{bechlerspeicher2022graph,
  author = {Maya Bechler-Speicher and Amir Globerson and Ran Gilad-Bachrach},
  title = {{Graph Trees with Attention}},
  year = {2022},
  url = {https://openreview.net/forum?id=dQgse1QQB8U},
}
Figure