Comparing high-dimensional neural representations is a cornerstone of modern neuroscience and artificial intelligence. Researchers frequently need to know if two neural networks—whether biological or artificial—are processing information similarly. This is typically done by comparing their representational geometry: how the networks' internal activations respond to the same set of stimuli.
While popular metrics like Centered Kernel Alignment (CKA) or Procrustes "shape distances" are widely used to quantify this similarity, they harbor a major statistical trap. In high-dimensional spaces (many neurons, $N$) with limited stimuli (few samples, $M$), standard "plug-in" estimators are dangerously biased. They tend to "overfit," finding spurious alignments between unrelated representations and making them appear much more similar than they actually are. Despite the widespread use of these metrics, rigorous statistical bounds for shape distance estimators have been lacking—until now.
The "Overfitting" Intuition in High Dimensions
The core issue stems from the geometry of high-dimensional spaces. When the number of samples ($M$) is small relative to the number of dimensions ($N$), you can almost always find a rotation that makes two random point clouds look somewhat aligned. This "hallucinated" similarity causes standard metrics to fail.
As illustrated above, with very few samples (e.g., $M=2$ or $M=4$), two distinct representational manifolds can be rotated to match almost perfectly at the sampled points, masking their true global dissimilarity. As the number of samples increases ($M=16$), the true geometric differences become apparent, and the spurious alignment is broken.
Theoretical Bounds and a Novel Estimator
To address this, the authors provide two major contributions:
1. Rigorous Theoretical Analysis: They derive non-asymptotic upper and lower bounds on the error of standard plug-in estimators for squared Procrustes distance. They prove that the error is fundamentally driven by the ratio of dimensions to samples ($N/M$). This yields a crucial rule of thumb: if you double the number of neurons ($N$) recorded, you may need to quadruple the number of stimuli ($M$) to maintain the same level of estimation accuracy.
2. A Method-of-Moments Estimator: To correct the bias of standard methods, the researchers introduce a novel Method-of-Moments estimator. By expressing the nuclear norm (a key component of shape distance) as a power series of "eigenmoments," they reframe the estimation problem. Unlike standard estimators stuck with their inherent bias, this new method uses a convex quadratic program to find coefficients that minimize a combination of worst-case bias and variance. Crucially, it is tunable: users can set a "bias budget" (e.g., a 5% tolerance), and the algorithm finds the estimator with the lowest possible variance within that constraint.
Experimental Validation
The researchers validated their approach across three distinct domains, demonstrating significant improvements over standard methods:
- Synthetic Data: Using multivariate normal and Rademacher distributions where ground truth similarity is known, simulations showed the plug-in estimator’s bias "exploding" as dimensionality increased. In contrast, the moment-based estimator maintained roughly constant, user-defined bias levels.
- Biological Neural Data: When comparing independent neural populations from mouse primary visual cortex (V1) responding to natural images—where true similarity should be zero—the plug-in estimator falsely reported significant similarity. The new moment-based estimator correctly identified the similarity as zero, eliminating these "false positives."
- Artificial Neural Networks: On pre-trained ResNet-50 architectures, the plug-in estimator was up to 3-fold biased with small sample sizes compared to a ground truth calculated over 400,000 images. The moment estimator remained accurate even with very few images.
Limitations and Future Work
While powerful, the new estimator comes with a variance tradeoff. To achieve a "nearly unbiased" answer, the confidence intervals become wider, potentially requiring more samples to reach statistical significance. Furthermore, the current theoretical bounds rely on the ambient dimension ($N$). Future work could refine these bounds to depend on the "intrinsic" or "effective" dimension, which is often much lower in real-world neural data. Finally, fully integrating the effects of noise structure into shape distance theory remains an open and exciting area for future research.
Summary updated