# Poster 30329

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/30329

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hello everyone. Today I'll be speaking about our work Towards Scalable Topological Regularizers by Yutang Wang, myself Derek Li, and Hong Yan. The goal of our work is to develop a scalable topological regularizer for latent space matching problems. Here we focus on GANs as the main example. Consider a distribution of training data. A GAN takes a noise measure and trains a generator to create a distribution of generated data.
It also trains a discriminator to send both distributions to a latent space where a loss function compares these measures. Common loss functions do not explicitly account for topological properties of the distributions. However, such features are important. First, popular image datasets such as CIFAR -10 and ImageNet empirically satisfy a union of manifolds hypothesis.
Second, recent work has shown that topology-based evaluation metrics are highly effective for generative tasks for GANs. Finally, since GANs often converge to local saddle points, this leads to measures which may have distinct topological properties. All of this motivates a regularizer which explicitly accounts for topological features. We begin with persistent homology, a tool from topological data analysis which provides a topological summary of point cloud datasets.
This constructs a sequence of topological spaces representing this point cloud at various scales. Next, we compute Q-dimensional homology, or the Q-dimensional holes of each space, and track how these features persist by recording their birth and lifetime in an object called a persistence diagram.
There are two issues with using persistent homology in machine learning frameworks. First, persistent homology is prohibitively expensive to compute for large point clouds. And second, while it is differentiable almost everywhere, it may still have discontinuous gradients, which can lead to unstable training and adversarial tasks. We use the notion of principal persistence measures, or PPMs, introduced by Gomez and Mimoli, which approximates persistent homology via subsampling.
By choosing exactly 2q plus 2 points for dimension q homology, there is at most one topological feature. By considering many sub-samples, we obtain an approximation to PPMs. A key property is that the PPM reduces to a small computation and enables effective GPU parallelization over the sub-samples.
We use kernel maximum mean discrepancy or MMD to compare PPMs which are probability measures in a square region quotiented by the lifetime axis in red. Points valued on this line represent sub-samples where no topological feature exists. We denote the space by omega. Given a kernel on the square, we can transform it into a kernel on omega by scaling by the lifetime.
If the original kernel is universal, the kernel mean embedding of the new kernel is injective, allowing us to use the MMD as a metric for probability measures on Omega. In particular, the MMD can be computed explicitly in terms of kernel evaluations. We define our regularizer for measures on the latent space as the MMD of the respective persistence measures. Next, we put this in the GAN framework with generator and discriminator parameterized by Omega and Theta respectively.
Our main result states that given certain smoothness conditions, the regularizer has continuous derivatives except at the origin. Our first experiment optimizes points of a point cloud to match the shape of a reference. Here we use the Kramer loss as the main loss function and observe visually that the topological features converge much more quickly, reflected in the comparison of the true persistent homology distance without subsampling.
Similar behavior is also seen when we change the main loss to MMD. Furthermore, we find that the combination of GPU acceleration and MMD metric yields a substantial improvement in computation time. Next, we consider an image generation experiment by comparing GAN training with and without the regularizer. Here we find that there are significant improvements of image generation on the anime face and celebe datasets when considering three common evaluation metrics.
Finally, we consider a semi-supervised learning experiment with limited labels. Here we train a GAN on the full dataset. We then freeze the discriminator and use its output as a feature map and train a classifier. We compare the classification with and without the regularizer in addition to a baseline which does not use prior GAN training. Here we observe that the addition of the regularizer significantly improves the semi-supervised classification accuracy.
To summarize, our main theoretical shows that the topological regularizer has continuous gradients and the simple algorithm for PPM allows for GPU parallelization. We include a PyTorch implementation of these methods and empirically show that such regularization can improve both generative and discriminative abilities of GANs. Thank you.
