Skip to main content
QUICK REVIEW

[Paper Review] Probing neural networks with t-SNE, class-specific projections and a guided tour

Christopher Hoyt, Art B. Owen|arXiv (Cornell University)|Jul 26, 2021
Neural Networks and ApplicationsComputer Science6 citations
TL;DR

This paper introduces class-specific projections and t-SNE visualizations to probe deep neural networks layer by layer, revealing how within-class structure evolves during feature learning. It finds that early layers often preserve bimodal substructure within classes (e.g., bag and sandal types), which can diminish or disappear in later layers despite high classification accuracy, and proposes a guided tour framework using these projections for dynamic visualization.

ABSTRACT

We use graphical methods to probe neural nets that classify images. Plots of t-SNE outputs at successive layers in a network reveal increasingly organized arrangement of the data points. They can also reveal how a network can diminish or even forget about within-class structure as the data proceeds through layers. We use class-specific analogues of principal components to visualize how succeeding layers separate the classes. These allow us to sort images from a given class from most typical to least typical (in the data) and they also serve as very useful projection coordinates for data visualization. We find them especially useful when defining versions guided tours for animated data visualization.

Motivation & Objective

  • To develop graphical tools for probing deep neural networks during inference, focusing on feature evolution across layers.
  • To identify and visualize within-class substructure (e.g., subtypes of bags or sandals) that may be lost in later layers.
  • To create reproducible, interpretable visualization techniques that go beyond standard t-SNE by using class-specific projection vectors.
  • To enable dynamic, guided tours of intermediate layer representations for better interpretability of feature transformations.
  • To compare networks trained from random initialization versus transfer learning, revealing differences in early-layer organization.

Proposed method

  • Applying t-SNE to intermediate layer activations to visualize clustering and class separation across network depth.
  • Defining class-specific projection vectors analogous to principal components, trained per class to project data and reveal internal structure.
  • Normalizing class-specific scores across all classes to enable comparative ranking of image typicality.
  • Using these projections to create guided tours—interpolating between informative projection pairs for animated visualization.
  • Comparing networks trained from random initialization (CIFAR-10/VGG) versus ImageNet transfer learning (Fashion-MNIST/ResNet50).
  • Analyzing layer-by-layer histograms of class-specific projections to detect bimodal or skewed distributions indicating subgroups.

Experimental results

Research questions

  • RQ1How does within-class structure, such as subtypes of images (e.g., flat vs. high-heeled sandals), evolve across layers in a trained neural network?
  • RQ2Why do some substructures visible in early layers disappear in later layers, even when final classification accuracy remains high?
  • RQ3To what extent do class-specific projections reveal more informative structure than standard principal components or t-SNE alone?
  • RQ4How do networks trained from random initialization differ in early-layer organization from those fine-tuned via transfer learning?
  • RQ5Can guided tours based on class-specific projections provide more interpretable and focused visualizations of feature transformations?

Key findings

  • t-SNE visualizations show that within-class clustering—such as distinct groups of bags or sandals—can emerge in early layers but often disappears by the final layer, even with high test accuracy.
  • Class-specific projections reveal bimodal distributions in intermediate layers for bags (from layer 27) and sandals (earlier than bags), indicating two distinct image types within the same class.
  • The bimodal structure in bags and sandals becomes less pronounced in later layers, with the gap closing only at the final layer, suggesting late-stage merging of subtypes.
  • The final layer histograms for bags and sandals show reduced bimodality, yet still distinguish extreme examples (e.g., flat vs. high-heeled sandals), indicating residual structure.
  • The network exhibits a variant of neural collapse with ellipsoidal clusters rather than spherical ones, with inter-cluster angles initially below 90° and increasing toward 90° in deeper layers.
  • Networks trained via transfer learning (e.g., ResNet50 on Fashion-MNIST) show earlier development of structured arms in t-SNE plots compared to randomly initialized networks (e.g., VGG on CIFAR-10).

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.