Representational Alignment Across Model Layers and Brain Regions with Multi-Level Optimal Transport

Shaan Shah, Meenakshi Khosla

Comparing the internal "thoughts" of two different neural networks—or comparing an AI to a human brain—is a notoriously difficult task. If Model A has 12 layers and Model B has 32, which layer in A corresponds to which in B?

Current state-of-the-art methods typically use "greedy" layer-wise matching: they take one layer from Model A and hunt for its single best match in Model B. In a new paper, researchers argue that this approach is fundamentally flawed. It ignores the global structure of the network, fails to handle depth mismatches gracefully, and often produces noisy, inconsistent results. Their solution is a novel framework called Multi-Level Optimal Transport (MOT).

The Problem with Current Alignment Methods

In both neuroscience and AI, establishing whether different systems are "computing the same thing" is known as representational alignment. However, existing metrics like Representational Similarity Analysis (RSA) or Centered Kernel Alignment (CKA) have three major blind spots:

  1. Rigidity: They force a strict one-to-one layer correspondence. If a feature is spread across three layers in a deep model but compressed into one layer in a shallow model, greedy matching fails.
  2. Asymmetry: Matching Model A to Model B often yields a completely different result than matching Model B to Model A.
  3. Local Overfitting: By optimizing each layer match independently, these methods can overfit to noise in a single layer’s activations, ignoring the logical progression of features through the network.

Multi-Level Optimal Transport (MOT)

To overcome these limitations, the authors propose MOT, which aligns neural representations by treating the entire network as a single entity rather than a collection of independent layers. MOT operates on two primary levels:

  • Inner Level (Neuron-to-Neuron): Finds the best way to match individual neurons between two specific layers based on their "tuning profiles" (how they respond to various stimuli).
  • Outer Level (Layer-to-Layer): Instead of picking one best match, MOT treats each layer as a unit of "mass." It solves a global optimization problem to distribute the mass of Model A's layers across Model B's layers.
Comparison of Pairwise and Multi-Level Optimal Transport

This dual-level approach results in a soft transport plan. If Layer 5 of a small model contains features that a larger model refines over Layers 10, 11, and 12, MOT’s transport plan will naturally show Layer 5 "sending its mass" to all three of those target layers. The authors also introduce MOT+R, a rotation-invariant version that can align models even if their internal coordinate systems are rotated relative to one another.

Key Insights and Emergent Hierarchies

The authors validated MOT across three distinct domains: Large Language Models (LLaMA-3.2 and Qwen-2.5), Vision Transformers (DINOv2 and ViT-MAE), and human brain fMRI data from the Natural Scenes Dataset (NSD).

One of the most striking findings is the emergent hierarchy MOT uncovers. Without being explicitly programmed that Layer 1 precedes Layer 2, MOT naturally recovers a "diagonal" alignment. Early layers map to early layers, and deep layers map to deep layers. Greedy methods, by contrast, often produce degenerate or noisy maps where all layers collapse into a single match or deep layers randomly match to early ones.

Emergent diagonal alignment in LLMs using MOT vs Pairwise OT

When comparing a shallow model to a deep one, MOT visually reveals how a single processing stage in the shallow model is "decomposed" into multiple successive steps in the deeper model. By forcing the entire network to align at once, global consistency acts as a powerful regularizer, making the method highly robust to noise—a crucial advantage when dealing with messy fMRI signals.

Results and Future Directions

Across LLMs and Vision models, MOT consistently achieved higher reconstruction scores (the ability to predict one model's activations from another) than greedy baselines. In brain alignment, MOT successfully mapped different human subjects' visual cortices, showing that region V1 in Subject A maps cleanly to V1 in Subject B while maintaining high predictive accuracy. The authors even demonstrated a "Three-Level MOT" capable of aligning two different models across their entire training trajectories, identifying corresponding developmental milestones missed by simpler methods.

The primary limitation of MOT is computational complexity. Solving Optimal Transport is expensive; the inner neuron-level alignment scales cubically ($O(n^3)$) with the number of neurons, requiring sub-sampling for massive layers. Future work aims to incorporate "smoothness" priors to further refine transport plans. Ultimately, MOT provides a rigorous, globally consistent foundation for mechanistic interpretability, helping researchers decode how different architectures and training objectives shape the hierarchical flow of information.

Summary updated

BibTeX
@inproceedings{shah2026representational,
  author = {Shaan Shah and Meenakshi Khosla},
  title = {{Representational Alignment Across Model Layers and Brain Regions with Multi-Level Optimal Transport}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=xz3hPommuG},
}
Figure