Introduction
Permutation matrices are essential for matching and assignment tasks across computer vision and robotics. However, their memory footprint grows quadratically ($O(n^2)$), making large-scale problems computationally prohibitive. This paper introduces a breakthrough method to represent massive permutation matrices exactly using a low-rank matrix factorization followed by a non-linearity, theoretically backed by the geometric "Kissing number." This approach reduces memory requirements by up to three orders of magnitude, enabling the optimization of high-resolution matching problems—like dense 3D shape alignment—that were previously out of reach.
The $O(n^2)$ Bottleneck
Matching a set of $n$ items to another set of $n$ items (e.g., aligning keypoints in two images or matching vertices of 3D shapes) typically requires a permutation matrix: an $n \times n$ grid of zeros with exactly one '1' in every row and column. To optimize these matrices using modern machine learning techniques like gradient descent, researchers relax them into continuous values.
However, an $n \times n$ matrix requires $O(n^2)$ memory. Matching 20,000 points on a 3D mesh yields a matrix with 400 million entries. Sparse representations fail because the sparsity pattern itself is the unknown target the network is trying to learn, and standard low-rank approximations ($P = VW^T$) fail because permutation matrices are inherently full-rank. Consequently, researchers are usually forced to drastically downsample their data.
A Geometric Solution: The Kissing Number
The authors propose a deceptively simple but mathematically profound solution. Instead of standard low-rank factorization, they apply a point-wise non-linearity (like ReLU or Softmax) to the product of two small matrices:
$$P = \sigma(2VW^T - 1)$$
Here, $V$ and $W$ are row-normalized matrices of size $n \times m$, where $m \ll n$.
The Kissing Number Connection: How small can the rank $m$ be? The authors map this to the "Kissing number" problem in geometry—the maximum number of non-overlapping unit spheres that can touch a central unit sphere. Because the rows of $V$ and $W$ are normalized, their dot products represent cosine angles. The Kissing number dictates how many vectors can be packed into an $m$-dimensional space such that their angles allow the non-linearity to isolate exactly one '1' per row. The math shows $m$ can be incredibly small; for instance, $m=24$ is sufficient to represent a permutation of $n=196,560$ items.
Stochastic Optimization: To prevent the $O(n^2)$ matrix from ever being materialized in memory during neural network training, the authors introduce a stochastic training method. For a given row, they only compute the Softmax over the known ground-truth target entry and one randomly sampled negative entry.
Experimental Results
The authors evaluate their method across several domains, including 3D shape matching (FAUST, SURREAL, TOSCA) and real-world Quadratic Assignment Problems (QAPLIB).
Massive Memory Reduction: For a problem size of $n=20,000$, the proposed method requires only $8.4 \times 10^5$ elements (stored in $V$ and $W$), compared to $4 \times 10^8$ elements for the full matrix. This is a memory reduction of roughly three orders of magnitude.
Faster and Lighter Point Cloud Alignment: On 6,890-vertex FAUST shapes, their method extracted correspondences using only 42.35 MB of memory, compared to 565 MB for a standard Linear Assignment Problem (LAP) solver and over 1.8 GB for Optimal Transport.
State-of-the-Art Shape Matching: When plugged into an existing deep learning shape-matching pipeline, the low-rank representation slightly improved geodesic error (0.041 vs 0.043) while allowing the model to scale to 20,000 vertices—a resolution that would cause standard methods to run out of memory. Furthermore, the method successfully solved complex, non-convex Quadratic Assignment Problems from QAPLIB, finding valid permutations within 10% of the optimal solution for the vast majority of instances.
Limitations and Future Directions
Optimizing the exact ReLU formulation is difficult due to non-convexity and non-smoothness, requiring a smoother Softmax variant with a carefully tuned temperature schedule. Additionally, the memory-saving stochastic training trick cannot be applied to all problem formulations (e.g., Koopmans-Beckmann QAPs), where the permutation matrix appears twice in the objective function. Despite these challenges, this method opens the door to processing ultra-high-resolution data in computer vision and graphics that was previously ignored due to hardware limitations.
Summary updated