Similarity of Neural Network Models: A Survey of Functional and Representational Measures

Max Klabunde, Tobias Schumacher, Markus Strohmaier, Florian Lemmerich · DOI · OpenReview

Introduction

As deep learning models grow in complexity, traditional performance metrics like accuracy are increasingly insufficient for understanding their internal logic. Two models may achieve identical scores on a benchmark like ImageNet while utilizing vastly different internal representations. Conversely, models with different architectures might exhibit nearly identical behavior. This survey addresses the fragmented research landscape of model similarity across machine learning, neuroscience, and cognitive science, providing a unified taxonomy for over 50 distinct measures.

Overview of Functional vs. Representational Similarity Measures

A Unified Taxonomy of Similarity

The authors categorize similarity measures into two primary perspectives: representational and functional.

Representational Similarity Measures

These measures analyze the activations of intermediate layers to determine how internal information is structured. Key categories include:

  • CCA-based: Methods like SVCCA and PWCCA use Canonical Correlation Analysis to identify linear relationships between activation spaces.
  • Alignment-based: Techniques such as Orthogonal Procrustes attempt to physically align one representation space onto another via rotation or scaling.
  • Matrix-based (RSMs): Measures like Centered Kernel Alignment (CKA) compare Representational Similarity Matrices that describe how a model perceives relationships between different inputs.
  • Neighborhood/Topology-based: These look at whether inputs remain "neighbors" in high-dimensional space, preserving the underlying manifold shape.

Functional Similarity Measures

Functional measures focus on final outputs or decision boundaries rather than internal states:

  • Prediction-based: These range from simple disagreement rates to Jensen-Shannon Divergence on soft probabilities.
  • Gradient/Adversarial-based: Methods like ModelDiff compare how models react to identical adversarial perturbations.
  • Model Stitching: This "Frankenstein" approach involves plugging a layer from one model into another using a small "stitching" layer to test if the hybrid model maintains performance.

The Invariance Hierarchy

A critical contribution of this survey is the analysis of mathematical invariances. A robust similarity measure should ideally be invariant to transformations that do not alter a model's underlying logic. For instance, swapping the order of two neurons in a layer should not change the similarity score; thus, a measure should be permutation invariant.

Visualizing transformations like Orthogonal, Permutation, and Isotropic Scaling

The paper maps out which measures are invariant to various transformations, including rotation (orthogonal), scaling (isotropic), and translation. Understanding these properties is essential for choosing the right tool for a specific research question.

Key Insights and Empirical Findings

The survey synthesizes findings from numerous experimental studies, often utilizing the ReSi benchmark which implements 24 representational measures. Key takeaways include:

  • Representational ≠ Functional: Similar internal representations usually lead to similar outputs, but the reverse is not always true. Models can arrive at the same conclusion through different internal paths.
  • CKA Sensitivity: While Centered Kernel Alignment (CKA) is the current industry standard, it can be surprisingly sensitive to simple data translations that do not affect model performance.
  • Task-Specific Selection: There is no "silver bullet" metric. Orthogonal Procrustes often correlates better with functional changes in vision and language models, while PWCCA is more robust to noise than standard CCA.

Conclusion and Future Directions

Despite the wealth of available measures, significant challenges remain. Most metrics produce a scalar value (e.g., 0.8) that lacks a clear physical or logical interpretation. Furthermore, many high-quality measures, such as those based on topology or model stitching, do not yet scale efficiently to massive modern architectures. Future work must focus on the "adversarial robustness" of these similarity measures themselves and the continued development of standardized benchmarks to ensure fair comparisons across the field.

Summary updated

BibTeX
@article{klabunde2025similarity,
  author = {Max Klabunde and Tobias Schumacher and Markus Strohmaier and Florian Lemmerich},
  title = {{Similarity of Neural Network Models: A Survey of Functional and Representational Measures}},
  journal = {ACM Computing Surveys},
  year = {2025},
  doi = {10.1145/3728458},
}
Figure