[Paper Review] Optimizing persistent homology based functions
This paper introduces a general, differentiable framework for optimizing functions based on persistent homology, leveraging real analytic geometry to ensure theoretical convergence guarantees for stochastic subgradient methods. It enables efficient, gradient-based optimization of topological loss functions across diverse machine learning applications with minimal implementation overhead.
Solving optimization tasks based on functions and losses with a topological flavor is a very active, growing field of research in data science and Topological Data Analysis, with applications in non-convex optimization, statistics and machine learning. However, the approaches proposed in the literature are usually anchored to a specific application and/or topological construction, and do not come with theoretical guarantees. To address this issue, we study the differentiability of a general map associated with the most common topological construction, that is, the persistence map. Building on real analytic geometry arguments, we propose a general framework that allows us to define and compute gradients for persistence-based functions in a very simple way. We also provide a simple, explicit and sufficient condition for convergence of stochastic subgradient methods for such functions. This result encompasses all the constructions and applications of topological optimization in the literature. Finally, we provide associated code, that is easy to handle and to mix with other non-topological methods and constraints, as well as some experiments showcasing the versatility of our approach.
Motivation & Objective
- To address the lack of theoretical convergence guarantees in existing topological optimization methods for non-convex, non-differentiable persistence-based functions.
- To unify diverse topological optimization approaches in machine learning under a single differentiable framework grounded in real analytic geometry.
- To enable practical, scalable optimization of topological functions using standard deep learning libraries with automatic differentiation.
- To provide a general-purpose implementation that integrates seamlessly with non-topological optimization pipelines.
Proposed method
- Represent the persistence map as a semi-algebraic function from parameterized filtrations to persistence diagrams, enabling differentiability analysis via o-minimal geometry.
- Prove that the persistence map is semi-algebraic and thus has well-behaved differentiability properties under mild conditions.
- Apply recent results from [DDKL20] to establish almost sure convergence of stochastic subgradient descent for general persistence-based functions.
- Use the Sliced Wasserstein distance as a computationally efficient alternative to Wasserstein distances in optimization, preserving theoretical guarantees.
- Implement a lightweight, PyTorch/TensorFlow-compatible Python library for end-to-end optimization of topological functions.
- Integrate the framework with standard ML pipelines by allowing gradients to backpropagate through persistence diagrams and topological features.
Experimental results
Research questions
- RQ1Can a general framework be developed that ensures convergence of optimization algorithms for a broad class of persistence-based functions?
- RQ2How can the non-differentiable nature of persistence diagrams be overcome to enable gradient-based optimization in machine learning?
- RQ3What conditions ensure that stochastic subgradient methods converge to critical points for topological functions?
- RQ4Can the framework be made computationally efficient and compatible with existing deep learning libraries?
- RQ5To what extent does optimizing the filter function improve downstream performance in topological machine learning tasks?
Key findings
- The persistence map is semi-algebraic, enabling rigorous differentiability analysis and theoretical convergence guarantees for optimization.
- Stochastic subgradient descent applied to general persistence-based functions converges almost surely to a critical point under mild assumptions.
- Filter optimization using the proposed framework improves classification accuracy on MNIST, with gains up to +11.5 percentage points (e.g., vs79) compared to random initializations.
- The Sliced Wasserstein distance enables efficient optimization with matrix-based operations, significantly reducing computation time while preserving theoretical validity.
- The framework consistently improves performance across all 45 binary digit classification tasks in MNIST, with only one case showing no improvement.
- The open-source implementation allows seamless integration with standard ML workflows, enabling end-to-end training with topological regularizers.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.