GULP: a prediction-based metric between representations

Enric Boix-Adserà, Hannah Lawrence, George Stepaniants, Philippe Rigollet

TL;DR

GULP (Uniform Linear Probing) is a new metric for comparing neural network representations based on their functional utility. It defines two representations as "similar" if they perform nearly identically across all possible downstream linear tasks, providing a theoretically grounded way to cluster architectures and track training dynamics.

What Problem Does This Paper Address?

In deep learning, we often say a model has learned a "good representation" of data. But how do we actually compare two representations? If you have a ResNet and an EfficientNet trained on the same data, are their internal "views" of the world the same?

Existing metrics like CCA (Canonical Correlation Analysis) or CKA (Centered Kernel Alignment) are popular, but they are often motivated by pure geometry or statistics rather than the actual utility of the representation. The authors argue that a meaningful metric should be tied to how a representation performs on downstream tasks. While "linear probing" (training a linear layer on top of a frozen representation) is a common way to evaluate models, it usually only looks at one specific task. The challenge is creating a metric that accounts for all possible linear tasks without being biased by a single choice of labels.

Methods

The authors introduce GULP, which stands for Ground-up Uniform Linear Probing.

The core idea is functional: two representations are similar if they are equally useful as inputs to downstream, regularized linear transfer learning tasks. Mathematically, GULP is defined as the supremum (the "worst-case" difference) in prediction performance between two representations across all possible regression functions with a bounded norm.

Key technical features include:

  • The $\lambda$ Parameter: GULP uses a regularization parameter ($\lambda$). This acts like a "resolution knob." At $\lambda = 0$, GULP relates to CCA (focusing on fine-grained rank). As $\lambda$ increases, it behaves more like CKA or Procrustes (focusing on coarser, global structure).
  • Structural Rigor: Unlike some similarity measures, GULP is a proper pseudo-metric. It satisfies the triangle inequality and is invariant under orthogonal transformations (rotations/reflections), which is crucial because a linear probe can easily "undo" such transformations.
  • Plug-in Estimator: The paper provides a closed-form formula to calculate GULP using covariance and cross-covariance matrices, making it computationally efficient to estimate from finite data samples.

Datasets

The researchers validated GULP across several standard benchmarks:

  • ImageNet: Used 37 different pretrained state-of-the-art architectures (ResNets, EfficientNets, ConvNeXts, MobileNets) to see if GULP could distinguish between architecture families.
  • MNIST: Used to train a controlled grid of fully-connected ReLU networks with varying widths (100 to 1,000) and depths (1 to 10).
  • CIFAR-10: Used to track the training dynamics of 16 independently trained ResNet18 models over 50 epochs.

Key Insights and Ideas

  • The "Resolution Knob": One of the most interesting findings is that GULP interpolates between existing metrics. By tuning $\lambda$, researchers can choose whether they want to compare representations based on their high-frequency details (small $\lambda$) or their broad structural similarities (large $\lambda$).
  • Architecture Fingerprinting: GULP is remarkably good at "seeing" architecture. In t-SNE visualizations, GULP naturally clusters models by their family (e.g., all ResNets group together), suggesting it captures intrinsic properties of how different designs process information.
t-SNE visualization of model architectures clustered by GULP distance
  • Capturing Generalization: GULP correlates strongly with actual differences in downstream task performance. If GULP says two representations are close, they will likely yield very similar accuracies when a new linear head is trained on them.
Correlation of various metrics with downstream prediction distance
  • Convergence in Training: While some metrics show little change during training, GULP demonstrates that independent networks actually "drift" toward each other's representations as they learn the same dataset, effectively decreasing the GULP distance over time.

Key Results

  • Clustering Accuracy: Using GULP with a large $\lambda$ (e.g., $\lambda=1$) was shown to be the most effective distance for separating ResNet architectures from other convolutional families like EfficientNet.
  • Theoretical Bounds: The authors proved that the GULP distance provides a uniform bound over the difference in prediction performance for all norm-bounded linear tasks.
  • Sample Efficiency: Theorem 3 establishes that the GULP estimator converges to the true population value at a rate of $1/\sqrt{n}$, meaning it can be reliably estimated with a few thousand images.

Limitations and Future Work

  • Linear Constraint: GULP is currently defined for linear downstream tasks. While linear probes are a standard benchmark, many modern transfer learning setups involve non-linear fine-tuning.
  • Closed-form Limits: While GULP has a neat closed-form solution for ridge regression, it does not currently have one for logistic regression or multi-class classification, which requires more complex optimization.
  • Extension to Kernels: The authors suggest that extending GULP to "Kernel Ridge Regression" is a promising future direction to capture non-linear similarities while maintaining mathematical tractability.

Summary updated

BibTeX
@inproceedings{boixadsera2022gulp,
  author = {Enric Boix-Adserà and Hannah Lawrence and George Stepaniants and Philippe Rigollet},
  title = {{GULP: a prediction-based metric between representations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=ns6lT9WNQp},
}
Figure