RTD-Lite: Scalable Topological Analysis for Comparing Weighted Graphs in Learning Tasks
Eduard Tulchinskii, Daria Voronkova, Ilya Trofimov, Evgeny Burnaev, Serguei Barannikov
TL;DR
RTD-Lite tackles the challenge of scalable topological comparison between two weighted graphs with a one-to-one vertex correspondence by avoiding full persistent homology calculations. It introduces a minimal spanning tree–based approach that constructs an auxiliary graph $C$ with edge weights $c_e = \min(a_e, b_e)$ and outputs a barcode-like RTD-Lite representation whose complexity is $O(n^2)$. The paper provides both a full RTD-Lite barcode algorithm and a faster summed-intervals variant, analyzes their computational properties, and demonstrates their utility in comparing neural representations and as a differentiable loss in learning tasks. Empirical results on synthetic and real data show substantial speedups over RTD while preserving topological fidelity, enabling applications in dimensionality reduction and neural-network training; the authors also release publicly available code at https://github.com/ArGintum/RTD-Lite.
Abstract
Topological methods for comparing weighted graphs are valuable in various learning tasks but often suffer from computational inefficiency on large datasets. We introduce RTD-Lite, a scalable algorithm that efficiently compares topological features, specifically connectivity or cluster structures at arbitrary scales, of two weighted graphs with one-to-one correspondence between vertices. Using minimal spanning trees in auxiliary graphs, RTD-Lite captures topological discrepancies with $O(n^2)$ time and memory complexity. This efficiency enables its application in tasks like dimensionality reduction and neural network training. Experiments on synthetic and real-world datasets demonstrate that RTD-Lite effectively identifies topological differences while significantly reducing computation time compared to existing methods. Moreover, integrating RTD-Lite into neural network training as a loss function component enhances the preservation of topological structures in learned representations. Our code is publicly available at https://github.com/ArGintum/RTD-Lite
