PathBoost Python Package Offers Interpretable Graph Prediction

Claudio Meggio, Johan Pensar, Riccardo De Bin· July 10, 2026 View original

Summary

path_boost is a new Python package implementing PathBoost, a gradient boosting algorithm for interpretable graph-level prediction that automatically discovers predictive labeled paths within graphs. Unlike GNNs, PathBoost produces an additive model revealing substructures driving predictions, supporting regression and binary classification with scikit-learn compatibility.

A new Python package named `path_boost` has been released, providing a tool for interpretable supervised learning on graph-structured data. The package implements PathBoost, a gradient boosting algorithm designed to automatically identify predictive labeled paths within graphs during its learning process. This approach offers a significant advantage over many graph neural networks (GNNs), which often lack transparency in their decision-making. PathBoost generates an additive prediction model where path-based features explicitly reveal the specific substructures that influence predictions. To avoid the computationally intensive enumeration of all possible paths, the algorithm iteratively selects and extends paths based on their predictive power, combining these "weak learners" into a robust ensemble through boosting. The package is versatile, supporting both regression and binary classification tasks. Key features include seamless compatibility with scikit-learn workflows, the ability to use custom base learners and selectors, automatic starting node selection, and parallel training across anchor nodes. It also includes built-in variable importance computation, further enhancing interpretability. The utility of PathBoost was demonstrated on molecular property prediction and benchmarked against established GNNs and graph kernel methods across several molecular datasets.

Why it matters

Data scientists and machine learning engineers working with graph data can now leverage an interpretable model that clearly shows *why* a prediction is made, which is crucial for domains requiring explainability, such as drug discovery, materials science, and fraud detection.

How to implement this in your domain

  1. 1Install the `path_boost` Python package and explore its documentation for graph-level prediction tasks.
  2. 2Apply PathBoost to graph-structured datasets where model interpretability is a key requirement.
  3. 3Utilize the built-in variable importance computation to identify critical substructures driving predictions in your graphs.
  4. 4Integrate PathBoost into existing scikit-learn pipelines for graph-based machine learning workflows.
  5. 5Benchmark PathBoost against traditional GNNs or graph kernel methods to assess its performance and interpretability trade-offs for your specific problem.

Who benefits

PharmaceuticalsMaterials ScienceCybersecurityFinanceHealthcare

Key takeaways

  • `path_boost` is a Python package for interpretable graph-level prediction using PathBoost.
  • PathBoost discovers predictive labeled paths, offering transparency unlike many GNNs.
  • It supports regression and binary classification and is compatible with scikit-learn.
  • The package provides explicit insights into which graph substructures drive predictions.

Original post by Claudio Meggio, Johan Pensar, Riccardo De Bin

"arXiv:2607.07935v1 Announce Type: new Abstract: We present path_boost, a Python package for interpretable supervised learning on graph-structured input data. The package implements PathBoost, a gradient boosting algorithm that automatically discovers predictive labeled paths with…"

View on X

Originally posted by Claudio Meggio, Johan Pensar, Riccardo De Bin on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses