Understanding Deep Representation Learning via Layerwise Feature Compression and Discrimination

Peng Wang, Xiao Li, Can Yaras, Zhihui Zhu, Laura Balzano, Wei Hu, Qing Qu · DOI

Introduction

Deep learning models are often perceived as "black boxes," where the internal mechanisms transforming raw input into high-accuracy classifications remain opaque. Recent research by Wang et al. provides a quantitative framework to demystify this process, characterizing how features evolve through successive layers. Their work reveals that deep networks follow a structured mathematical pattern: they compress features within the same class at a geometric rate while separating different classes at a linear rate.

The Journey of Feature Evolution

While "Neural Collapse"—the convergence of last-layer features to class-specific points—is a well-documented phenomenon, the intermediate steps have been less clear. Previous empirical studies suggested that initial layers expand data dimensions for separability, while subsequent layers perform compression. Wang et al. formalize this "hierarchical feature learning" journey, providing guiding principles for network design and transfer learning.

t-SNE visualizations showing the progressive clustering and separation of features across layers 1, 2, 4, and 6.

Theoretical Framework: Deep Linear Networks (DLNs)

The researchers utilized Deep Linear Networks as a theoretical proxy. Although DLNs lack nonlinearities like ReLU, the study demonstrates that once data becomes linearly separable in a deep nonlinear network, the remaining layers behave similarly to a DLN.

The authors introduced two primary metrics to quantify this behavior:

  • Compression ($C_l$): Measures how tightly features of the same class cluster around their mean.
  • Discrimination ($D_l$): Measures the angular separation between different class means.

Their central finding, Theorem 4, proves that in a trained $L$-layer network, compression $C_l$ decays geometrically ($O(\epsilon^2/n^{1/L})$), whereas discrimination $D_l$ increases linearly ($O(1/L)$) with depth. This suggests that depth directly accelerates feature refinement, leading to better-defined representations.

Empirical Validation and Key Results

The theoretical bounds were validated across diverse datasets, including CIFAR-10, FashionMNIST, ImageNet, and SST-5. The experimental results consistently showed that within-class variance vanishes rapidly, while class separation progresses steadily.

Numerical rank and training accuracy across layers in an 8-layer MLP. The decrease in numerical rank in later layers corresponds to feature compression.

A significant insight from this work is the explanation of why "projection heads" are effective in transfer learning. Final layers are highly specialized and "collapsed" to the specific training task. By discarding these layers and utilizing earlier, less-collapsed features, models retain more diverse information suitable for new tasks.

Conclusion

By quantifying the layerwise dynamics of compression and discrimination, this research moves beyond empirical observation toward a rigorous theory of deep representation learning. The discovery of geometric compression versus linear discrimination provides a new lens through which to evaluate network depth and architecture. Future work aims to extend these findings to more complex architectures like Transformers, where similar clustering behaviors have been observed but not yet mathematically formalized in a layerwise context.

Summary updated

BibTeX
@misc{wang2023understanding,
  author = {Peng Wang and Xiao Li and Can Yaras and Zhihui Zhu and Laura Balzano and Wei Hu and Qing Qu},
  title = {{Understanding Deep Representation Learning via Layerwise Feature Compression and Discrimination}},
  year = {2023},
  eprint = {2311.02960},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.02960},
}
Figure