Diffeomorphic interpolation for efficient persistence-based topological optimization

Mathieu Carrière, Marc Theveneau, Théo Lacombe

Abstract

Topological optimization aims to modify data to exhibit specific structural features, such as loops or cavities, using Persistent Homology (PH). However, standard gradient-based approaches suffer from extreme sparsity, where updates only affect the few "critical" points defining a topological feature. This paper proposes a diffeomorphic interpolation method that "smears" these sparse gradients into a smooth, global vector field using Reproducing Kernel Hilbert Space (RKHS) techniques. This approach allows for the efficient optimization of large-scale point clouds and the regularization of black-box latent spaces, significantly improving convergence speed and scalability.

Introduction: The Challenge of Sparse Gradients

In Topological Data Analysis (TDA), Persistent Homology is used to quantify the "shape" of data across multiple scales. While powerful for analysis, using PH for optimization—shaping a dataset to match a topological prior—is computationally challenging. The primary bottleneck is the sparsity of the gradient. In a large point cloud, a topological loss function typically depends only on a handful of points that define the boundary of a hole or a connected component. Standard gradient descent moves only these few points, leading to slow convergence and an inability to handle large datasets or maintain global structure during optimization.

Methods: Diffeomorphic Interpolation

To overcome gradient sparsity, the authors introduce Diffeomorphic Interpolation. Instead of treating gradients as isolated vectors, they interpolate them into a smooth vector field that warps the entire underlying space.

  1. RKHS Interpolation: Using a Reproducing Kernel Hilbert Space with a Gaussian kernel, the method finds the smoothest vector field that matches the sparse topological gradients at critical points.
  2. Vector Fields as Flows: This field defines a diffeomorphism—a smooth, invertible map—that "flows" the entire dataset. When critical points move to satisfy topological constraints, nearby points are pulled along, preserving local relationships.
  3. Scalable Optimization: By computing gradients on a small subsample and interpolating the result to the full dataset, the method can optimize clouds with tens of thousands of points.
Comparison of sparse "vanilla" gradients (black) vs. the interpolated diffeomorphic vector field (orange). The diffeomorphic approach affects the entire neighborhood of the critical points.

Key Results

The method was evaluated on synthetic 2D data, the 3D Stanford Bunny mesh (35,947 vertices), and the COIL-100 image dataset.

  • Efficiency and Convergence: In 2D circle benchmarks, the diffeomorphic method converged significantly faster than vanilla gradients. On the large-scale Stanford Bunny dataset, vanilla optimization showed negligible progress after 1,000 epochs, whereas the proposed method achieved clear topological refinement in just 200 epochs.
  • Latent Space Regularization: The method was applied to the latent spaces of pre-trained Variational Autoencoders (VAEs). By warping the latent space to be more topologically consistent with the physical properties of the data (e.g., circularity for rotating objects), the correlation between latent coordinates and ground-truth rotation for the "Pig" object in COIL-100 improved from 0.17 to 0.74.
Optimization of a noisy point cloud over time. Vanilla gradient descent (b, c) fails to recover the circular structure efficiently, while the diffeomorphic approach (d) succeeds rapidly.

Discussion and Future Work

The core insight of this work is that topological gradients should warp the manifold rather than just moving individual points. This transformation from a discrete, sparse problem to a continuous, global one enables new applications in large-scale data science and generative modeling.

However, because diffeomorphisms preserve existing topology, the method cannot "create" new holes where none exist; it can only emphasize or refine existing features. Future research may explore "stratified" flows that allow for more radical topological changes, such as breaking or joining components, during the optimization process.

Summary updated

BibTeX
@inproceedings{carriere2024diffeomorphic,
  author = {Mathieu Carrière and Marc Theveneau and Théo Lacombe},
  title = {{Diffeomorphic interpolation for efficient persistence-based topological optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=gYjM1BZzdX},
}
Figure