GPU-Accelerated Computation of Persistent Homology for Topological Analysis of Image Data
Abstract
In recent years, persistent homology has seen rapid adoption in deep learning, yet its computation remains a major bottleneck in network training. This paper introduces TopoGPU, a GPU streaming pipeline that computes persistence diagrams of cubical complexes induced by 2D and 3D images. TopoGPU streams the input image chunk by chunk, processing each chunk with massively parallel GPU kernels on a grid of GPU blocks; the resulting boundary relations are accumulated in host memory, where the CPU performs the boundary matrix reduction. TopoGPU introduces a stratification-aware discrete Morse matching that provably preserves persistent homology under streaming, together with a parallel topological sorting algorithm and a parallel V-path parity algorithm for deriving Morse boundaries on the GPU. TopoGPU outperforms Cubical Ripser, a state-of-the-art method for persistent homology computation, on every benchmark evaluated, achieving an average end-to-end speedup of 53.24x and a maximum of 198.01x. We further integrate TopoGPU into a topology-preserving deep network, demonstrating that it substantially reduces the cost of persistent homology computation during network training. TopoGPU is open source, with pre-built binaries, Google Colab notebooks, and Docker images available at the project's GitHub page: https://github.com/seravee08/GPU-Computation-of-Persistent-Homology-for-Image-Data.
Create a lesson
Metadata
- Comments
- Accepted for publication in IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI). Includes supplementary material (8 pages) after the main paper. Code: https://github.com/seravee08/GPU-Computation-of-Persistent-Homology-for-Image-Data
Related papers
A Computational Model of Continuous Recognition Memory for Natural Images
Shared title terminologycs.CVSheng Zhao, Yijin Wang, Bei Xiao et al.
BudgetPix: Compute-Adaptive Tokenization for Pixel-Space Image Diffusion
Shared title terminologycs.CVOzgur Kara, Yujia Chen, Daniel Watson et al.
ReMeDi: Single-Image PBR Material Estimation via Reparameterization between Metal and Dielectric Hypotheses
Shared title terminologycs.CVFan Fei, Xin Huang, Yixin Zhu et al.
Semantic State Reading for Joint Image-Semantic Diffusion Transformers
Shared title terminologycs.CVGuanxi Lai, Zixuan Li, Zhiwei Li et al.
TORE: Token-Wise Taylor Order Selection via Decomposed Residual Error Estimation for Diffusion Acceleration
Shared title terminologycs.CVLei Tang, Baoquan Zhang, Yakun Zhang et al.
Detector Operating Behavior Inference via Data-Space Sampling
Shared title terminologycs.CVStefan Becker, Simon Weiss, Wolfgang Hübner