[Paper Review] Generalized Shape Metrics on Neural Representations
This paper introduces a generalized framework of metric spaces for quantifying representational dissimilarity in neural networks, ensuring mathematical rigor through the triangle inequality. By modifying canonical correlation analysis and introducing convolutional-layer-aware metrics, it enables robust, interpretable analysis of thousands of artificial and biological networks, with empirical validation showing strong predictive power for anatomical hierarchy and performance correlations in deep learning architectures.
Understanding the operation of biological and artificial networks remains a difficult and important challenge. To identify general principles, researchers are increasingly interested in surveying large collections of networks that are trained on, or biologically adapted to, similar tasks. A standardized set of analysis tools is now needed to identify how network-level covariates-such as architecture, anatomical brain region, and model organism-impact neural representations (hidden layer activations). Here, we provide a rigorous foundation for these analyses by defining a broad family of metric spaces that quantify representational dissimilarity. Using this framework, we modify existing representational similarity measures based on canonical correlation analysis and centered kernel alignment to satisfy the triangle inequality, formulate a novel metric that respects the inductive biases in convolutional layers, and identify approximate Euclidean embeddings that enable network representations to be incorporated into essentially any off-the-shelf machine learning method. We demonstrate these methods on large-scale datasets from biology (Allen Institute Brain Observatory) and deep learning (NAS-Bench-101). In doing so, we identify relationships between neural representations that are interpretable in terms of anatomical features and model performance.
Motivation & Objective
- To develop a mathematically rigorous framework for comparing neural representations across large collections of artificial and biological networks.
- To address the limitation of existing similarity measures that violate the triangle inequality, which hampers downstream machine learning workflows.
- To create novel metrics tailored to the inductive biases of convolutional neural networks.
- To enable low-distortion Euclidean embeddings of neural representation metric spaces for integration with off-the-shelf ML methods.
- To demonstrate the utility of this framework on large-scale datasets from neuroscience (Allen Brain Observatory) and deep learning (NAS-Bench-101).
Proposed method
- Define a broad family of metric spaces that satisfy symmetry and the triangle inequality, transforming existing representational similarity measures into proper metrics.
- Modify canonical correlation analysis (CCA) to ensure metric properties, enabling use in k-NN and hierarchical clustering with theoretical guarantees.
- Propose a novel metric that respects the inductive biases of convolutional layers, improving alignment with architectural inductive biases.
- Use multi-dimensional scaling (MDS) to embed neural representation metric spaces into low-dimensional Euclidean spaces with minimal distortion.
- Apply kernel ridge regression on MDS embeddings to predict structural features (e.g., anatomical hierarchy) from functional responses in neural data.
- Leverage off-the-shelf ML pipelines—such as clustering, regression, and classification—on the embedded metric spaces for scalable analysis.
Experimental results
Research questions
- RQ1Can existing representational similarity measures be systematically transformed into proper metric spaces that satisfy the triangle inequality?
- RQ2How can metric spaces on neural representations be constructed to respect architectural inductive biases, such as those in convolutional layers?
- RQ3To what extent can neural representation metric spaces be embedded into low-dimensional Euclidean spaces with low distortion?
- RQ4Can these embeddings enable new, scalable analyses of thousands of networks, such as predicting anatomical hierarchy from functional responses?
- RQ5What relationships exist between early and deep layer representations in large-scale artificial network collections?
Key findings
- The proposed framework successfully transforms non-metric similarity measures into proper metrics, enabling reliable use in k-NN and hierarchical clustering.
- The novel convolutional-layer-aware metric captures architectural inductive biases and improves representational alignment in CNNs.
- Multi-dimensional scaling with L=20 embedding dimensions produces a significantly better approximation of the true metric space than L=2, as validated in visualizations and regression tasks.
- Kernel ridge regression on MDS embeddings achieved strong predictive performance in predicting anatomical hierarchy scores from visual responses in mouse visual cortex, with error bars reflecting consistency across 100 MDS runs.
- In NAS-Bench-101, a surprising degree of correlation was found between early and deep layer representations across 432,000 architectures, suggesting shared representational dynamics.
- The framework enables scalable, interpretable analysis of large neural network collections, with direct integration into standard ML pipelines such as regression and clustering.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.