TL;DR
This paper provides the first tight quantitative bounds on the embedding dimension and bi-Lipschitz distortion for sorting-based, permutation-invariant embeddings. The authors demonstrate that the required embedding dimension can be significantly reduced compared to previous theories, and they establish that the distance-preserving distortion depends quadratically on the number of points but remains completely independent of the data's actual dimension.
What Problem Does This Paper Address?
In deep learning applications dealing with graphs or multisets (such as Graph Neural Networks), models must be permutation-invariant—meaning the output shouldn't change if you shuffle the order of the nodes or data points. A powerful approach to achieve this is using sorting-based embeddings, which work by projecting high-dimensional data down to multiple independent 1D lines and then sorting the resulting values.
While prior work proved that these embeddings are injective (they uniquely separate different point sets) and bi-Lipschitz continuous (they preserve relative distances), two major gaps remained:
- Prohibitive Size: The number of projections ($D$) previously required to guarantee unique embeddings was either unknown or grew superexponentially, making it impractical.
- Unknown Distortion: There were no mathematical estimates for the bi-Lipschitz constants, meaning we didn't know how much the embedding distorted the true distances between datasets. If a representation squashes distinct inputs close together, metric-based tasks like clustering or nearest-neighbor searches fail.
Methods
The authors tackle these gaps using a blend of real algebraic geometry, hyperplane arrangements, and random matrix theory.
To optimize the embedding dimension, they exploit the geometric symmetries (homogeneity and translation invariance) of the sorting mapping to show that injectivity can be proven on a much lower-dimensional subspace than previously attempted.
To bound the distortion, they introduce the concept of projective uniformity—a geometric property ensuring that projection vectors are well-distributed across the unit sphere. They analyze three specific matrix constructions to achieve this:
- A deterministic, equidistant grid approach for 2D data ($d=2$).
- Random Gaussian matrices.
- Random matrices with columns uniformly sampled from a unit sphere.
Finally, they apply a sketching technique called Oblivious Subspace Embeddings (OSE) to show that linear dimensionality reduction can compress the final embedding size down to a linear scale without sacrificing the distance-preserving guarantees.
Datasets
Not discussed in the paper. This is a purely theoretical and mathematical paper; no standard machine learning datasets or empirical benchmarks were used, outside of small-scale synthetic numerical checks to verify algebraic conditions.
Key Insights and Ideas
- Dimension-Independent Distortion: Remarkably, the upper bound on the bi-Lipschitz distortion scales quadratically with the number of points ($O(n^2)$) but is completely independent of the data dimension ($d$). This makes the method highly attractive for very high-dimensional data features.
- A Universal Fundamental Limit: The authors prove a universal lower bound showing that no matter how you choose your projection vectors, the distortion will always be at least proportional to $\sqrt{n}$. This establishes a theoretical baseline for all sorting-based architectures.
- The Sliced-Wasserstein Connection: The sorting-based embedding can be mathematically interpreted as a finite-dimensional Monte-Carlo approximation of the Sliced 2-Wasserstein distance between empirical probability measures.
Key Results
The paper successfully slashes the upper bounds for the embedding dimensions required for injectivity and provides clear lower bounds, summarized in the table below:
For distortion, the uniform sphere sampling method achieves a distortion of $\tilde{O}(n^2)$ with high probability, provided the number of projections scales as $D \ge \tilde{O}(dn^2)$. Using the OSE sketching argument, they show the final compressed embedding dimension $M$ only needs to scale as $O(nd \log(1/\epsilon))$, bringing it incredibly close to the theoretical absolute minimum of $nd$.
Limitations and Future Work
- The Distortion Gap: A theoretical gap remains between the universal lower bound of $\Omega(\sqrt{n})$ and the achieved upper bound of $O(n^2)$. Finding a matrix construction that bridges this gap remains an open problem.
- Norm Restrictions: The current analysis focuses strictly on metrics derived from the Frobenius norm quotiented by the permutation group. How these embeddings distort data under other common norms (like the $L_1$ norm) is still unknown.
- Practical Adoption: In practical machine learning, simpler but less theoretically expressive pooling mechanisms (like DeepSets sum-pooling) dominate. The authors note that a crucial next step is empirically identifying specific real-world tasks where the strict bi-Lipschitz guarantees of sorting-based embeddings actually translate to superior model performance.
Summary updated