Skip to main content
QUICK REVIEW

[Paper Review] Insights on representational similarity in neural networks with canonical correlation

Ari S. Morcos, Maithra Raghu|arXiv (Cornell University)|Jun 14, 2018
Neural Networks and ApplicationsComputer Science104 citations
TL;DR

This paper introduces projection weighted CCA (PWCCA) to distinguish signal from noise in neural representations and uses it to analyze how CNNs and RNNs converge to similar or diverse representations under various conditions, including generalization vs memorization, network width, and learning rate.

ABSTRACT

Comparing different neural network representations and determining how representations evolve over time remain challenging open questions in our understanding of the function of neural networks. Comparing representations in neural networks is fundamentally difficult as the structure of representations varies greatly, even across groups of networks trained on identical tasks, and over the course of training. Here, we develop projection weighted CCA (Canonical Correlation Analysis) as a tool for understanding neural networks, building off of SVCCA, a recently proposed method (Raghu et al., 2017). We first improve the core method, showing how to differentiate between signal and noise, and then apply this technique to compare across a group of CNNs, demonstrating that networks which generalize converge to more similar representations than networks which memorize, that wider networks converge to more similar solutions than narrow networks, and that trained networks with identical topology but different learning rates converge to distinct clusters with diverse representations. We also investigate the representational dynamics of RNNs, across both training and sequential timesteps, finding that RNNs converge in a bottom-up pattern over the course of training and that the hidden state is highly variable over the course of a sequence, even when accounting for linear transforms. Together, these results provide new insights into the function of CNNs and RNNs, and demonstrate the utility of using CCA to understand representations.

Motivation & Objective

  • Motivate a robust method to compare neural network representations beyond superficial alignment.
  • Differentiate signal from noise in layer activations during training.
  • Characterize how generalization, model width, and learning rate affect representational similarity across networks.
  • Explore the temporal dynamics of representations in CNNs and RNNs during training and sequence processing.

Proposed method

  • Develop projection weighted CCA (PWCCA) to weight canonical correlations by their contribution to the layer outputs.
  • Improve SVCCA by separating signal from noise through early and mid-training comparisons.
  • Apply PWCCA to groups of CNNs trained on CIFAR-10 with true vs random labels to compare generalization vs memorization.
  • Analyze the effect of network width on converged representations.
  • Study RNN representations across training time and sequence steps to assess bottom-up convergence and variability over sequences.

Experimental results

Research questions

  • RQ1How do networks that generalize differ in their converged representations from those that memorize when trained on the same data?
  • RQ2Does increasing network width lead to more similar converged representations across independently initialized networks?
  • RQ3Do networks trained with different learning rates converge to distinct clusters of solutions, and can PWCCA reveal them?
  • RQ4How do RNN representations evolve across training time and across sequence timesteps?

Key findings

  • Groups of generalizing CNNs converge to more similar representations in later layers than memorizing networks.
  • Wider networks converge to more similar representations than narrower networks.
  • Across many initializations and learning rates, networks converge to discriminable clusters of solutions that align with prior ablation-based clustering results.
  • RNNs show bottom-up convergence of representations over training time, with sequence-step representations varying considerably.
  • Projection weighting makes PWCCA robust to noise and outperforms unweighted mean CCA and basic SVCCA in measuring shared structure.

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.