TL;DR
Comparing how two brains or AI models represent the world usually requires huge amounts of data, and popular metrics get tripped up when you can only sample a tiny fraction of neurons and stimuli. This paper analyzes the Centered Kernel Distance (CKD), proving you can estimate representational similarity without statistical bias and with an error rate that completely dodges the "curse of dimensionality." Practically, it gives researchers a golden rule for experimental design: stop showing thousands of images to just a handful of neurons—keep your neuron and stimulus counts roughly balanced instead.
What Problem Does This Paper Address?
Whether you are checking if a Vision Transformer "sees" like a macaque monkey or comparing two deep neural networks, you rely on representational similarity metrics—most famously Centered Kernel Alignment (CKA) and Representational Similarity Analysis (RSA).
In the real world, you never have the full picture. You can’t show a system every possible natural image, and neuroscientists can only record from a tiny fraction of neurons in a brain region. Worse, biological neurons are noisy from trial to trial. Prior statistical theory looked at what happens when you subsample stimuli ($M$) or subsample neurons ($N$) separately, often assuming the other is infinite. Nobody had cracked the non-asymptotic math for what happens when you subsample both simultaneously—which is every real neuroscience experiment ever run. Furthermore, popular metrics like CKA are inherently statistically biased in low-sample regimes, skewing comparisons.
Methods
Instead of CKA (which normalizes an inner product between representations, making the math thorny), the authors study its unnormalized distance counterpart: Centered Kernel Distance (CKD). While the underlying mathematical quantity isn't new—it is the distance induced by the Hilbert–Schmidt Independence Criterion (HSIC)—the authors unlock its statistical superpowers under double-subsampling:
- Unbiased U-Statistic Estimator: Naive similarity calculations accidentally compare the same stimulus or the same neuron to itself, inflating similarity scores. By combining and extending existing bias-correction techniques into a three-sample U-statistic (an averaging method that systematically skips self-comparisons), the authors construct an unbiased estimator for squared CKD ($\widehat{\text{CKD}}^2$) that scales linearly with neuron count.
- Noise Handling: They extend this U-statistic to handle biological trial-to-trial noise. Even if noise is correlated across neurons, presenting each stimulus just twice ($L = 2$) is enough to completely debias the estimate.
- Closed-Form Metric Repair: When comparing three or more systems at once, sampling noise can cause distance matrices to violate the triangle inequality. Because CKD is built on a true inner product, the authors use a simple eigendecomposition to clip negative eigenvalues—repairing the metric in closed form and yielding exact coordinates for clustering or PCA.
Datasets
No new benchmarks were introduced; the authors validated their theory across synthetic, AI, and biological data:
- Synthetic Data: Random shallow (one-layer) neural networks fed inputs of varying intrinsic dimensions ($D = 10, 100, 1000$).
- ImageNet: Used to train deep convolutional networks and evaluate in-distribution test similarity.
- MacaqueITBench: Used as out-of-distribution test images for the ImageNet-trained models.
- THINGS Ventral Stream Dataset: Electrophysiological recordings across visual cortex areas V1, V4, and IT in two macaque monkeys.
Key Insights and Ideas
- No Curse of Dimensionality: Usually, estimating functions in high-dimensional spaces (like natural images) requires exponentially more samples as dimensionality $D$ grows. Strikingly, the error bound for $\widehat{\text{CKD}}^2$ scales with $\epsilon = \frac{1}{M} + \frac{1}{N_X} + \frac{1}{N_Y}$, completely independent of input dimension $D$. Comparing two representations is fundamentally easier than estimating the tuning curves of the neurons themselves!
- CKA Has No Unbiased Estimator, CKD Does: Because CKA divides by estimated norms, its statistical bias cannot be completely eliminated. CKD sidesteps this normalization, making exact null-hypothesis testing much cleaner without awkward bootstrap workarounds.
- The $M \approx N$ Prescription: Because variance decays proportionally to $\frac{1}{M} + \frac{1}{N}$, whichever sample size is smaller acts as a bottleneck. Showing 10,000 images to 20 neurons wastes time; your error hits a wall dictated by those 20 neurons. Balancing $M \approx N$ is the most efficient path to precision.
- Signal-Adaptive Variance: The variance scales as $\text{CKD}^2 \cdot \epsilon + \epsilon^2$. As two systems become more similar ($\text{CKD} \to 0$), the leading error term vanishes and your estimate actually becomes more precise, shifting to a faster $\epsilon^2$ decay rate.
Key Results
Across random networks, deep CNNs, and monkey visual cortex (V1, V4, IT), empirical variance heatmaps closely tracked the theoretical $\mathcal{O}(\frac{1}{M} + \frac{1}{N})$ L-shaped contour lines, regardless of image complexity or brain region.
When comparing 10 systems simultaneously (4 CNNs and 6 monkey brain recordings) and measuring how well subsampled rankings matched ground truth via Kendall's $\tau$:
- Balanced sampling at just $M = 100, N = 100$ achieved a high rank correlation ($\tau \approx 0.85$), producing tight, distinct clusters in PCA space.
- Heavily lopsided sampling—such as $M = 1000$ stimuli with $N = 10$ neurons ($\tau = 0.684$) or $N = 33$ neurons—yielded worse or merely comparable accuracy despite up to an order-of-magnitude more effort along one axis.
Limitations and Future Work
- Scale Sensitivity: CKD’s greatest mathematical strength—skipping normalization—is also its main catch. Unlike CKA, CKD is sensitive to the overall scale of neural activations (e.g., multiplying a layer's outputs by 2 changes its CKD).
- Future Directions: The authors highlight the need to incorporate scale invariance or normalization back into CKD-like analyses without losing statistical tractability, as well as developing similarly rigorous finite-sample bounds for normalized metrics like CKA and Procrustes distance.
Summary updated