Abstract
Representational similarity analysis (RSA) tests models of brain computation by investigating how neural activity patterns reflect experimental conditions. Instead of predicting activity patterns directly, models predict the geometry of the representation, defined by the representational dissimilarity matrix (RDM). RSA quantifies this geometry by calculating dissimilarities for each pair of conditions and comparing these to model predictions. This paper addresses two central challenges: noise-induced bias in dissimilarity measures and the statistical dependency between pairwise estimates. We present analytical expressions for the mean and covariance of distance estimators, allowing for the "whitening" of RDM estimation errors. This leads to a new criterion, the whitened unbiased RDM cosine similarity (WUC), which offers near-optimal model selection and robustness to correlated measurement noise.
Introduction: The Challenges of RSA
In systems neuroscience, Representational Similarity Analysis (RSA) has become a standard tool for comparing computational models to neural data. By characterizing the "representational geometry" of a brain region—how it distinguishes between different stimuli or tasks—researchers can test hypotheses about neural computation without needing to predict the exact activity of every voxel or neuron.
Despite its popularity, RSA faces two significant statistical hurdles. First, standard distance measures like Euclidean or Mahalanobis distance are positively biased by measurement noise; they tend to overestimate dissimilarities, especially when true differences are small. Second, the entries in an RDM are not independent. Because each condition's activity pattern contributes to multiple pairwise distances, the resulting errors are correlated. Ignoring this structure makes model comparison statistically suboptimal.
Methods: Whitening and Unbiasing
To overcome these issues, we introduce the Whitened Unbiased RDM Cosine similarity (WUC). This approach relies on two primary innovations:
- Cross-validated (Unbiased) Distances: By calculating distances across different data partitions (e.g., separate fMRI runs), we obtain unbiased estimates. The expected value of these distances is zero when there is no true difference in activity, effectively removing the noise floor.
- RDM Whitening: We derived analytical expressions for the covariance structure of RDM entries. This allows us to "whiten" the RDM—a transformation that decorrelates the distance estimates and equalizes their variance.
The WUC metric compares the data and model in this whitened space, where errors are independent and identically distributed (isotropic). This ensures that the comparison is "fair" and statistically efficient.
Validation and Key Insights
We validated WUC using simulations based on three real-world fMRI experimental designs, ranging from 5 to 92 conditions. These tests revealed several critical insights:
- The Bias-Variance Trade-off: While unbiased estimators remove systematic error, they initially increase variance. However, our analysis shows that this variance penalty diminishes rapidly as the number of data partitions increases.
- Predictable Dependency: A key finding is that the covariance structure of an RDM is largely dictated by the experimental design itself. This allows for effective whitening even when the exact noise characteristics of the brain are not perfectly known.
- WUC vs. PCM: We compared WUC to Pattern Component Modeling (PCM), the current gold standard for model selection. While PCM is theoretically optimal, WUC performs nearly as well and demonstrates superior robustness when assumptions about noise correlations are slightly violated.
Results
In our simulations, WUC consistently outperformed standard RSA correlations (such as Spearman or Pearson). The benefits of whitening were particularly pronounced as the number of experimental conditions ($K$) increased. For instance, in a 40-condition experiment, whitening improved model selection accuracy by 10-15% over standard cosine similarity. Furthermore, WUC remained accurate and unbiased even in the presence of correlated noise across conditions—a common challenge in neuroimaging.
Conclusion
The WUC metric provides a robust, near-optimal framework for comparing representational geometries. By accounting for the inherent statistical structure of RDMs, it allows researchers to make more reliable inferences about brain computation. Future work will focus on extending this framework to flexible models with learnable parameters and adapting it for non-Gaussian data types, such as electrophysiological spiking data.
Summary updated