Do Wide and Deep Networks Learn the Same Things? Uncovering How Neural Network Representations Vary with Width and Depth
Thao Nguyen, Maithra Raghu, Simon Kornblith
TL;DR
The paper empirically investigates how neural network width and depth shape learned representations and outputs. It introduces minibatch CKA to compare hidden representations across ResNet variants trained on CIFAR-10/100 and ImageNet, revealing a block-structured pattern that emerges with overparameterization relative to data. This block structure corresponds to preserving a dominant first principal component across layers and is largely unique to each model, though non-block regions show shared features across architectures. Despite similar overall accuracy, wide and deep networks exhibit systematic per-example and per-class differences in predictions, suggesting complementary strengths for different task aspects and guiding considerations for architecture design and pruning.
Abstract
A key factor in the success of deep neural networks is the ability to scale models to improve performance by varying the architecture depth and width. This simple property of neural network design has resulted in highly effective architectures for a variety of tasks. Nevertheless, there is limited understanding of effects of depth and width on the learned representations. In this paper, we study this fundamental question. We begin by investigating how varying depth and width affects model hidden representations, finding a characteristic block structure in the hidden representations of larger capacity (wider or deeper) models. We demonstrate that this block structure arises when model capacity is large relative to the size of the training set, and is indicative of the underlying layers preserving and propagating the dominant principal component of their representations. This discovery has important ramifications for features learned by different models, namely, representations outside the block structure are often similar across architectures with varying widths and depths, but the block structure is unique to each model. We analyze the output predictions of different model architectures, finding that even when the overall accuracy is similar, wide and deep models exhibit distinctive error patterns and variations across classes.
