Solving the Tree Containment Problem Using Graph Neural Networks
Arkadiy Dushatskiy, Esther Julien, Leen Stougie, Leo van Iersel
TL;DR
This paper tackles the NP-complete Tree Containment problem in phylogenetics by introducing Combine-GNN, a method that merges a phylogenetic network and a tree into a single display graph and processes it with a direction-aware Graph Neural Network (Dir-GNN). The approach enables inductive learning, generalizing to larger leaf sets than those seen during training, and delivers high accuracy (over $95\%$) on instances with up to 100 leaves. Empirical results show Combine-GNN outperforms baselines, including a feature-based XGBoost and a Siamese GNN that uses leaf labels, while maintaining robust performance in inductive scenarios and offering favorable runtime characteristics compared to exact algorithms. The work highlights the potential of GNNs to address complex phylogenetic problems and outlines avenues for extending to non-binary networks and related containment tasks.
Abstract
Tree Containment is a fundamental problem in phylogenetics useful for verifying a proposed phylogenetic network, representing the evolutionary history of certain species. Tree Containment asks whether the given phylogenetic tree (for instance, constructed from a DNA fragment showing tree-like evolution) is contained in the given phylogenetic network. In the general case, this is an NP-complete problem. We propose to solve it approximately using Graph Neural Networks. In particular, we propose to combine the given network and the tree and apply a Graph Neural Network to this network-tree graph. This way, we achieve the capability of solving the tree containment instances representing a larger number of species than the instances contained in the training dataset (i.e., our algorithm has the inductive learning ability). Our algorithm demonstrates an accuracy of over $95\%$ in solving the tree containment problem on instances with up to 100 leaves.
