TL;DR This paper introduces $N_{ProductNet}$, the first neural network architecture proven to approximate the Wasserstein distance with a fixed number of parameters, regardless of input point set size. It trains up to 50x faster than existing Siamese Autoencoders and generalizes significantly better to point clouds of sizes never seen during training.
Introduction: The Bottleneck in Comparing Complex Objects
Comparing complex objects like point clouds or graphs often requires calculating the Wasserstein distance (also known as the Earth Mover's Distance). While powerful, this distance is computationally expensive to compute exactly ($O(N^3 \log N)$), and even its differentiable approximation, the Sinkhorn distance, can be slow for large sets.
Existing neural network approaches to learn these distances face two major hurdles:
- Invariance Requirements: The distance must be "factor-wise invariant" (the order of points within set A shouldn't matter, nor should the order in set B) and "symmetric" (the distance from A to B must equal the distance from B to A). The authors categorize these as Symmetric and Factor-wise Group Invariant (SFGI) functions.
- The "Size" Bottleneck: Most universal approximation theorems for sets (like DeepSets) imply that as the number of points ($N$) increases, the required size of the neural network must also increase to maintain accuracy. This makes it hard to build a single model that works for point clouds of any size.
Methods: Geometric Sketching and $N_{ProductNet}$
The researchers bridge the gap between theory and practice using a concept called Geometric Sketching. They prove that for any compact metric space, there exists a "sketch" (a continuous encoding/decoding pair) that can represent a point set within a specific error bound $\delta$. Crucially, they show that the dimension of this sketch depends on the covering number of the underlying space (how many small balls it takes to fill the space) and the desired accuracy, but not on the number of points in the input sets.
Based on this, they propose a novel architecture, $N_{ProductNet}$, designed specifically to approximate SFGI functions like the Wasserstein distance.
The model follows a specific pipeline:
- Point Embedding ($h_{\theta1}$): Each point in a set is mapped to a latent space using a Siamese network.
- Sum-Pooling: The embeddings are summed to create a Euclidean embedding "sketch" of the entire set.
- Set Transformation ($\phi_{\theta2}$): A second Siamese network processes the set sketch.
- Symmetric Combination: The processed sketches of set A and set B are added together.
- Final MLP ($\rho_{\theta3}$): A final multi-layer perceptron outputs the estimated distance.
Datasets
The authors evaluated their model on a diverse range of synthetic and real-world datasets:
- Synthetic: 2D Uniform distributions, 3D "Noisy-Sphere," and 6D "Noisy-Sphere."
- ModelNet40: A standard benchmark of 3D CAD models (tested on "small" and "large" subsets).
- RNAseq: A high-dimensional biological dataset consisting of 4,360 cells, where each cell is a point in a 2,000-dimensional gene expression space.
Key Insights and Results
- Independence from $N$: By using the covering number of the space to define the sketch, the authors decouple the network's capacity from the input's cardinality. This allows a model trained on sets of 100 points to work accurately on sets of 500 points.
- Sum-Pooling vs. Max-Pooling: While PointNet famously uses max-pooling, this paper demonstrates that sum-pooling is essential for their specific "sketching" proof to ensure the error doesn't accumulate uncontrollably as the number of points grows.
- Generalization: On the "Noisy-Sphere-3" dataset, $N_{ProductNet}$ achieved a mean relative error of 0.046 on seen sizes and 0.158 on unseen sizes. In contrast, the previous SOTA (WPCE) jumped from 0.341 to 0.356, showing much higher baseline error.
- Training and Inference Speed: The difference is dramatic. For the RNAseq dataset, $N_{ProductNet}$ converged in 15 minutes, while the Siamese Autoencoder (WPCE) took over 14 hours. At test time, the neural approximation is significantly faster than calculating the standard Sinkhorn distance, especially as the number of points increases.
Limitations and Future Work
- The Curse of Dimensionality: While the complexity is independent of the number of points, it depends exponentially on the dimension of the space ($d$). For very high-dimensional data, the "covering number" becomes massive. The authors suggest the "Manifold Hypothesis" (data often sits on a lower-dimensional subset) might mitigate this in practice.
- Beyond Permutations: The current work focuses on permutation invariance. The authors note that future work should extend this to other group actions, such as rigid transformations (rotation/translation), which would be highly useful for the Gromov-Wasserstein distance.
- Approximation vs. Exactness: Like all neural approximations, this provides an $\epsilon$-accurate estimate rather than an exact distance, which may not be suitable for applications requiring strict metric properties.
Summary updated