# CuPH: Parallel Cubical Persistent Homology via Level-Synchronous Component Tracking

DevFeed: [CuPH: Parallel Cubical Persistent Homology via Level-Synchronous Component Tracking](<https://devfeed.tech/articles/cuph-parallel-cubical-persistent-homology-via-level-synchronous-component-tracking-113789.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.01078>)

Author: Guangyu Meng, Pengfei Gu, Erin Wolf Chambers, Danny Z. Chen

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [High-Performance Computing](<https://devfeed.tech/topics/high-performance-computing.md>), [CUDA](<https://devfeed.tech/topics/cuda.md>), [GPU optimization](<https://devfeed.tech/topics/gpu-optimization.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Image](<https://devfeed.tech/topics/image.md>), [MONAI](<https://devfeed.tech/topics/monai.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [backend](<https://devfeed.tech/tags/backend.md>), [classification](<https://devfeed.tech/tags/classification.md>), [component](<https://devfeed.tech/tags/component.md>), [connectivity](<https://devfeed.tech/tags/connectivity.md>), [cs-cg](<https://devfeed.tech/tags/cs-cg.md>), [cs-cv](<https://devfeed.tech/tags/cs-cv.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cuda](<https://devfeed.tech/tags/cuda.md>), [deep](<https://devfeed.tech/tags/deep.md>), [deep-learning](<https://devfeed.tech/tags/deep-learning.md>), [drop-in](<https://devfeed.tech/tags/drop-in.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [homology](<https://devfeed.tech/tags/homology.md>), [image](<https://devfeed.tech/tags/image.md>), [lock-free](<https://devfeed.tech/tags/lock-free.md>), [parallel](<https://devfeed.tech/tags/parallel.md>), [persistent-homology](<https://devfeed.tech/tags/persistent-homology.md>), [topology](<https://devfeed.tech/tags/topology.md>), [tracking](<https://devfeed.tech/tags/tracking.md>), [training](<https://devfeed.tech/tags/training.md>), [union-find](<https://devfeed.tech/tags/union-find.md>)

## AI overview

CuPH computes cubical persistent homology for 2D images by bucketing pixels by filtration value, activating them in a level-synchronous sweep, and tracking components with lock-free union-find. This replaces sequential reduction over cubical cells, reducing parallel depth from Θ(n) to O(L log n), where n is the pixel count and L the number of intensity levels; a single CUDA kernel avoids launches between levels. The authors report diagrams identical to standard cubical PH for integer inputs and a stability bound for floating-point inputs. Against GPU baseline CMP, CuPH is 18.6-99.6x faster. As a drop-in backend, it speeds topology-aware classification and segmentation while preserving accuracy. For high-resolution images, full-image PH losses improve Dice by 2.2-4.6 points over patch-local PH and accelerate training 25-31x.

## Source excerpt

arXiv:2611.01078v1 Announce Type: cross Abstract: Persistent homology (PH) is a mathematically principled multi-scale topological descriptor of shape and connectivity in data. It is widely applied in image classification, segmentation, and shape analysis across medical and aerial imaging, providing structural information that pixel-wise deep learning may overlook. Standard cubical PH decomposes an image into cubical cells (vertices, edges, and squares) and reduces them sequentially in filtration order. This sequential reduction has $\Theta(n)$ parallel depth for an $n$-pixel image, limiting within-image GPU parallelism and constraining its use in topology-aware deep learning. We introduce CuPH, a GPU-based parallel algorithm for computing cubical PH on 2D images that operates directly on pixels rather than cubical cells. CuPH buckets pixels by filtration values, activates them with a level-synchronous sweep, and tracks connected components with a lock-free union-find method. We prove that CuPH produces persistence diagrams identical to standard cubical PH on integer inputs, with a stability bound for floating-point inputs. CuPH reduces parallel depth from $\Theta(n)$ to $O(L\log n)$ for an image with $L$ intensity levels. We implement the level sweep as a single CUDA kernel, eliminating cross-level kernel-launch overhead. Empirically, CuPH is $18.6$--$99.6\times$ faster than the existing GPU baseline (CMP). As a drop-in PH backend, CuPH accelerates topology-aware classification ($4.2$--$16.7\times$) and segmentation ($8.3$--$44\times$) while preserving accuracy. It also enables computing full-image PH losses on high-resolution images, improving segmentation Dice by $2.2$--$4.6$ points over patch-local PH baselines and accelerating training by $25$--$31\times$.