Exploring Causes of Representational Similarity in Machine Learning Models

Zeyu Michael Li, Hung Anh Vu, Damilola Awofisayo, Emily Wenger · DOI

Abstract

This study investigates the origins of representational alignment—the phenomenon where independently trained AI models develop similar internal feature spaces. By isolating dataset overlap and task overlap, the researchers demonstrate that both factors significantly drive similarity, with task objectives often exerting a stronger influence. Crucially, this alignment is shown to facilitate the transferability of adversarial and jailbreak attacks, posing a systemic security risk to the AI ecosystem.

Introduction

As AI models scale, researchers have observed that disparate architectures often converge on similar internal "mental maps" or representations. While metrics like Centered Kernel Alignment (CKA) can quantify this similarity, the underlying causes have remained poorly understood. This paper seeks to untangle whether this convergence stems from shared training data, common task objectives, or a combination of both. Understanding these root causes is critical, as shared representations may lead to shared "blind spots" and systemic biases.

Overview of the experimental pipeline for measuring representational similarity between models trained on split data distributions.

Methodology

To isolate the drivers of similarity, the authors developed two empirical methods to "untangle" the effects of data versus task:

  1. Dataset Splitting: Pairs of models were trained with varying proportions of shared data points while maintaining identical task objectives. This allowed researchers to measure how much data overlap alone contributes to alignment.
  2. Task Splitting: Using the same physical images, models were trained on different attributes (e.g., one model identifies shapes, another identifies colors). This isolates the effect of the objective itself without changing the input data.

The researchers introduced the ColorShapeDigit800K benchmark, a dataset of 800,000 images designed for nuanced task differentiation. Similarity was primarily measured using CKA to compare activation patterns across models.

Comparison of task split and dataset split methodologies used to isolate the drivers of model alignment.

Key Findings

The Drivers of Alignment

The study reveals a strong linear correlation ($R^2 > 0.9$) between the degree of overlap (data or task) and representational similarity across various architectures, including ResNets, Vision Transformers (ViTs), and nanoGPT models.

  • Task Dominance: Interestingly, task overlap (Mutual Information of 0.771) was found to be a slightly more potent driver of similarity than dataset overlap (0.584) alone.
  • The Multiplier Effect: The highest alignment (MI of 0.891) occurred when both data and tasks were shared, explaining the high convergence seen in models trained on standardized web-scale benchmarks.
  • Architecture and Fine-tuning: The trends were less pronounced in large models like Llama-3.2 using LoRA fine-tuning, likely because fine-tuning only modifies a small fraction of the model's parameters, leaving the base representation largely unchanged.

Security and Attack Transferability

A critical discovery of this work is the direct link between internal similarity and attack transferability. When models represent inputs similarly, they share vulnerabilities. The researchers found that adversarial images (MI-FGSM) and "jailbreak" prompts successful against one model were highly likely to succeed against another with high representational alignment. This suggests that model diversity is not just a performance metric but a fundamental security requirement.

Conclusion and Future Work

Representational similarity is a predictable outcome of shared data and objectives. While this alignment can be beneficial for transfer learning, it introduces significant security risks by making models vulnerable to the same exploits. Future research should explore how architectural diversity and different initialization strategies might mitigate these shared vulnerabilities without sacrificing the performance gains of large-scale training.

Summary updated

BibTeX
@inproceedings{li2026exploring,
  author = {Zeyu Michael Li and Hung Anh Vu and Damilola Awofisayo and Emily Wenger},
  title = {{Exploring Causes of Representational Similarity in Machine Learning Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=5o7U03RThY},
}
Figure