Graphcode: Learning from multiparameter persistent homology using graph neural networks
Michael Kerber, Florian Russold
TL;DR
We introduce graphcodes, a practical two-parameter topological descriptor for data filtered along two scales, built by stacking one-parameter persistence diagrams and connecting consecutive diagrams via a bipartite graph to form an embedded graph in $\mathbb{R}^3$ that can be ingested directly by graph neural networks. The construction depends on fixed barcode bases, so the graphcode is not a topological invariant but provides a complete combinatorial description of the bifiltration's persistence module and enables efficient, out-of-order matrix-reduction computation with $O(n^3)$ worst-case complexity. A simple GNN pipeline processes graphcodes through attention layers, per-slice pooling, and dense layers, achieving competitive accuracy against state-of-the-art multiparameter descriptors while often offering faster computation. Experiments on graphs, shapes, and point processes demonstrate strong discriminative performance, with the approach particularly advantageous on larger datasets where the graphcode–GNN combination outperforms one-parameter baselines and other vectorizations. The work generalizes PersLay to bifiltrations and provides a practical bridge between multiparameter persistent homology and modern deep learning, suggesting further gains as bifiltration techniques mature.
Abstract
We introduce graphcodes, a novel multi-scale summary of the topological properties of a dataset that is based on the well-established theory of persistent homology. Graphcodes handle datasets that are filtered along two real-valued scale parameters. Such multi-parameter topological summaries are usually based on complicated theoretical foundations and difficult to compute; in contrast, graphcodes yield an informative and interpretable summary and can be computed as efficient as one-parameter summaries. Moreover, a graphcode is simply an embedded graph and can therefore be readily integrated in machine learning pipelines using graph neural networks. We describe such a pipeline and demonstrate that graphcodes achieve better classification accuracy than state-of-the-art approaches on various datasets.
