What Representational Similarity Measures Imply about Decodable Information

Sarah E. Harvey, David Lipshutz, Alex H. Williams

Introduction

In computational neuroscience and machine learning, comparing internal representations across different systems—such as a biological brain and an artificial neural network—is a fundamental challenge. Researchers frequently employ metrics like Centered Kernel Alignment (CKA), Canonical Correlation Analysis (CCA), and Procrustes distance. While these measures are valued for their invariance to nuisance transformations like rotation or scaling, their functional implications have remained unclear. Specifically, does a high CKA score between two networks guarantee that they represent information in a way that a downstream readout can utilize? This research grounds these geometric measures in the practical reality of decodable information.

The Decoding Similarity Framework

The authors introduce a unifying theoretical framework centered on linear decoding. They define "decoding similarity" as the inner product between optimal linear readouts of two systems, $X$ and $Y$, for an identical target variable $z$.

Figure 1: The proposed framework for computing decoding similarity. Representations X and Y are used to compute optimal weights for a decoding target z. The similarity is then measured between the resulting decoded signals.

This approach involves several key components:

  1. Optimization Framework: Decoding is treated as a generalized optimization problem, incorporating penalties on both activation levels and synaptic weight strength (regularization).
  2. Task Averaging: Rather than focusing on a single task, the framework calculates the average decoding similarity across a distribution of potential tasks.
  3. Mathematical Equivalence: The authors provide formal proofs demonstrating that this average decoding similarity is exactly equal to the Frobenius inner product of the networks' kernel matrices ($Tr(K_X K_Y)$).

Bridging Geometry and Function

A central insight of this work is that geometric similarity measures are essentially functional measures in disguise. Selecting a specific similarity metric is equivalent to choosing a particular regularization scheme for a linear decoder. For instance, the authors successfully mapped CCA to a decoder with no weight penalty ($b=0$) and CKA to a decoder with only a weight penalty ($a=0$).

Furthermore, the paper explores the relationship between decoding distance and the Procrustes shape distance—a strict geometric metric. They derived new mathematical bounds relating these two, revealing that Procrustes distance is significantly more demanding. While a small Procrustes distance implies similar decoders, the inverse is not necessarily true: systems can be geometrically distinct yet support nearly identical linear decoders, particularly in low-dimensional regimes.

Key Results and Theoretical Bounds

The study validated these theoretical insights using simulated positive semi-definite (PSD) matrices and synthetic neural responses. A critical finding is how the "participation ratio"—a measure of effective dimensionality—influences the gap between geometry and function.

Figure 2: Theoretical bounds and simulation results. (A) Shows how the participation ratio affects the relationship between geometric similarity and decoding distance. (B-D) Validate these bounds across different ranges of the participation ratio.

As the participation ratio increases, the relationship between geometric similarity and decoding distance becomes more complex. The authors demonstrated that average decoding distance effectively bounds the Procrustes distance from both above and below. This suggests that in high-dimensional representations, the distinction between "geometric" and "functional" similarity becomes increasingly pronounced.

Discussion and Future Directions

While this framework provides a robust foundation for understanding linear decoding, it has limitations. The current proofs are strictly limited to linear readouts. Although linear decoding is a standard benchmark in neuroscience, many machine learning contexts utilize non-linear decoders. Extending this framework to non-linear classifiers, such as Support Vector Machines (SVMs), is a primary avenue for future research.

Additionally, the proofs assume a finite set of stimulus conditions. While preliminary explorations into the infinite-data limit using Gaussian Processes are included in the appendix, a more rigorous treatment of the limited-sample regime is necessary. Finally, future work could investigate hypothesis-driven comparisons where similarity is weighted toward specific, biologically relevant task distributions rather than a uniform distribution.

Summary updated

BibTeX
@inproceedings{harvey2025what,
  author = {Sarah E. Harvey and David Lipshutz and Alex H. Williams},
  title = {{What Representational Similarity Measures Imply about Decodable Information}},
  booktitle = {UniReps},
  year = {2025},
}
Figure