- Introduced by
- Nikolaus Kriegeskorte
- Year
- 2008
- Type
- fMRI similarity structure comparison
- Family
- Representational analysis
What does it do?
Representational Similarity Analysis (RSA) is a framework for comparing representational geometry across brain regions, computational models, and behavioral measures.
Introduced by Kriegeskorte and colleagues in 2008, it compares representations through their pairwise similarity structure rather than through absolute activity patterns. Because the comparison is made between dissimilarity matrices, it can relate data from different subjects, species, and measurement modalities.
The intuition behind the method
How does the brain represent different objects, concepts, or actions? RSA addresses this by examining the geometry of representations. If two conditions evoke similar activity patterns in a brain region, their patterns will be strongly correlated; if they evoke different patterns, the correlation will be weak. Computing these pairwise correlations across all conditions yields a representational space that reflects how the region organizes the conditions. This space can then be compared with other brain regions, behavioral judgments, or computational models, to ask whether they share common representational structure.
History
Kriegeskorte, Mur, and Bandettini (2008) proposed RSA as a framework for relating brain activity, behavior, and computational models through representational dissimilarity matrices, building on earlier psychological and mathematical work on similarity analysis. The paper demonstrated the approach with fMRI responses to visual objects in early visual cortex and the fusiform face area, compared against computational models of varying complexity. The RDMs were related through second-level multidimensional scaling and tested with randomization and bootstrap techniques.
When to use it
Choose RSA when the question concerns the structure of representations, meaning which conditions are treated as similar, and you want to compare that structure across brain regions, subjects, species, behavioral judgments, or computational models. It suits designs with many distinct conditions, because the dissimilarity matrices need enough conditions to be stable. Do not use RSA when the main question is where activation occurs, since standard univariate analysis answers that more directly. Avoid it when the number of conditions is small, because the estimated matrices become noisy and inference weakens. RSA also does not by itself reveal which features produce a match, so if the goal is to decode a specific category, a classification-based MVPA approach is more suitable.
Limitations and considerations
- Stable matrices need enough conditions; with few conditions, sampling noise dominates the dissimilarity estimates.
- Significance is typically assessed with randomization or bootstrap procedures, as in the original framework; with few conditions these tests have limited power.
- A dissimilarity matrix summarizes relational structure, so it does not show which activity features or representational dimensions produce a given similarity pattern.
- Symmetric RDMs discard directionality, so an asymmetric relationship between two conditions cannot be represented.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Compares representations without requiring the units of a model, or the channels of two measurements, to correspond one-to-one, because the comparison is made between dissimilarity matrices rather than raw activity patterns.
- Links brain data, behavior, and computational models in one analysis, so the same comparison can be applied to a neural network layer or to human similarity judgments.
- Dissimilarities are computed from correlations between activity patterns, so they are insensitive to the overall offset and scale of each condition's pattern.
Applications
- Object recognition: comparing the representational geometry of visual objects across early visual cortex, the fusiform face area, and computational models
- Cross-subject, cross-species, and cross-modality comparison: relating representations measured in different individuals, species, or recording methods
How it works
How it works
Measure responses (fMRI in the original demonstrations) while the system processes a set of distinct conditions, such as objects, concepts, or actions. The design needs enough conditions for stable dissimilarity estimates; the number should be set by a power or reliability check for the specific study rather than by a fixed rule.
Apply standard preprocessing for the chosen measurement and extract one activity pattern per condition for each region of interest or search volume.
Compute the correlation between every pair of condition patterns and convert it to a dissimilarity, D_ij = 1 - r(p_i, p_j), where p_i and p_j are the activity patterns of conditions i and j. This produces a symmetric representational dissimilarity matrix (RDM) with zeros on the diagonal.
Compare the brain RDM with another RDM, such as one from another region, from behavioral judgments, or from a model, using a rank correlation such as Spearman's rho. The rho value is computed between the upper-triangle entries of the two matrices, so that the comparison uses each condition pair once. Rank correlation compares the ordering of dissimilarities rather than their absolute values.
Identify regions whose dissimilarity structure matches a given model or behavior, and map where that correspondence is strongest. Significance is assessed with randomization or bootstrap tests on the RDM comparisons. Maps computed across many voxels or searchlights involve many tests, so apply a correction for multiple comparisons, such as false discovery rate control or cluster-level correction.
Common pitfalls
- Few conditions reduce power. Check this with a simulation of the design or with bootstrap intervals before interpreting a null result.
- A good match between a model RDM and a brain RDM does not show that the model explains the brain, because many different organizational principles can produce similar geometry.
- RDM estimates carry measurement noise, which lowers correlations with any model even when the underlying structure is shared. Assess reliability, for example with cross-validated estimates, before comparing. Interpret model-brain correlations against a noise ceiling derived from the reliability of the brain RDM, so that a low correlation is not mistaken for a poor model.
- If a model's structure is derived from the same data used to test it, the resulting correlation is inflated by circularity.
Frequently asked questions
What is a representational dissimilarity matrix (RDM)?
An RDM is a symmetric square matrix in which each element is the dissimilarity (1 minus the correlation) between two conditions. The diagonal is zero, since each condition is perfectly similar to itself. High values indicate low pairwise correlation and low values indicate high correlation. The RDM summarizes the overall geometry, showing how conditions group together in representational space.
How many conditions do I need for RSA?
There is no universal minimum. With few conditions, sampling noise dominates and the RDM is unstable; adding conditions generally stabilizes the structure. Assess stability for your own design with bootstrap confidence intervals or a power simulation, and report the number of conditions along with an RDM reliability estimate.
How do I compare RSA results across regions or subjects?
Use a rank correlation, such as Spearman's rho, between RDMs from different sources, for example two brain regions or a brain region and a model. Build statistical null distributions by permutation or bootstrap. For group inference, compare the correlations across subjects with paired tests.
Can RSA replace MVPA?
No; they address different questions. MVPA asks whether conditions can be classified, while RSA asks whether representational structure matches a model. The two methods emphasize different aspects of the pattern data, and each result depends on the classifier or dissimilarity metric chosen. Use both when possible, since they provide complementary information.
Related methods
Sources
Kriegeskorte, N., Mur, M., & Bandettini, P. A. (2008). Representational similarity analysis—connecting the branches of systems neuroscience. Frontiers in Systems Neuroscience, 2, 4.
Open DOI referenceNili, H., Wingfield, C., Walther, A., et al. (2014). Inferring population attitude towards candidates from social media and electoral history. PLOS ONE, 9(5), e95809.
Open publication reference