Skip to main content
QUICK REVIEW

[Paper Review] SVCCA: Singular Vector Canonical Correlation Analysis for Deep Learning Dynamics and Interpretability

Maithra Raghu, Justin Gilmer|arXiv (Cornell University)|Jun 19, 2017
Neural Networks and ApplicationsComputer Science226 citations
TL;DR

SVCCA combines SVD and CCA to compare neural network representations invariant to affine transforms, enabling analysis of learning dynamics, dimensionality, and interpretability across layers and architectures.

ABSTRACT

We propose a new technique, Singular Vector Canonical Correlation Analysis (SVCCA), a tool for quickly comparing two representations in a way that is both invariant to affine transform (allowing comparison between different layers and networks) and fast to compute (allowing more comparisons to be calculated than with previous methods). We deploy this tool to measure the intrinsic dimensionality of layers, showing in some cases needless over-parameterization; to probe learning dynamics throughout training, finding that networks converge to final representations from the bottom up; to show where class-specific information in networks is formed; and to suggest new training regimes that simultaneously save computation and overfit less. Code: https://github.com/google/svcca/

Motivation & Objective

  • Determine whether a layer's learned representation has the same intrinsic dimensionality as its number of neurons.
  • Investigate the learning dynamics of representations during training (bottom-up convergence).
  • Study where class-specific information is formed and how semantics manifest in representations.
  • Propose practical training and compression methods informed by SVCCA findings.

Proposed method

  • Represent neurons as vectors of activations over a dataset; treat a layer as a subspace spanned by these neuron vectors.
  • Apply SVCCA: (1) perform SVD on each subspace to retain directions explaining 99% of variance; (2) apply Canonical Correlation Analysis to the reduced subspaces to obtain aligned directions and correlations.
  • Provide SVCCA similarity as the average of the top aligned correlation coefficients across directions.
  • Extend SVCCA to convolutional layers using either same-layer or different-layer comparisons; justify and implement a Discrete Fourier Transform preprocessing to make convolutional SVCCA exact and efficient by creating block-diagonal covariance structures.

Experimental results

Research questions

  • RQ1What is the intrinsic dimensionality of learned layer representations relative to the number of neurons?
  • RQ2How do representations evolve during training (which layers converge first) and what is the global learning dynamics?
  • RQ3Where in the network does class-specific information emerge, and how does it relate to semantic similarity between classes?
  • RQ4Can SVCCA guide training and compression strategies while preserving performance?

Key findings

  • Layers often work with far fewer informative directions than their neuron count, enabling good performance from subspaces explaining only a subset of variance.
  • Learning dynamics are bottom-up, with lower layers solidifying earlier than higher layers; this motivates Freeze Training.
  • SVCCA directions can be distributed across multiple neurons, not purely axis-aligned, indicating distributed representations.
  • Discrete Fourier Transform-based SVCCA scales to large convolutional layers and reveals semantic relationships in class sensitivity across layers.
  • SVCCA-based projections can compress models by projecting activations onto top SVCCA directions with minimal performance loss in some cases.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.