Skip to main content
QUICK REVIEW

[Paper Review] On the Symmetries of Deep Learning Models and their Internal Representations

Charles Godfrey, Davis Brown|arXiv (Cornell University)|May 27, 2022
Adversarial Robustness in Machine LearningComputer Science6 citations
TL;DR

This paper introduces intertwiner groups—symmetry groups intrinsic to deep learning architectures—that link model architecture to the symmetries in learned internal representations. By showing that these groups enable effective neural stitching and representation comparison, the work demonstrates that ReLU network symmetries are preserved in hidden representations, justifying interpretability focus on activation bases rather than arbitrary linear combinations.

ABSTRACT

Symmetry is a fundamental tool in the exploration of a broad range of complex systems. In machine learning symmetry has been explored in both models and data. In this paper we seek to connect the symmetries arising from the architecture of a family of models with the symmetries of that family's internal representation of data. We do this by calculating a set of fundamental symmetry groups, which we call the intertwiner groups of the model. We connect intertwiner groups to a model's internal representations of data through a range of experiments that probe similarities between hidden states across models with the same architecture. Our work suggests that the symmetries of a network are propagated into the symmetries in that network's representation of data, providing us with a better understanding of how architecture affects the learning and prediction process. Finally, we speculate that for ReLU networks, the intertwiner groups may provide a justification for the common practice of concentrating model interpretability exploration on the activation basis in hidden layers rather than arbitrary linear combinations thereof.

Motivation & Objective

  • To formalize the connection between architectural symmetries in deep learning models and the symmetries in their learned internal representations.
  • To identify and characterize fundamental symmetry groups—intertwiner groups—associated with common nonlinearities like ReLU and batch normalization.
  • To demonstrate that these intertwiner groups can serve as minimal, effective stitching layers between models with identical architecture but different weights.
  • To develop new representation similarity measures invariant to intertwiner group transformations, improving comparison of hidden representations across models.
  • To provide theoretical and empirical justification for focusing interpretability analysis on activation bases in ReLU networks.

Proposed method

  • Define intertwiner groups $ G_{\sigma_n} $ as symmetry groups tied to specific nonlinear activation functions $ \sigma $ of dimension $ n $, which leave the model's function space invariant under weight transformations.
  • Prove in Theorem 4.2 that intertwiner groups are the minimal viable stitching layer for preserving prediction accuracy when connecting two networks of the same architecture.
  • Design and evaluate $ G_{\text{ReLU}} $-restricted 1-by-1 convolutional stitching layers on Myrtle CNNs and ResNet20s, comparing accuracy penalties to full linear stitching.
  • Introduce $ G_{\text{ReLU}} $-Procrustes and $ G_{\text{ReLU}} $-CKA, representation similarity measures invariant under $ G_{\text{ReLU}} $ transformations, analogous to orthogonal Procrustes and CKA.
  • Conduct network dissection experiments across rotated representation bases to assess interpretability stability, measuring IoU-based concept detection performance.
  • Train and compare models including a ReLU-free ResNet-50 variant to study the role of activation functions in representation symmetry and interpretability.

Experimental results

Research questions

  • RQ1How do architectural symmetries in deep learning models—specifically those tied to nonlinearities like ReLU—manifest in the internal representations of data?
  • RQ2Can intertwiner groups be used to construct minimal stitching layers that preserve model accuracy when connecting two networks with identical architecture but different weights?
  • RQ3To what extent do $ G_{\text{ReLU}} $-invariant similarity measures like $ G_{\text{ReLU}} $-CKA better capture representation similarity than orthogonal-invariant measures?
  • RQ4Does the interpretability of hidden representations remain stable when the representation basis is rotated, particularly in ReLU-based models?
  • RQ5Why is the activation basis commonly preferred in interpretability studies, and can intertwiner groups provide a theoretical justification for this practice?

Key findings

  • Stitching two ResNet20s on CIFAR-10 using only $ G_{\text{ReLU}} $-restricted 1-by-1 convolutions incurs an accuracy penalty of at most ~10%, approaching the performance of full linear stitching layers.
  • The $ G_{\text{ReLU}} $-invariant similarity measures $ G_{\text{ReLU}} $-Procrustes and $ G_{\text{ReLU}} $-CKA are maximized when hidden representations agree up to $ G_{\text{ReLU}} $ transformations, providing a more appropriate metric than orthogonal-invariant measures for ReLU-based models.
  • Network dissection reveals that the percentage of interpretable units (e.g., object and scene detectors) increases when the representation basis is rotated away from the activation basis, particularly in models without ReLU on residual outputs.
  • The ResNet-50 variant without ReLU on residual outputs achieves 76.1% top-1 accuracy on ImageNet, demonstrating that such models remain effective despite removing a key symmetry-inducing nonlinearity.
  • Empirical results confirm that neurons from independently trained networks are not simple permutations of each other, as evidenced by non-zero accuracy gaps even with $ G_{\text{ReLU}} $-based stitching, supporting the existence of distributed and polysemantic representations.
  • The intertwiner group $ G_{\text{ReLU}} $ provides a theoretical foundation for why activation-based interpretability is effective, as it preserves the symmetry of ReLU networks and aligns with observed representation structures.

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.