How should we compare neural network representations? – The Berkeley Artificial Intelligence Research Blog
To understand neural networks, researchers often use similarity metrics to measure how similar or different two neural networks are to each other. For instance, they are used to compare vision transformers to convnets [1], to understand transfer learning [2], and to explain the success of standard training practices for deep models [3]. Below is an example visualization using similarity metrics; specifically we use the popular CKA similarity metric (introduced in [4]) to compare two transformer models across different layers: Figure 1. CKA (Centered Kernel Alignment) similarity between two networks trained identically except for random initialization. Lower values (darker colors) are more similar. CKA suggests that the two networks have similar representations. Unfortunately, there isn’t much agreement on which particular similarity metric to use. Here’s the exact same figure, but produced using the Canonical Correlation Analysis (CCA) metric instead of CKA: Figure 2. CCA (Canonical
Cross-posted from Bounded Regret . To understand neural networks, researchers often use similarity metrics to measure how similar or different two neural networks are to each other. For instance, they are used to compare vision transformers to convnets [1], to understand transfer learning [2], and to explain the success of standard training practices for deep models [3]. Below is an example visualization using similarity metrics; specifically we use the popular CKA similarity metric (introduced in [4]) to compare two transformer models across different layers: Figure 1. CKA (Centered Kernel Al
related reading
- Distill — Latest articles about machine learningdistill.pub
- Home - colah's blogcolah.github.io
- Neural Networks, Manifolds, and Topology -- colah's blogcolah.github.io
- The Platonic Representation Hypothesisphillipi.github.io
- Keynote & Tutorial – Quantifying Similarity between Neural Population Codes2024.ccneuro.org
- 1301.3781arxiv.org
- The Building Blocks of Interpretabilitydistill.pub
- Feature Visualizationdistill.pub
- Alexa Tartaglini | aboutalexatartaglini.com
- Tversky Neural Networksgonzoml.substack.com
- [2506.11035] Tversky Neural Networks: Psychologically Plausible Deep Learning with Differentiable Tversky Similarityarxiv.org
- Naturally Occurring Equivariance in Neural Networksdistill.pub