Abstract: Different neural networks trained on the same dataset often learn similar input-output mappings with very different weights. Is there some correspondence between these neural network solutions? For linear networks, it has been shown that different instances of the same network architecture encode the same representational similarity matrix, and their neural activity patterns are connected by orthogonal transformations. However, it is unclear if this holds for non-linear networks. Using a shared response model, we show that different neural networks encode the same input examples as different orthogonal transformations of an underlying shared representation. We test this claim using both standard convolutional neural networks and residual networks on CIFAR10 and CIFAR100.
Introduction
A central question in artificial intelligence interpretability is whether independent neural networks trained on the same task converge to a common internal representation. While two identical architectures trained on the same data often achieve comparable performance, their weight configurations typically appear entirely different due to random initialization and stochastic training processes. This research investigates whether these seemingly disparate internal states share an underlying "representational geometry."
Drawing inspiration from neuroscience, where different individuals exhibit similar functional responses despite varying physical neural structures, this study explores the hypothesis that non-linear neural networks speak a "common language." Specifically, it tests whether the hidden activity patterns of different networks are connected by orthogonal transformations—essentially rotations and reflections that preserve the relative distances between data points in the representational space.
Methodology
The researchers employed two primary analytical frameworks to probe network internal states:
- Shared Response Model (SRM): Originally developed for aligning fMRI data across subjects, the SRM treats the activity of different networks as distinct "views" of a common latent space. The model seeks an orthonormal transformation matrix ($W$) for each network that maps its specific activity to a shared basis ($S$). These orthonormal constraints ensure that the transformation is a "rigid-body" mapping, preserving the geometric relationships between stimuli.
- Representational Similarity Matrix (RSM): To characterize the geometry of a network's representations, the authors used RSMs, which quantify the similarity between the network's responses to different input pairs. If two networks share the same RSM, they perceive the structure of the data identically, regardless of their raw neuron activity patterns.
The study evaluated 10 standard Convolutional Neural Networks (ConvNets) and 10 ResNet18s trained on the CIFAR-10 and CIFAR-100 datasets.
Results and Key Insights
The experiments revealed a robust shared geometry across independent network instances.
The Rigid-Body Connection
The most significant finding is that non-linear networks, like their linear counterparts, are connected by orthogonal transformations. The SRM was able to explain a high degree of variance in the final hidden layers across different networks: 91% for ConvNets on CIFAR-10 and 89% on CIFAR-100.
Alignment and Learning
The alignment between networks is not present at initialization but emerges through the learning process. As networks extract features from the dataset, their internal geometries converge toward a shared structure. This convergence is particularly pronounced in deeper layers. While early layers may diverge as they capture different low-level features, the high-level conceptual representations formed near the output are remarkably consistent.
Architecture and Capacity
The study found that while both ConvNets and ResNets exhibit shared geometry, higher-capacity models like ResNets show slightly more representational "freedom." Although they align well, their additional parameters allow for more qualitative variation in how they represent the same data compared to simpler architectures.
Conclusion
This work demonstrates that different neural networks trained on the same data do indeed learn a common representational language. By showing that internal states are connected by orthogonal transformations, the authors provide a powerful tool for comparing and interpreting deep learning models.
Future research will focus on whether this shared geometry persists across different architectures and exploring the reasons behind the greater divergence observed in early network layers. Additionally, applying these SRM techniques to directly compare artificial networks with biological brains remains a promising avenue for bridging the gap between AI and neuroscience.
Summary updated