Manuscript Offprint
arXiv:2610.30938The Geometry of Meaning in Neural Manifolds
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Author:
Valentino MAIORCA
Advisor:
Prof. Emanuele RODOLÀ
ELLIS Co-Advisor:
Prof. Francesco LOCATELLO
Institute of Science and
Technology Austria (ISTA)
A thesis submitted in fulfillment of the requirements for the degree of Doctor of Philosophy
in the
Department of Computer Science
Faculty of Information Engineering, Informatics, and Statistics
Sapienza University of Rome
and carried out as part of the ELLIS Ph.D. Program
31 October 2025
Thesis defended on 26 January 2026
in front of a Board of Examiners composed of:
Prof. Barbara RE
University of Camerino
Prof. Chiara DI FRANCESCOMARINO
University of Trento
Prof. Han VAN DER AA
University of Vienna
External reviewers:
Prof. Marco BARONI
ICREA and Universitat Pompeu Fabra, Barcelona
Prof. Alessandro LAIO
SISSA – International School for Advanced Studies, Trieste iii
Abstract
Just as different languages express the same concept through different words, neural networks express similar functions through incompatible coordinate systems. Different architectures, random initializations, and optimization trajectories produce incompatible parameterizations in extrinsic coordinates, obscuring functional relationships between independently trained models. The question is: when models independently solve similar tasks on related data, do their learned representations share exploitable structure despite incompatible coordinates? This thesis shows that semantic correspondence is a fundamental primitive revealing shared geometric structure beneath incompatible parameterizations. By identifying which elements refer to the same semantic content, correspondence breaks the symmetry of arbitrary implementation choices, anchoring incompatible systems to a shared semantic frame and revealing the underlying intrinsic geometry that ultimately enables zero-shot transformation between independently trained models.
Building on this principle, we walk through fourteen scientific contributions exploring correspondence-based alignment across diverse settings: zero-shot model stitching, cross-modal translation, policy transfer, activation steering, and neural decoding. These methods span domains (vision, language, reinforcement learning, neuroscience), architectures (CNNs, Transformers, graph networks), and scales (from small supervised models to billion-parameter generative systems). Each exploits different geometric properties—angular, metric, spectral, sparse, or distributional—yet all instantiate the same underlying principle. Remarkably, correspondence-based alignment extends beyond artificial systems: fMRI data show that different human brains processing identical stimuli exhibit alignable geometric structure, suggesting a general principle of learning systems.
From a practical standpoint, correspondence-based alignment enables model reuse without expensive joint training, knowledge transfer between independently developed systems, efficient transformation by exploiting low-dimensional semantic structure, and direct evaluation of representations in latent space without requiring downstream task deployment. The methods we developed have achieved top-tier recognition (oral and spotlight presentations) in ML conferences and widespread adoption (G. Wang et al., 2023; Kiefer et al., 2024; Wu et al., 2024b; Moroni et al., 2025), contributing to weakly supervised pretraining (C. Chen et al., 2023), out-of-distribution detection (Demirel et al., 2025), federated learning (Crisostomi et al., 2024), and policy transfer in RL (Jian et al., 2023), and formed the conceptual foundation for the UniReps workshops at NeurIPS (2023–2025).
By revealing intrinsic geometric structure beneath extrinsic parameterization, semantic correspondence transforms model isolation into interoperability.
V
Publications
This thesis is based on the following publications:
- Equal contribution.
Core Methods
- Luca Moschella*, Valentino Maiorca*, Marco Fumero, Antonio Norelli, Francesco Locatello, Emanuele Rodolà. "Relative representations enable zero-shot latent space communication"
ICLR 2023 (Oral, notable-top-5%)
- Valentino Maiorca*, Luca Moschella*, Antonio Norelli, Marco Fumero, Francesco Locatello, Emanuele Rodolà. "Latent Space Translation via Semantic Alignment"
NeurIPS 2023
- Antonio Norelli, Marco Fumero, Valentino Maiorca, Luca Moschella, Emanuele Rodolà, Francesco Locatello. "ASIF: Coupled data turns unimodal models to multimodal without training"
NeurIPS 2023
- Irene Cannistraci, Luca Moschella*, Marco Fumero*, Valentino Maiorca, Emanuele Rodolà. "From Bricks to Bridges: Product of Invariances to Enhance Latent Space Communication"
ICLR 2024 (Spotlight)
Preliminary version: Irene Cannistraci, Marco Fumero, Luca Moschella, Valentino Maiorca, Emanuele Rodolà. "Infusing invariances in neural representations" — ICML TAG-ML Workshop 2023
- Marco Fumero*, Marco Pegoraro*, Valentino Maiorca, Francesco Locatello, Emanuele Rodolà. "Latent Functional Maps: a spectral framework for representation alignment"
NeurIPS 2024
- Lorenzo Basile*, Valentino Maiorca*, Luca Bortolussi, Emanuele Rodolà, Francesco Locatello. "ResiDual Transformer Alignment with Spectral Decomposition"
TMLR 2025 vi
Extensions and Applications
- Irene Cannistraci, Luca Moschella, Valentino Maiorca, Marco Fumero, Antonio Norelli, Emanuele Rodolà. "Bootstrapping Parallel Anchors for Relative Representations"
ICLR Tiny Papers Track 2023
- Sanketh Vedula, Valentino Maiorca, Lorenzo Basile, Francesco Locatello, Alexander Bronstein. "Scalable Unsupervised Alignment of Metric and Nonmetric Structures"
ICML AI4Science Workshop 2024
-
Valentino Maiorca*, Luca Moschella*, Marco Fumero, Francesco Locatello, Emanuele Rodolà. "Latent Space Translation via Inverse Relative Projection" arXiv 2024
-
Fabian Mager, Valentino Maiorca, Lars Kai Hansen. "It's All Relative: Relative Uncertainty in Latent Spaces using Relative Representations"
NeurIPS UniReps Workshop 2024
- Antonio Pio Ricciardi, Valentino Maiorca, Luca Moschella, Riccardo Marin, Emanuele Rodolà. "Zero-shot stitching in Reinforcement Learning using Relative Representations"
EWRL 2023
Extended version: Antonio Pio Ricciardi, Valentino Maiorca, Luca Moschella, Riccardo Marin, Emanuele Rodolà. Mapping representations in Reinforcement Learning via Semantic Alignment for Zero-Shot Stitching — arXiv 2025
- Valentino Maiorca, Simone Azeglio, Marco Fumero, Clémentine Dominé, Emanuele Rodolà, Francesco Locatello. "Multi-subject neural decoding via relative representations"
Cosyne 2024
- Lorenzo Basile, Valentino Maiorca, Diego Doimo, Francesco Locatello, Alberto Cazzaniga. "Head Pursuit: Probing Attention Specialization in Multimodal Transformers"
NeurIPS 2025 (Spotlight)
- Pau Rodríguez, Michal Klein, Eleonora Gualdoni, Valentino Maiorca, Arno Blaas, Luca Zappella, Marco Cuturi, Xavier Suau. "LinEAS: End-to-End Learning of Activation Steering with a Distributional Loss"
NeurIPS 2025
Other Authored Publications
The following publications were authored or co-authored during the PhD but are not part of this thesis:
-
Donato Crisostomi, Simone Antonelli, Valentino Maiorca, Luca Moschella, Riccardo Marin, Emanuele Rodolà. "Metric based few-shot graph classification" LoG 2022 vii
-
Giovanni Trappolini, Valentino Maiorca, Silvio Severino, Emanuele Rodolà, Fabrizio Silvestri, Gabriele Tolomei. "Sparse vicious attacks on graph neural networks"
IEEE Transactions on Artificial Intelligence 2023
- Valeria Ruscio, Valentino Maiorca, Fabrizio Silvestri. "Attention-likelihood relationship in Transformers"
ICLR Tiny Papers Track 2023
- Andrea Santilli, Silvio Severino, Emilian Postolache, Valentino Maiorca, Michele Mancusi, Riccardo Marin, Emanuele Rodolà. "Accelerating transformer inference for translation via parallel decoding"
ACL 2023
- Adriano Setti, Giorgio Bini, Flaminia Pellegrini, Valentino Maiorca, Gabriele Proietti, Dimitrios-Miltiadis Vrachnos, et al. "The role of low-complexity repeats in RNA–RNA interactions and a deep learning framework for duplex prediction"
Nature Communications 2026 ix
Contents
Abstract iii
Publications v
I Foundations: The Principle of Correspondence 1
1 Introduction 3
1.1 Motivation: Why Correspondence Exposes Intrinsic Geometry 3
1.2 A Unified Principle Guiding Fourteen Methods 4
2 Background and Related Work 7
2.1 The Representation Similarity Puzzle 7
2.2 Geometric Foundations 9
2.2.1 The Manifold Hypothesis 9
2.2.2 Intrinsic vs. Extrinsic Geometry 10
2.2.3 Connections to Dimensionality Reduction 11
2.3 Existing Alignment Approaches 11
2.3.1 Transfer Learning and Fine-Tuning 11
2.3.2 Procrustes Analysis and Linear Alignment 12
2.3.3 Model Stitching 12
2.3.4 Representation Similarity Measures 12
2.3.5 Geometric Alignment Methods 13
2.4 Structural Properties of Representations 13
2.4.1 Mechanistic Interpretability: Assigning Meaning to Components 14
2.4.2 Linear Representation of Semantic Meaning 15
3 Framework: Correspondence as a Structural Primitive 17
3.1 Neural Representations as Conditioned Manifolds 17
3.2 Correspondence as Primitive 19
3.2.1 Correspondence Encodes Task Intent 21
3.3 Two Operator Families Enabled by Correspondence 23
3.3.1 Correspondence-Parallel Operators 23
3.3.2 Correspondence-Coupled Operators 24
3.4 Empirical Framework and Thesis Scope 26
II Semantic Coordinates: Parallel Operators 29
4 Relative Representations 31
4.1 Introduction 31
4.1.1 Relative Representations 32
4.2 Latent Space Communication 34 x
Contents
4.2.1 Word Embeddings ..... 34
4.2.2 Preservation of Metric Structure ..... 35
4.2.3 Latent distance as a performance proxy ..... 36
4.2.4 Training with Absolute vs. Relative representations ..... 37
4.3 Zero-Shot Model Stitching ..... 38
4.3.1 Image Reconstruction ..... 38
4.3.2 Text Classification ..... 39
4.3.3 Image Classification ..... 40
5 Product of Invariances ..... 43
5.1 Introduction ..... 43
5.2 Method: Product Space Construction ..... 45
5.2.1 Setting and Background ..... 45
5.2.2 Geometric Framework ..... 45
5.2.3 Product Projection ..... 46
5.2.4 Distance-Induced Invariances ..... 46
5.2.5 Aggregation Strategies ..... 47
5.3 Experiments ..... 47
5.3.1 Latent Space Analysis ..... 47
5.3.2 Downstream Task: Zero-Shot Stitching ..... 49
5.3.3 Aggregation Functions: Ablation ..... 50
5.3.4 Space Selection ..... 51
5.4 Conclusions ..... 52
6 Bootstrapping Parallel Anchors ..... 55
6.1 Introduction ..... 55
6.2 Method ..... 56
6.3 Algorithm and Hyperparameters ..... 57
6.4 Experiments ..... 57
7 ASIF ..... 61
7.1 Introduction ..... 61
7.2 Scaling Correspondence-Parallel Operators to Cross-Modal Settings ..... 62
7.2.1 Properties of ASIF Models ..... 63
7.2.2 Implementation That Scales ..... 64
7.2.3 Implementation Details ..... 64
7.3 Empirical Evidence ..... 64
7.3.1 Pretrained Encoders and Multimodal Dataset ..... 64
7.3.2 Zero-Shot Performance ..... 65
7.3.3 ASIF Scaling Laws ..... 66
7.3.4 Dynamically Updating an ASIF Model ..... 66
7.3.5 Deep Dive into a Classification ..... 67
8 Learning to Align ..... 69
8.1 Introduction ..... 69
8.2 Learning transport cost via embeddings ..... 70
8.3 Extensions: regularization and scale invariance ..... 72
8.4 Experimental validation ..... 75
Contents
xi
9 Domain Applications of Correspondence-Parallel Operators 79
9.1 Neuroscience: Multi-subject fMRI Alignment 79
9.2 Uncertainty Quantification in Latent Spaces 82
9.2.1 Discussion 84
9.3 Reinforcement Learning: Zero-Shot Module Stitching 87
9.4 Reinforcement Learning Experiments 89
9.4.1 Latent space analysis 89
9.4.2 End-to-end performance 89
9.4.3 Zero-shot stitching 90
III Direct Translation: Coupled Operators 93
10 Inverse Relative Projection 95
10.1 Introduction: The Bridge Between Operator Families 95
10.2 Method 95
10.2.1 Relative Representations 95
10.2.2 Latent Space Translation 96
10.2.3 Stability improvements 96
10.2.4 Scale invariance and temperature 98
10.3 Relative Inversion 99
10.3.1 Space Inversion 99
10.3.2 Empirical Validation of Scale Invariance 100
10.4 Zero-Shot Model Stitching via Relative Space 103
10.4.1 Cross-domain stitching 105
11 Latent Space Translation 109
11.1 Introduction 109
11.2 Method 110
11.2.1 From Correspondence-Parallel to Correspondence-Coupled 110
11.2.2 Latent Space Translation 111
11.3 Latent Communication via Translation 112
11.3.1 Cross-Architecture 113
11.3.2 Cross-Modality 115
11.3.3 Autoencoding 116
12 Latent Functional Maps 119
12.1 Introduction 119
12.2 Related Work 120
12.3 Method 121
12.3.1 Background 121
12.3.2 Latent Functional Maps 122
Setting 122
12.3.3 LFMs as a similarity measure 123
12.3.4 Transferring information with LFM 123
12.4 Experiments 124
12.4.1 Analysis 124
12.4.2 Zero-shot stitching 126
Qualitative example 128
12.4.3 Retrieval 128 xii
Contents
13 ResiDual 131
13.1 Introduction 131
13.2 The Geometry of Residual Units 132
13.2.1 Residual Dimensionality 133
13.2.2 Principal Components Encode Unit Semantics 134
13.2.3 Spectral Dataset Comparison 135
13.3 ResiDual Alignment 137
13.3.1 Coarse Unit Alignment 138
13.3.2 Spectral ResiDual Alignment 140
14 Head Pursuit 143
14.1 Introduction 143
14.2 Pursuing specialized attention heads 144
14.2.1 Simultaneous Orthogonal Matching Pursuit Algorithm 146
14.3 Controlling language generation through specialized heads 146
14.3.1 Question answering 147
14.3.2 Mitigation of toxic content 148
14.4 Targeted control of visual attributes 149
14.4.1 Image classification 150
14.4.2 Image captioning 151
15 LinEAS 157
15.1 Introduction: Distributional Correspondence Across Layers 157
15.2 End-to-end Learning of Steering Maps 158
15.2.1 Interventions Setup and Distributional Loss 158
15.2.2 Parameterization and Regularization 159
15.2.3 Optimization 160
15.3 Experimental Results 160
15.3.1 Toxicity Mitigation in LLMs 160
15.3.2 Effect of Data on Toxicity Mitigation 162
15.3.3 Effect of Sparsity on Toxicity Mitigation 163
15.3.4 Steering Text-to-Image Generation Models 163
15.3.5 Layer Selection Analysis 166
IV Conclusions and Outlook 167
16 Conclusions 169
16.1 Synthesis and Insights 169
16.2 Limitations and Boundaries 170
16.3 Open Directions and Implications 172
Bibliography 175
List of Abbreviations 195
List of Concepts 197
List of Symbols 201
Part I
Foundations: The Principle of Correspondence

Relativity by M.C. Escher (1953). Different reference frames, each internally consistent, describing the same underlying structure. Like the figures in Escher's lithograph who experience gravity from different orientations yet inhabit the same architectural space, neural networks may express similar semantic relationships through incompatible coordinate systems.
© The M.C. Escher Company, The Netherlands. All rights reserved. Reproduced for academic, non-commercial use.
Chapter 1
Introduction
Consider two neural networks trained independently on the same image classification dataset. They use different architectures—one a CNN (Convolutional Neural Network), the other a transformer. They start from different random initializations. They follow different optimization trajectories through parameter space. When training completes, they achieve comparable accuracy, but their internal representations appear radically incompatible: different dimensionalities, different coordinate systems, different numerical scales. Model A encodes “fluffy Persian cat” at coordinates in 512 dimensions; Model B represents it at in 2048 dimensions.
Here is the question that motivates this thesis: Are these representations fundamentally different, or merely different expressions of similar structure?
The distinction matters. Different architectures impose different inductive biases. Different initialization seeds lead to different minima in the loss landscape. Different optimization paths traverse different regions of parameter space. Each choice—architecture, initialization, learning rate, batch size—constitutes an extrinsic factor that affects how the learned function gets parameterized. Yet both models face identical intrinsic factors: they see the same data, they optimize the same objective, they must extract the same semantic distinctions to succeed. They must learn that cats cluster with dogs but separate from vehicles. They must preserve fine-grained distinctions between breeds. They must develop invariance to lighting and pose transformations.
Could it be that these intrinsic constraints—the semantic structure in data and task—induce similar geometric organization across models, despite the divergent extrinsic factors? That the incompatible coordinates merely obscure a shared underlying geometry?
1.1 Motivation: Why Correspondence Exposes Intrinsic Geometry
This thesis establishes that correspondence systematically reveals geometric structure shared across independently trained models, enabling zero-shot transformation between their representations.
When we identify semantically corresponding entities across representation spaces—shared examples, parallel observations, analogous concepts—this correspondence exposes which geometric relationships persist despite different parameterizations. The raw coordinates diverge arbitrarily: absolute positions, vector norms, axis orientations all depend on extrinsic initialization and architectural choices. But deeper geometric properties converge: angular relationships between semantically
Chapter 1. Introduction
related concepts, spectral structure of representation manifolds, hierarchical organization of clusters, patterns of invariance to transformations. These intrinsic geometric properties reflect the semantic structure both models must extract to solve their tasks.
By systematically identifying which structures persist through correspondence, we can construct transformations that change coordinate systems while preserving semantic relationships. This enables practical transformation without retraining—we need not train models jointly, match their architectures, or share their parameters. We need only establish correspondence that reveals preserved geometric structure, then construct transformations respecting that structure. Like alchemists who sought to transform matter by understanding its fundamental nature, we transform representation forms by understanding their geometrical essence—but where alchemy relied on mystical principles, this work relies on correspondence that systematically reveals which geometric properties encode meaning and which merely reflect arbitrary parameterization choices.
1.2 A Unified Principle Guiding Fourteen Methods
This thesis demonstrates the correspondence principle through fourteen methods that exploit different geometric structures while instantiating the same underlying mechanism. We can understand these methods through the geometric properties they rely on, independent of their technical implementations:
Angular structure. Several methods exploit angular relationships, which remain invariant to the rotations and scalings introduced by different parameterizations. The RelRep (Relative Representations) method (Moschella* & Maiorca*, et al., 2023, Chapter 4)—presented with an oral at ICLR 2023—establishes the foundational correspondence-parallel approach by anchoring representations to shared examples and measuring angular distances. This produces semantic coordinates that enable direct comparison across arbitrary architectures. In Cannistraci et al. (2024), with a preliminary workshop version (Cannistraci et al., 2023a), we extend this by combining multiple geometric invariances for richer representations (Chapter 5). In Chapter 9, we apply similar principles to policy networks (Ricciardi et al., 2023), later extended in Ricciardi et al. (2025), and to the latent uncertainty of model ensembles (Mager et al., 2024). In ASIF (Norelli et al., 2023), we apply them to cross-modal architectures (Chapter 7).
Spectral structure. Other methods use spectral properties of representation manifolds, since eigenstructure reveals intrinsic geometry independent of coordinate choice. In our latent functional maps work (Fumero* & Pegoraro*, et al., 2024), we adapt techniques from geometric correspondence to neural representations, enabling transformation through spectral operators (Chapter 12). In ResiDual (Basile* & Maiorca*, et al., 2025), we apply spectral decomposition within single models to isolate task-relevant components (Chapter 13).
Orthogonal alignment. When correspondence provides sufficient paired points, direct orthogonal transformations can align representation spaces while preserving geometric structure. In our semantic alignment work (Maiorca* & Moschella*, et al., 2023), we construct these transformations between independently trained models, obtaining cross-model translation (Chapter 11). In Maiorca* & Moschella*, et al.
1.2. A Unified Principle Guiding Fourteen Methods
5
(2024), we do not estimate such a map: we chain the relative projection of RelRep (Chapter 4) with a pseudo-inverse that returns to the target's absolute coordinates, so that its decoder can be reused (Chapter 10). This demonstrates that chaining correspondence-based extraction with reconstruction achieves direct transformation through modular components.
Distributional properties. Some methods establish correspondence between learned representations and desired distributional characteristics. In LinEAS (Rodríguez et al., 2025), we align the intermediate activations of a model with target concept distributions for controlled generation (Chapter 15). In our bootstrapping work (Cannistraci et al., 2023b), we iteratively refine a small seed correspondence with optimal transport across word embeddings, visual encoders and languages (Chapter 6). In Vedula et al. (2024), we learn embeddings that amortize Gromov-Wasserstein optimal transport, so that correspondence is found from unpaired samples and new samples are aligned with a single transport solve (Chapter 8).
Component specialization. Within complex models, different components often specialize for different aspects of the task. Identifying this functional correspondence enables targeted intervention. In HeadPursuit (Basile et al., 2025b), we discover correspondence between attention heads and semantic concepts in language and vision-language models (Chapter 14).
Applications and scope. Correspondence-based alignment eliminates the need for expensive joint training or model retraining, allowing practitioners to repurpose existing models for ensemble uncertainty estimation, cross-architecture composition, and direct representation analysis without downstream task deployment.
The principles validate across computer vision (CNNs, ResNets, Vision Transformers), natural language processing (BERT, RoBERTa, LLM (Large Language Model) families), reinforcement learning (policy transfer), and cross-modal settings (text-image translation). We presented outcomes of this line of research at top-tier venues including ICLR, NeurIPS and TMLR, with oral and spotlight presentations recognizing their contributions. The community has widely adopted these techniques (G. Wang et al., 2023; Kiefer et al., 2024; Wu et al., 2024b; Moroni et al., 2025): our methods have been used for merging the latent spaces of models trained on different tasks (Crisostomi et al., 2024), and the correspondence principle formed the conceptual foundation for the UniReps workshop at NeurIPS 2023, 2024, and 2025, whose proceedings appeared in PMLR (Fumero et al., 2024; Fumero et al., 2025; Fumero et al., 2026).
The principle extends to biological systems: different human brains processing identical visual stimuli develop alignable geometric structure in fMRI responses (Maiorca et al., 2024, Chapter 9), suggesting that geometric convergence from shared semantic constraints may be a general principle of learning systems beyond artificial neural networks.
Chapter 2
Background and Related Work
Modern deep learning relies on learned representations—internal encodings that capture semantic structure from data and task objectives. Consider a neural network processing images: before mapping pixels to class labels, the network first transforms inputs into intermediate representations that compress high-dimensional data while preserving semantically relevant structure. A representation is a vector encoding where similar inputs (cats versus cats) map to nearby points, while dissimilar inputs (cats versus cars) map to distant points. This intermediate encoding can be reused across multiple downstream tasks, making representation learning a general paradigm (Bengio et al., 2013).
Formally, a layer (the -th of the layers of a neural network) maps inputs to -dimensional representations. Architectures, at any point in their computational graph, can be factored into encoder-decoder structure: the whole model , with parameters , factors as , where encoder extracts latent representations from input space (images, text, sensor data), and decoder maps representations to the task output (class labels , reconstructed observations in , predictions). For a dataset , the encoder produces representations forming a point cloud in —a geometric object we can analyze using distances, angles, and neighborhoods.
This geometric perspective treats representations as points in a structured space where proximity reflects semantic similarity. When we train neural networks, we hope they discover geometric structure that mirrors semantic relationships in the data: images of cats cluster together, images of cars cluster separately, and smooth transformations in input space (rotating an object) correspond to continuous paths in representation space.
These representations often exhibit similarities across independently trained models, yet remain numerically incompatible due to arbitrary choices in architecture and optimization. This chapter establishes the empirical evidence for this phenomenon (Section 2.1), introduces geometric vocabulary for reasoning about representational structure (Section 2.2), reviews existing approaches to representation alignment and their limitations (Section 2.3), and examines structural properties of learned representations (Section 2.4).
2.1 The Representation Similarity Puzzle
When two models are trained independently on similar data, do they discover similar geometric structure? Empirical evidence suggests they do—but with a critical caveat that makes this observation both intriguing and problematic.
Within and across architecture families, representations converge toward shared semantic structure. Networks trained from different random seeds develop aligned
Chapter 2. Background and Related Work
representational subspaces despite numerical differences in their coordinates (Raghu et al., 2017; Morcos et al., 2018), and in CNNs individual features partly match one to one across seeds (Y. Li et al., 2016). The same phenomenon holds when varying hyperparameters, data and architecture: VAE (Variational AutoEncoder) encoders trained with different hyperparameters and learning objectives learn similar representations in all layers except the mean and variance layers (Bonheme et al., 2022), word-embedding spaces of different languages can be aligned by an orthogonal map (Lample et al., 2018), and an intrinsic multi-scale distance, which compares data manifolds even across spaces of different dimensionality, suggests that networks of different architectures (VGG-16 and ResNet-20) reach similar final representation structure (Tsitsulin et al., 2020).
Joint training on paired data extends this convergence across modalities. Vision-language models trained on image-text pairs learn cross-modal representations that align through shared optimization (Jia et al., 2021; Radford et al., 2021), though a persistent modality gap remains even after alignment (Liang et al., 2022). These successes demonstrate that when optimization explicitly enforces correspondence or when architectural constraints restrict variation, semantic structure reliably converges.
Yet this convergence of semantic structure coexists with divergence of numerical coordinates. Mode connectivity literature shows that different optimization trajectories reach functionally similar solutions in distinct regions of parameter space that a straight line cannot join at low loss, but a simple curve of near-constant accuracy can (Garipov et al., 2018). Building on the lottery ticket hypothesis (Frankle et al., 2019), Frankle et al. (2020) further show that networks trained from the same checkpoint under different SGD noise (data order and augmentation) end in minima joined by a linear path of low error once the shared checkpoint is taken early enough in training: only the smallest MNIST network has this property from initialization, while ResNet-20 on CIFAR-10 and ResNet-50 on ImageNet acquire it after 3% and 20% of training. Direct numerical comparison fails: the same input maps to different coordinates in each run (Fig. 2.1).
The mismatch between shared intrinsic structure and divergent extrinsic coordinates is visible in high-dimensional latent spaces. Consider five independent trainings of a high-dimensional MNIST autoencoder (Fig. 2.1). When we fit PCA (Principal Component Analysis) independently on each space, the resulting projections are similar: the same clusters appear in virtually identical configurations, revealing that intrinsic geometry is shared across runs. Yet when we fit a single PCA on the first space and apply it to the others, severe misalignment emerges—different PCA projections from the leftmost space fail to reveal similar structure in others. The incompatibility is purely optimization-induced: the models have learned the same intrinsic structure and parameterized it through different extrinsic coordinates. This high-dimensional evidence demonstrates concretely what mode connectivity shows in parameter space: independent optimization of the same learning problem discovers functionally equivalent but coordinatewise incompatible solutions.
This creates a practical challenge for model reuse and composition. Combining modules from different models—connecting an encoder from a source model to a decoder from a target model—requires compatible representations, yet independent training produces incompatible coordinate systems. Existing transfer learning approaches solve this through retraining on target tasks (Pan et al., 2010; Yosinski et al., 2014), while model stitching introduces trainable adaptation layers and works best under architectural similarity (Bansal et al., 2021; Csiszárik et al., 2021). Zero-shot transformation across independently trained models with different architectures
2.2. Geometric Foundations
9

FIGURE 2.1: High-dimensional evidence of coordinate mismatch. Five independent trainings of a high-dimensional MNIST autoencoder. Top: PCA fitted independently on each space produces highly similar projections—intrinsic geometry is shared. Bottom: PCA fitted on the leftmost space and applied to all five reveals severe misalignment—extrinsic coordinates differ. The incompatibility is purely optimization-induced. Colors: MNIST classes.
remained an open problem: how to exploit semantic convergence while overcoming coordinate divergence.
2.2 Geometric Foundations
Understanding how independently trained models can learn compatible representations requires geometric vocabulary for describing structure that persists across coordinate transformations. This section introduces the manifold hypothesis—the observation that high-dimensional data concentrates on low-dimensional structure—and distinguishes intrinsic properties (coordinate-invariant geometry) from extrinsic properties (coordinate-dependent artifacts). These concepts provide the mathematical language for reasoning about what remains invariant when two models learn similar semantic structure in different coordinate systems.
2.2.1 The Manifold Hypothesis
A foundational assumption in modern machine learning holds that high-dimensional data—natural images, text sequences, sensor measurements—does not uniformly populate its ambient space. Instead, data concentrates near low-dimensional manifolds embedded in high-dimensional spaces. A RGB image formally lives in , yet the space of natural photographs occupies a tiny fraction of this vast volume. Images vary smoothly along semantic dimensions (object pose, lighting conditions, scene composition) that parameterize a much lower-dimensional manifold.
This manifold hypothesis explains why neural networks can learn effective representations despite the apparent curse of dimensionality. Networks discover and exploit the low-dimensional structure where data actually concentrates, so they do not need to model all possible configurations of high-dimensional inputs. Empirical
Chapter 2. Background and Related Work
measurements support this view: intrinsic dimensionality estimates (Ansuini et al., 2019; Pope et al., 2021; Valeriani et al., 2022; E. Cheng et al., 2024; E. Cheng et al., 2025) consistently reveal effective dimensionality far smaller than ambient dimensionality. Testing procedures have been proposed to verify whether real datasets exhibit manifold structure (Fefferman et al., 2016).
Three mechanisms drive this low-dimensional concentration. First, natural data exhibits inherent regularities—spatial coherence in images, syntactic and semantic constraints in language—that reduce effective degrees of freedom. Second, discriminative tasks require only separating categories, without modeling full generative distributions, allowing learned representations to discard task-irrelevant variation. Third, architectural choices directly enforce compression through bottleneck layers in encoder-decoder networks (Hinton et al., 2006), low-rank adaptation like LoRA (Hu et al., 2022), and regularization objectives that collectively push solutions toward low-dimensional manifolds.
Learned representations reflect this structure. Visualization of ImageNet-trained networks reveals hierarchical organization where nearby points share semantic features (Zeiler et al., 2014; Doimo et al., 2020). Large-scale pretraining objectives induce structured manifolds where semantic relationships organize geometric neighborhoods (Devlin et al., 2019; Radford et al., 2021). We can summarize this as: latent representations are points on manifolds whose intrinsic dimensionality is substantially smaller than ambient dimensionality , which itself is vastly smaller than the dimensionality of the original data.
2.2.2 Intrinsic vs. Extrinsic Geometry
The same manifold can be described using infinitely many coordinate systems, all equally valid yet numerically distinct. This coordinate ambiguity creates a fundamental distinction between two types of geometric properties.
Intrinsic properties depend only on the manifold’s internal structure, independent of how it sits in ambient space. Distances measured along the manifold surface (geodesics), angular relationships between directions, local neighborhoods, and topological features like connected components all remain invariant under coordinate transformations. These properties are coordinate-free: they describe relationships within the manifold that persist regardless of external embedding choices.
Extrinsic properties depend on how the manifold is embedded in ambient space. Absolute coordinate values, axis orientations, and the specific parameterization used to represent points all change under coordinate transformations, even when the underlying manifold remains unchanged. These properties are coordinate-dependent artifacts of our choice of representation.
Consider a concrete example: a sphere embedded in three-dimensional space. Intrinsic properties—surface area, radius, the existence of an arc connecting any two points—remain constant whether we rotate the sphere, translate it, or describe it using Cartesian versus spherical coordinates. Extrinsic coordinates change with each transformation, but the sphere’s essential geometric structure persists.
This distinction connects directly to neural network representations. When two models are trained on similar data with similar objectives, they discover similar intrinsic structure: semantic relationships that determine which concepts cluster together, how categories separate, and what hierarchical organization emerges. This structure is determined by the data distribution and task requirements—factors intrinsic to the learning problem.
2.3. Existing Alignment Approaches
11
However, the extrinsic coordinates used to represent this structure vary arbitrarily based on parameterization choices. Network architecture (layer dimensions, activation functions, normalization schemes) determines the ambient space structure. Optimization dynamics (initialization seed, learning rate schedule, batch composition) determine which specific point in parameter space is reached, breaking coordinate symmetry in arbitrary ways. Two networks can learn to represent “dog” versus “cat” using the same geometric relationship (angular separation, clustering distance) while assigning these concepts to completely different numerical coordinates.
The puzzle documented in Section 2.1—that models learn similar semantic structure in incompatible coordinate systems—is precisely this intrinsic-extrinsic separation. Models converge to similar intrinsic manifold geometry (semantic relationships) but parameterize it using different extrinsic coordinates (numerical representations). Understanding alignment requires exploiting intrinsic structure while factoring out extrinsic variation.
2.2.3 Connections to Dimensionality Reduction
The problem of factoring intrinsic structure from extrinsic coordinates is not new to machine learning. Classical dimensionality reduction methods address precisely this challenge for single datasets: given high-dimensional observations, recover the underlying low-dimensional manifold structure. PCA (Pearson, 1901) identifies linear subspaces of maximal variance, assuming intrinsic structure aligns with these directions. Nonlinear methods like Isomap (Tenenbaum et al., 2000) and Locally Linear Embedding (Roweis et al., 2000) extend this principle to curved manifolds by preserving geodesic distances or local reconstruction relationships. More recent techniques like t-SNE (Van der Maaten et al., 2008) prioritize local neighborhood preservation for visualization, though they distort global geometry.
These methods share a common principle: factor out arbitrary embedding choices (extrinsic coordinates) to reveal coordinate-invariant structure (intrinsic geometry). However, they address a simpler setting than neural network alignment. Dimensionality reduction assumes a single dataset observed in one coordinate system and seeks a low-dimensional embedding. Neural network alignment confronts a harder problem: relating multiple independently discovered manifolds that live in different ambient spaces, potentially with different dimensionalities, where there are no shared observations and the only bridge is semantic correspondence.
2.3 Existing Alignment Approaches
The challenge of aligning or combining representations from different models has motivated diverse approaches across machine learning. This section reviews major paradigms and their limitations.
2.3.1 Transfer Learning and Fine-Tuning
The dominant approach for reusing pretrained representations is transfer learning: a model pretrained on a source task is adapted to a target task through continued training (Pan et al., 2010; Devlin et al., 2019; Radford et al., 2021). Feature transferability depends on architectural depth and task similarity—lower layers capture general features that transfer broadly, while higher layers specialize to source tasks (Yosinski et al., 2014). Continual adaptation risks catastrophic forgetting, where performance
Chapter 2. Background and Related Work
on previous tasks degrades as parameters update (Kirkpatrick et al., 2017). While effective, this paradigm fundamentally requires retraining: target task data, labels, and computational resources for gradient descent. It offers no mechanism for zero-shot transformation or combining representations from multiple independently trained models without modification.
2.3.2 Procrustes Analysis and Linear Alignment
A more geometric approach comes from natural language processing, where Procrustes analysis has successfully aligned word embedding spaces. Orthogonal Procrustes finds the orthogonal matrix minimizing , where the rows of and are paired representations, preserving distances and angles while aligning coordinate systems. A linear map learned from a seed dictionary enabled early successes in cross-lingual word embeddings (Mikolov et al., 2013b), with subsequent refinements incorporating normalization and an orthogonality constraint (Xing et al., 2015), unsupervised alignment without seed dictionaries (Lample et al., 2018), analyses of when the isomorphism assumption behind these maps fails (Vulić et al., 2020), and subword-enriched representations (Bojanowski et al., 2017). Beyond language, Procrustes has aligned the later layers of convolutional networks trained with different random initializations as accurately as a general linear map (Csiszárik et al., 2021), revealing that optimization-induced coordinate differences can be factored out through linear transformations when intrinsic geometry is shared.
However, Procrustes faces significant limitations when extending beyond word embeddings: it requires matched dimensionality between source and target, assumes relationships are linear (orthogonal transformations exactly preserve distances), and needs correspondences, given as paired examples or seed dictionaries or induced from the data (Lample et al., 2018). These restrictions become prohibitive when aligning models with different architectures, dimensionalities, or tasks where natural correspondences may not exist.
2.3.3 Model Stitching
Another paradigm directly composes layers from different networks—connecting an encoder from a source model to a decoder from a target model. Trainable stitching layers can learn transformations enabling composition (Lenc et al., 2015), but this reintroduces the retraining requirement that transfer learning already imposes. A single linear or affine stitching layer often suffices when networks share their architecture, both across random initializations (Csiszárik et al., 2021) and across training methods such as supervised and self-supervised learning (Bansal et al., 2021). Model stitching thus requires training adaptation layers (sacrificing zero-shot capability) and works best under architectural similarity.
2.3.4 Representation Similarity Measures
Complementary to transformation methods are techniques for quantifying similarity between representation spaces without enabling transformation. CCA (Canonical Correlation Analysis) (Hotelling, 1936) finds maximally correlated linear projections between two variable sets. Modern variants like SVCCA (Singular Value Canonical Correlation Analysis) (Raghu et al., 2017) incorporate dimensionality reduction for neural network comparison, while PWCCA (Projection Weighted Canonical Correlation Analysis) (Morcos et al., 2018) refines weighting schemes. CKA (Centered Kernel
2.4. Structural Properties of Representations
13
Alignment) (Kornblith et al., 2019) offers an alternative that compares representational Gram matrices with invariance to orthogonal transformations and isotropic scaling, though recent work reveals sensitivity to sample subset selection (Davari et al., 2023). RSA (Representational Similarity Analysis) (Kriegeskorte et al., 2008), imported from neuroscience, compares second-order similarity structure through pairwise distance matrices, enabling comparison between neural networks and brain recordings despite radically different coordinate systems. More recently, Basile et al. (2025a) directly related representation similarity to the intrinsic dimensionality, proposing a nonlinear similarity estimator based on the latter.
These measures provide tools for quantifying statistical correlation between spaces, but they share a fundamental limitation: they measure similarity without enabling transformation between the original spaces. CCA jointly estimates projections from both spaces into new low-dimensional subspaces where projections are maximally correlated, but doesn’t produce operators for mapping between the original ambient representations. CKA and RSA quantify agreement through second-order statistics without revealing how to transform representations. They answer “how similar?” but not “how to transform?”
2.3.5 Geometric Alignment Methods
More geometrically principled approaches come from optimal transport theory. The Gromov-Wasserstein distance (Mémoli, 2011; Alvarez-Melis et al., 2018) measures dissimilarity between metric spaces by finding couplings that minimally distort pairwise distances, operating purely on intrinsic distance structure without requiring common coordinate systems. This makes it applicable to cross-modal and cross-architecture settings where no natural embedding exists. However, geometric rigor comes at computational cost: computing Gromov-Wasserstein distances requires solving nonconvex optimization with complexity, limiting scalability. Functional maps (Ovsjanikov et al., 2012), a spectral approach from shape analysis, represent correspondences as linear operators on low-dimensional spectral bases, achieving complexity where is the number of basis functions. While more efficient, functional maps assume spectral structure amenable to this representation.
Existing Approaches and Their Gap
Existing approaches have complementary limitations. Transfer learning enables effective adaptation but requires retraining and offers no mechanism for zero-shot combination. Procrustes provides geometrically principled alignment but demands matched dimensionality, linearity, and explicit correspondence. Model stitching demonstrates compatibility within architecture families but needs training and works best under restricted conditions. Similarity measures quantify correlation without enabling transformation. Geometric methods offer principled frameworks but face computational barriers or structural assumptions. Zero-shot transformation across independently trained models with arbitrary architectures remained an open challenge.
2.4 Structural Properties of Representations
Beyond global manifold geometry, neural networks exhibit analyzable internal structure. Mechanistic interpretability reveals that architectural components specialize for
Chapter 2. Background and Related Work
distinct semantic functions, while linear representation structure shows that semantic concepts often correspond to interpretable directions. These properties suggest that representations are structured compositions amenable to systematic analysis and manipulation.
2.4.1 Mechanistic Interpretability: Assigning Meaning to Components
Mechanistic interpretability approaches representations by decomposing models along architectural boundaries and assigning semantic meaning to the resulting components. Transformer architectures process information through additive accumulation: each layer and attention head contributes updates to a shared residual stream (Vaswani et al., 2017; Elhage et al., 2021), creating a decomposable structure where the final representation is a sum of contributions from individual components. This architectural choice enables component-level analysis.
The logit lens (nostalgebraist, 2020) exploits this structure by projecting intermediate residual stream states directly through the final output layer, revealing that representations at an intermediate layer of an L-layer model already contain information about final predictions. The tuned lens (Belrose et al., 2023) refines this idea by learning lightweight affine transformations that more accurately decode intermediate states. These methods demonstrate that representations remain interpretable throughout network depth, at intermediate layers as well as at the output, suggesting that semantic content accumulates progressively through processing.
Individual components exhibit specialization: attention heads cluster into functional groups performing distinct operations. Some heads track positional information, others capture syntactic relationships, and still others attend preferentially to rare words (Voita et al., 2019). Pruning experiments reveal that many heads can be removed without performance degradation (Michel et al., 2019), while the heads that remain critical are the specialized ones (Voita et al., 2019). Induction heads (Olsson et al., 2022) are argued to implement much of in-context learning by copying patterns from earlier in the sequence, demonstrating that specific algorithmic computations localize to identifiable components.
Beyond attention, feedforward layers take part in factual recall, which proceeds in three steps: early MLP (Multi-Layer Perceptron) layers enrich the subject representation with attributes, information about the relation propagates to the final position, and attention heads then extract the queried attribute from the enriched subject (Geva et al., 2023). Factual knowledge (“Paris is the capital of France”) localizes to specific layer ranges and can be edited by modifying targeted component weights (Meng et al., 2022). This structured localization extends across modalities. CLIP attention heads specialize for properties such as shape, location, color or letters, while also being decomposable into combinations of text-based concept directions (Gandelsman et al., 2024). The same decomposition extends to vision transformers beyond CLIP, such as DeiT, DINO and Swin, by mapping their component contributions into CLIP space (Balasubramanian et al., 2024). The last layer of CLIP has further been hypothesized to encode compositional attributes such as color, size and counting in independent, nearly orthogonal subspaces (Wolff et al., 2023). Architectural components have interpretable semantic functions, suggesting that representations organize according to principled decompositions.
2.4. Structural Properties of Representations
15
2.4.2 Linear Representation of Semantic Meaning
A recurring empirical pattern emerges across diverse architectures: semantic concepts correspond to linear directions in representation space (Park et al., 2024). The classic example “king – man + woman ≈ queen” (Mikolov et al., 2013a) demonstrates semantic composition through vector arithmetic, revealing a deeper principle that semantic operations can be performed linearly. Individual directions encode interpretable concepts like “male versus female” or “English versus French” (Park et al., 2024), and Y. Jiang et al. (2024) argue that the next-token prediction objective, together with the implicit bias of gradient descent, promotes such linear representations.
Sparse autoencoders (Huben et al., 2024; Templeton et al., 2024) learn overcomplete dictionaries that decompose representations into interpretable features, revealing that semantic meaning often factors into sparse linear combinations, with little entanglement across dimensions. Thasarathan et al. (2025) extend this principle to cross-model decomposition with a single sparse autoencoder.
This linear structure (Nanda et al., 2023; Y. Jiang et al., 2024; Park et al., 2024) matters because it makes concepts tractable and “interpretable” (we can assign a simple, direct meaning to each of them). When semantic meaning is expressed as linear directions, it becomes possible to identify specific concepts, manipulate them through vector arithmetic, and transfer them between models. Linear structure provides a bridge between geometric analysis (angles, distances, subspaces) and semantic interpretability (what concepts are represented, how they combine). Combined with component specialization from mechanistic interpretability, linear representation structure suggests that neural networks develop analyzable, manipulable geometric organizations.
Chapter 3
Framework: Correspondence as a Structural Primitive
3.1 Neural Representations as Conditioned Manifolds
Semantic Structure: What Should Be Learned. Before discussing how neural networks learn, consider what they should learn. When we train an image classifier on ImageNet, there exists an abstract notion of the semantic structure that should emerge: cats should be representationally closer to dogs than to cars; fine-grained distinctions within bird species should be preserved; invariances to lighting and pose should emerge. This is about semantic relationships. It does not depend on specific coordinates in or .
Data D and task objective jointly determine this abstract semantic structure —which concepts should be near versus far, what hierarchical organization should exist, which features distinguish classes, what invariances matter. The task objective plays a critical role: classification demands in-class indistinguishability and cross-class separation; contrastive learning requires positive pairs close together, negatives apart; regression imposes continuity. Data provides the semantic material; task determines which structure must be extracted to succeed.
Grounding Abstract Structure Through Optimization. We cannot train models in this abstract world—gradient descent requires differentiable functions in finite-dimensional spaces. To learn , we must instantiate it through parameterized optimization:
where ranges over the parameter space allowed by the architecture , and is the explicit regularizer. This equation realizes abstract semantic structure through concrete parameterization. The task loss measures how well function captures the required semantic relationships—whether cats are near dogs, whether class boundaries are well-separated, whether required invariances emerge. These are intrinsic factors that determine what should be learned. In contrast, architecture and regularization provide the differentiable substrate and optimization biases—CNNs with convolutional inductive biases, Transformers with attention mechanisms, ResNets with skip connections. These are extrinsic factors determining how that semantic structure is parameterized. Optimization dynamics (initialization, learning rate, batch size, optimizer choice) further bias which particular solution training reaches within the space of functions that satisfy task requirements.
Chapter 3. Framework: Correspondence as a Structural Primitive

FIGURE 3.1: Realizing abstract structure through parameterized optimization. Two models optimized with the same data D and task loss but different extrinsic factors (architecture and regularization vs. ) produce learned functions that encode similar intrinsic semantic relationships yet through incompatible coordinate systems ( vs. , with the latent dimensions). The resulting manifolds exhibit similar geometry embedded in extrinsic coordinates that differ by arbitrary transformations; and in the figure denote the encoders of the two models (trained with regularizers ) applied to denotes each resulting manifold, and denote .
This realization is illustrated in Fig. 3.1: two models with different extrinsic configurations produce geometrically similar manifolds in incompatible coordinates.
From Function Parameterization to Data Encoding. As shown in Fig. 3.1, the encoder of the learned model produces representations forming the manifold . These representations are themselves a form of parameterization: they encode data through coordinate choices determined by architecture and optimization. Different architectures can realize similar semantic structure I through incompatible parameterizations—a CNN and Transformer trained on ImageNet may both learn that cats cluster with dogs and separate from vehicles, yet encode these relationships through coordinate systems with different dimensionalities, orientations, and scales. Just as parameterizes the learned function, the representations of observations o parameterize the data's semantic content. Architecture is the vehicle for instantiating abstract structure; it does not determine what structure exists.
Terminology: Encoders and Decoders. Throughout this thesis, we use encoder to denote whatever function precedes the representation space of interest—the computational pathway from input to latent representation. Conversely, decoder denotes
Figure adapted from Autoencoder Diagrams by Keenan Crane (2025), used under CC0 1.0 Universal. Adaptation by Baoying Wang.
3.2. Correspondence as Primitive
19
whatever function follows the representation space—the pathway from latent representation to output. For a classification network, the encoder usually comprises convolutional layers and pooling operations that produce feature representations, while the decoder is the classification head mapping features to class logits. For a generative model, the encoder maps inputs to a latent bottleneck, while the decoder reconstructs outputs from latent codes. For a language model, intermediate layer activations are the representations, with earlier layers forming the encoder and later layers the decoder. This functional decomposition (input → encoder → representation → decoder → output) applies regardless of architectural details, allowing us to discuss representation transformation in a general way across diverse model types.
This separation of intrinsic structure from extrinsic parameterization is empirically observed across the thesis: models trained on related data with discriminative objectives consistently learn similar semantic relationships despite architectural differences. The alignment methods presented rely on architecture parameterizing semantic structure; they would fail if architecture determined it. Architecture provides inductive biases affecting learning efficiency, but when capacity is sufficient and objectives discriminative, different architectures converge to functionally similar solutions.
3.2 Correspondence as Primitive
Terminology and Glossary. The framework concepts introduced in this chapter—correspondence-parallel operators, correspondence-coupled operators, semantic coordinates, intrinsic factors, extrinsic factors, and correspondence itself—receive comprehensive definitions in the List of Symbols (Glossary), where they are referenced throughout subsequent chapters. Each glossary entry provides a formal definition, geometric interpretation, and pointers to relevant sections, allowing readers to consult precise specifications when encountering these terms in later chapters. This design enables method chapters to reference framework concepts concisely through glossary lookups, without repeating definitions, maintaining conceptual clarity while avoiding redundancy.
Section 3.1 established that models can learn similar intrinsic semantic structure through different extrinsic parameterizations, yet these parameterization differences create incompatible coordinate systems. How do we reveal the hidden functional similarity? The answer is correspondence: establishing semantic relationships between observation spaces that anchor arbitrary coordinates to shared semantic content. Correspondence is the fundamental primitive that enables all transformation methods in this thesis.
Defining Correspondence. In its most general form, a correspondence establishes semantic relationships between observation spaces and , operating on power sets to relate collections of elements. This general definition accommodates sophisticated structures: set-based correspondences that relate groups of observations, probabilistic correspondences that assign confidence weights to pairings (a weighted extension of this relation), or hierarchical correspondences that organize semantic relationships at multiple scales. While such sophisticated structures arise in certain applications, most methods in this thesis employ a simpler element-wise form: , which pairs individual observations based on shared semantic meaning. Encoders and
Chapter 3. Framework: Correspondence as a Structural Primitive
map these observations into the representation spaces and of the source and target models. The image of under the encoders gives the paired representations that the operators of Section 3.3 consume; these operators act on and . The observations enter only through the encoders.
Notation. Throughout the thesis, observations are collected in finite datasets . An encoder is followed by a decoder or task head , and the whole model is . A representation is one row of the matrix that stacks samples. Anchors are observations whose embeddings form the rows of ; a similarity sim and the relative projection rel built on it are defined in Chapter 4. Concrete maps between spaces are written (general linear), (orthogonal), (permutation or coupling), and (bias), and denotes a generic transformation from a class . Scalars are italic, vectors bold lowercase, matrices bold capitals, and spaces and sets calligraphic.
What does “shared semantic meaning” mean concretely? We establish correspondence when we recognize that elements from different spaces refer to the same concepts or to semantically similar concepts within a defined relationship. An image from the source model’s training set and image from the target model’s training set both depict cats from the same ImageNet class (identical concept). Two sentences are translations of each other in different languages, performing equivalent semantic functions despite different surface forms (translation equivalence). Two images show the same scene in different artistic styles (instance pairing with varying attributes). These are all instances of correspondence—identifying when elements from different spaces should be semantically aligned, despite living in incompatible coordinate systems.
What Correspondence Reveals. To understand why correspondence is fundamental, consider what happens when we lack it. Take two models trained on identical data but with different random initialization seeds. Their learned representations encode the same semantic structure—both know cats are near dogs, both separate vehicles from animals—yet this structure lives in coordinate systems that differ by an unknown, arbitrary transformation. Without correspondence, we cannot determine which dimensions in the source model encode which concepts, or how the source model's encoding of "cat" relates to the target model's encoding of the same concept. The coordinate systems remain incomparable despite underlying functional similarity.
Correspondence breaks this symmetry by anchoring arbitrary coordinates to shared semantics. When we identify pairs with shared semantic meaning—both occurrences of the word "cat," or the same ImageNet image seen by both models—we constrain the arbitrary degrees of freedom that independent optimization introduced. The models' representations of must correspond to their representations of , providing semantic anchors that fix coordinate alignment. These anchors reveal which geometric properties reflect intrinsic functional structure preserved across models, distinguishing them from extrinsic implementation artifacts that depend merely on coordinate choice.
The type of correspondence determines what geometric structure can be exploited. Angular correspondence relates directions in representation space, revealing cosine
3.2. Correspondence as Primitive
21
similarity patterns and directional alignment. Metric correspondence preserves pairwise distances, exposing quasi-isometric structure and enabling distance-preserving transformations. Spectral correspondence derives from eigendecompositions of manifold operators, revealing functional bases and frequency content. Component-level correspondence identifies which neurons or attention heads encode which concepts, enabling surgical interventions on individual units. Distributional correspondence operates on statistical properties of collections of examples, capturing covariance structure and higher-order moments. Each correspondence type unveils different intrinsic geometry, and correspondence strength determines how reliably that geometry can be exploited for transformation.
Informal Taxonomy. Correspondences vary considerably in strength and specificity, and understanding this spectrum proves essential for selecting appropriate methods and setting realistic expectations for transformation quality.
Shared semantic anchors provide the strongest correspondence: identical observations encoded by both spaces. The same CIFAR-10 images processed by different vision models, identical sentences embedded by different language models, the same visual stimuli recorded in the fMRI responses of different subjects (Section 9.1)—each pair provides a direct semantic touchpoint where representations refer to exactly the same entity. This cleanest form of correspondence enables precise geometric comparisons across models.
Cross-modal pairs occupy the next tier: semantically related but structurally different observations. Image-caption pairs for vision-language models, translation equivalents for multilingual systems—these correspondences bridge different representational structures that encode shared semantic content. They exceed shared anchors in an important sense: they unite images with text, or different languages, through semantic equivalence. An image is not a caption, yet both refer to the same concept, demanding methods that handle this structural heterogeneity while respecting semantic unity.
Task structure provides weaker but still useful correspondence through shared objectives or label spaces, without requiring instance-level pairing. Two models trained to classify cats versus dogs develop similar decision boundaries even if trained on completely different image sets, because the task itself provides implicit correspondence: the cat-versus-dog semantic axis should align across models. Methods exploit this by using task labels to identify relevant representational structure without requiring paired examples, though the resulting correspondence is less precise than explicit pairing.
Distributional patterns provide the weakest but most general correspondence through statistical properties inferred from activation patterns: means, covariances, spectral decay rates, activation sparsity. Without explicit pairing, methods rely on distributional assumptions—similar concepts cluster, different concepts separate—enabling unsupervised alignment when no explicit correspondence exists. This generality comes at a cost: success requires stronger geometric assumptions about representation structure.
3.2.1 Correspondence Encodes Task Intent
Correspondence choice is not neutral: it implicitly encodes a task. The same pair of representation spaces admits multiple different correspondences, each appropriate for
Chapter 3. Framework: Correspondence as a Structural Primitive
different tasks, and this task-conditional nature determines method selection while predicting success or failure.
Consider two contrasting scenarios, both involving image models but requiring different correspondences. In the first scenario—cross-modal retrieval in the style of CLIP—the goal is to find images that match text queries. The appropriate correspondence pairs concepts across modalities: where both refer to the same concept (for instance, both representing “cat”). If we arrange these pairs in a matrix, different concepts appear in different rows: (cat-image, cat-text), (dog-image, dog-text), and so on, while the same concept appears across columns in different modalities. This correspondence structure encodes a specific semantic intent: cross-modal representations should be similar. An image of a cat should retrieve the word “cat” because they share semantic content despite living in different modalities.
The second scenario—style transfer toward Van Gogh’s artistic style—requires completely different correspondence structure despite potentially using similar generative models. Here, the appropriate correspondence pairs instances with and without the target property: where both represent the same scene or object, but one is rendered in regular style while the other exhibits Van Gogh’s characteristic brushwork and color palette. Arranged as a matrix, each row holds one instance (a house in regular style, the same house in Van Gogh style), while the columns are the two style conditions (without target style, with target style). This correspondence encodes distributional intent: learn the transformation that adds “Van Gogh-ness” to any image, capturing stylistic difference as a shift in representation space.
The contrast is evident. Visualized as matrices, both have one pair per row, but the pairs share different things: in the two columns share the concept and differ in modality, while in they share the instance and differ in style. Correspondence structure directly reflects task structure: using the wrong correspondence for a given task fails regardless of transformation method sophistication. Style transfer cannot be learned from cross-modal pairs, nor can retrieval succeed with style-paired instances.
Standard Correspondences and Transfer. Not all correspondences transfer equally. Some follow standard semantics: they align with the general semantic structure models learned during pretraining, before task-specific fine-tuning. Linguistic structure correspondences derived from Wikipedia—capturing relationships between words, grammatical patterns, and semantic fields—transfer successfully to Amazon product reviews because both domains share underlying grammatical and semantic patterns. Such correspondences align with the geometry models discover during training on general objectives, making them robust across domains.
Why does this transfer work so reliably? Models trained with sufficiently general objectives—language modeling over diverse text, image classification on datasets with thousands of categories—learn broad semantic structure extending well beyond the specific training distribution. They discover that certain concepts cluster together, that particular relationships recur across contexts, that specific transformations preserve meaning. Correspondences respecting this learned structure, anchoring to the same semantic axes the model already discovered, transfer successfully across domains by building on structure the model already internalized. The model has decomposed its representations along meaningful dimensions; correspondence merely identifies which dimensions correspond across different contexts or different models.
In contrast, task-specific correspondences are optimized for particular applications and transfer only within domains sharing the specific task structure. The Van
3.3. Two Operator Families Enabled by Correspondence
23
Gogh style correspondence is excellent for style transfer but irrelevant for object classification tasks. The image-caption correspondence is perfect for cross-modal retrieval but unhelpful for fine-grained texture discrimination. The distributional correspondence that enables one type of steering may fail completely when applied to a different downstream task. This highlights that correspondence design is task-conditional: we must choose to align with both the geometric structure the model learned and the specific application we have in mind.
3.3 Two Operator Families Enabled by Correspondence
We now examine how to exploit a given correspondence for transformation. Methods in this thesis instantiate two operator families distinguished by how they use correspondence: independently per space, or jointly across both sides. The distinction determines critical trade-offs between modularity and decoder compatibility.
Correspondence-parallel operators ( ) transform each space independently using only its side of the correspondence, indexed consistently with the other side. Space uses only the encodings of from pairs , while space independently uses only . Outputs align because they reference semantically corresponding elements, producing representations in shared auxiliary coordinates. Correspondence-coupled operators ( ) use both sides together, exploiting pairing relationships to construct explicit transformations from source to target coordinates, producing outputs in the target's native space. This choice involves inherent trade-offs, summarized in Table 3.1: parallel operators offer modularity but require auxiliary decoders; coupled operators enable direct decoder reuse but demand pairwise estimation.
3.3.1 Correspondence-Parallel Operators
Correspondence-parallel operators exploit correspondence through independent transformations that align because they reference semantically corresponding elements. Given a correspondence with paired elements , we construct two separate operators. Space transforms using only , encoded as —its side of the correspondence—while space independently transforms using only , encoded as . These transformations occur in complete isolation: space never accesses representations from and vice versa. Compatibility comes from the semantic correspondence between the elements each space uses; the two transformations never interact directly.
We denote these operators as and , with the superscript emphasizing that each space uses its correspondence side independently. Outputs and live in a shared coordinate system because the correspondence structure itself defines their common coordinate frame; the transformations do not interact during computation. When refer to the same semantic entity—the same image, the same concept, the same linguistic structure—the transformation applied using in space becomes semantically analogous to the transformation applied using in space , despite their computational independence.
Output Space. Correspondence-parallel operators produce outputs in an auxiliary coordinate system defined by the correspondence structure itself. This coordinate system differs from the extrinsic coordinates of both original spaces. The transformed representations live in a shared space whose axes are defined by the correspondence
Chapter 3. Framework: Correspondence as a Structural Primitive
domain—semantic anchors, task labels, spectral frequencies, or other structure captured by the correspondence. This can be thought of as living in semantic coordinates.
Key Property: Modularity. The primary advantage of correspondence-parallel operators is one-to-many modularity, making them attractive for model ecosystems. Once we compute for the source model, this transformed representation becomes immediately compatible with any other model transformed using the same correspondence . Adding a new model to the ecosystem requires only applying to its representations , using the side of that lives in its input domain; no modification of existing transformations is necessary, and no pairwise mappings need to be learned. This modularity allows the approach to scale efficiently to an effective “nexus” of models and representation spaces, where the cost of pairwise methods would become prohibitive. Multi-modal retrieval systems that must align vision, language, and audio representations; model zoos where new models are continually added; continual learning scenarios where new tasks introduce new models—all benefit from this one-to-many scaling.
Trade-off. The fundamental trade-off is that outputs live in auxiliary coordinates, outside any model's original extrinsic space, which makes them incompatible with pretrained decoders. To generate outputs—images, text, actions—we must either train auxiliary decoders specific to the semantic coordinate system, learn inverse mappings to reconstruct original coordinates, or restrict ourselves to tasks like retrieval where auxiliary coordinates suffice. We gain modularity at the cost of direct decoder compatibility and space-specific nuances, a trade-off that determines when parallel operators are appropriate.
3.3.2 Correspondence-Coupled Operators
Correspondence-coupled operators take a different approach: they use both sides of the correspondence together to construct explicit transformations from source to target. Given a correspondence with paired elements , these operators require simultaneous access to both paired elements and their relationships, using the joint structure of pairs to estimate transformation parameters that map directly from source coordinates to target coordinates. We denote these operators as , emphasizing that they exploit the full correspondence structure to construct mappings between spaces.
The key conceptual difference from correspondence-parallel operators is that we exploit the pairing relationship itself: both that and refer to the same semantic entity and how they relate within their respective coordinate systems. This allows us to estimate coordinate transformations that map from source to target while preserving relevant geometric structure. The crucial advantage is that outputs live in the target's native extrinsic coordinate system. The transformed representation lives in the same space as , with the same dimensionality, scale, and structure, making it immediately ready for use with the target model's pretrained decoder.
Decoder Reuse and Zero-Shot Stitching. This direct compatibility with target decoders enables powerful applications. Transformed representations are immediately usable with the target's pretrained decoder—no auxiliary coordinate conversion, no inverse mappings, no new decoder training. This enables zero-shot stitching: composing encoder-transformation-decoder pipelines without joint training.
3.3. Two Operator Families Enabled by Correspondence
25
| Property | Parallel () | Coupled () |
| How is used | Independently per space ( and separate) | Both sides together (paired) |
| Output space | Auxiliary coordinates (defined by structure) | Target extrinsic coordinates (native to ) |
| Decoder compatibility | Requires auxiliary decoder | Direct reuse of target decoder |
| Modularity | High (one-to-many) | Lower (pairwise) |
| Primary advantage | Scales to many models | Immediate decoder compatibility |
| Primary trade-off | Cannot reuse decoders | Requires separate transform per pair |
| Example notation |
TABLE 3.1: Comparison of Operator Families. The families differ in how they exploit correspondence structure, where outputs live, and the resulting trade-offs between modularity and decoder compatibility.
We chain a source encoder, the learned transformation, and a target decoder into a complete pipeline, where the transformation preserves the metric properties and structural relationships the target decoder expects. Downstream tasks proceed as if the representations had been computed natively by the target model.
When is this essential? Generation tasks requiring target decoders to produce images or text; policy execution in reinforcement learning where actions must be generated in a specific format; classification with fixed decoders where we cannot modify the final layer—all scenarios demanding exact preservation of the target's coordinate system, making correspondence-coupled operators the natural choice.
Limitations. The main trade-off is reduced modularity compared to correspondence-parallel operators. Each source-target pair requires estimating a separate transformation , and adding a new target model with representation space demands estimating an entirely new transformation from scratch, limiting scalability to many-model ecosystems. Additionally, the target decoder must remain compatible with transformed representations: distributional shifts or artifacts can degrade performance even when representations live in the correct coordinate system. We gain direct decoder compatibility at the cost of modularity and scalability, a trade-off that becomes prohibitive when many target models must be supported.
Notational Shorthand for Same-Space Coupling. When correspondence-coupled operators apply within a single space —linking internal model components to semantic structure within one model—we use the shorthand for notational convenience; for same-space operators the correspondence pairs elements of one representation space with an external reference (text encodings, unembedding directions, a target distribution) rather than elements of two spaces. This pattern appears in methods like ResiDual (see Chapter 13), which aligns residual stream components to task attributes, HeadPursuit (see Chapter 14), which discovers head-to-concept correspondences, and LinEAS (see Chapter 15), which aligns
Chapter 3. Framework: Correspondence as a Structural Primitive
activation distributions within a single model. The underlying principle remains correspondence-coupled transformation; simply denotes the special case where domain and codomain coincide.
3.4 Empirical Framework and Thesis Scope
Hypothesis
The correspondence framework presented in this chapter rests on a central hypothesis validated empirically across fourteen research works spanning diverse domains and architectures:
When neural networks learn from semantically related data with sufficiently general training objectives, their intrinsic geometric structures converge. Establishing appropriate semantic correspondence between observation spaces reveals this convergence, exposing geometric properties that enable structure-preserving transformation.
This is an empirically robust phenomenon observed consistently across settings. It is not a formal theorem with provable sufficiency conditions. We demonstrate this principle across domains including vision, language, reinforcement learning, multimodal learning, and neuroscience; architectures ranging from CNNs and ResNets to Transformers, Vision Transformers, and graph networks; scales from small supervised models trained on modest datasets to large foundation models with billions of parameters; and tasks spanning classification, generation, retrieval, policy learning, and neural decoding. The consistency of this phenomenon across such diverse settings suggests a deep principle governing how neural networks represent semantic structure.
What We Demonstrate
Across these diverse settings, the thesis establishes several key empirical findings that validate the correspondence framework.
First, correspondence reliably reveals exploitable geometric structure. Semantic correspondence consistently exposes geometric properties—angular relationships, metric structure, spectral frequencies, sparse patterns, distributional characteristics—that enable transformation between models without retraining or joint optimization. This reliability across different types of geometric structure suggests that correspondence acts as a fundamental primitive for representation manipulation.
Second, the two operator families introduced in this chapter cover a broad spectrum of use cases while instantiating the same underlying principle. Correspondence-parallel operators provide modularity and efficient scaling to many models, making them ideal for model ecosystems and multi-target scenarios. Correspondence-coupled operators provide direct decoder compatibility, enabling generation and policy execution. Despite their different trade-offs, both families exploit correspondence-revealed structure, demonstrating that the framework accommodates diverse application requirements within a unified conceptual lens.
Third, task-conditional correspondences extend the framework’s reach to diverse applications. By choosing correspondence structure to match task intent—whether cross-modal retrieval requires concept alignment across modalities, style transfer requires instance pairing with and without target properties, or policy stitching uses
3.4. Empirical Framework and Thesis Scope
27
shared anchor observations—we apply the same principle to qualitatively different problems. The correspondence choice encodes the task objective, making the framework adaptable across tasks.
Fourth, exploiting correspondence-revealed structure yields sample efficiency gains. Methods that use correspondence typically require few pairs (Chapters 6 and 12) or few unpaired samples (Chapter 15), showing how semantic structure helps the optimization process when applied or lets it be sidestepped entirely.
Fifth, we identify boundary conditions and failure modes, providing practical guidance for when methods succeed and when they fail. Insufficient correspondence—too few pairs, weak semantic relationships, noisy alignments—produces unreliable transformations (on CIFAR-10, retrieval with only the seed anchors of Chapter 6 falls far below retrieval with the full anchor set, Table 6.2). Violated geometric assumptions—assuming metric preservation when only angular structure aligns, or vice versa—yield poor results (across architectures, the zero-shot product of invariances can score below a single metric; Section 5.4). Architectural incompatibility—attempting to align models that learned fundamentally different semantic structures due to divergent task objectives—cannot be overcome by correspondence alone. By characterizing these failure modes empirically (see also the limits stated in Section 9.2.1), we provide practitioners with realistic expectations and diagnostic tools.
What We Do NOT Claim
This thesis does not provide formal sufficiency conditions guaranteeing when correspondence will reveal alignable structure. We do not prove theorems of the form: "If architecture satisfies a given constraint, data satisfies a given property, and objective satisfies a given condition, then correspondence reveals alignable structure with probability ." Such formal guarantees would require theoretical machinery that does not yet exist for understanding the geometric properties of learned neural representations.
What we provide is mathematical precision in defining the framework itself. We rigorously define correspondence and characterize what semantic relationships it establishes between observation spaces. We precisely specify the operator families and , their domain-codomain structure, and their composition patterns. We mathematically formulate the transformations that exploit correspondence to map between representation spaces. We characterize the geometric invariances each method preserves, whether angular, metric, spectral, sparse, or distributional. The framework components are mathematically well-defined.
However, determining whether the framework applies successfully to a specific model pair remains empirical. We cannot predict a priori whether two given models will have sufficiently similar intrinsic geometry for correspondence to enable useful transformation. Each method chapter therefore follows consistent empirical methodology: stating correspondence assumptions explicitly, validating those assumptions on real problems with authentic experimental results, discussing the failure modes and boundary conditions it observes (for example Sections 5.4 and 9.2.1), and providing practical guidance for when to use or avoid the method based on observed performance patterns.
The contribution of this thesis is systematic empirical demonstration. It does not offer formal proof. We show that correspondence-enabled transformation works reliably enough, across enough diverse domains and architectures, with sufficient sample efficiency, to constitute a general principle for representation manipulation.
Chapter 3. Framework: Correspondence as a Structural Primitive
But “reliably enough” is validated through extensive experimentation per application domain; theoretical analysis does not formally guarantee it. This empirical stance is both honest about the current state of understanding and pragmatically useful for practitioners needing methods that work in practice.
Part II
Semantic Coordinates: Parallel Operators

Three Worlds by M.C. Escher (1955). Three representations—reflection, surface, and depth—coexist in a single manifold, illustrating independent projections onto shared semantics.
© The M.C. Escher Company, The Netherlands. All rights reserved. Reproduced for academic, non-commercial use.
Two networks trained apart describe the same concepts in coordinates that have nothing in common, much as two languages name the same things with different words. What the two share is the relations among the things they represent, and a correspondence, a set of elements known to mean the same in both, is enough to expose those relations. The operators of this part do exactly that and nothing more: each model describes its own space relative to the shared elements, and the descriptions can then be compared, composed and transferred across models, architectures and modalities, without any model ever seeing another and without training anything jointly.
Neural representations come from optimization in arbitrary coordinate systems chosen by random initialization, stochastic gradient descent trajectories, and architectural constraints. These extrinsic coordinates obscure the intrinsic geometric structure determined by semantic content in the data. Correspondence-parallel operators transform extrinsic coordinates to semantic coordinates—intrinsic representations anchored to shared semantic relationships, independent of the coordinate frame that optimization happened to produce.
These operators transform spaces independently: each model uses only its side of the correspondence, projecting onto its own anchors or extracting its own geometric structure without accessing other spaces. The outputs live in auxiliary semantic space where geometric relationships become directly comparable across independently trained systems. This design offers modularity—one semantic space can interface with many models, requiring a number of transformations linear in the number of models; aligning every pair would require a quadratic number. The cost is decoder incompatibility: semantic coordinates live in auxiliary space, separate from the target models' native coordinates, requiring decoders trained explicitly on semantic representations.
Chapter 4 introduces the foundational operator, relative representations, which describes each sample by its angles to a set of anchors in correspondence. Chapter 5 composes several such projections, each invariant to a different class of transformations, into a product space in which the task selects the relevant geometry. Chapters 6 and 7 turn to the correspondence itself: the former expands a small seed of anchor pairs into a full correspondence, the latter scales it to millions of image-text pairs to assemble multimodal models without training. Chapter 8 removes the need for paired samples altogether by learning the alignment through optimal transport, and Chapter 9 carries the same operators to neuroscience, ensemble uncertainty, and reinforcement learning.
Chapter 4
Relative Representations Enable Zero-Shot Latent Space Communication
THIS CHAPTER IS BASED ON THE FOLLOWING PUBLICATION:
Relative representations enable zero-shot latent space communication
Luca Moschella*, Valentino Maiorca*, Marco Fumero, Antonio Norelli,
Francesco Locatello, Emanuele Rodolà
ICLR 2023 (Oral, notable-top-5%)
Code: https://github.com/lucmos/relreps
TL;DR: A data correspondence across latent spaces can condition a transformation that enables zero-shot alignment between them.
4.1 Introduction
This chapter presents relative representations (RelRep), the foundational correspondence-parallel operator that enables zero-shot communication between independently trained models.
As established in Chapter 3, neural networks trained on similar data with similar objectives discover similar semantic relationships but parameterize them through incompatible coordinate systems due to extrinsic factors. Training the same autoencoder with a 2-dimensional bottleneck on MNIST several times from scratch yields latent spaces that differ from one another (Fig. 4.1). Absolute coordinates shift with each training run, yet angular relationships between points remain approximately the same across all realizations: the spaces are equal only up to a nearly isometric transformation.
The core assumption of the method explains why angular relationships persist when absolute coordinates vary: optimization stochasticity—random initialization, data shuffling, hyperparameters and other stochastic factors—induces angle-preserving transformations (rotations, reflections and rescaling) on the learned representation space. These transformations preserve angles between vectors but scramble absolute positions. Cosine similarity factors out these transformations by construction, measuring only the angle between representations regardless of coordinate frame.
Chapter 4. Relative Representations

FIGURE 4.1: Latent spaces learned by distinct trainings of the same AE on the MNIST dataset. The bottleneck has size 2, thus there is no dimensionality reduction involved in the visualization of the latent space. The stochasticity in the training phase induces intrinsically similar representations.
However, cosine similarity compares two vectors of the same space, and direct comparison between independently trained spaces remains notoriously challenging: which neurons in model A correspond to which neurons in model B? The solution is to establish a shared reference frame using anchors in correspondence ( ) across the two spaces—the same samples, or parallel ones such as translations. By computing angular relationships to these anchors, semantic coordinates are obtained that are directly comparable across models.
Relative representations implement this through angular projection onto shared anchors: , where is the embedding of an observation (all defined in Section 4.1.1 below). This correspondence-parallel operator inherits this invariance, revealing the intrinsic angular geometry. Each dimension measures semantic proximity to a shared reference point, yielding coordinates that generalize across architectures, random seeds, languages and datasets, and, with parallel data, even modalities (Chapter 7). The method's power lies in its simplicity: no optimization, no learned parameters, no iterative refinement—just matrix multiplication computing cosine similarities.
Building on the alignment methods reviewed in Chapter 2, RelRep demonstrates that correspondence-parallel transformation using angular invariances enables: (1) zero-shot stitching between models trained with different seeds or architectures, (2) zero-shot stitching across languages and datasets through parallel and out-of-distribution anchors, and (3) a quantitative differentiable measure of model performance correlated with standard downstream metrics.
These capabilities establish the foundation for extensions in Chapters 5 to 9 (correspondence-parallel variants) and enable the bridge to correspondence-coupled operators (Chapter 10).
4.1.1 Relative Representations
Given a training set , a neural network learns an embedding function with parameters , which maps each sample to its latent representation, or absolute representation, .
To build the representation, a subset of the training data is selected, denoted as anchor samples. Every sample in the training distribution will be represented with respect to the embedded anchors with . As a measure capturing the relation between the anchors and the other samples, we consider a generic similarity function , yielding a scalar score between two absolute representations. Given the anchors in an arbitrary ordering
4.1. Introduction
33
, we define the relative representation of as:
Figure 4.2 illustrates the key differences between absolute and relative representations.

FIGURE 4.2: Left: Three anchors (colored stars) are selected on the data manifold; given a point on the manifold (blue dot), its similarity w.r.t. the three anchors is computed, yielding a vector of dimensionality 3 (middle). Right: Each dimension is treated as coefficients in a coordinate system defined by the anchors. Anchors are orthogonal in this example only for visualization purposes.
Choice of the anchors. Anchors directly affect the expressivity of the relative representation space, and are related to the task at hand. For example, in a classification task, we should sample anchors from each class in the training set, in order to well represent each data sample in D.
One case of interest arises when the data comes from different domains or modalities , , and a partial correspondence relates a subset of to a subset of . In this case, anchors can be sampled, and corresponding anchors on the other domain obtained directly as (Norelli et al., 2023). These are referred to as parallel anchors. An example of parallel anchors appears in Section 4.3.2, where and are Amazon reviews in two different languages.
The choice of the anchors is not restricted to elements in the training distribution. Given an encoder pretrained on a fixed training distribution, elements from a set that is out-of-domain w.r.t. can be picked, and the relative representations built on top of . These are referred to as OOD anchors and exploited, e.g., to solve domain adaptation tasks where access to correspondence is unavailable and data labels are scarce. Real-world examples appear in Sections 4.3.2 and 4.3.3. For a preliminary analysis of different anchor selection strategies, see the “Anchors analysis” section of the appendix of Moschella* & Maiorca*, et al. (2023).
Achieving latent invariance. The cosine similarity is chosen as the similarity function due to the properties it induces on the relative representation. The cosine similarity is the dot product of unit vectors, corresponding to the cosine of the angle between the two:
The value does not change if we apply the same angle-preserving transformation T to two vectors u and v, i.e., the cosine similarity is invariant to rotations, reflections, and rescaling. While this is not true for translations, NNs commonly employ normalization techniques (e.g., InstanceNorm (Ulyanov et al., 2016)) to center
Chapter 4. Relative Representations
the latent spaces. Under this assumption, cosine similarity guarantees a relative representation invariant to angle-preserving transformations.
This means the encoder can be replaced by any other encoder that produces different representations with same angles, i.e.:
where and , and is an arbitrary angle-preserving transformation. A practical application of this invariance is the possibility of comparing latent spaces across multiple trainings, and re-using models as demonstrated in Sections 4.2 and 4.3.
We remark that other choices of similarity function can be made to enforce different invariances into the representation. For example, one may impose invariance to non-isometric deformations with bounded distortion. This was not necessary in the experiments of this thesis, as NNs that generalize sufficiently well can handle small perturbations. Nevertheless, this invariance can be enforced by design with vector quantization algorithms, leaving further exploration to future work.
4.2 Latent Space Communication
This section demonstrates how relative representations can effectively be used to produce latent spaces that are stable under a variety of factors. The central question is: Given two different learning models that are trained separately on different data, can their latent embeddings be compared? This assumes that the two models are trained on a similar phenomenon, e.g., on two different samplings of the English language or on two different modalities.
The answer is yes: the angular invariance enables effective communication between different but semantically equivalent latent spaces. The analysis shows how different word embedding spaces, once projected onto relative representations, are intrinsically the same (Section 4.2.1); how the relative projection preserves the metric of each space (Section 4.2.2); how the similarity between the relative counterparts of two or more embedding spaces is a good predictor of model performance (Section 4.2.3); and confirms that relative representations in the training phase are not detrimental to performance (Section 4.2.4).
4.2.1 Word Embeddings
Experimental setting. Two different word embeddings on the English language are selected, namely FastText (Bojanowski et al., 2017) and Word2Vec (Mikolov et al., 2013a). Both models are pretrained on different data, but partly share a vocabulary from which 20K words are extracted. Using 300 randomly drawn parallel anchors, each embedding space is converted to a relative one. Table 4.1 (left) shows the original and the relative embeddings.
For each word , its corresponding encodings and in the source and target space are considered; the metrics are computed on in the absolute setting and on in the relative setting. Three different metrics measure their similarity (in a setting similar to Vulić et al. (2020)): (i) Jaccard: the discrete Jaccard similarity between the set of neighbors of in and of in ; (ii) Mean Reciprocal Rank: measures the (reciprocal) ranking of among the top- neighbors of in the target space; (iii) Cosine: measures the cosine similarity between and . For
4.2. Latent Space Communication
35
implementation details, see the "Implementation Details" section of the appendix of Moschella* & Maiorca*, et al. (2023).

| Source | Target | Jaccard ↑ | MRR ↑ | Cosine ↑ | |
|---|---|---|---|---|---|
| Absolute | FT | FT | 1.00 ± 0.00 | 1.00 ± 0.00 | 1.00 ± 0.00 |
| W2V | 0.00 ± 0.00 | 0.00 ± 0.00 | 0.01 ± 0.00 | ||
| W2V | FT | 0.00 ± 0.00 | 0.00 ± 0.00 | 0.01 ± 0.00 | |
| W2V | 1.00 ± 0.00 | 1.00 ± 0.00 | 1.00 ± 0.00 | ||
| Relative | FT | FT | 1.00 ± 0.00 | 1.00 ± 0.00 | 1.00 ± 0.00 |
| W2V | 0.34 ± 0.01 | 0.94 ± 0.00 | 0.86 ± 0.00 | ||
| W2V | FT | 0.39 ± 0.00 | 0.98 ± 0.00 | 0.86 ± 0.00 | |
| W2V | 1.00 ± 0.00 | 1.00 ± 0.00 | 1.00 ± 0.00 |
TABLE 4.1: Qualitative (left) and quantitative (right) comparisons of English word embeddings using absolute and relative representations. PCA is applied only for visualization. All metrics are calculated with averaged over 20K words and across 10 different random seeds. For visualizations with other dimensionality reductions and similar experiments on CIFAR-10, see the “Anchors analysis” and “Additional results” sections of the appendix of Moschella* & Maiorca*, et al. (2023).
Result analysis. Table 4.1 (left) highlights clusters of semantically similar words and shows that the absolute representations are incoherent across the two latent spaces, while the relative embeddings are highly similar. The average Jaccard similarity reported in Table 4.1 (right), says that the word neighborhoods of the relative representations overlap by 34% on average in one direction and 39% in the other (the remaining 61–66% is due to semantic differences, that are not taken into account by the discrete nature of the Jaccard metric). By contrast, the absolute neighborhoods share no words (Jaccard score equal to zero); for a match to happen, it would mean that the FastText and Word2Vec embeddings of a given English word are almost the same, which is highly unlikely. MRR, close to a perfect score for the relative representations, shows that the most-similar word to a given one is usually itself, even if their cosine similarity doesn't reach 1.
Overall, these results show that relative representations are preserved across different word embedding models, validating the core assumption of the method.
4.2.2 Preservation of Metric Structure
The previous subsection demonstrated that relative representations enable direct comparison across different word embedding models. This subsection analyzes how the transformation preserves the underlying metric structure of the absolute spaces.
Let and stack the absolute embeddings of two spaces , (FastText and Word2Vec), with corresponding relative embeddings and , where is the number of anchors. While Table 4.1 showed that and become well-aligned in the relative space, it remains to verify whether self-similarities within each space are preserved by the relative transformation.
Figure 4.3 quantifies this preservation by measuring correlations between pairwise similarities within each space before and after the relative transformation. The vertical arrows in the figure show Pearson correlation coefficients between absolute and
Chapter 4. Relative Representations
relative self-similarities, indicating how much of the geometric structure is retained through the coordinate transformation. Besides enabling latent space communication across models, relative representations preserve the underlying absolute latent space metric up to a certain degree (Pearson correlation 0.79 for FastText and 0.78 for Word2Vec).
This preservation property matters for practical applications: the correlations suggest that semantic relationships encoded in the absolute geometry remain accessible after the relative projection.

FIGURE 4.3: Self-similarity correlations between absolute and relative spaces for FastText and Word2Vec. Blue nodes represent self-similarities in the absolute embeddings X, Y; green nodes represent relative spaces , (in the figure, A, B are X, Y and C, D are , ). Vertical arrows indicate how much the underlying metric in the absolute space is preserved by the relative coordinate transformation, measured via Pearson correlation coefficient. Horizontal and diagonal arrows give the same correlation between the two models' (absolute or relative) self-similarities.
4.2.3 Latent distance as a performance proxy
Experimental setting. This experiment considers a node classification task on the Cora graph dataset (Sen et al., 2008). First, a reference model that achieves good accuracy on a validation set is trained. Then, 2000 models are trained with various combinations of seed, number of epochs, number of layers, dropout probability, activation functions, optimizer type, learning rate or type of graph embedder. All the models are classically trained using absolute representations, which are converted to relative post-training by projecting the embeddings onto 300 randomly drawn but fixed anchors. For each model, its classification accuracy is measured and the similarity of its space with the reference one computed. This similarity is computed as the average cosine similarity between the node embeddings produced by a given model and the corresponding embeddings in the reference.
Result analysis. The scatter plot in Fig. 4.4 (left) shows that better-performing models tend to be the ones with the latent spaces most similar to the reference. The performance-similarity correlation also holds over time, as shown in Fig. 4.4 (right). For additional correlation examples, see the “Additional results” section of the appendix of Moschella* & Maiorca*, et al. (2023). This metric is differentiable, enabling an explicit supervision signal on the latent space, which does not require labeled data and could be readily exploited in a teacher-student framework.
4.2. Latent Space Communication
37

Similarity

Epochs
FIGURE 4.4: Graph node classification task on Cora. Left: Correlation between the performance of models and the similarity of their latent spaces with respect to a well-performing reference model. Right: The same correlation plotted over time. The mean Pearson correlation over all models is 0.955, after filtering out the models having best validation accuracy below 0.5.
Overall, these results suggest that the similarity between the relative representations of latent spaces is a good proxy to evaluate model performance.
4.2.4 Training with Absolute vs. Relative representations
Experimental setting. Architectures that do or do not employ the relative representation while training are compared. In these experiments, the models vary slightly according to the dataset; however, the relative and absolute versions are always comparable in terms of architecture, number of learnable parameters and hyperparameters. The “Implementation Details” section of the appendix of Moschella* & Maiorca*, et al. (2023) and the open-source code provide further implementation details. Classification tasks on several datasets are considered, spanning the image domain (LeCun et al., 1998; Krizhevsky, 2009; H. Xiao et al., 2017) and the graph domain (Yang et al., 2016).
TABLE 4.2: Performance comparison between relative and absolute representations on several image and graph datasets. The metric is the classification weighted F1 score ( std), over 6 seeds (image datasets in %, graph datasets as fractions).
| Image Classification | Graph Node Classification | ||||||
|---|---|---|---|---|---|---|---|
| MNIST | F-MNIST | CIFAR-10 | CIFAR-100 | Cora | CiteSeer | PubMed | |
| Relative | 97.91 ± 0.07 | 90.19 ± 0.27 | 87.70 ± 0.09 | 66.72 ± 0.35 | 0.89 ± 0.02 | 0.77 ± 0.03 | 0.91 ± 0.01 |
| Absolute | 97.95 ± 0.10 | 90.32 ± 0.21 | 87.85 ± 0.06 | 68.88 ± 0.14 | 0.90 ± 0.01 | 0.78 ± 0.03 | 0.91 ± 0.01 |
Result analysis. The results, reported in Table 4.2, show that relative representations, when used at training time, are not detrimental to performance in general. This is further shown in Tables 4.4 to 4.6, where a subset of the results compares the absolute and relative representations on a variety of domains, datasets and tasks. For comparative results across more datasets and tasks, see the “Additional results” section of the appendix of Moschella* & Maiorca*, et al. (2023).
Overall, these results show that relative representations are effective when involved in end-to-end training, without large performance drops.
Chapter 4. Relative Representations
4.3 Zero-Shot Model Stitching
This section illustrates how the latent space communication demonstrated in Section 4.2 enables zero-shot interoperability of pretrained neural components. In previous works, such as Lenc et al. (2015) and Bansal et al. (2021), stitching layers are trainable linear projections that allow swapping parts of different networks. In contrast, relative representations enable zero-shot stitching of different neural components, treating them as frozen black-box modules.
A generic stitched model is defined as the composition of an encoder that embeds data, plus a relative decoder specialized in a downstream task (classification, reconstruction). The stitching operation is always performed without training or fine-tuning, in a zero-shot fashion. Stitching capabilities are shown across combinations of different stochasticity sources (Fig. 4.5 and Table 4.3), neural architectures (Tables 4.4 and 4.5) or datasets (Table 4.6). Strong real-world applications in NLP (Section 4.3.2) and CV (Section 4.3.3), e.g., zero-shot predictions on novel languages, are presented. For implementation details, see the “Implementation Details” section of the appendix of Moschella* & Maiorca*, et al. (2023).

FIGURE 4.5: Reconstruction examples. Each column is a different image. The first row (S) shows the source images. Each block of rows is an architecture (AE, VAE); within it, each pair of rows is a representation (Abs., Rel.), non-stitched first, then stitched.
4.3.1 Image Reconstruction
Experimental setting. Zero-shot stitching is performed with AEs and VAEs trained end-to-end with absolute or relative representations on several datasets. For each combination of model and dataset, 5 trainings with different seeds are performed, and the resulting encoders and decoders are zero-shot stitched together.
Result analysis. In Fig. 4.5 the stitched models that employ absolute representations (Abs.) produce erroneous predictions, since the latent spaces obtained from distinct trainings are incompatible. Although the absolute VAE does not produce compatible latent spaces, it is regularized, thus all embeddings produced by the encoders correspond to wrong but semantically meaningful reconstructions. Relative representations (Rel.) exhibit almost indistinguishable reconstructions between the models trained end-to-end and the stitched ones. Quantitative results are in Table 4.3.
4.3. Zero-Shot Model Stitching
39
These results support the claim that relative representations are empirically invariant to training stochasticity.
TABLE 4.3: Stitching performance. The MSE (, std) between the input images and their reconstructions is computed over 5 different seeds; the last column averages the four datasets. Stitching with relative representations yields an error between 5 and 35 times lower than the absolute counterpart.
| MNIST | F-MNIST | CIFAR-10 | CIFAR-100 | MSE | |||
|---|---|---|---|---|---|---|---|
| AE | Abs. | Non-Stitch. | |||||
| Stitch. | |||||||
| Rel. | Non-Stitch. | ||||||
| Stitch. | |||||||
| VAE | Abs. | Non-Stitch. | |||||
| Stitch. | |||||||
| Rel. | Non-Stitch. | ||||||
| Stitch. | |||||||
4.3.2 Text Classification
This section shows practical examples of the use of parallel anchors (Section 4.1.1).
TABLE 4.4: Cross-lingual stitching performance comparison. The table reports the mean weighted F1 ( std) and MAE on Amazon Reviews coarse-grained, across 5 seeds.
| Decoder | Encoder | Absolute | Relative | ||||
|---|---|---|---|---|---|---|---|
| FScore | MAE | Translated | Wikipedia | ||||
| en | |||||||
| en | es | ||||||
| fr | |||||||
| ja | |||||||
Experimental setting. Two different text classification settings are considered.
Cross-lingual: given a review, the associated star rating is predicted, using multilingual data from the Amazon Reviews dataset (Keung et al., 2020). Following Keung et al. (2020), a binarized version of the task is used, with FScore and MAE as metrics. The “Additional results” section of the appendix of Moschella* & Maiorca*, et al. (2023) reports results on the fine-grained formulation. Four different pretrained language-specific RoBERTa transformers (Y. Liu et al., 2019) are adopted, and their zero-shot stitching performance on languages never seen by the classifier is evaluated. Parallel anchors are used in two variants: i) Translated: English reviews translated into the other languages; ii) Wikipedia: an external corpus, WikiMatrix (Schwenk et al., 2021), providing parallel sentences extracted from Wikipedia.
Cross-architecture: assessed on three different datasets: TREC (coarse) (Hovy et al., 2001), DBpedia (Zhang et al., 2015), Amazon Reviews (English split). Two different
=GOOGLETRANSLATE function available in Google Sheets.
Chapter 4. Relative Representations
TABLE 4.5: Cross-architecture stitching performance comparison. The table reports the mean weighted F1 (± std) for each dataset, across 5 different seeds.
| TREC | DBpedia | Amazon Reviews | |||
|---|---|---|---|---|---|
| Coarse | Fine | ||||
| Abs. | Non-Stitch | 91.70 ± 1.39 | 98.62 ± 0.58 | 87.81 ± 1.58 | 55.35 ± 3.19 |
| Stitch | 21.49 ± 3.64 | 6.96 ± 1.46 | 49.58 ± 2.95 | 19.01 ± 2.04 | |
| Rel. | Non-Stitch | 88.08 ± 1.37 | 97.42 ± 2.05 | 85.08 ± 1.93 | 48.92 ± 3.57 |
| Stitch | 75.89 ± 5.38 | 80.47 ± 21.14 | 72.37 ± 7.32 | 33.24 ± 7.21 | |
pretrained BERT (Devlin et al., 2019) transformers (cased and uncased version), ELECTRA (Clark et al., 2020) and RoBERTa are adopted.
Result analysis. Table 4.4 and Table 4.5 show for the first time that it is possible to learn to solve a downstream task on a specific language or transformer and perform predictions on another.
Stitching with absolute representations yields performances comparable to random guessing across the board, proving that relative representations are a key element for the success of this kind of zero-shot stitching. Moreover, Table 4.4 shows the robustness that relative representations have on the choice of anchors, even when they are noisy (Translated case), or their distribution differs from the one of the downstream task (Wikipedia case), as long as their encoding can be handled correctly by the encoder. In this case, the encoder is pretrained to represent a variety of texts in a specific language, thus, even if WikiMatrix has a completely different domain from Amazon Reviews, the transformer still computes a meaningful and comparable representation with those of the reviews. Complete results on all language combinations and the performance obtained by a multi-lingual transformer are reported in the “Additional results” section of the appendix of Moschella* & Maiorca*, et al. (2023). To the best of the authors’ knowledge, multi-lingual transformers were the only alternative for obtaining compatible representations across languages.
According to these results, relative representations show invariance to different architectures and data distribution shifts (e.g., different train languages).
4.3.3 Image Classification
This section shows practical examples of the use of OOD anchors (Section 4.1.1).
Experimental setting. A classification task on ImageNet1k and CIFAR-100 with coarse labels (20) is considered, using 4 different pretrained image encoders: three variants of the ViT transformer (Dosovitskiy et al., 2021) and RexNet (Han et al., 2021).
Result analysis. The results in Table 4.6 highlight how the relative representations allow stitching modules with different encoding dimensionality, since the decoder receives a relative representation with guaranteed equal size. Further, the results demonstrate the ability to generalize and perform zero-shot stitching on CIFAR-100, although that data was never seen by the encoder since it is frozen and pretrained on ImageNet1k. rexnet-100 is the only encoder whose latent dimensionality is higher than the number of anchors, and the biggest drop in stitching performance happens on CIFAR-100 when the decoder is trained on it. This suggests the number of anchors
4.3. Zero-Shot Model Stitching
41
TABLE 4.6: Stitching performance comparison with different encoding techniques. The table reports the mean weighted F1 (± std) on CIFAR-100 coarse-grained and ImageNet1k, across 5 seeds.
| Decoder | Encoder | CIFAR-100 | ImageNet1k | ||
|---|---|---|---|---|---|
| Absolute | Relative | Absolute | Relative | ||
| rexnet-100 | rexnet-100 | ||||
| vit-base-patch16-224 | - | - | |||
| vit-base-resnet50-384 | - | - | |||
| vit-small-patch16-224 | - | - | |||
| vit-base-patch16-224 | rexnet-100 | - | - | ||
| vit-base-patch16-224 | |||||
| vit-base-resnet50-384 | |||||
| vit-small-patch16-224 | - | - | |||
| vit-base-resnet50-384 | rexnet-100 | - | - | ||
| vit-base-patch16-224 | |||||
| vit-base-resnet50-384 | |||||
| vit-small-patch16-224 | - | - | |||
| vit-small-patch16-224 | rexnet-100 | - | - | ||
| vit-base-patch16-224 | - | - | |||
| vit-base-resnet50-384 | - | - | |||
| vit-small-patch16-224 | |||||
is an important hyperparameter; for a deeper analysis, see the “Anchors analysis” section of the appendix of Moschella* & Maiorca*, et al. (2023).
Overall, these results prove that relative representations can bridge general-purpose encoders and pretrained task-specific decoders.
Chapter 5
Product of Invariances: Composition of Correspondence-Parallel Operators
THIS CHAPTER IS BASED ON THE FOLLOWING PUBLICATION:
From Bricks to Bridges: Product of Invariances to Enhance Latent Space Communication
Irene Cannistraci, Luca Moschella*, Marco Fumero*, Valentino Maiorca, Emanuele Rodolà
ICLR 2024 (Spotlight)
Code: https://github.com/icannistraci/latent-invariances
TL;DR: Uncertain which metric reveals structure? Compute all simultaneously—each product component carries one invariance, and the task selects the relevant geometry.
5.1 Introduction
This chapter demonstrates how to compose correspondence-parallel operators to construct richer semantic coordinates. The fundamental question is simple: Chapter 4 introduced RelRep using cosine similarity—but which distance function should determine the correspondence-parallel transformation? Each metric encodes geometric invariances: cosine similarity preserves angular relationships under orthogonal transformations and isotropic scaling; Euclidean distance ( norm) remains invariant to rigid motions; Manhattan distance ( ) and Chebyshev distance ( ) share the same guaranteed invariances, to translations and permutations. Table 5.1 formalizes these invariance profiles across seven transformation classes—no single metric dominates universally.
As established in Chapter 3, the correspondence-parallel family ( ) transforms spaces independently using their respective sides of correspondence. RelRep instantiates this using angular distance to shared anchors. The product of invariances extends this principle: since the relevant invariance is not known in advance, it computes RelRep transformations under multiple metrics simultaneously, constructing a product space in which each component carries one invariance. No single distance metric has to be selected.
Chapter 5. Product of Invariances

FIGURE 5.1: Motivation for product of invariances. Different transformations can affect latent spaces in complex ways: the CKA similarity between pretrained models on F-MNIST (Fashion MNIST), measured after infusing invariance to one class of transformations at a time (conformal, Euclidean, isometries; legend: Conformal, E(n), , with n the latent dimension), changes with the model, and no single transformation connects all latent spaces. Combining multiple distance functions, each invariant to specific transformations, captures these complex relationships between latent spaces.
Figure 5.1 demonstrates the core challenge: no universal transformation class connects all pretrained models. The figure shows CKA similarity distributions between pretrained encoders evaluated on F-MNIST after infusing invariances to three transformation classes: conformal transformations (global orthogonal transformations composed with local rescaling), Euclidean isometries (distance-preserving rigid motions), and isometries of the distance (translations and coordinate permutations, Table 5.1). Each bar shows the distribution of similarity scores to other models under that invariance. The score diversity reveals that different encoders align best under different transformation classes. Some encoders achieve their highest similarity under conformal invariance, others under Euclidean, while invariance scores close to Euclidean. This variability stems from extrinsic factors: random initialization, neural architecture, and data modality (Chapter 3). Selecting a single metric a priori risks alignment failure when model pairs relate through transformation classes that do not match that metric's invariance profile.
The solution: use all metrics simultaneously. Computing correspondence-parallel transformations under cosine, Euclidean, Manhattan, and Chebyshev constructs a product space in which each component carries one invariance. Learned aggregation then extracts task-relevant structure. This approach treats metric choice as fundamental ambiguity to embrace: when the transformation group relating two representations cannot be known a priori, preserve structure under all candidate groups.
5.2. Method: Product Space Construction
45
5.2 Method: Product Space Construction

FIGURE 5.2: Product space framework. The intrinsic manifold M shared by two latent spaces X, Y related by an unknown transformation is approximated through the product space . Each component is a RelRep space computed using a similarity function invariant to a specific transformation class. Combining these spaces yields a representation that approximates projection onto the unknown intrinsic manifold M.
5.2.1 Setting and Background
Following the encoder-decoder decomposition from Chapter 3, consider neural networks as compositions , where encoder computes latent representations for , with and much smaller than the input dimension, and decoder solves the task at hand (reconstruction, classification). The parameters are left implicit in and for notational convenience. The encoders are written when two are involved.
RelRep (Chapter 4) established angular invariance through cosine similarity, demonstrating how a single correspondence-parallel operator constructs semantic coordinates. The product of invariances extends this by using multiple similarity functions simultaneously, each inducing different invariances, to capture complex transformations between latent spaces.
5.2.2 Geometric Framework
Consider different neural networks with latent spaces . The goal is modeling the transformation class that relates these spaces. This could be a known group (e.g., rotations) or a complex, nontrivial class. Networks may differ by initialization seeds (training dynamics), architecture, or even domain , inducing different effects on latent geometry (Fig. 5.1).
The fundamental geometric hypothesis: these variations induce changes in the extrinsic parameterization of representations, but there exists an underlying intrinsic manifold M where the semantic structure coincides (Fig. 5.2).
Assumption 5.1. Given multiple models , there exists a manifold identifying an equivalence class of encoders induced by transformation class , defined as
where denotes projection onto M. The manifold M is equipped with metric dist preserved under T:
Chapter 5. Product of Invariances
TABLE 5.1: Distance-induced invariances. No single metric provides universal coverage.
| Similarity Function | Isotropic Scaling | Orthogonal Transf. | Translation | Permutation | Affine Transf. | Linear Transf. | Manifold Isometry |
|---|---|---|---|---|---|---|---|
| Absolute | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ |
| Cosine | ✓ | ✓ | ✕ | ✓ | ✕ | ✕ | ✕ |
| Euclidean () | ✕ | ✓ | ✓ | ✓ | ✕ | ✕ | ✕ |
| Manhattan () | ✕ | ✕ | ✓ | ✓ | ✕ | ✕ | ✕ |
| Chebyshev () | ✕ | ✕ | ✓ | ✓ | ✕ | ✕ | ✕ |
The objective is constructing a function that independently projects latent spaces into while remaining invariant to for all and all , when the anchor embeddings are transformed by the same . Generalizing RelRep (Chapter 4) to arbitrary distance metrics provides a straightforward construction for representations invariant to specific transformation classes.
5.2.3 Product Projection
The metric dist is typically unknown a priori. Moreover, capturing with a single transformation class proves challenging (Fig. 5.1 demonstrates this empirically). The solution: approximate through product space , where each component results from projecting into a RelRep space equipped with a different similarity function .
Each inherits properties from similarity function , which is invariant to a specific, known transformation class (e.g., dilations). Combining this set of invariances yields representation that approximates (Fig. 5.2). denotes the relative representation of with respect to the anchor set of the space containing ( for ) under similarity (Chapter 4).
Definition 5.2 (Product projection). Given latent spaces related by unknown transformation class , and a set of similarity functions where each is invariant to known transformation class (i.e., for all , with the anchor embeddings transformed alike), the product projection is defined as:
where is an aggregation function (e.g., concatenation) merging the relative spaces induced by each .
Aggregation strategies for implementing are detailed in Section 5.2.5.
5.2.4 Distance-Induced Invariances
The RelRep framework admits multiple similarity or distance functions sim: Cosine, Euclidean, , , each inducing invariance to a specific transformation class. Table 5.1 formalizes which transformations each metric remains invariant to. Formal definitions, synthetic examples, and visualizations appear in the appendix of Cannistraci et al. (2024).
5.2.5 Aggregation Strategies
Constructing product space requires aggregating invariant components. Consider latent space produced by encoder , and set of similarity functions . With one space per , the method produces relative latent spaces, where each space enforces invariance to a specific transformation class through its similarity function (Cosine, Euclidean, , or ).
These spaces admit diverse aggregation strategies, corresponding to different choices of :
• Concatenation (Concat): Subspaces are independently normalized and concatenated, yielding cartesian product structure for .
• Aggregation by sum (MLP+Sum): Similar to DeepSets (Zaheer et al., 2017), spaces are independently normalized and non-linearly projected, then summed.
• Self-Attention (SelfAttention): Spaces are independently normalized and aggregated via self-attention.
Before the Sum or SelfAttention aggregation, each subspace is first normalized by a LayerNorm, optionally followed by a small MLP (a linear layer and a tanh activation); the tables label these variants “MLP+”. Unless otherwise specified, experiments use Aggregation by sum. Implementation details appear in the appendix of Cannistraci et al. (2024). The resulting product space yields robust latent representations: invariant components combine to capture complex transformations, improving downstream task performance.
5.3 Experiments
Experiments analyze the effectiveness of product space construction for capturing complex transformations between latent spaces. Section 5.3.1 examines latent space similarity for models trained from scratch (AE (AutoEncoder) and VAE architectures) and pretrained foundation models, analyzing transformation classes that emerge when enforcing different invariances. Section 5.3.2 assesses zero-shot stitching performance across text, vision, and graph modalities. Section 5.3.3 ablates aggregation functions. Section 5.3.4 investigates attention weights for optimal space selection.
5.3.1 Latent Space Analysis
Training from Scratch
Experimental setting. Image reconstruction experiments use CIFAR-10, CIFAR-100 (Krizhevsky, 2009), MNIST, and F-MNIST (H. Xiao et al., 2017) datasets with comparable convolutional architectures: AEs and VAEs. Models include architectures with unflattened latent image bottlenecks (AE and VAE) preserving spatial structure, and architectures with linear projections into flattened latent spaces (LinAE (Linear AutoEncoder) and LinVAE (Linear Variational AutoEncoder)). Five instances of each model are trained to convergence with different random seeds. Each latent space is then projected into its relative counterpart using distinct projection functions, infusing different invariances. Cross-seed latent space similarity is measured for each combination.
Results. Fig. 5.3 shows Pearson cross-seed correlations for various architectures across datasets. The results demonstrate that unifying latent spaces obtained with
Chapter 5. Product of Invariances
different initializations through a single invariance is impossible. For instance, Fig. 5.3 shows highest cross-seed similarity achieved using different projection types for VAE versus LinVAE architectures, even when all other parameters remain fixed. Dataset variations alter behavioral trends across architectures. This challenges the RelRep assumption (Moschella* & Maiorca*, et al., 2023) that angle-preserving transformations primarily drive correlation among latent spaces of models trained with different seeds.


FIGURE 5.3: Latent Spaces Cross-Seed Similarity. Cross-seed Pearson correlation of latent spaces for AEs and VAEs, with and without linear bottleneck, trained on MNIST (left) and CIFAR-100 (right) until convergence. No single projection consistently outperforms others across all settings. The projection is not displayed to improve visualization.
Pretrained Models
Experimental setting. Experiments analyze latent space similarity for pretrained foundation models in vision and text domains. Vision experiments evaluate five distinct foundation models (convolutional or transformer-based) on CIFAR-10, CIFAR-100, MNIST, and F-MNIST. Text experiments assess seven foundation models on DBpedia (Zhang et al., 2015), TREC (Hovy et al., 2001), and N24News (Z. Wang et al., 2022).


BERT-C BERT-U ELECTRA RoBERTa ALBERT XLM-R CViT-B/32
FIGURE 5.4: Latent Spaces Cross-Architecture Similarity. Linear CKA similarity of latent spaces across several pretrained models on CIFAR-10 (left) and TREC (right). In each bar, we report the space similarities distribution to the other models while infusing a specific invariance. There is no singular projection that consistently outperforms others across all configurations.
Results. Fig. 5.4 shows Linear CKA correlations for pretrained models across vision and text modalities. The analysis reveals no universally shared transformation class connecting latent spaces of foundation models across distinct conditions. On
CIFAR-10, highest similarity is achieved with different projection functions for different architectures. Similar architectures (ViT-based models) exhibit similar trends on the same dataset.
Takeaway. The transformation class correlating latent spaces—whether from pretrained or trained-from-scratch models—depends on datasets, architectures, tasks, and other extrinsic factors.
5.3.2 Downstream Task: Zero-Shot Stitching
Experimental setting. Zero-shot stitching experiments use text, vision, and graph modalities. Vision and text domains employ the same datasets and pretrained models from Section 5.3.1. The graph domain uses Cora (Sen et al., 2008) with GCN (Graph Convolutional Network) trained from scratch. Additionally, zero-shot stitching reconstruction uses AEs on CIFAR-100.
Relative decoders are trained with three seed values. Representations are transformed into semantic coordinates by projecting encodings onto 1280 randomly selected but fixed anchors. Varying the number of anchors results in different emerging transformations, indicating a single projection function cannot capture desired invariances. Nevertheless, the product approach achieves highest scores regardless of anchor count (see the appendix of Cannistraci et al., 2024).
Zero-shot model stitching. Following Chapter 4, stitching combines components from different networks: frozen encoders handle data embedding while relative decoders manage downstream tasks. The process requires no training or fine-tuning, hence zero-shot.
This chapter introduces the Stitching Index: the ratio between stitching score and end-to-end score. This measures how closely stitching accuracy aligns with the original; a stitching index of one indicates no performance drop.
TABLE 5.2: Graph and Text Classification Stitching Performance. Zero-shot accuracy scores (mean ± standard deviation over seeds) across various decoders, seeds, and datasets. For the text domain, we use pretrained models, while for the graph domain, we train GCN models from scratch and evaluate the stitching across seeds. Additionally, we calculate the stitching index for the graph modality, showing that composing different projections using the Aggregation by sum enables zero-shot stitching without any performance drop in this setting, ensuring competitive end-to-end performance.
| Projection | Text | Graph | ||
|---|---|---|---|---|
| ALBERT | GCN | |||
| DBpedia↑ | TREC↑ | Cora ↑ | Stitching Index ↑ | |
| Cosine | 0.50 ± 0.02 | 0.54 ± 0.03 | 0.53 ± 0.06 | 0.71 |
| Euclidean | 0.50 ± 0.00 | 0.60 ± 0.03 | 0.27 ± 0.06 | 0.58 |
| 0.52 ± 0.01 | 0.65 ± 0.02 | 0.26 ± 0.06 | 0.58 | |
| 0.18 ± 0.02 | 0.29 ± 0.06 | 0.12 ± 0.03 | 1.00 | |
| Cosine, Euclidean, , | 0.53 ± 0.01 | 0.65 ± 0.02 | 0.77 ± 0.01 | 1.00 |
Results. Tables 5.2 and 5.3 present classification performance for various projection functions across modalities. Fig. 5.5 shows qualitative reconstruction results.
As observed in Section 5.3.1, no single optimal projection function exists across architectures, modalities, or even within individual datasets. The product space framework—combining multiple invariances with trainable aggregation—achieves
Chapter 5. Product of Invariances
TABLE 5.3: Image Classification Stitching Performance Cross-Architecture and Cross-Seed. Zero-shot accuracy score (mean ± standard deviation over seeds) across different pretrained models, seeds, and datasets. The proposed method using the Aggregation by sum consistently achieves the highest accuracy score or comparable results, without prior knowledge of the optimal projection to employ.
| Encoder | Projection | Accuracy ↑ | |||
|---|---|---|---|---|---|
| CIFAR-100 | CIFAR-10 | MNIST | F-MNIST | ||
| CViT-B/32 | Cosine | ||||
| Euclidean | |||||
| Cosine, Euclidean, , | |||||
| RViT-B/16 | Cosine | ||||
| Euclidean | |||||
| Cosine, Euclidean, , | |||||
superior accuracy across most scenarios. Each independent projection and the aggregated product space maintain constant dimensionality, ensuring fair comparison. Additional results appear in the appendix of Cannistraci et al. (2024).
Table 5.2 demonstrates that the method enables zero-shot stitching without performance degradation on graphs while ensuring competitive end-to-end performance.
Takeaway. A product space of invariant components can improve the zero-shot stitching performance without any prior knowledge of the class of transformation that relates different spaces.
5.3.3 Aggregation Functions: Ablation
Experimental setup. Ablation experiments evaluate merging strategies from Section 5.2.5. Zero-shot stitching classification is performed on three modalities using the same datasets and models from previous sections. Relative decoders are trained with three seeds, and accuracy is assessed on each assembled model.
TABLE 5.4: Ablation Study on the Aggregation Functions. Zero-shot classification accuracy score (mean ± standard deviation over seeds) across different architectures, seeds, and datasets. The Aggregation by sum (third row) obtains consistently the best accuracy score.
| Aggregation | Vision | Text | Graph |
|---|---|---|---|
| RViT-B/16 | BERT-C | GCN | |
| MLP+SelfAttention | |||
| MLP+Sum | |||
| SelfAttention |
Results. Table 5.4 presents ablation results across aggregation methodologies. MLP+Sum consistently outperforms alternatives. This method preprocesses each subspace with an independent MLP (normalization, linear layer, tanh activation), then sums the resulting representations. The Concat method (marked with an asterisk) is not directly comparable since it increases dimensionality linearly with the number of subspaces.

FIGURE 5.5: Reconstruction Qualitative Results on CIFAR-100 using AEs. The last two sets of columns ( and ) are the end-to-end AEs with unique initialization seeds, while the first two ( and ) illustrate the outputs of the zero-shot stitching of these independently trained models (in every column abbreviates , with the product projection built on each encoder's own anchors; in the Absolute row no projection is applied). The first row displays the source images, the two subsequent rows show the results from distinct combinations of projection aggregated through the Aggregation by sum, while the last one shows the outputs from a baseline model that does not incorporate this methodology. When using the projection (second to last row), the reconstructed images are blurred, but when removing the space from the aggregation (third row) the reconstruction drops in performance, meaning that it captures information not captured by the others.
Takeaway. Aggregation by sum consistently achieves highest performance among merging strategies without increasing dimensionality.
5.3.4 Space Selection
Preceding sections demonstrated integrating multiple invariances through projection functions and aggregation strategies. This section analyzes whether tuning only the aggregation strategy at stitching time provides cost-effective optimal space selection. Experiments focus on Self-attention aggregation (Section 5.2.5), fine-tuning only the query, key and value (QKV) parameters responsible for space blending. Each space is generated by its own projection function. Note: stitching-time fine-tuning is exclusive to this experiment.
Experimental setup. Two crucial components exist within the stitched model: (1) linear projections associated with QKV (Query-Key-Value) in the attention mechanism, responsible for selecting and blending spaces, and (2) the MLP classification head following the attention mechanism, which classifies aggregated embeddings.
Two approaches are examined: QKV opt fine-tunes only the first component, while MLP opt fine-tunes the second. Experiments use CIFAR-100 with RexNet encoder and ViT-B/16 decoder.
Results. Table 5.5 summarizes downstream classification accuracy using various projection functions and aggregation strategies. Incorporating multiple invariances with Self-attention aggregation performs poorly; MLP+Sum or Cosine projection alone proves more effective. This is expected: the attention mechanism is trained to improve end-to-end performance; its objective does not reward compatibility between spaces.
Chapter 5. Product of Invariances
Incorporating adaptation strategies at stitching time boosts performance, whether focusing on optimal space selection and blending (QKV opt) or the classification head (MLP opt). Informed fine-tuning of space blending parameters (only QKV projections) impacts performance more than tuning the entire classifier.
Figure 5.6 illustrates attention weights averaged over the test dataset. Zero-shot stitched model attention weights (left) remain unchanged when fine-tuning only the classifier (right). Fine-tuning QKV projections (center) shifts attention weights to allocate less importance to worse-performing projections ().
TABLE 5.5: Optimal Space Selection. Classification accuracy for the stitched model with RexNet as encoder and ViT-B/16 as decoder on CIFAR-100, using different projection functions and aggregation strategies. Fine-tuning the space selection and blending module (QKV opt) has a larger effect on performance improvement than fine-tuning the MLP head (MLP opt). Bold: best per block.
| Projection | Aggregation | Accuracy ↑ |
|---|---|---|
| Cosine | - | 0.50 |
| Euclidean | - | 0.38 |
| - | 0.24 | |
| - | 0.21 | |
| Cosine, Euclidean, , | SelfAttention | 0.17 |
| Cosine, Euclidean, , | MLP+Sum | 0.45 |
| Cosine, Euclidean, , | SelfAttention + QKV opt | 0.75 |
| Cosine, Euclidean, , | SelfAttention + MLP opt | 0.52 |

FIGURE 5.6: Attention Weights Visualization. Comparison of attention weights for the stitched model with RexNet as encoder and ViT-B/16 as decoder on CIFAR-100, before and after fine-tuning. (left) the attention weights of the initial zero-shot stitched model, which remain unchanged when fine-tuning the classifier (MLP opt) (right). Conversely, fine-tuning the QKV projections (QKV opt) (center) leads to a notable shift in attention weights, assigning lower importance to the space that performs worst individually. L1 and Linf in the axes are and .
Takeaway. Appropriate selection and aggregation of the optimal invariant spaces are crucial in enhancing latent communication between neural models.
5.4 Conclusions
The experiments of this chapter do not single out a best projection, and the image stitching results in Table 5.3 show why one should not expect them to: the single
5.4. Conclusions
53
metric that performs best changes from one encoder to the next and from one dataset to the next, so that any metric fixed in advance would be the right choice for some pairs of spaces and the wrong one for others. This is precisely the situation the product of invariances is designed for. By combining the four metrics and aggregating them by sum, the product removes the need to choose beforehand, and it does so at little cost, since it matches or beats the best single projection in seven of the eight image cells; the only exception is RViT-B/16 on F-MNIST, where the product scores 0.76 against 0.79 for . The size of the gain, however, varies with the modality. It is largest on graphs, where the product reaches 0.77 on Cora against 0.53 for the best single projection (Table 5.2), and it is marginal on text, where with ALBERT the product scores 0.53 on DBpedia and 0.65 on TREC against 0.52 and 0.65 for alone.
These observations translate into a simple recommendation: whenever the invariance relating two latent spaces is unknown, we suggest aggregation by sum over all four metrics as the default, because it is the best aggregation in all three modalities of the ablation (Table 5.4). What should not be done, on the other hand, is to prune components on the basis of their individual scores. is the clearest case: it has the lowest accuracy among the single projections in every stitching table of this chapter, and yet removing it from the product hurts, raising the reconstruction mean squared error from 0.06 to 0.10 (see the appendix of Cannistraci et al., 2024), a degradation that Fig. 5.5 makes visible in the reconstructions themselves. A component that is weak on its own, then, is not thereby a component that can be dropped from the product.
The approach has its limits, and the experiments expose three of them. The first is that on a given encoder–decoder pair the zero-shot product can lose to a single metric: with a RexNet encoder and a ViT-B/16 decoder on CIFAR-100, Cosine alone reaches 0.50 while the product with aggregation by sum stops at 0.45, and fine-tuning at stitching time is needed to close the gap: tuning the QKV projections of the self-attention aggregation brings the accuracy to 0.75, against 0.52 for tuning the classification head (Table 5.5). The second limit concerns cost, because fewer components can suffice: on graphs, aggregating Cosine and Euclidean alone already reaches 0.78 against 0.77 with all four components (see the appendix of Cannistraci et al., 2024), so a strategy for selecting the subspaces would make the product cheaper without making it worse. The third limit is structural: every similarity function entering the product must have a closed form, so invariances whose similarity function has no closed form are out of reach unless the similarity functions themselves are learned.
Even where the product wins, its margin can be thin: on CIFAR-100, stitching CViT-B/32 with ViT-B/16, it is present at every anchor count from 2 to 2000, but it stays between 0.01 and 0.08, with 0.28 against 0.24 at 10 anchors and 0.83 against 0.80 at 1280 (see the appendix of Cannistraci et al., 2024).
Seen through the framework of this thesis, the product of invariances is a correspondence-parallel operator in which the invariance class is chosen separately for each component. Each component is a relative projection onto the same set of anchors, so every space is transformed using only its own side of the correspondence, which is what makes the operator parallel; the product then keeps one component per candidate class and leaves it to the aggregation to learn which of them matter for the task at hand. What the operator does not relax is the assumption that the correspondence is given in full, as a complete set of parallel anchors. The next two chapters turn to the correspondence itself: Chapter 6 expands a small seed of anchor pairs into a full correspondence, and Chapter 7 scales it to 1.6 million image-text pairs.
Chapter 6
Bootstrapping Parallel Anchors
THIS CHAPTER IS BASED ON THE FOLLOWING PUBLICATION:
Bootstrapping Parallel Anchors for Relative Representations
Irene Cannistraci, Luca Moschella, Valentino Maiorca, Marco Fumero, Antonio Norelli, Emanuele Rodolà
ICLR Tiny Papers Track 2023
Code: https://github.com/icannistraci/bootstrapping-ao
TL;DR: Amplify 15 seed pairs to 300 via Optimal Transport—geometry can discover semantic correspondence.
6.1 Introduction
The correspondence-parallel framework (Chapter 3) requires parallel anchors to construct semantic coordinates. Obtaining such anchors can be expensive in specialized domains or with proprietary datasets. This chapter explores whether a minimal correspondence can be geometrically amplified via iterative refinement. Can a small seed combined with geometric structure—revealed by that seed—enable discovery of expanded correspondence , without requiring the complete correspondence upfront?
The method employs optimal transport as a geometric prior, expanding a seed correspondence of 15 pairs to with 300 pairs via Sinkhorn-based optimization (Cuturi, 2013)—requiring only 5% of the full correspondence as supervision. The approach alternates between estimating correspondence geometrically and refining anchors to improve that alignment. This bootstrapping enables the correspondence-parallel operators from Chapter 3 to function with drastically reduced supervision.
Results reveal domain dependence: in NLP (Natural Language Processing) word embeddings, bootstrapped anchors outperform ground truth (0.52 versus 0.34 Jaccard similarity, Table 6.1). This counterintuitive result suggests that vocabulary-aligned word pairs, while semantically valid, do not constitute geometrically optimal anchors for retrieval. Sinkhorn optimization discovers anchors that better preserve the manifold structure learned during training, capturing latent geometric relationships that surface-level word matching misses. On CIFAR-10, however, the bootstrapped anchors at best match ground truth, while still far exceeding the seed baseline (Table 6.2). This divergence suggests that geometry is a proxy for semantics when manifold structure exhibits sufficient semantic organization. Word embeddings satisfy this condition—their angular structure encodes semantic relationships that geometric optimization can exploit—while CIFAR representations gain less from
Chapter 6. Bootstrapping Parallel Anchors
bootstrapping, potentially due to rotational symmetries or weaker semantic clustering. Characterizing which geometric properties enable bootstrapping remains an open question.
The geometric approach explored here provides weak supervision for correspondence discovery. Chapter 8 extends this principle to unsupervised correspondence discovery via Gromov-Wasserstein optimal transport, removing the need for seed pairs entirely.
TABLE 6.1: Qualitative (left) and quantitative (right) evaluation of the Anchor Optimization (AO) method in the retrieval task between FastText (FT) and Word2Vec (W2V) embeddings of about 20k English words (Chapter 4); mean and standard deviation across five random seeds.

| Src | Tgt | Jaccard ↑ | MRR ↑ | Cosine ↑ | |
|---|---|---|---|---|---|
| GT | FT | W2V | 0.34 ± 0.01 | 0.94 ± 0.00 | 0.86 ± 0.00 |
| W2V | FT | 0.39 ± 0.00 | 0.98 ± 0.00 | 0.86 ± 0.00 | |
| Seed | FT | W2V | 0.06 ± 0.01 | 0.11 ± 0.01 | 0.85 ± 0.01 |
| W2V | FT | 0.06 ± 0.01 | 0.15 ± 0.02 | 0.85 ± 0.01 | |
| AO | FT | W2V | 0.52 ± 0.00 | 0.99 ± 0.00 | 0.94 ± 0.00 |
| W2V | FT | 0.50 ± 0.01 | 0.99 ± 0.00 | 0.94 ± 0.00 |
TABLE 6.2: Retrieval on about 20k CIFAR-10 images encoded by ViT-base (768 dimensions) and ViT-small (384 dimensions), comparing the AO anchors with the GT and Seed baselines and extending the word-embedding results of Table 6.1 to images. All three anchor sets are used to build relative representations; mean and standard deviation across five random seeds.
| Src | Tgt | Jaccard ↑ | MRR ↑ | Cosine ↑ | |
|---|---|---|---|---|---|
| GT | ViT-base | ViT-small | 0.11 ± 0.00 | 0.27 ± 0.01 | 0.97 ± 0.00 |
| ViT-small | ViT-base | 0.10 ± 0.00 | 0.28 ± 0.01 | 0.97 ± 0.00 | |
| Seed | ViT-base | ViT-small | 0.03 ± 0.00 | 0.03 ± 0.01 | 0.97 ± 0.00 |
| ViT-small | ViT-base | 0.03 ± 0.00 | 0.04 ± 0.01 | 0.96 ± 0.00 | |
| AO | ViT-base | ViT-small | 0.10 ± 0.01 | 0.23 ± 0.03 | 0.97 ± 0.00 |
| ViT-small | ViT-base | 0.10 ± 0.00 | 0.28 ± 0.01 | 0.97 ± 0.00 |
6.2 Method
Consider two domains and , observed through finite samples and , with learned embedding functions and , where possibly . Given two sets of anchors and , where is known while is the unknown set of counterparts to recover, of which only (defined below) is observed, parallel anchors are defined as a subset of pairs in semantic correspondence, with (e.g., images and captions as in Norelli et al. (2023)). Index the anchors as and , so that row of every anchor matrix refers to the pair ; the seed pairs are the first indices. Following the correspondence framework in
6.3. Algorithm and Hyperparameters
57
Chapter 3, parallel anchors constitute correspondence , with seed correspondence , the set of seed anchors defined below.
The relative representation for a sample with embedding (see Chapter 4 for full development; same for ) is computed as: , where with , and denotes the row-wise concatenation operator. All embeddings are rescaled to unit norm, i.e., , corresponding to the choice of cosine similarity as a similarity function (Moschella* & Maiorca*, et al., 2023).
The method requires only few initial seed anchors, denoted as , with and its projections on the two domains, where . With no prior knowledge of , the optimization process is initialized by approximating with the known seed concatenated with random embeddings, i.e. , with with rows drawn from . The optimization objective over is:
where , with , is the relative representation with respect to the current anchor estimate, MSE is the mean squared error, and is a soft matching matrix (an entropic transport plan) between the two sample sets (rows indexed by the samples of , columns by the samples of ; in the experiments (the same words in both spaces, shuffled), so approximates a permutation), and denotes the sample of with the largest mass in the column of , estimated at each optimization step by the Sinkhorn (Cuturi, 2013) algorithm exploiting the initial seed and the current approximation of the remaining anchors:
After convergence, is discretized into , the samples of whose embeddings are nearest to the rows of . The bootstrapped correspondence is , with the sample nearest to row of . In summary: known are and ; optimised is ; returned are and .
6.3 Algorithm and Hyperparameters
Algorithm 1 outlines the pseudocode for the optimization procedure described in Section 6.2, while Table 6.3 details the hyperparameters. The method initializes and optimizes it iteratively for steps ("Number of optimization steps" in Table 6.3). At each step, the Sinkhorn algorithm computes a rough estimate of the permutation between the two relative spaces. The loss function minimized is the MSE, with particular emphasis placed on ensuring that the optimized parameters adhere to unit norm using the parametrization of Lezcano Casado (2019). This ensures the effectiveness of the optimization and reduces the search space.
6.4 Experiments
This section assesses the effectiveness of the AO method. Experiments utilize 15 anchors to approximate 300 parallel anchors that are the ground truth in all downstream
Chapter 6. Bootstrapping Parallel Anchors
Algorithm 1 Anchor Optimization
1: Initialize , with and
2: Compute , the relative representations of the samples in
3: for steps do
4: Compute , the relative representations of the samples in
5: Estimate the soft matching between the rows of and the rows of with
6: Reorder the rows of according to , so that row matches row of
7: Compute the error MSE()
8: Optimize to minimize the error, while abiding by the constraint that every row of has unit norm
9: end for
10: return the samples of whose embeddings are nearest to the rows of
TABLE 6.3: Hyperparameters for the AO method in retrieval and zero-shot stitching tasks.
| Hyperparameter | Retrieval | Zero-shot stitching |
|---|---|---|
| Random seed | 0, 1, 2, 3, 4 | 0, 1, 2, 3, 4 |
| Number of anchors to approximate | 300 | 300 |
| Number of seed anchors | 15 | 15 |
| Number of optimization steps | 250 | 125 |
| Learning Rate | 0.02 | 0.05 |
| Optimizer | Adam | Adam |
| Loss | MSE | MSE |
| Sinkhorn eps | 1e-4 | 1e-4 |
| Sinkhorn stop error | 1e-5 | 1e-5 |
| Number of Sinkhorn steps | 1 | 1 |
tasks. The performance is compared against two baselines: (1) GT, the Ground Truth employing all anchors that the method aims to semantically approximate, (2) Seed, exploiting only the seed anchors.
Anchor quality is evaluated using retrieval metrics: Jaccard similarity, mean reciprocal rank, and cosine similarity.
The method effectively discovers parallel anchors in the NLP and CV (Computer Vision) domains, as demonstrated in Tables 6.1 and 6.2. Experiments explore different word embeddings and pretrained foundational visual encoders, assessing the quality of the discovered anchors through a retrieval task. Results demonstrate that, when given the same number of starting anchors, the method outperforms the approach that relies solely on those without optimizing. Moreover, results are comparable or superior to those obtained with all the ground truth parallel anchors.
Furthermore, Table 6.4 demonstrates that the method can discover parallel anchors across different domains: the approach finds aligned Amazon reviews in different languages with unavailable ground truth. Using only 15 out-of-domain (OOD, Chapter 4) parallel anchors (Moschella* & Maiorca*, et al., 2023), the method enables zero-shot stitching, allowing a classifier trained on one language to perform
6.4. Experiments
59
predictions on another.
TABLE 6.4: Cross-lingual zero-shot stitching performance evaluation on Amazon Reviews, mean ± std across five seeds; Fscore ↑, MAE ↓.
| Dec. | Enc. | GT | Seed | AO | |||
|---|---|---|---|---|---|---|---|
| Fscore | MAE | Fscore | MAE | Fscore | MAE | ||
| en | es | ||||||
| es | en | ||||||
Chapter 7
ASIF: Coupled Data Turns Unimodal Models to Multimodal Without Training
THIS CHAPTER IS BASED ON THE FOLLOWING PUBLICATION:
ASIF: Coupled data turns unimodal models to multimodal without training
Antonio Norelli, Marco Fumero, Valentino Maiorca, Luca Moschella,
Emanuele Rodolà, Francesco Locatello
NeurIPS 2023
Code: https://github.com/noranta4/ASIF
TL;DR: Sparse RelRep over a cross-modal correspondence at scale (1.6M image-text pairs) yield a CLIP-like model from frozen unimodal encoders, with no training.
7.1 Introduction
This chapter demonstrates how correspondence-parallel operators (Π, introduced in Chapter 3) extend to cross-modal settings through semantic correspondence and massive-scale anchor refinement. While relative representations (Chapter 4) typi-

FIGURE 7.1: ASIF is a simple recipe to align the representations of two frozen pretrained encoders.
cally employ hundreds of correspondence anchors , ASIF scales to correspondence cardinality through local, context-dependent sparsification that constructs adaptive semantic coordinates per query. The correspondence-parallel approach is essential here: cross-modal zero-shot classification requires comparing images and text in a shared coordinate system. Transforming images directly to text coordinates would require correspondence-coupled operators. By transforming both modalities independently to semantic coordinates, ASIF enables cross-modal zero-shot classification using only frozen encoders.
The key challenge in cross-modal alignment is that correspondence must be semantic: an image of a golden retriever and the caption “a photo of a golden retriever”
Chapter 7. ASIF
are conceptually related but not identical samples. ASIF addresses this by treating image-text pairs as correspondence anchors, then applying the correspondence-parallel RelRep transformation (Chapter 4) to find the best cross-modal match. The method employs two treatments (sparsification and exponentiation), followed by normalization: sparsification retains only the top-k most relevant anchors per query; exponentiation amplifies similarity differences to focus on the most relevant semantic concepts; normalization ensures consistent similarity computations in the transformed space. These operations are applied independently per query, creating local coordinate systems where each query selects its own contextually relevant subset from the full correspondence set.
The efficacy of cross-modal correspondence rests on semantic coherence across modalities: captions of similar images are themselves similar (Fig. 7.2). This structural alignment means that representations constructed from similarities to correspondence anchors become quasi mode-invariant—an image and its caption share nearly identical semantic coordinates even though they originate from different representation spaces. The correspondence-parallel transformation thus enables zero-shot multimodal alignment using only two frozen pretrained encoders and no additional training (Fig. 7.1), achieving performance comparable to CLIP (Radford et al., 2021) while requiring up to fewer image-text pairs than prior contrastively trained models.
Beyond zero-shot performance, ASIF inherits the interpretability and modularity of correspondence-parallel operators. Each dimension corresponds to similarity with a specific anchor pair, enabling direct attribution of predictions to training data. The non-parametric structure enables trivial model editing—adding or removing correspondence anchors requires only encoding or deleting embeddings, with no retraining. This chapter demonstrates that the correspondence-parallel framework scales to massive anchor sets when combined with principled sparsification, which can be read through the semantic horizon principle (Section 7.2).
7.2 Scaling Correspondence-Parallel Operators to Cross-Modal Settings
Freshly picked
flowers are poured
into a copper
still.

Image similarities
FIGURE 7.2: Captions of similar images are themselves similar. Distribution of similarities of 100k embedded pairs in the training set versus the above image and caption embeddings. Highlighted in orange are the 1000 pairs with the highest image similarity. Dashed lines: mean similarity over all pairs (blue) and over the highlighted 1000 (orange); y-axis: count, log scale.
ASIF extends the relative representations framework (Chapter 4) from K in the hundreds to K = 1.6M image-text pairs as correspondence anchors. This massive scaling addresses the cross-modal challenge: unlike same-modality alignment where correspondence links identical samples across models, cross-modal correspondence must be semantic. Large correspondence sets increase the likelihood that semantically relevant anchors exist for any query, but introduce computational and statistical challenges that require principled refinement.
The core operation is straightforward: to find the best caption for an image from candidates , ASIF computes the relative representation of with
7.2. Scaling Correspondence-Parallel Operators to Cross-Modal Settings
63
respect to the image anchors (images, ) and treats this as if it were the relative representation of the ideal caption with respect to the corresponding text anchors (texts). The candidate whose relative representation with respect to is most similar to this projected representation is selected. This is simply a nearest neighbor search in semantic coordinates, enabled by the shared relative space .
Dense representations comparing every query to 1.6M anchors accumulate noise from irrelevant dimensions while being less efficient to compare than sparse vectors (Norelli et al., 2023). ASIF addresses this through local, context-dependent semantic coordinates where each query defines its own coordinate system by selecting contextually relevant anchors. The transformation applies two treatments (sparsification and exponentiation) independently per query, followed by normalization. Sparsification retains only the top-k highest similarity dimensions (k = 800, or 0.05% of K = 1.6M). This can be read as a semantic horizon: below a certain similarity, geometric operations still return precise values, but these values reflect noise and carry no semantic content (Karlgren et al., 2021). Exponentiation raises non-zero similarities to power p = 8, amplifying differences—similarity 0.8 becomes while 0.6 becomes , a ratio of about from the original . Finally, the vectors are normalized so that they can be compared consistently. The combined effect creates local coordinate systems adapted per query: for example, a satellite image selects different anchors than a dog image, a vehicle query different anchors than an architecture query.
7.2.1 Properties of ASIF Models
Building on top of correspondence-parallel operators like RelRep (Chapter 4) yields several intriguing properties:
No training and data-centric design. ASIF spaces are built on top of two independently pretrained encoders and the embeddings of a multimodal dataset, without training or fine-tuning any neuron. Being deployable or updatable modularly, ASIF is radically “data centric” (Strickland, 2022). Adjusting the model by adding or forgetting specific samples is trivial. This is particularly important as the right to use specific assets may change over time, and removing the effect of specific samples from a trained network requires sophisticated forgetting techniques (Ginart et al., 2019; Golatkar et al., 2020a; Golatkar et al., 2020b; C. Guo et al., 2020; Golatkar et al., 2021). In ASIF, the encoders are pretrained with established datasets that do not change over time, while removing the effect of a multimodal pair is as simple as deleting its embeddings.
Data efficiency: By exploiting the shared geometry of two pretrained encoders, ASIF models require far fewer ground-truth multimodal pairs to become effective. Experiments confirm that ASIF reaches competitive zero-shot performance on diverse classification benchmarks using a fraction of the multimodal data of its predecessors, reaching respectable accuracy even with thousands of pairs. This aligns with classical work in computer vision, where prototypical networks (Snell et al., 2017) are a strong baseline in the extremely few-shot regime.
Interpretability: Sparse relative representations make ASIF interpretable classifiers. Each prediction can be traced back to a small set of data points in the multimodal dataset—corresponding to the dimensions that are nonzero in both the image and the label relative representations—accountable for the outcome (at most k), see Fig. 7.4.
Chapter 7. ASIF
This enables visualizations of the relevant samples contributing to a correct or incorrect prediction at no extra cost, in stark contrast with other approaches that are often costly (Achille et al., 2021) and fragile (Koh et al., 2017; Basu et al., 2021).
7.2.2 Implementation That Scales
ASIF pays the price of avoiding training with a larger memory footprint and increased computation at inference time, requiring computation of embeddings and of cosine similarities against the multimodal dataset. As such, ASIF should not be considered a general one-stop replacement for CLIP, although experiments scaled ASIF to 1.6M pairs while maintaining reasonable inference speed. The non-optimized implementation of ASIF is less than slower than CLIP. On a positive note, there are two well-established techniques that could radically enhance the efficiency of ASIF and potentially enable scalability to billions of entries. The memory footprint required to store all embeddings can be greatly reduced using product quantization (Jégou et al., 2011), while inverse indexing (Sivic et al., 2003) can circumvent the need for computing cosine similarities against the entire dataset at test time. These techniques are both implemented in the FAISS library (Johnson et al., 2021). Finally, the distribution of pairs chosen during inference is rather short-tailed, presenting opportunities to massively prune the model even at deployment time, deleting from memory data that is never used. However, assessment of large-scale optimized ASIF models is beyond the scope of these experiments. While an interesting direction for future research, this chapter focuses on establishing the potential of the ASIF method.
7.2.3 Implementation Details
The experiments employ vision transformers (DEIT (Touvron et al., 2021) and DINO (Caron et al., 2021)) as image encoders and SentenceT (Reimers et al., 2019) for text encoding, with the Conceptual 12M dataset (CC12M) (Changpinyo et al., 2021) providing 1.6M image-text pairs as correspondence anchors. Complete implementation details and design choice rationale are provided in Norelli et al. (2023).
7.3 Empirical Evidence
This section compares ASIF to traditional multimodal models based on contrastive training, CLIP and LiT, then examines the classification of a single image in detail, unpacking the relative representations and following the classification algorithm step by step. The analysis begins by discussing the pretrained encoders and dataset forming the tested ASIF models.
7.3.1 Pretrained Encoders and Multimodal Dataset
The primary experiments utilized vision transformers as image encoders, pretrained either in a supervised manner (DEIT base (Touvron et al., 2021)) or in an unsupervised manner (DINO VITs8 (Caron et al., 2021)), on ImageNet 1k (J. Deng et al., 2009) and 21k (Ridnik et al., 2021) respectively. The embedding size was 768 for DEIT and 384 for DINO. This configuration aligns with that used in LiT (Zhai et al., 2022), with the sole distinction being that, unlike LiT, ASIF uses a pretrained, frozen text encoder. The text encoder is the SentenceT transformer (Reimers et al., 2019), trained on a dataset comprising more than 1 billion sentences obtained from the internet. The experiments
7.3. Empirical Evidence
65
| Method | Dataset size | ImageNet | CIFAR-100 | Pets | ImageNet v2 |
|---|---|---|---|---|---|
| CLIP (Radford et al., 2021) | 400M (private) | 68.6 | 68.7 | 88.9 | - |
| CLIP (Radford et al., 2021) | 15M (public) | 31.3 | - | - | - |
| LiT (Zhai et al., 2022) | 10M (public) | 66.9 | - | - | - |
| 901M (private) | 50.6 | 47.9 | 70.3 | 43.3 | |
| LiT (Zhai et al., 2022) | 901M (private) | 70.1 | 70.9 | 88.1 | 61.7 |
| ASIF (sup vis. encoder) | 1.6M (public) | 60.9* | 50.2 | 81.5 | 52.2 |
| ASIF (unsup vis. encoder) | 1.6M (public) | 53.0* | 46.5 | 74.7 | 45.9 |
TABLE 7.1: Zero-shot classification accuracy of different multimodal designs. CLIP and LiT implementations vary by dataset and the visual transformer used as image encoder. The first CLIP and LiT entries use a VITb16 as ASIF, the last CLIP and LiT entries use a VITb32 (larger patch size). The public dataset of CLIP is a curated subset of YFCC100m (Thomee et al., 2016), while LiT and ASIF use CC12M. CLIP as reported by Zhai et al. (2022), setting “uu” (both towers trained from scratch). *A subset of the ImageNet validation set was used to tune the two hyperparameters of ASIF which were then applied to the other datasets. The reported ImageNet accuracy is measured on a separate test set. When tuning on different datasets, accuracies remain consistent (see Norelli et al. (2023) for additional details).
employed the first 1.6M entries of the Conceptual 12M dataset (CC12M) (Changpinyo et al., 2021) as the multimodal dataset. This dataset amasses images and filtered alt-texts collected from the internet. To optimize performance on a single Tesla T4 GPU, the analysis was limited to the initial 1.6M pairs. The “scaling-laws” experiments also utilized DEIT tiny and small vision transformers (Touvron et al., 2021) and two smaller SentenceT encoders.
7.3.2 Zero-Shot Performance
The quality of the ASIF multimodal model was assessed by comparing its zero-shot classification performance against CLIP and LiT on four datasets: CIFAR-100, ImageNet, ImageNet v2, and Pets (J. Deng et al., 2009; Krizhevsky, 2009; Parkhi et al., 2012; Recht et al., 2019); see Table 7.1. Label prompts were crafted as in Zhai et al. (2022, Table 11). ASIF achieves competitive performance with CLIP and LiT using two frozen pretrained encoders and a fraction of the image-text pairs.
The two ASIF models reported in Table 7.1 differ in the vision encoder, which is respectively supervisedly (DEIT) and unsupervisedly pretrained (DINO). Both hyperparameters and were tuned on a subset of the ImageNet validation set, yielding and . The comparison between the two versions is not completely fair since the visual transformer architecture of DINO is smaller (e.g., its codings are 384-dimensional, those of DEIT 768-dimensional) but corroborates the effectiveness of ASIF with encoders pretrained using no supervision. Additional results with a wider collection of ASIF models based on different visual and textual backbones are reported in the original work (Norelli et al., 2023).
Summary: Overall, the ASIF procedure achieves competitive zero-shot results with a fraction of the image-text pairs used in prior work (assuming access to other pretrained, even unsupervisedly, unimodal models).
Chapter 7. ASIF

FIGURE 7.3: ASIF is a learning algorithm: ImageNet validation-set accuracy improves smoothly as the multimodal dataset size increases. Colors show the impact of k and p (non-zeros, val exp).
7.3.3 ASIF Scaling Laws
Figure 7.3 shows the full zero-shot accuracy trend on ImageNet as the size of the multimodal dataset grows for different choices of k and p. ASIF models become effective very quickly: a non-trivial 18% classification accuracy is reached using just the first 10,000 pairs in the multimodal dataset. Building an ASIF model from scratch still requires a lot of unimodal data to pretrain the encoders, but this data may come untied and even without any label.
Additional tests employed smaller image and text encoders on multimodal datasets of different sizes ( to image-text pairs from CC12M) to provide early evidence about ASIF scaling laws. The experiments used DEIT tiny, small, and base vision transformers (Touvron et al., 2021), along with two smaller SentenceT encoders. As shown in Fig. 7.3, ImageNet classification accuracy grows smoothly with the size of the multimodal dataset; Norelli et al. (2023) report that performance does not saturate earlier with smaller encoders. These results are promising but still preliminary, further experiments with larger multimodal datasets are left for future work.
Summary: The experiments show a steady improvement in ASIF's performance as the size of the multimodal dataset increases. Norelli et al. (2023) report that performance deteriorates with smaller encoders, but even then there is no sign of saturation or plateau.
7.3.4 Dynamically Updating an ASIF Model
Consider classifying EuroSAT (Helber et al., 2019) satellite images using ASIF. Initially, the zero-shot performance outperforms random chance but is not impressive (29.4% unsup. configuration, 10 classes). CLIP, while better, also falls short with a 54.1% performance rate.
Consider acquiring 100 new image-text pairs from EuroSAT with the goal of developing a new multimodal model based on an updated training set, anticipating the need to process more satellite images in the future. With CLIP, this would require fine-tuning or retraining the model from scratch using the updated dataset. In contrast, ASIF requires only obtaining and storing the new pairs' embeddings. The
7.3. Empirical Evidence
67

FIGURE 7.4: ASIF representations are interpretable and amendable. Thorough analysis of the relative representations—the four vectors in green—produced by ASIF to assign the best caption to a given image ( and in the figure are and the ideal caption ). The values shown are the raw similarities of the retained entries, before exponentiation and normalization. Every dimension corresponds to the similarity of the input image (text) to a unique image (text) entry in the multimodal dataset. The visualization shows training samples leading to correct or incorrect predictions, which is useful to curate better data. For example, the second training sample is broken; its removal enables production of an updated ASIF model in seconds.
model retains its usability for all the previous images, but it now also makes accurate predictions for satellite images, achieving an accuracy on EuroSAT.
Similarly, when samples must be removed from the multimodal training dataset—either because they are faulty (as shown in Fig. 7.4) or because the license to use them has been lost—the process is as simple as deleting the corresponding embeddings to get a new model.
Summary: ASIF enables quick model adjustments and data handling without the need for retraining, unlike traditional models such as CLIP. This demonstrates its practicality in real-world scenarios, such as the emergence of a new setting or the loss of rights for assets used during training.
7.3.5 Deep Dive into a Classification
To better understand why and how the ASIF procedure works, this section follows step by step the single classification depicted in Fig. 7.4, showing the entries of the multimodal dataset used to build the relative representations. For simplicity, assume k = 23.
The task is to find the ImageNet label of the upper left image in Fig. 7.4. The first step is to compute its relative representation with respect to the multimodal dataset, which selects the 23 most similar images in the collection. The most similar are indeed triumphal arches that—as similarity decreases—turn to generic structures with arches or ancient monuments. No other image in the multimodal dataset is involved in the classification; all the entries in the collection except for these 23 could
Why does CLIP perform better zero-shot? Likely, its 400M pairs have more samples close to satellite images than ASIF’s 1.6M samples from CC12M, evidenced by ASIF’s drastic improvement with just 100 new samples.
Chapter 7. ASIF
be replaced, and as long as no new image is more similar to the input image, every computation in the classification process would remain the same. This consistency of the ASIF procedure is in contrast to traditional approaches like CLIP and LiT, where the parameters defining the encoder computations are shaped by the whole multimodal dataset through contrastive learning.
The central step of the ASIF procedure follows: jumping into the text space by treating the relative representation of the input image as if it were the relative representation of its ideal caption. The vector remains the same, but its meaning changed: now it signifies how much the ideal caption should be similar to 23 captions.
The efficacy of this jump hinges entirely on the quality of the multimodal dataset. Looking at the 23 captions in Fig. 7.4, the most fitting candidate caption corresponds to one of the prompts associated with the triumphal_arch label in ImageNet, such as “a photo of a triumphal arch”. Conversely, a dataset featuring 23 non-informative captions, such as file names “IMG_20180823.jpg” or camera settings “D90 18.0-70.0 mm f/3.5-4.5”, would not allow the model to recognize the correct class even with the best image and text encoders. This limitation is actually a defining feature of the ASIF procedure, as the meaning attributed to the input is ultimately determined by the multimodal dataset and not by the encoders: by acting just on the image-text pairs, full control over the model’s output is maintained.
Chapter 8
Learning to Align: Scalable Unsupervised Alignment via Learned Embeddings
THIS CHAPTER IS BASED ON THE FOLLOWING PUBLICATION:
Scalable Unsupervised Alignment of Metric and Nonmetric Structures
Sanketh Vedula, Valentino Maiorca, Lorenzo Basile, Francesco Locatello, Alexander Bronstein
ICML AI4Science Workshop 2024
TL;DR: An amortized Gromov-Wasserstein solver learns correspondence without paired samples, and the learned alignment generalizes to new samples with a single optimal transport solve.
8.1 Introduction
This chapter presents a scalable approach to unsupervised alignment that learns the correspondence structure through gradient-based optimization. Unlike the correspondence-parallel methods examined in the preceding chapters (Chapters 4 to 7), which extract semantic coordinates via predefined geometric transformations, this method employs learned neural embeddings to implicitly parametrize the transport cost between representation spaces.
Within the correspondence framework established in Chapter 3, this approach explores learned correspondence operators. While the method constructs a correspondence between metric spaces by optimizing embeddings that minimize metric disagreement (the optimal coupling of Section 8.2 acts as a soft correspondence ), it differs from explicit correspondence-parallel operators in its treatment of the optimization problem. The embeddings and , one per space, parametrize the transport cost, and the plan obtained from that cost aligns the pairwise distance structures. Like the operators of the preceding chapters, and map each space into a common domain. Here the maps are learned; in those chapters they were fixed in advance.
The central contribution addresses scalability: standard Gromov-Wasserstein (GW) solvers require solving a sequence of entropic optimal transport problems at inference time, limiting applicability to large-scale settings. By amortizing this computational burden into a training phase that learns embeddings, the method reduces
Chapter 8. Learning to Align

FIGURE 8.1: Entropic Gromov-Wasserstein solver (left) solves a sequence of regularized optimal transport ( -OT) problems using the Sinkhorn algorithm. In contrast, the proposed approach learns, via a pair of embeddings, and , the transport cost that directly produces the sought alignment by solving a single -OT problem. While the learning of the embeddings still requires multiple calls to the -OT solver, their cost is amortized at inference time. In the figure, denotes the coupling , the index of the solver iteration , and the regularization strength .
inference to a single optimal transport problem. This inductive capability enables zero-shot alignment of new samples without recomputing the full GW solution.
The chapter is organized as follows. Section 8.2 introduces the core formulation as a bilevel optimization problem that learns embeddings minimizing metric disagreement. Section 8.3 presents extensions including simulated annealing of entropic regularization, spectral-geometric regularization exploiting graph structure, and a ranking-based formulation achieving scale invariance. Section 8.4 validates the approach on synthetic isometric transformations and real-world single-cell multiomics alignment tasks, demonstrating both computational efficiency and alignment quality improvements over standard GW solvers.
8.2 Learning transport cost via embeddings
Consider samples drawn from a space equipped with a metric , and samples from a space with metric . Two descriptions of each set matter in what follows: the pointwise features of its samples, stacked in the matrices and , and the pairwise distances between them, collected in . The weight vectors , points of the probability simplex, assign a weight to every sample: uniform or, depending on what the spaces represent, given by discrete volume elements. Because the two sets live in different spaces, their samples cannot be compared feature by feature, and aligning them amounts to finding a permutation that pairs each sample of one set with a sample of the other. The Gromov-Wasserstein distance (Mémoli, 2011) relaxes this search from permutations to couplings, that is, to the set of nonnegative matrices with the prescribed marginals. Of a coupling, GW asks only that it preserve the pairwise
8.2. Learning transport cost via embeddings
71
distances as well as possible:
The price of this formulation is that the coupling appears on both sides of , so the objective is quadratic in and Eq. (8.1) is a (relaxed) quadratic assignment problem (QAP). The contrast with the case in which both sets lie in the same space is instructive, because there alignment reduces to a linear optimal transport (OT) problem, for a cost matrix (Peyré et al., 2019), and adding the entropic term turns it into the -OT problem, which the Sinkhorn algorithm solves efficiently (Cuturi, 2013). The entropic GW solver (Solomon et al., 2016; Peyré et al., 2019), which adds the same entropic term to Eq. (8.1), exploits exactly this contrast: it linearizes Eq. (8.1) around the current coupling , reads a cost matrix off that linearization, and projects back onto by solving one -OT problem, so that a single quadratic problem is replaced by a sequence of linear ones.
To scale GW solvers to large sample sizes, the approach begins with the following question: can an entropic OT problem be identified whose solution coincides with that of the entropic GW problem? The rationale is that, given an unpaired set of samples, if an equivalent entropic OT problem can be determined, fast entropic OT solvers can be employed to calculate the assignment. One problem fitting this criterion, by construction, is the entropic OT problem solved in the last iterate of the entropic GW solver. However, computing this problem would require iterating through the GW solver, making it impractical. Phrasing this question as an optimization problem yields:
It is a bilevel optimization problem whose solution yields the alignment : the inner problem is linear OT and it produces an assignment that is optimal with respect to the cost C, and the outer problem demands that the resulting is GW-optimal, i.e., it aligns the metrics and . While seemingly elegant, Eq. (8.2) has two major problems: (i) because C is unbounded, this objective is very unstable and difficult to optimize; (ii) more practically, Eq. (8.2) results in a transductive approach; given a new set of unpaired samples, this problem needs to be solved anew, which is not scalable.
To mitigate this, instead of optimizing the cost matrix C (in Eq. (8.2)), the method implicitly parametrizes it as a pairwise cost measured on learned embeddings of point-wise features X and Y. This leads to the following modified objective,
(8.3)
where are learnable functions, modeled via neural networks, embedding and , respectively, into a common domain , and the alignment is . The cost is realized through the embedding, while the ground cost , evaluated on and with the rows of , , is fixed to the simple Euclidean or cosine form;
Chapter 8. Learning to Align
denotes the matrix of these values. The problem is solved via gradient descent. To backpropagate gradients to and , the inner problem is first relaxed to an -OT problem, then implicit differentiation (Amos et al., 2017) is employed to calculate (Eisenberger et al., 2022), which is backpropagated to update the weights of and .
From a geometric perspective, the samples from and are embedded into a common domain , where the samples are OT-aligned with the same assignment that makes the metric spaces and GW-aligned. From a computational standpoint, this framework can be viewed as an amortized entropic GW solver. Fig. 8.1 presents the parallels between this solver and the entropic GW solver (Solomon et al., 2016). The ground cost measured on the embeddings can be interpreted as the cost matrix (as depicted in Fig. 8.1) produced by running the entropic GW solver for iterations. Post training, the neural networks can be viewed as amortizing the GW iterations, in similar spirit to recent amortized optimization techniques proposed for fast calculation of convex conjugates (Amos, 2023a; Amos, 2023b).
From a practical standpoint, this results in an inductive GW solver. At inference, when a new set of unpaired samples from X and Y is encountered, only a single entropic OT problem must be solved, which is highly scalable. Moreover, since the solver is gradient-descent-based, it allows flexibility to induce domain knowledge, additional regularization, and inductive biases on the assignment, the cost, and the neural networks f, g, respectively. Several such examples are discussed in Section 8.3.
Finally, while this approach may resemble the inverse OT (iOT) problem (Dupuy et al., 2019; Chiu et al., 2022) in that it involves learning the transport cost, it differs in the minimized objective. While iOT targets finding a cost realizing a given assignment (hence, requiring coupled data), this learning problem does not assume a known target permutation. It finds one minimizing the pairwise distance disagreement on unaligned data. From this perspective, the approach can be seen as a variational analog of the iOT problem.
8.3 Extensions: regularization and scale invariance
While the objective function in Eq. (8.3) is straightforward to evaluate, the resulting optimization problem remains an NP-hard QAP. In practice, reaching good local minima consistently without imposing further inductive biases is challenging. This is also true for the entropic GW solver (Peyré et al., 2019)—while sequential linearization and projection via Sinkhorn algorithm works reasonably in practice, no guarantees exist on its global convergence. In fact, many scenarios exist where it fails to recover a meaningful local minimum. This section introduces several regularization techniques to remediate poor convergence: (i) simulated annealing of the entropic regularization strength , and (ii) spectral-geometric regularization of the OT cost. A new objective matching distance ranks instead of distances themselves is also presented, which can be employed as an alternative to Eq. (8.3).
Simulated annealing of . Evaluating the solver on the scSNARE-seq data (S. Chen et al., 2019), where the goal is to align transcriptomic readouts against those of chromatin accessibility (ground-truth available via co-assaying (S. Chen et al., 2019)), reveals sensitivity to initialization of the neural networks f and g. As a result of symmetries in the metric spaces, the assignment sometimes consistently mismaps
8.3. Extensions: regularization and scale invariance
73

FIGURE 8.2: Simulated annealing of and spectral geometric regularization are effective in stabilizing the solver and improving the accuracy of the assignment. Left: simulated annealing schedule used. Middle: distribution of the alignment error (measured as FOSCTTM) over 20 runs with and without -annealing. Right: distribution of the top-1 assignment accuracy with and without the spectral geometric regularization of the transport cost.
the cell line GM12878 to H1, and vice-versa. The middle panel of Fig. 8.2 depicts the distribution of alignment errors (lower is better) obtained by solving Eq. (8.3) with multiple random initializations of the embedding parameters and . The error is the fraction of samples closer than the true match (FOSCTTM): for each sample, once both domains are represented in a common space, the fraction of samples of the other domain that lie closer to it than its true match, averaged over both domains (0 for perfect alignment). In the right column of that panel (without annealing), the largest mode corresponds to accurate assignment, whereas the two other modes with larger errors represent symmetry-induced cell-line mismappings.
This problem is mitigated by performing simulated annealing on of the entropic OT problem within the Sinkhorn layer. A schedule for that starts high and is gradually decayed (see Fig. 8.2, left) results in coarse-to-fine refinement of the learned cost (implicitly parametrized via f and g) during training, similar in spirit to multi-scale kernel matching in shape correspondence problems (Vestner et al., 2017; Melzi et al., 2019; Holzschuh et al., 2020). When is high, the entropic regularization is strong, and the resulting assignment is softer. By scheduling from a large value to a small one, the learned cost matrix and the resulting assignment are refined during training. In practice, the proposed -scheduling works well, practically reducing variance across seeds to zero and effectively breaking symmetries in the metric spaces that lead to bad local minima (Fig. 8.2, middle).
Spectral representation on graphs. Before introducing the spectral-geometric regularization, a brief background on graphs is provided. A familiar reader may skip to the following paragraph. Let be a weighted graph with the vertex set , edge set , and weighted adjacency matrix . The combinatorial graph Laplacian is defined as , where is the degree matrix. Given a scalar-valued function on the graph , the Dirichlet energy is defined to be , and it measures the smoothness of on (Spielman, 2012). Given two graphs and , the Cartesian product of and , denoted by , is defined as a graph with the vertex set , on which two nodes are adjacent if either and or and . The Laplacian of is defined as a tensor sum of the Laplacians and , i.e., . Denote the spectral decompositions of the Laplacians by and . A signal
Chapter 8. Learning to Align
on the product graph can be represented using the bases of the individual Laplacians as , with the coefficients .
Spectral-geometric regularization of the OT cost. A spectral-geometric regularization on the learned OT cost demands that similar items in incur similar cost with respect to all items in , and vice-versa. To formalize this notion, let and be two graphs inferred on the samples of and , respectively, and let and be their corresponding graph Laplacians. The learned OT cost from Eq. (8.3) is interpreted as a signal on the product graph , with the requirement that is smooth on . This smoothness can be expressed as the Dirichlet energy of measured on ,
with vec the row-major vectorization, and added to Eq. (8.3) as an additional regularization. Fig. 8.2 (right) demonstrates the effectiveness of the spectral regularization on the task of aligning embeddings from neural latent spaces.
From the spectral perspective, interpreting the OT cost C as a signal on , learning C given the pointwise features from domains and is equivalent to directly learning the spectral coefficients of C (a functional-map-like object; Chapter 12 uses C for the functional map itself). This connection relates the approach to methods that learn functional maps (Kalofolias et al., 2014; Litany et al., 2017; Vestner et al., 2017; Halimi et al., 2019; Boyarski et al., 2022) from shape correspondence and geometric matrix completion literature. This connection to functional maps is explored further in Chapter 12, which presents spectral methods for correspondence-coupled operators.
Matching ranks instead of distances. The choice of comparison criterion for pairwise distances strongly influences the usability of the GW problem for real applications. Consider two point clouds that differ only by a scale factor; since distances are not scale-invariant, solving Eq. (8.3) to match distances would produce meaningless results. As a remedy, the ranks of pairwise distances are matched instead of their absolute values. Ranks preserve order and are insensitive to scale or, more generally, monotone transformations. This departs from the standard framework of Gromov-Hausdorff and GW, which align metric spaces, generalizing to a problem of performing unpaired alignment by matching non-metric quantities. To differentiate the objective with respect to ranks—an inherently non-differentiable function—the differentiable soft ranking operators introduced by Blondel et al. (2020) are employed. The following modified objective is optimized:
(8.5)
where is a soft-ranking operator applied separately to each row of the matrix, and controls the level of softness of the rank; as before, the alignment is . Because ranking is a nonlinear operation, this results in a problem that is no longer quadratic in . It is unclear how standard GW solvers can be adapted to such settings, highlighting the benefit of a gradient-descent-based solver. Applying
8.4. Experimental validation
75

FIGURE 8.3: The proposed solver generalizes to unseen samples and scales to large-sample sizes post-training. In both top and bottom experiments, X and Y are ViT embeddings. The entropic GW solver can only operate in the transductive regime and runs out of memory for n > 25000 (N on the horizontal axis is n; E-GW is the entropic GW solver; OOM marks where it runs out of memory).
ranking to other groups of distances effectively results in a different GW-like distance. Systematic exploration of this new family of distances is deferred to future work.
Further extensions. The framework admits several natural extensions, none of which is tested here: (i) extension to a fused GW (Vayer et al., 2020) setting by adding a linear objective to Eqs. (8.3) and (8.5); (ii) controlling the rank of the OT cost by modifying the dimension of the embeddings' output by f and g; and (iii) incorporating partial supervision on the assignment (semi-supervised alignment) into the loss as a data term.
8.4 Experimental validation
The experimental evaluation is organized into three parts. First, the solver’s performance in the inductive setting and its scalability to large sample sizes are demonstrated. Second, experiments show the effects of (i) simulated annealing of , (ii) spectral geometric regularization, and (iii) the ranking-based formulation. Third, the solver’s performance in the transductive setting is compared against the entropic GW solver on two single-cell multiomics benchmarks. Both real and synthetic data are employed as appropriate.
Inductivity and scale. To evaluate the method’s inductive capability and benchmark it against the entropic GW solver, two experiments are considered: (i) when X and Y are isometric, and (ii) when X and Y are not exactly isometric.
For the first experiment, X comprises CIFAR-100 encodings obtained from a vision transformer (Dosovitskiy et al., 2021). An orthogonal transformation is applied to each element of X to generate Y. The encoders f and g are parametrized as 3-layer multi-layer perceptrons (MLPs), and Eq. (8.3) is optimized with respect to their parameters on 200 unaligned samples for 500 iterations (12 seconds). The method is then evaluated in an inductive setting with an increasing number of unaligned samples available at inference up to n = 45000, benchmarked against the GPU-accelerated entropic GW solver from ott-jax (Cuturi et al., 2022). The results are presented in the top panels of Fig. 8.3. Accuracy is measured as whether the predicted
Chapter 8. Learning to Align
correspondence is correct in terms of class label. Both solvers recover the orthogonal transformation almost exactly (above 99% accuracy). An inductive solver, because it solves only an -OT problem at inference, is much faster and more memory efficient. The entropic GW solver, in contrast, runs out of memory for . The reported times do not include the time required to compute a geodesic distance matrix for both and , which is time-consuming at large sample sizes (>10 mins for ). In contrast, the learned solver does not require computing and at inference. For the second experiment, data from Maiorca* & Moschella*, et al. (2023) is used: comprises ViT embeddings as in the previous experiment, while comprises ViT embeddings generated from rescaled images. The functions and are trained for 1000 iterations ( minutes), using 1000 unpaired samples. The results are presented in the bottom two panels of Fig. 8.3. The results demonstrate that the solver generalizes well and scales gracefully with sample sizes, whereas the entropic GW solver produced inferior results in this setting. These experiments validate that the solver attains high-quality solutions and scales well in the inductive regime.
Spectral geometric regularization. For this experiment, the setting where and are two unaligned sets of embeddings obtained from a pretrained vision transformer (Dosovitskiy et al., 2021) is considered. The functions and are set to be 3-layer MLPs, and Eq. (8.3) is solved with and without regularization (Eq. (8.4)). The problem is solved on 20 unaligned datasets drawn from and , each of size . Fig. 8.2 (right panel) presents the accuracy of the assignment by measuring if the predicted corresponding point belongs to the same class as the groundtruth correspondence. Geometric regularization improves the accuracy of the assignment (+20% in terms of mean accuracy over trials). Moreover, it also reduces the variance, thereby inducing meaningful inductive bias into the solver.
Simulated annealing of . As discussed in Section 8.3, the scSNARE-seq data (S. Chen et al., 2019) is considered—a co-assay of transcriptome and chromatin accessibility measurements performed on cells. Experiments are run with and without the simulated annealing of for 20 random initializations of and ; the results are presented in Fig. 8.2. The annealing strongly stabilizes the training process. This is used as a default choice across all real data experiments.
Figure 8.4 shows, for reference, the assignment produced by the distance-based GW solver in an inductive setting. In single-cell multiomic alignment, the ranking-based variant outperforms this distance-based counterpart. Consequently, the results presented in Figs. 8.5 and 8.6 use ranking-based loss and outperform both the entropic GW solver and, on bone marrow (the only dataset where it is reported, Fig. 8.6), the distance-based variant of the solver.
Single-cell multiomic alignment. Two real-world datasets are considered: (i) scSNARE-seq data which contains gene expression (RNA) and chromatin accessibility (ATAC) profiles from 1047 individual cells from four cell lines: H1, BJ, K562, and GM12878, with known groundtruth via a co-assaying technique (S. Chen et al., 2019). The processed data of RNA and ATAC features is obtained from Demetci et al. (2022), whose method uses entropic GW to align these two modalities and is the baseline. (ii) human bone marrow single-cell dataset that contains paired measurements of single-cell RNA-seq and ATAC-seq measurements released by Luecken et al. (2021). The processed data is obtained from moscot (Klein et al., 2025). In the RNA space, a PCA embedding of 50 dimensions is used; in the ATAC space, an LSI (latent semantic indexing) embedding is used, followed by normalization.
In the scSNARE-seq experiment, the entropic GW solver with the same hyperparameters used by Demetci et al. (2022) is employed as the baseline. This was shown
8.4. Experimental validation
77


FIGURE 8.4: Qualitative evaluation of the proposed GW solver in inductive setting. The plot depicts the assignment produced by the distance-based GW solver (Eq. (8.3)) on a new set of samples.
by Demetci et al. (2022) to outperform other baselines for unpaired alignment on this data. In the bone marrow single-cell experiment, comparison is made to the entropic GW solver with Euclidean metric and geodesic distance metric. To establish a fair baseline, following the methodology of Demetci et al. (2022), a grid search is performed on the used in Sinkhorn iterations of the solver, and k corresponding to the k-NN graph constructed for geodesic computation (for the latter setting), picking the hyperparameters with the least GW loss. In both bone marrow data and scSNARE-seq data, the ranking-based solver produces the best FOSCTTM score. In bone marrow data especially, the solver produces a large margin over the entropic GW solvers (FOSCTTM 0.069 against 0.316 for the best entropic GW baseline in the left panel of Fig. 8.6, 0.077 against 0.212 in the right panel). In scSNARE-seq, the margin of improvement is lower, which could be attributed to limited diversity in cell-lines and small sample-size in scSNARE-seq compared to the bone-marrow data (Fig. 8.5).

FIGURE 8.5: Qualitative and quantitative results on the scSNARE-seq dataset. Left and middle: Aligned samples from ATAC and RNA, colored by the domains (ATAC: black, RNA: red) and cell types, respectively. Right: the sorted FOSCTTM plot, a quantitative metric measuring the quality of the assignment (GW in the legend is the entropic GW baseline of Demetci et al. (2022)).
Chapter 8. Learning to Align
Colored based on modality

UMAP1
Colored based on cell types
UMAP1
B1 B
CD4+ T activated
CD4+ T naive
CD8+ T
CD14+ Mono
CD16+ Mono
Erythroblast
G/M prog
HSC
ID2-Hi myeloid prog
ILC
Lymph prog
MK/E prog
NK
Naive CD20+ B
Normoblast
Plasma cell
Proerythroblast
Transitional B
cDC2
pDC
FIGURE 8.6: Qualitative and quantitative results on the human bone marrow single-cell dataset. Top plots depict the UMAP of the translated cells colored by domain (left) and by the cell type (right). Bottom plots report the FOSCTTM metrics for Y projected onto X (left) and X projected onto Y (right).
Chapter 9
Domain Applications of Correspondence-Parallel Operators
Correspondence-parallel operators (Π, Section 3.3) extend beyond standard vision and language benchmarks to three scientific domains: computational neuroscience (Section 9.1), uncertainty quantification (Section 9.2), and reinforcement learning (RL, Section 9.3). Each domain presents distinct challenges that demand domain-specific innovations within the correspondence framework.
We instantiate using relative representations (RelRep) across all three domains: anchoring to shared reference points provides a simple, interpretable transformation that factors out coordinate variations while preserving semantic structure.
However, each domain imposes unique constraints that require method-specific adaptations. In neuroscience, noisy fMRI signals from individually variable neural architectures require task-informed encoding—subject-specific supervised encoders trained before applying RelRep anchoring. In uncertainty quantification, we introduce an alignment metric inspired by Fisher’s Linear Discriminant that quantifies how well RelRep removes reparameterization noise from ensemble variance. In reinforcement learning, continuous encoder updates during online training create coordinate drift in the anchor embeddings themselves; exponential moving average (EMA) stabilization adapts RelRep to moving targets by slowing anchor drift while enabling gradual adaptation.
The commonality lies in the correspondence-parallel framework instantiated via RelRep; the diversity lies in domain constraints that drive innovation beyond the base method.
9.1 Neuroscience: Multi-subject fMRI Alignment
THIS SECTION IS BASED ON THE FOLLOWING PUBLICATION:
Multi-subject neural decoding via relative representations
Valentino Maiorca, Simone Azeglio, Marco Fumero, Clémentine Dominé, Emanuele Rodolà, Francesco Locatello
Cosyne 2024
TL;DR: A task-informed bottleneck before projecting to semantic coordinates allows reconciling fMRI scans across subjects experiencing the same stimuli.
Aligning brain activity across subjects confronts individual variations in neural architecture, vascular properties, and anatomical geometry. The decoding process
Chapter 9. Domain Applications of Correspondence-Parallel Operators
is generally specific to each subject and faces limitations in generalizability across different individuals, primarily due to the significant variability observed among subjects.
We apply correspondence-parallel operators to map neural representations of distinct subjects into a common representational space agnostic of subject-specific attributes for downstream decoding. The framework builds on the assumption of a second-order isomorphism between the neural activity of different individuals subject to the same stimuli, similarly to established neural analysis techniques like Representational Similarity Analysis (RSA).
We instantiate ( pairs the recordings of the same stimulus across subjects) using RelRep with shared anchor stimuli (300 images) and cosine similarity. The anchor-based transformation handles high-dimensional, noisy fMRI data by encoding subjects in a common coordinate frame.
Our approach relies on task-informed encoding: training subject-specific supervised encoders (MLPs) on classification tasks before applying RelRep anchoring. Unlike task-agnostic methods like PCA, this dual objective—mapping fMRI to latent space while classifying visual stimuli—aims to preserve task-relevant semantic structure. The supervised classification objective is meant to force encoders to learn discriminative features, so that the dimensionality reduction follows the task, creating latent spaces where RelRep can capture meaningful cross-subject correspondences despite individual neural architectures.
Method. For each subject , we train an MLP encoder that simultaneously (1) maps fMRI recordings to a latent space and (2) performs classification of visual stimuli according to image labels. After training, we project latent representations using relative coordinates. Given a latent encoding where is an fMRI recording, and , where is subject 's recording of the anchor image , the relative representation is:
where the anchor images are randomly sampled from the dataset.
The critical difference from RSA is that we first extract task-relevant features via supervised encoders; RSA computes second-order similarities directly on raw fMRI signals. The encoders use nonlinear artificial neural networks to discover discriminative patterns in sparse, high-dimensional fMRI data.
Experiments. We evaluate on the Natural Scenes Dataset from the Algonauts challenge (Gifford et al., 2023), chosen for: (i) suitability for deep learning pipelines; (ii) modality variation (fMRI and images); (iii) subject variation (8 participants total).
For each subject and each hemisphere, we train an MLP that takes fMRI recordings as input and performs classification according to the corresponding image labels. After training, we project each subject's latent space using 300 anchor images randomly sampled from the dataset. Evaluation uses paired data: image samples with corresponding fMRI recordings from all subjects.
We measure cross-subject alignment via Mean Reciprocal Rank (MRR):
where X, Y stack the representations of two subjects for the same n stimuli in the condition under test (absolute, PCA-reduced to 300 components, or relative,
9.1. Neuroscience: Multi-subject fMRI Alignment
81


FIGURE 9.1: Cross-subject fMRI alignment via task-informed encoding. (Left) Confusion matrix of MRR similarity between 8 subjects' relative representation spaces; the diagonal is left empty. (Right) Comparison with baselines: Relative coordinates (blue) achieve substantially higher similarity than PCA dimensionality reduction (orange) or absolute coordinates (green). Boxes aggregate the scores of all subject-hemisphere pairs over three anchor sampling seeds, grouped by subject.
, and is the rank of among the rows of Y sorted by similarity to . This quantifies how well corresponding stimuli align across subject-specific representational spaces. We compare three conditions: (i) Absolute—original latent spaces without projection; (ii) PCA—dimensionality reduction to 300 components applied independently per subject; (iii) Relative—correspondence-parallel projection using shared anchors. Results aggregate all subject-hemisphere pairs across three random seeds for anchor sampling.
Results. Relative representations achieve substantially higher cross-subject similarity compared to both baselines (Fig. 9.1). The confusion matrix (left) shows MRR similarity across all 8 subjects: the diagonal is left empty, while off-diagonal entries (0.07–0.19) reveal cross-subject alignment enabled by relative coordinates. The box plot (right) confirms that relative spaces (blue) reach markedly higher MRR scores than PCA (orange) or absolute (green) baselines, demonstrating that correspondence-parallel projection successfully captures the common structure in brain activation patterns across different subjects.
The success of relative projection on top of task-informed encoders—using supervised classification before relative projection—suggests that correspondence-parallel operators may extend beyond artificial neural networks to natural neural systems, with semantic correspondence providing a common principle for cross-system alignment.
This work was presented at Cosyne 2024. While no public code repository was released, the method builds directly on the relative representations framework.
Chapter 9. Domain Applications of Correspondence-Parallel Operators
9.2 Uncertainty Quantification in Latent Spaces
THIS SECTION IS BASED ON THE FOLLOWING PUBLICATION:
It's All Relative: Relative Uncertainty in Latent Spaces using Relative Representations
Fabian Mager, Valentino Maiorca, Lars Kai Hansen
NeurIPS UniReps Workshop 2024
Code: https://github.com/fmager/it-s-all-relative
TL;DR: RelRep can factor out part of the coordinate noise from genuine uncertainty—an alignment metric (between- versus within-observation variance) measures how much.
The neuroscience application confronted natural variability across subjects—different brains processing the same stimuli. Here, we shift to artificial variability within a single model class: ensembles of networks trained on identical data that nonetheless produce incompatible latent coordinates. The challenge moves from cross-subject alignment to quantifying genuine uncertainty when parameterization noise artificially inflates variance estimates.
Ensemble uncertainty quantification in latent spaces confronts the reparameterization problem: different parameterizations of functionally equivalent models create artificial coordinate variations that inflate uncertainty estimates. When measuring latent uncertainty across ensemble members, observed variance conflates two sources: genuine model uncertainty (epistemic variability in what function was learned) and reparameterization noise (arbitrary coordinate variations from how that function is parameterized).
We instantiate using RelRep with anchors (latent dimension: for VGG-16, for PreResNet-110) and, as the main choice, cosine similarity (Euclidean distance and basis norm are also evaluated below). Anchoring all ensemble members to fixed reference points transforms model-specific coordinates into a shared frame that, with the cosine similarity, is invariant to rotations and rescalings.
Our contribution is an alignment metric inspired by Fisher’s Linear Discriminant that quantifies how effectively RelRep removes reparameterization noise. This metric measures the share of between-observation variance (meaningful semantic distances) in the total variance, the remainder being within-observation variance (reparameterization noise from ensemble sampling): . When , RelRep has successfully factored out coordinate noise; observations cluster tightly within-observation while maintaining semantic separation between-observation.
We sample ensemble models along mode-connecting curves in weight space—paths where loss remains constant. This experimental design reveals where uncertainty changes most: in most panels, at curve midpoints.
Method. Neural networks trained from different initializations on the same data learn functionally similar solutions in incompatible coordinate systems. Mode connectivity theory reveals that these independently trained networks can be connected by simple curves in weight space along which loss remains approximately constant (Garipov et al., 2018). This geometric property of loss landscapes enables principled ensemble sampling: we can sample models along loss-constant curves to study
9.2. Uncertainty Quantification in Latent Spaces
83
how reparameterization affects uncertainty. The models do not need to be trained independently.
Given two converged models with parameters , we exploit mode connectivity by fitting a Bézier curve parameterized by , with endpoints and control points in weight space, by minimizing:
where is the original training loss. Once fitted, sampling at discrete steps yields an ensemble of models living on a loss-constant manifold, allowing us to isolate reparameterization effects from genuine functional differences.
The reparameterization problem manifests as artificial variance. Under the assumption that reparameterization effects and model uncertainty are independent sources of variance, observed latent uncertainty decomposes additively as:
where each term is a variance across ensemble members of the representations of observation , is reparameterization noise (coordinate transformations between equivalent representations) and is genuine model uncertainty. With cosine similarity, relative representations eliminate rotation and scaling components of by anchoring coordinates to semantic content, allowing us to isolate .
We define an alignment metric that quantifies this noise removal. Given J ensemble realizations of latent vector (one per sampled model), the metric measures compactness (within-observation variance) relative to separation (between-observation variance):
where is the ensemble mean for observation , the global mean, and is the number of test observations. This formulation applies Fisher's Linear Discriminant (FLD) objective at the observation level: FLD measures the ratio of between-class to within-class variance to assess separability; here, we measure the share of between-observation variance in the total. When , observations cluster tightly within-observation (low ) while separating between-observation (high ), indicating reparameterization noise has been factored out.
For transformation to relative space, we use anchor sets matching the latent dimension , ensuring the relative transformation preserves dimensionality while changing the coordinate frame. We evaluate three similarity functions: (i) cosine similarity to each anchor; (ii) Euclidean distance to each anchor; (iii) basis norm, the projection coefficient onto each anchor, . For cosine similarity and basis norm transformations, spaces are centered using training set mean; for Euclidean distance, spaces are additionally scaled to unit variance.
Chapter 9. Domain Applications of Correspondence-Parallel Operators
Experiments. We evaluate on CIFAR-100 using VGG-16 and PreResNet-110 architectures. For each architecture, we train three models to convergence from different random seeds ( ). For each of the three pairwise combinations ( ), we fit a Bézier curve connecting the modes. Once fitted, we sample models uniformly along each curve ( ).
For each sampled model, we extract latent representations (penultimate layer before classification) on a held-out test set. We then compare alignment in two coordinate systems: (i) Absolute—original latent coordinates; (ii) Relative—transformed via correspondence-parallel projection using randomly chosen anchors. We measure cumulative alignment as ensemble size grows (models added in order of increasing t).
As baseline, we compute alignment across eleven independently trained networks (no curve constraint), establishing the expected alignment level when models are sampled without enforcing mode connectivity.
Results. Relative representations achieve substantially higher alignment than absolute coordinates in all panels but one, confirming that reparameterization noise inflates observed uncertainty (Fig. 9.2). The top panel shows ensemble error along curves: individual model error (left) rises near curve midpoints before recovering, while cumulative ensemble error (right) decreases as ensemble size increases. Pairwise curves show consistent behavior across all three combinations.
The bottom panel reveals the core finding: alignment measured in relative space (purple) substantially exceeds absolute space (green) across all curve positions, except for VGG-16 with Euclidean distance, where relative alignment falls below absolute alignment for t below about 0.5 (about 0.75 for one of the three curves). For VGG-16, cosine similarity achieves the strongest alignment; for PreResNet-110, Euclidean distance performs best. Alignment in absolute space decreases nearly linearly along curves, whereas relative space alignment stabilizes at levels closer to the independently-trained baseline (dashed lines) than absolute space. This indicates relative representations successfully factor out curve-induced reparameterization.
The alignment profile along curves reveals where alignment changes most: in most panels, cumulative alignment decreases most rapidly (steepest negative slope) near (curve midpoint), while endpoints ( or ) show minimal variation. This suggests that ensemble sampling for uncertainty quantification may benefit from prioritizing midpoint regions, where model disagreement—and thus epistemic uncertainty—is highest.
Figure 9.3 visualizes the alignment concept. The left schematic illustrates the Fisher-inspired objective: given J ensemble samples per observation, alignment maximizes between-observation variance relative to within-observation variance. The right panels show t-SNE projections of latent representations (10 classes, VGG-16), where dot size encodes uncertainty magnitude. In absolute coordinates, many observations, often inside class clusters, show large uncertainty; in relative coordinates, the same observations have much smaller uncertainty.
9.2.1 Discussion
The question behind these experiments is how much of the uncertainty measured in the latent space of an ensemble reflects the input, and how much of it is an artifact of the coordinates that each member happens to use. The comparison between absolute
9.2. Uncertainty Quantification in Latent Spaces
85

space type — absolute — relative

FIGURE 9.2: Alignment quantifies reparameterization removal in ensemble latent spaces. (Top) Curve fitting results for VGG-16 (red) and PreResNet-110 (blue), pairwise connecting three modes. Individual model error rate (left) and cumulative ensemble error rate (right). (Bottom) Alignment of embedding spaces along curves for absolute (green) and relative (purple) coordinates. Dashed lines show error rates (top) and alignment (bottom) across eleven independently trained networks (baseline). In most panels, relative spaces achieve higher alignment, indicating reduced reparameterization noise, and the steepest slope occurs at curve midpoint (t = 0.5).
and relative coordinates answers it in part. Along almost every curve, the embeddings of the relative representations remain more aligned than those of the absolute representations (the exception is VGG-16 with the Euclidean distance for small t). A good part of the disagreement between ensemble members in absolute coordinates is therefore the reparameterization that separates two functionally equivalent solutions; it is not disagreement about the input at all. Once the ensemble is projected into a space of relative proximity, much of that disagreement is removed and the measured uncertainty drops accordingly. How much is removed depends on the projection, and the best projection depends in turn on the model: cosine similarity performs best for VGG-16 and the Euclidean distance for PreResNet-110. In both cases, however, the relative alignment ends closer to its own baseline, measured across eleven independently trained networks, than the absolute alignment does. In this respect, once the coordinates are factored out, an ensemble sampled along a curve comes to resemble a conventional ensemble of independent models.
The shape of the alignment curves carries a practical lesson as well. In most panels, alignment decreases most steeply around the midpoint of the curve and varies little in the neighborhood of either endpoint, so the members that bring new information to the ensemble are those sampled away from the two solutions that define it. If the purpose of the ensemble is to quantify uncertainty, this suggests drawing its members far from the endpoints of the connecting curve.
Chapter 9. Domain Applications of Correspondence-Parallel Operators


FIGURE 9.3: Conceptual visualization and empirical measurement of alignment metric. (Left) Schematic: given observations and with J ensemble realizations each (the drawing writes their ensemble means as and the global mean as , and labels the two variances , as , ), high alignment requires compact within-observation clustering (small ) and large between-observation separation (large ). (Right) t-SNE projection of VGG-16 embeddings for 10 CIFAR-100 classes (same t-SNE layout; relative space via cosine similarity). Dot size represents uncertainty. Absolute space (left projection) shows larger uncertainty; relative space (right projection) shows smaller uncertainty.
What the experiments leave open is which projection to use in general. Since the best choice differed between the two architectures, no single projection can be recommended, and the choice is not innocuous: a projection can bias the very estimate it is meant to clean, as the unit-norm scaling of the cosine similarity does by inflating the uncertainty of points close to the zero vector. The anchors, moreover, were a random set, so whether a more deliberate choice, such as archetypes or centroids, would improve the projection remains to be investigated.
This work establishes correspondence-parallel operators as tools for principled uncertainty quantification. By anchoring representations to semantic content, the framework factors extrinsic parameterization noise from intrinsic epistemic uncertainty, enabling honest assessment of what models know versus how they encode that knowledge.
Within the framework of this thesis, this section uses the correspondence-parallel operator of Chapter 4 in a different role from the chapters around it. Here the relative projection does not transport information from one model to another. It is a measurement device: it separates the effect of the coordinates from the effect of the models, and in doing so makes the latent coordinates of the ensemble members comparable, so that their spread can be read as uncertainty. Section 9.3 returns to transfer, in a setting where the anchor embeddings themselves move during training.
9.3. Reinforcement Learning: Zero-Shot Module Stitching
87
9.3 Reinforcement Learning: Zero-Shot Module Stitching
THIS SECTION IS BASED ON THE FOLLOWING PUBLICATION:
Zero-shot stitching in Reinforcement Learning using Relative Representations
Antonio Pio Ricciardi, Valentino Maiorca, Luca Moschella, Riccardo Marin, Emanuele Rodolà
EWRL 2023
Code: https://github.com/antoniopioricciardi/rl_relrepr_gymnasium
TL;DR: EMA-stabilized anchors let RelRep work in online reinforcement learning, so that separately trained encoders and controllers can be stitched with a large reduction in training time.
Where neuroscience addressed static cross-subject variability and uncertainty addressed ensemble parameterization noise, reinforcement learning introduces temporal instability: continuous encoder updates during online training create coordinate drift. The correspondence framework must now stabilize a moving target—anchors whose embeddings shift at every gradient step—while enabling zero-shot composition of visual encoders and task-specific controllers across environment variations.
Visual Reinforcement Learning agents typically require retraining for each new environment variation, even when changes should not affect world semantics (e.g., background color changes) or involve tasks that should be achievable with already-learned exploration patterns (e.g., respecting a velocity limit). This necessitates new training for each variation, consuming significant time and computational resources.
We instantiate using RelRep with anchor observations and cosine similarity, creating modular representations where encoders from one visual variation compose with controllers from one task variation without retraining. This reduces training from visual-task combinations to components, for visual variations and tasks.
We formally model an RL problem as a Markov decision process where defines the set of states, the set of actions, the observation produced as input for the agents, the probability distribution of transitioning to state upon executing action in state , the reward function, and the discount factor. The policy is trained to maximize discounted long-term returns .
We formalize environment variations as , with visual variations indexed by and tasks by : is the pairing of an observation space (capturing visual variations like background color or camera angle) with task (affecting transition dynamics, action spaces, or reward functions through ). Observation spaces differ when they exhibit significant changes (e.g., background color, camera perspective). Task variations affect agent behavior through these task-specific components. Since task information is not explicitly provided, agents must infer it from reward signals.
We train agents separately on different visual-task variations. During testing, we evaluate on unseen visual-task combinations , meaning no agent has been trained end-to-end on that specific pair. Standard practice trains policies end-to-end as neural networks that decompose into encoder (visual feature
Chapter 9. Domain Applications of Correspondence-Parallel Operators
extraction) and controller (action selection): . Different training contexts yield incompatible latent spaces: even for corresponding observations.
Our contribution is exponential moving average (EMA) stabilization that adapts RelRep to online RL's moving target problem. Standard RelRep assumes fixed anchor embeddings, but continuous encoder updates create coordinate drift—the anchors themselves shift at every gradient step. EMA stabilizes RelRep by preserving most of the previous anchor embeddings ( ) at each step, damping coordinate drift while enabling gradual adaptation. This makes RelRep's modular zero-shot composition tractable despite continuous training.
Method. We instantiate correspondence-parallel operators ( pairs observations of the same state under two variations, ) using RelRep (Chapter 4), a method referred to as R3L (Relative Representations for Reinforcement Learning), encoding latent states via cosine similarity to anchors :
where . This factors out absolute coordinate positions while preserving semantic structure: for corresponding observations across environment variations. Training controllers directly on RelRep spaces (in place of the controllers above) yields universal controllers composable across encoders: given policies , zero-shot stitching combines with to create acting on unseen combination .
EMA Stabilization. Online RL training creates coordinate drift: as encoder E updates via gradient descent, anchor embeddings shift continuously, forcing controller D to track a moving target. Naive relative representations amplify this instability—the correspondence-parallel transformation itself drifts as anchors update.
We stabilize training via exponential moving average (EMA):
where stacks the anchor embeddings computed by the encoder at training step , and is their running average, updated at every training step; during training, the relative representation is computed against the rows of . With , each update keeps weight on the previous running average and on the new embeddings, damping coordinate drift while enabling gradual adaptation to encoder updates. The time constant steps characterizes the memory horizon: the weight of a change decays by a factor over about 1000 gradient updates.
Data Collection. Prior work on latent space alignment relies on supervision from parallel anchors—training data samples with partial correspondence across domains. However, online RL lacks such predefined training data. We overcome this through two methods, the first of which requires a critical assumption: deterministic environments.
We obtain parallel observations via (Fig. 9.4): (1) deterministic replay—executing identical action sequences with fixed random seeds across environment
9.4. Reinforcement Learning Experiments
89

FIGURE 9.4: Data collection for parallel anchors. Correspondence across visual variations established via deterministic replay (same action sequence with fixed seed) or pixel-space transformations (u, v and , in the figure are the variations v, w and their observation sets). Both methods assume deterministic environments or well-defined transformations to establish correspondence.
variations, ensuring that each observation has a corresponding ; or (2) pixel-space transformations—directly manipulating observations when visual variations are well-defined (e.g., programmatically changing grass color). The first method requires environments to be deterministic; the second requires that visual changes preserve semantic correspondence. Exploring other methods for approximating observation translation across environments remains future work.
We divide architectures at the flatten layer: encoders (convolutional layers) extract visual features; controllers (linear layers) select actions from latent states. This split enables independent embedding of single-frame anchors before stacking for controller input.
9.4 Reinforcement Learning Experiments
We evaluate on CarRacing (Klimov, 2016) with visual variations (grass color: green/red/blue; camera zoom) and task variations (standard/slow dynamics; scrambled actions; no-idle action space). Training uses PPO (Schulman et al., 2017) via CleanRL (Huang et al., 2022).
Notation. E. Abs/R3L: end-to-end policies with absolute/relative representations. S. Abs/R3L: zero-shot stitched policies (encoder from one visual variation + controller from one task variation). Multicolor: models trained with background colors randomized among green, red, and yellow after each episode reset.
We report: (1) latent similarity (Section 9.4.1); (2) end-to-end performance (Section 9.4.2); (3) zero-shot stitching—the main result (Section 9.4.3).
9.4.1 Latent space analysis
Figure 9.5a compares cosine similarities (green vs. red grass, ~800 aligned frames). Absolute space (left) shows low similarity even on-diagonal; relative space (right) achieves strong diagonal similarity plus meaningful off-diagonal matches. In Fig. 9.5b, most of the pairs shown are off-diagonal and still correspond to semantically similar track positions despite temporal misalignment.
9.4.2 End-to-end performance
R3L achieves comparable training convergence and stability to absolute baselines on CarRacing environments (scores 797–832 across visual variations), except on the
Chapter 9. Domain Applications of Correspondence-Parallel Operators

(A)
(B)
FIGURE 9.5: Correspondence-parallel projection reveals semantic structure. (a) Cosine similarity matrices for absolute (left) vs. relative (right) representations from aligned frames (green/red grass). Absolute space shows uniformly low similarity, even on the diagonal; relative space reveals semantically meaningful off-diagonal matches—functionally similar track positions (e.g., a turn or straight segment of similar shape) despite temporal misalignment. (b) Example frame pairs from high-similarity regions of (a); three of the four are off-diagonal.
slow task (624 ± 125 for R3L vs. 996 ± 6 for absolute). Naive data augmentation fails: training with randomized backgrounds achieves 839 ± 127 (green) and 900 ± 32 (red) but catastrophically fails on unseen blue (158 ± 106 vs. 800+ for direct training)—a 5× drop demonstrating that exposure to variation does not enable zero-shot compositional generalization.
9.4.3 Zero-shot stitching
R3L's advantage emerges when composing encoders and controllers zero-shot to operate on unseen environment variations. Table 9.1 shows stitching performance across seed, visual, and task variations (160 aggregated scores per cell: 10 track seeds × 4 encoders × 4 controllers). Diagonal cells (matching variations, e.g., green-green) stitch components trained with different seeds. Visual and task variations are analyzed independently.
R3L outperforms absolute baselines across all combinations. The multicolor baseline fails catastrophically at zero-shot stitching (all three evaluated cells near zero), confirming that naive data augmentation does not enable modular composition. The slow task variation causes performance decline for R3L.
EMA Ablation. An ablation on CarRacing over (5M frames) selects , achieving training stability matching absolute baselines while enabling zero-shot stitching.
Computational advantage. Zero-shot stitching yields substantial computational savings through component reuse. Consider the CarRacing experiments with visual variations and task variations. Naive training requires training all visual-task combinations (52 hours total, Table 9.2). R3L requires training only the four highlighted combinations—which provide one encoder per visual variation and one controller per task variation (13 hours total, blue cells). Zero-shot stitching then assembles the remaining 12 combinations without additional training.
9.4. Reinforcement Learning Experiments
91
TABLE 9.1: Comparing R3L and absolute in zero-shot stitching performance. The original domains for the encoders and the controllers are listed in the rows and columns, respectively. R3L outperforms the absolute model in all the tests.
| Controller | |||||||
| Visual Variations (standard task) | Task Variations (green) | ||||||
|---|---|---|---|---|---|---|---|
| green | red | blue | slow | scrambled | no idle | ||
| Encoder | S. Abs | ||||||
| S. R3L | |||||||
| S. Abs | |||||||
| S. R3L | |||||||
| S. Abs | |||||||
| S. R3L | |||||||
| far | S. Abs | ||||||
| S. R3L | |||||||
| S. multicolor | - | - | - | ||||
This is a 75% time reduction (39 hours saved), but the advantage scales quadratically: with visual variations and task variations, naive training requires runs, while R3L requires only runs. As environment complexity grows, correspondence-parallel operators transform prohibitive combinatorial training costs into linear scaling.
TABLE 9.2: Table of training times. We only need to train combinations for the cells highlighted in blue and then perform zero-shot stitching to assemble all the other agents (totaling 13 hrs). Normally, it would be required to train agents for each domain-task combination (totaling 52 hrs). Visual variations V1: green, V2: red, V3: blue, V4: far (green) and task variations T1: standard, T2: slow, T3: no idle, T4: scrambled.
| V1 | V2 | V3 | V4 | |
|---|---|---|---|---|
| T1 | 3h | 3h | 3h | 3h |
| T2 | 4h | 4h | 4h | 4h |
| T3 | 3h | 3h | 3h | 3h |
| T4 | 3h | 3h | 3h | 3h |
EMA stabilization mitigates the coordinate drift problem in online RL, enabling zero-shot policy stitching across visual and task variations. Zero-shot stitched policies achieve strong performance on unseen combinations while reducing training time by 75%, with savings scaling quadratically as variations increase. This demonstrates that correspondence-parallel operators extend to sequential decision-making domains where continuous updates would otherwise destabilize alignment.
Part III
Direct Translation: Coupled Operators

Sky and Water II by M.C. Escher (1938). Birds and fish transform gradually into one another, illustrating the coupling principle: both sides of the correspondence work together to enable direct transformation between fundamentally different representations.
© The M.C. Escher Company, The Netherlands. All rights reserved. Reproduced for academic, non-commercial use.
Describing every space relative to shared elements makes models comparable, but it leaves behind what each model already knows how to do with its own coordinates: a classifier, a decoder or a generator trained on one model's native representation cannot read the shared description. The operators of this part keep that machinery in use. Given the same correspondence, they learn a translation from one space directly into the native coordinates of another, so that the target's own components work unchanged, whether the two spaces belong to different models, to different layers of one model, or to one model before and after an intervention on its activations.
Part II established correspondence-parallel operators that transform spaces independently to semantic coordinates—intrinsic representations where models meet in auxiliary space. This part develops correspondence-coupled operators that sacrifice modularity to gain decoder compatibility. By using both sides of correspondence together, we construct direct transformations whose outputs live in target extrinsic coordinates—the native coordinate system of the target space.
The geometric principles remain unchanged: correspondence anchors arbitrary coordinate systems to shared semantic structure, revealing which geometric relationships persist across optimization trajectories. What differs is the operational mode. Coupled operators construct direct paths from source to target extrinsic coordinates, with no auxiliary semantic space in between. This design enables immediate reuse of pretrained decoders without modification, since outputs already inhabit the coordinate system decoders expect.
The same correspondence methodology applies whether the target is a different model, a different layer within the same model, a different temporal state, or a different distributional region. Chapter 10 bridges the two operator families: it composes a correspondence-parallel projection with an inverse reconstruction, so that outputs return to the native coordinates of the target space. Chapters 11 and 12 present cross-model translation: fitting orthogonal transformations between models and constructing spectral operators that preserve functional relationships. Chapters 13 to 15 apply correspondence principles within single models: decomposing residual streams spectrally, selecting attention heads for concept control, and steering representations through distributional alignment. In each case, correspondence links source and target—whether across models or within components—enabling transformations that respect semantic structure while operating in native extrinsic coordinates.
Chapter 10
Inverse Relative Projection
THIS CHAPTER IS BASED ON THE FOLLOWING PUBLICATION:
Latent Space Translation via Inverse Relative Projection
Valentino Maiorca*, Luca Moschella*, Marco Fumero, Francesco Locatello, Emanuele Rodolà
arXiv 2024
TL;DR: Composing a relative projection with a pseudo-inverse reconstruction gives outputs in the target's native coordinates, so frozen decoders can be reused.
10.1 Introduction: The Bridge Between Operator Families
The correspondence framework (Chapter 3) establishes two operator families distinguished by fundamental trade-offs. Correspondence-parallel operators ( ) transform spaces independently using their respective sides of correspondence, producing outputs in auxiliary semantic coordinates that enable modular one-to-many communication. Correspondence-coupled operators ( ) use both sides together to construct direct transformations, producing outputs in target extrinsic coordinates compatible with pretrained decoders. The former provides modularity; the latter enables decoder reuse. Can we achieve both simultaneously?
This chapter presents a method that bridges these two operator families through operator composition. By chaining a forward correspondence-parallel projection with an inverse reconstruction operator, effective translation is obtained that maintains the modularity of parallel processing while producing outputs in target-native coordinates suitable for frozen pretrained decoders. The key technical contribution is formalizing and stabilizing the inverse transformation: given semantic coordinates produced by RelRep (Chapter 4), target absolute coordinates are reconstructed through pseudo-inverse operations, enabling decoder compatibility without sacrificing the independence property that makes correspondence-parallel operators attractive for model ecosystems.
10.2 Method
10.2.1 Relative Representations
Recall from Chapter 4 that RelRep factors out extrinsic factors by anchoring to the anchors taken from the source side of the correspondence , producing semantic coordinates through the relative projection , where
Chapter 10. Inverse Relative Projection
holds absolute encodings of dimension , holds the embeddings of the anchors in , , and representations and anchors are normalized to unit norm (see Chapter 5 for extended discussion of angular invariances). This chapter uses “relative space” to denote the semantic coordinates produced by RelRep, and “absolute space” to denote the native extrinsic coordinates of a model. The key observation enabling the inverse method is that semantically similar spaces differ primarily by isometry transformations (translation, rotation, reflection) and local rescaling, allowing separate estimation of these components and decoding of a single relative space into multiple target absolute spaces.
10.2.2 Latent Space Translation
The key benefit of the relative projection is its non-injective nature, as it maps different absolute spaces into a single relative space. The method formalizes the inverse process by exploiting the information contained in the anchor points. At a high level, the relative space is an intermediate space through which an encoding is translated from an absolute space X to any other semantically similar absolute space Y. This can be formalized as:
under the assumption that , where holds the target encodings of the same samples, the target embeddings of the anchors paired by , , is the reconstruction of , and denotes the Moore–Penrose pseudo-inverse. This transformation of relative to absolute coordinates allows transferring any encoding between absolute spaces using only a subset of points from both spaces (the anchors). The anchors of the source space, the encoding space , project into the shared relative space, while the anchors of the target one, the decoding space , project back to the specified absolute space.
As with other correspondence-based methods (see Chapters 4, 11 and 12), the anchor points must be in correspondence to effectively translate between spaces. They represent the only bridge, a partial correspondence between them, much like a “Rosetta stone” (see Chapter 7 and Norelli et al., 2023).
10.2.3 Stability improvements
This section presents techniques for enhancing the stability of the process for inverting the anchors and evaluates their impact. Consider the anchor matrix of either side, with the latent dimension of that side ( or ). inverts the relative projection exactly when has rank ; with a pruned subset of fewer than rows it yields the least-squares reconstruction within the span of the selected rows. In a synthetic setting, where the vectors in can span the whole ambient space , the curse of dimensionality (Bellman, 1966) makes a rank-deficient highly unlikely. However, in practical scenarios, is composed of only a reduced set of parallel anchors, and it is difficult to arbitrarily expand it using the entire training set (see Chapter 6 and Cannistraci et al., 2023b; Vedula et al., 2024). Additionally, the manifold hypothesis restricts the subspace where the encodings live, which is not the whole ambient space. This makes it more likely for two random points to be similar enough to negatively impact the inverse process’s feasibility. This motivates the following stability improvements.
10.2. Method
97
Anchor Pruning Let the anchor set be drawn at random from the training data, with anchors; the goal is to refine this set to enhance the stability of the inverse process. As a subset of the data manifold, the anchors may exhibit high correlation, leading to many near-zero singular values during the inverse computation. To mitigate this, a technique called “anchor pruning” is introduced.
The greedy farthest point sampling (FPS) algorithm (Eldar et al., 1997) selects a subset of the rows of with maximum orthogonality. The dissimilarity used by FPS is a customized cosine distance, calculated as:
where the rows of A have unit norm, so that holds the pairwise cosine similarities, and denotes the entry-wise absolute value to avoid quasi-colinear points with opposite directions. A stopping condition ( ) is applied based on the minimum acceptable distance between points. The subset of anchors selected by FPS is defined as:
for , one run per random seed with the number of runs, while keeps the corresponding rows of . The remaining vectors in span a subspace of the row space of . This process has the effect of selecting a highly informative set of anchors while reducing the correlation between them, which improves the stability of the inverse process.
Anchor Subspaces To balance the reduction in the cardinality of the anchor set given by the anchor pruning, the pruning procedure is applied multiple times with different random seeds, controlled by the parameter . For each anchor subset (spanning a subspace), the absolute space is independently reconstructed. The reconstructed spaces are then average-pooled in a parameter-free ensemble fashion:
where is the relative encoding of X with respect to , the anchors of X in correspondence with . This approach maximizes the coverage of the original set of anchors while maintaining stability in the inverse process. It can be seen as an ensembling step, where the absolute encodings are reconstructed as the mean of the predictions of different estimators.
Overall, this process increases the method’s robustness to the stochastic factors introduced by the anchor pruning while also mitigating information loss.
Anchor Completion The objective of this step is to recover points as anchors, such that the dimensionality of the points is not altered when transforming X into . To achieve this, the identity matrix is first encoded using any anchor subset and decoded using the corresponding subset . This process reveals how the canonical basis of maps to relative space and back to space . The canonical basis in becomes the new set of anchors for (denoted as ; these are anchors with no observation behind them), with the corresponding points as the new set of anchors for (denoted as ). Intuitively, this process: i) stabilizes the computation without altering the information encoded by the anchors, redistributing
Chapter 10. Inverse Relative Projection

FIGURE 10.1: Scale invariance of RoBERTa according to the performance of a downstream classifier trained on the encodings of the last attention layer. At each layer (with 0 being the embedding layer and 12 the output one), for each run, the encodings are normalized to unit norm and multiplied by , and the effect on final accuracy is measured. The performance without any rescaling is 0.92.
it across different dimensions; ii) amounts to estimating a linear map from to (an isometry when the two spaces differ by one), since the relative encoding of with respect to the new is itself.
This yields a number of anchor points equal to , ensuring that projecting X into the relative space does not change the dimensionality of the points.
10.2.4 Scale invariance and temperature
This section investigates the scale-invariance properties of neural classifiers that utilize the softmax activation function. The focus is on the effect of rescaling operations on the latent input encodings, arguing that, by construction, certain classifiers exhibit scale-invariance properties without the need for additional priors.
The softmax function, commonly used in neural classifiers, is known to be a temperature-controlled variant of the argmax function:
10.3. Relative Inversion
99
where are the logits over classes and is the temperature; as the output approaches the one-hot argmax.
This means that the softmax temperature can be used to control the level of confidence of the classifier’s predictions. This section shows that a similar effect can also be achieved by rescaling the latent encodings given as input to a trained (and frozen) classifier.
To show this, note that the rescaling factor, , can be factored out of the matrix multiplication in the Linear layers of the classifier. This can be represented mathematically as: , where is the input latent encoding, is the weight matrix, is the bias vector, is the rescaling factor, and is the output of the final linear layer, i.e. the logits of Eq. (10.5). Strictly, for and a bias-free layer ( ), this implies that the rescaling operation can be “pushed through” the classifier without affecting its final prediction as it becomes equivalent to some temperature value applied at the softmax level.
Regarding the effect of rescaling when non-linear activation functions are involved, it is conjectured that as long as the function has a monotonic interval, rescaling all dimensions by an amount similar to the mean scale of the encodings on which the classifier was trained keeps the encodings in the monotonic interval, preserving the scale-invariance property. Section 10.3.2 links the monotonic interval of activation functions to the scale range of the data encodings.
In summary, this analysis provides an argument that neural classifiers that utilize the softmax activation function can, in practice, maintain their scale-invariance properties when the input latent encodings are rescaled (Fig. 10.1). This property is essential to the method, as it allows ignoring the exact scale when decoding back to the absolute space.
10.3 Relative Inversion
This section evaluates the capabilities and effectiveness of the proposed method. The results first demonstrate inverting a relative space by decoding it back into the original absolute space on which it was computed, referred to as intra-space inversion. This provides a valuable illustration of the method's effectiveness and components. Building upon this, the property that relative representations of semantically similar spaces are relatively consistent enables generalization to inter-space inversion, which decodes into an absolute space different from the one used for relative encoding, effectively enabling latent translation.
Experimental setting All experiments follow a relative inversion pattern: given a dataset D and a set of encoders , where , the method translates a sample x from the latent space produced by to the latent space produced by . The translation consists of the following steps: (1) centering and L2 normalization; (2) relative encoding with the anchors embedded by ; (3) relative decoding with the anchors embedded by ; (4) de-normalization and de-centering according to the anchor statistics. The dimensionality of and is arbitrary and may differ, enabling zero-shot translation between latent spaces of different dimensionalities.
10.3.1 Space Inversion
The performance of the method is evaluated by analyzing its sensitivity to two hyperparameters: (number of subspaces) and (pruning threshold). The analysis
Chapter 10. Inverse Relative Projection
examines how these parameter choices affect overall performance and identifies optimal values for each.
Vision The experiments use CIFAR-100, an image classification dataset, embedding each image with 5 different encoders: 3 vision transformers (Dosovitskiy et al., 2021), RexNet (Han et al., 2021), and the visual encoder of CLIP (Radford et al., 2021). For each sample and encoder, the relative encoding followed by relative inversion is applied with different values for and . The analysis measures: i) reconstruction similarity in terms of cosine similarity (since scale can be ignored) between the original encoding and the reconstructed one; ii) whether and affect performance in the same way for both intra-space and inter-space settings. The experiments use 768 anchors and group all results by and .
The results in Fig. 10.2 demonstrate that: i) the inverse works effectively, achieving medium to high similarity between the original encoding and the reconstructed one; ii) has little to no impact in the intra-space setting when the number of anchors pruned is low (low ), but effectively compensates for aggressive pruning (high ); iii) the inter-space setting reveals synergy between the two parameters, with optimal balance found at medium-high pruning combined with high resampling (high ).
Language The experiments use WikiMatrix (Schwenk et al., 2021) as a source for parallel multi-lingual data, consisting of translations of the same sentence in different languages automatically extracted from Wikipedia. The selection includes ~4000 samples with high probability of being different translations of the same sentence in 4 languages. For each language, a language-specific RoBERTa-based encoder is selected: English (Y. Liu et al., 2019), Spanish (Gutiérrez-Fandiño et al., 2022), French, and Japanese. Each sentence in a sample is encoded using its corresponding language-specific encoder and a language-agnostic one, specifically XLM-R (Conneau et al., 2020). The task translates a mono-lingual encoding in a source language to its corresponding mono-lingual encoding in a target language. Cosine similarity between the two is the score metric used to compare: i) the decoded representation of the method, Inverse Relative Projection (IRP); ii) the multi-lingual representations of XLM-R; iii) the original mono-lingual encodings of the two languages.
The results in Table 10.1 demonstrate that the latent translation method works effectively across languages. For reference, the mean en similarities between all possible pairs of different embeddings in the absolute and XLM-R spaces are respectively and .
These experiments demonstrate that the reconstruction is effective across various domains (including different languages) and with different encoders.
10.3.2 Empirical Validation of Scale Invariance
This section examines scale invariance in neural networks and its implications for model compositionality. By analyzing the behavior of networks when subjected to a specific type of input manipulation, rescaling injection, the robustness and versatility of neural networks in handling different scales of input data is demonstrated, a property that enhances the applicability of the inverse relative projection method.
Rescale Injection The rescaling injection is defined as the operation of artificially altering the scale of the features produced at a specific layer of the network. This is achieved by normalizing the embeddings to unit norm and then rescaling them by a
10.3. Relative Inversion
101

Reconstruction Similarity

Pruning Threshold ( )
Pruning Threshold ( )
FIGURE 10.2: On the top row, reconstruction similarity sensitivity at different number of subspaces and pruning threshold ( ) of intra-space inversion (left) and inter-space inversion between different encoders (right) on the coarse-grained CIFAR-100. On the bottom row, the corresponding condition number average over the subspaces. Higher pruning thresholds lower the condition number, stabilizing the matrix inverse; in the inter-space setting this increases the reconstruction similarity up to .
TABLE 10.1: Reconstruction similarities between parallel encodings across languages. Absolute refers to the original encodings, XLM-R to the encodings of a multilingual LLM, IRP to Inverse Relative Projection, comparing the translated source embeddings with the target ones.
| Enc. | Dec. | Absolute | XLM-R | IRP |
|---|---|---|---|---|
| en | en | 1.00 | 1.00 | 0.97 |
| es | en | 0.00 | 0.99 | 0.97 |
| fr | en | -0.02 | 0.99 | 0.97 |
| ja | en | 0.03 | 0.99 | 0.97 |
Chapter 10. Inverse Relative Projection

FIGURE 10.3: Performance comparison of three Multilayer Perceptrons (MLPs) with different activation functions, namely cosine (blue), ReLU (orange), and tanh (green) at different rescaling factors . The ReLU and tanh MLPs exhibit scale invariance for , while the cosine activation function is only invariant on the mean data scale and its periodic cycles.
factor of ; this per-sample rescaling sets the norm of each embedding to , unlike the global factor multiplying the raw encoding in above. By varying the value of , the network's performance at different scales is observed. This empirical analysis provides insight into the scale invariance properties of neural networks and their potential for use in model compositionality.
Figure 10.3 presents experimental results regarding this investigation. Simple multi-layer perceptrons (MLPs) composed of two hidden layers, with no normalization layers, were trained using encodings produced by the CLIP vision transformer (clip-vit-base-patch32) on the CIFAR-100 (fine) dataset. The MLPs were evaluated using different activation functions: cosine (blue), ReLU (orange), and tanh (green). The rescaling injection technique was applied directly to the input embeddings, scaling the unit-normalized embeddings by .
For , the scale of the embeddings has little impact on the MLPs' performance when using monotone activation functions that do not flip signs. This is a non-trivial result, as the nonlinearity of the activation function, the presence of bias terms b, and the absence of normalization layers make it difficult to predict the performance impact of rescale injection. The cosine activation function shows an oscillatory performance comparable to the original embeddings when rescaled by the mean embeddings scale (vertical red line) or its opposite since it is symmetric.
Even the internal layers of large deep learning models exhibit positive scale invariance, as illustrated in Fig. 10.1. The underlying mechanism for this behavior is not straightforward, but may result from the interplay between various factors, such as the choice of activation function, the use of normalization layers, the optimization objective and regularization techniques employed during training. While further research is needed to fully understand this phenomenon, it can be exploited for inverse projection purposes since it allows ignoring the encoding scale.
Scale distributions Figure 10.4 presents the scale distribution of the embeddings produced by several encoders on the CIFAR-100 (fine) dataset. This empirical analysis shows a consistent pattern among encoders, in that the scale distribution of their embeddings follows a roughly Gaussian one with a single mode and a well-defined mean, with minimal presence of outliers. This consistent behavior across encoders is likely attributed to their architectural choices, such as the normalization techniques, regularizations and the optimization problems they are designed to solve.

FIGURE 10.4: Distribution of the embedding scales in different pre-trained encoders on the CIFAR-100 dataset. Well-behaved roughly Gaussian distributions with a single mode and well-defined mean are crucial for the method, as they support the ability to rescale the embeddings to a mean scale.
Overall, the scale invariance property and the encoders' well-behaved scale distribution enable the zero-shot translation between arbitrary latent spaces via the IRP method.
10.4 Zero-Shot Model Stitching via Relative Space
This section combines the inter-space translation capabilities (Section 10.3) of the method with the scale-invariance of neural classifiers (Sections 10.2.4 and 10.3.2) to obtain zero-shot stitching of independently pretrained models and classification heads. This method is distinct from previous approaches that rely on relative representations, as it does not assume that the decoders have been independently trained on relative representations. Additionally, since the relative space itself is the bridge between absolute ones, the transformation remains independent and not conditioned on the target space as in Maiorca* & Moschella*, et al. (2023) (see Chapter 11). In fact, each absolute space gets independently encoded to the relative one, and each absolute space can be independently decoded just by selecting appropriate anchors. This makes the approach more versatile and applicable to a wider range of scenarios, especially when the target space is unknown beforehand.
Experimental setting The experiments use a variety of Computer Vision (MNIST (LeCun et al., 1998), F-MNIST (H. Xiao et al., 2017), CIFAR-10, CIFAR-100 (Krizhevsky, 2009)) and Natural Language Processing (TREC (Hovy et al., 2001) and N24News (Z. Wang et al., 2022)) datasets. For the text domain, five language models are the encoders, and for the image domain, five encoders, all pretrained and frozen. For each dataset and encoder, a classification head is trained on top of their specific encodings. The mean performance over all combinations of (encoder, classification head) for each test set is then measured in different settings: i) zero-shot, the result of applying inter-space translation, for which and are also reported; ii) absolute, the result of using the encodings without any transformation, considered as a probe for any pre-existing compatibility of encodings; iii) non-stitch, the performance of the
Chapter 10. Inverse Relative Projection
TABLE 10.2: Zero-shot stitching for classification. Comparison between stitching and non-stitching accuracies. Stitching includes the translation method (zero-shot) with its hyperparameters and the stitching of absolute spaces. The achievable rows show the number of possible combinations the stitching methods can tackle among the available ones. The method works between encoders of arbitrary embedding dimensionality, enabling stitching of all available pairs. The results are averaged over 5 different random seeds. The non-stitch column reports, for reference, each classification head applied to the encoder it was trained on.
| Accuracy | available | ||||||
|---|---|---|---|---|---|---|---|
| zero-shot | absolute | non-stitch | |||||
| Vision | MNIST | 8 | 0.65 | 20 | |||
| F-MNIST | 8 | 0.65 | 20 | ||||
| CIFAR-10 | 8 | 0.75 | 20 | ||||
| CIFAR-100 (coarse) | 8 | 0.70 | 20 | ||||
| CIFAR-100 (fine) | 8 | 0.75 | 20 | ||||
| achievable | 20 | 6 | |||||
| NLP | TREC | 8 | 0.70 | 20 | |||
| N24News | 8 | 0.65 | 20 | ||||
| achievable | 20 | 20 | |||||
classification head applied to the original space it was trained on, considered as an upper bound.
Lastly, one dataset, TREC, is selected to examine the sensitivity to the hyperparameters and , considering their impact on: i) the reconstruction similarity; ii) the accuracy on the downstream task; iii) the mean condition number across the subspaces; iv) the mean number of anchors after pruning across subspaces.
Result analysis. The complete stitching results are in Table 10.2. As expected, the absolute encodings achieve a score comparable to random guessing while also considering fewer encoder combinations in the vision setting, due to the dimensionality discrepancy between some of them.
Additionally, as expected, Fig. 10.5 shows a high correlation between the reconstruction similarity and the classification accuracy: their Pearson correlation is 0.7. Performance-wise, having a stable inverse (i.e., a low condition number) is more important than many anchors, which intuitively should better represent the data. Indeed, the best performance is obtained with few anchors and a low condition number. Moreover, the anchor pruning technique successfully stabilizes the inverse, as demonstrated by the high Pearson correlation between the condition number and the number of anchors (0.93).
This result shows the effectiveness and stability of the inversion method in zero-shot classification scenarios, as well as its ability to maximize the information extracted from the starting anchor set.
Reconstruction Similarity

Accuracy

Condition Number
Number of anchors

Pruning Threshold ( )
Pruning Threshold ( )
FIGURE 10.5: On the top row, the reconstruction similarity (left) and accuracy (right) sensitivity analysis on the number of subspaces ( ) and pruning threshold ( ) on the TREC dataset. On the bottom row, the corresponding condition number (left) and the number of anchors after pruning (right) averaged across subspaces. The metrics are averaged over stitching between all possible pairs of language encoders across 3 seeds.
10.4.1 Cross-domain stitching
As a final experiment, the capabilities of the inversion method to translate representations between distinct domains in a zero-shot fashion are tested.
Experimental setting The experiments select N24News as in Maiorca* & Moschella*, et al. (2023), since it is a multimodal news classification dataset that contains both text and associated pictures. Different pretrained uni-modal encoders apply the standard encoding procedure to these two features separately. A classification head is then trained on top of each one. Finally, each encoder is stitched with a classification head different from its corresponding one, measuring classification accuracy.
Result analysis. The results are in Fig. 10.6. The discrepancy in the mean accuracy across the rows and the columns of the heatmap is a signal that can be used to identify spaces more suited to be decoded into and the ones that are stronger in encoding from. In fact, the RoBERTa and XLM-R language models as source space for the translation
Chapter 10. Inverse Relative Projection

Encoder
| Model | Acc |
|---|---|
| ViT-base | 0.50 |
| RexNet | 0.42 |
| ViT-small | 0.48 |
| ViT-ResNet50 | 0.50 |
| Electra | 0.60 |
| RoBERTa | 0.76 |
| XLM-R | 0.71 |
FIGURE 10.6: Performance comparison between different encoders and data modalities on the N24News multimodal dataset. On the right, each classification head applied to the encoder it was trained on. On the left the stitching performance between pairs of encoders and decoders. The stitching achieves satisfactory results even when translating across modalities. Results obtained with 1000 anchors, and .
exhibit stronger performance than the vision encoders, as observed by Maiorca* & Moschella*, et al. (2023). This behavior relates to the higher generality of the text domain data used during pre-training with respect to the image domain one (Zhai et al., 2022).
Overall, these results show that the method can effectively zero-shot translate across different domains.
Chapter 11
Latent Space Translation via Semantic Alignment
THIS CHAPTER IS BASED ON THE FOLLOWING PUBLICATION:
Latent Space Translation via Semantic Alignment
Valentino Maiorca*, Luca Moschella*, Antonio Norelli, Marco Fumero, Francesco Locatello, Emanuele Rodolà
NeurIPS 2023
Code: https://github.com/Flegyas/latent-translation
TL;DR: Semantic correspondence can be used to efficiently estimate cross-space transformations, mostly in closed form, with no extra training.
11.1 Introduction
This chapter presents the first correspondence-coupled operator (Chapter 3) in the thesis: affine and orthogonal alignment, the latter via Procrustes analysis. Given a correspondence establishing semantic relationships between observation spaces through paired anchors, a direct transformation is constructed that exploits both sides of the correspondence jointly. Unlike methods (Chapters 4 and 7) that transform spaces independently into semantic coordinates, produces outputs in the target's extrinsic coordinate system, enabling immediate decoder compatibility without auxiliary decoder training.
The main contribution is direct translation between representation spaces, using mostly closed-form algebraic procedures. While relative representations (Chapter 4) showed that spaces sharing semantic structure differ primarily by angle-preserving transformations, they require decoders trained on semantic coordinates. Complementary to inverse relative projection (Chapter 10)—which enables projecting semantic coordinates back to extrinsic spaces—this chapter directly estimates the transformation between extrinsic representations, enabling zero-shot stitching of arbitrary pretrained encoders and decoders across different trainings, architectures, and even modalities.
Building on the intuition that representation spaces are related by simple transformations, this chapter demonstrates the effectiveness and applications of directly translating between different representation spaces—provided that a partial (and possibly sparse) correspondence between data points is given. The process of combining different neural networks, pretrained on diverse datasets, modalities, architectures,
Chapter 11. Latent Space Translation

FIGURE 11.1: Zero-shot stitching of X and Y extrinsic spaces (labelled X and Y in the figure, where Z is the relative space and , are the anchor matrices , ; in the edge labels, X and Y are the stacked representations X, Y, and the superscript T is the transpose ) utilizing relative representations and semantic alignment (the estimation of , T in the figure). This approach does not require a decoder specifically trained on relative representations (D on the relative space , the central decoder in the figure). Instead, it directly translates representation spaces, enabling the use of arbitrarily pretrained decoders ( , in the figure, i.e. the decoders , ) originally trained on extrinsic spaces.

FIGURE 11.2: Method illustration on a synthetic example. Given a source space X, the steps to translate it to a target Y are sequentially applied as described in Section 11.2.2. Note that the translation is not perfect due to an arbitrary distortion of the data.
domains and downstream tasks, proves straightforward. For instance, this capability enables effective integration of any pretrained text encoder with any image classification head, and vice versa, without requiring additional re-training or assumptions about decoder training (Moschella* & Maiorca*, et al. 2023 assume decoders are trained on semantic coordinates). The method difference is emphasized in Fig. 11.1. While zero-shot stitching with correspondence-parallel methods assumes the use of a single decoder specifically trained on semantic coordinates, the approach permits the reuse of decoders originally trained on their native extrinsic coordinate systems.
Semantic alignment demonstrates that operators bridge the gap between modularity and decoder compatibility: by estimating mostly closed-form transformations directly from correspondence, zero-shot stitching across architectures and modalities is achieved without auxiliary decoder training. Chapter 12 extends this approach using spectral methods to exploit functional structure.
11.2 Method
11.2.1 From Correspondence-Parallel to Correspondence-Coupled
Recall from Chapter 4 that correspondence-parallel methods transform spaces independently using their respective sides of the correspondence, producing outputs in
11.2. Method
111
semantic coordinates. While this enables zero-shot communication between models, it requires decoders trained specifically on semantic coordinates—a practical limitation.
Semantic alignment eliminates this constraint through a correspondence-coupled approach. Given a correspondence between paired anchor sets, transformation is directly estimated that maps from source to target extrinsic coordinates. This joint exploitation of both correspondence sides enables immediate decoder reuse without auxiliary training, while relaxing the strict angle-preserving assumption of RelRep to broader transformation classes obtained via mostly closed-form algorithms.
11.2.2 Latent Space Translation
Consider two representation spaces and , with paired samples stacked as and . The objective is to estimate the transformation that translates into , exploiting the semantic alignment between the two spaces: is estimated from the anchor pairs, , and applied row-wise, , with and the parameters of the affine map introduced below. Here and stack the encodings and of the pairs in the same row order (shapes before zero-padding); in the fit, and denote the pre-processed (zero-padded and standardized) matrices, and the full translation applies followed by de-normalization. The translation process involves two main steps: pre-processing the spaces and estimating the transformation , as outlined in Fig. 11.2.
Pre-processing. Generally, the two spaces may have different dimensionalities—in those cases, the method zero-pads the smaller one to match the dimension of the other without changing its underlying structure (Williams et al., 2021). Moreover, each feature in the encoding is standardized to have zero mean and unit variance (standard scaling) if not otherwise specified, whose statistics are computed only on the anchor sets for both source and target space, to perform the necessary de-normalization.
Estimating . Moschella* & Maiorca*, et al. (2023) empirically show that spaces mostly differ by an angle-preserving transformation. Nevertheless, the investigation broadens by considering different ways of obtaining to evaluate the robustness of that assumption and the versatility of the approach. The method primarily operates under the assumption that can be constrained to encode, at most, an affine transformation: .
This general formulation, without additional constraints, corresponds to the affine method in the experiments, and it is optimized via gradient descent. The other transformations are trivially obtained by progressively adding constraints on this one:
-
linear. To model a linear transformation, the bias is set to zero, , and T is fitted by least squares. Here the class of transformations is simplified and the optimization switches from gradient descent to a closed-form procedure.
-
1-ortho. Additionally, T is constrained to an orthogonal R to encode an isometry. In this case, R is obtained by applying Singular Value Decomposition (SVD) on the corresponding T obtained by the linear solution. Through this, the
Chapter 11. Latent Space Translation

Number of anchors
FIGURE 11.3: Performance comparison of affine, linear, l-ortho, and ortho at varying number of anchors on classification accuracy. Results on CIFAR-100 fine-grained.
implications of enforcing orthogonality on a transformation that was originally not constrained to be so are examined, in a setting similar to Xing et al. (2015).
• ortho. Here too T is constrained to an orthogonal R: to obtain the optimal one, Procrustes analysis is applied (Schönemann, 1966; Gower, 1975).
This methodology facilitates efficient and precise zero-shot translation between disparate representation spaces. The transformation , derived solely from the subset of corresponding points, provides a robust and versatile foundation for model reuse and interoperability in diverse machine learning contexts.
11.3 Latent Communication via Translation
This section evaluates the capabilities and effectiveness of the translation method through various scenarios, highlighting its applicability in diverse contexts. Empirical results are presented in three different settings: i) cross-architecture; ii) cross-modality; iii) autoencoding. In each case, the translation performance of each method for obtaining the transformation is evaluated against two baselines: the naive absolute baseline and the relative representation baseline.
Stitching Procedure. Following the zero-shot stitching concept from Moschella* & Maiorca*, et al. (2023), independent encoders and decoders (e.g., classifiers, generators) are combined without subsequent training or fine-tuning. This approach does not necessitate a decoder trained on relative representations; instead, the original decoders trained on extrinsic spaces are directly employed. Each benchmark follows the same procedure unless otherwise specified: the mean performance is measured over all the possible combinations of (encoder, decoder) for each test set in different settings:
-
no-stitch. The end-to-end performance of the decoder applied to the original space it was trained on. This is useful to establish an upper-bound in performances;
-
absolute. The result of using the encodings without any transformation, considered as a probe for any pre-existing compatibility among encodings and, therefore, a lower-bound;
TABLE 11.1: Cross-architecture stitching with various methods for estimating and applying standard scaling (mean standard deviation over seeds). The stitched decoders are SVMs with a linear kernel. 5 runs for each encoder-decoder pair. (C) and (F) next to CIFAR-100 indicate, respectively, coarse-grained and fine-grained.
| Dataset | no-stitch | absolute | relative | affine | linear | l-ortho | ortho | |
|---|---|---|---|---|---|---|---|---|
| Vision | CIFAR-10 | 0.95 ± 0.03 | 0.16 ± 0.22 | 0.80 ± 0.22 | 0.92 ± 0.05 | 0.88 ± 0.11 | 0.90 ± 0.09 | 0.93 ± 0.04 |
| CIFAR-100-C | 0.85 ± 0.07 | 0.11 ± 0.21 | 0.54 ± 0.25 | 0.78 ± 0.09 | 0.73 ± 0.16 | 0.77 ± 0.11 | 0.81 ± 0.07 | |
| CIFAR-100-F | 0.76 ± 0.09 | 0.07 ± 0.21 | 0.30 ± 0.24 | 0.68 ± 0.11 | 0.62 ± 0.19 | 0.64 ± 0.16 | 0.71 ± 0.09 | |
| F-MNIST | 0.88 ± 0.01 | 0.15 ± 0.20 | 0.63 ± 0.23 | 0.86 ± 0.01 | 0.83 ± 0.06 | 0.82 ± 0.05 | 0.85 ± 0.02 | |
| MNIST | 0.96 ± 0.01 | 0.15 ± 0.21 | 0.50 ± 0.22 | 0.94 ± 0.01 | 0.89 ± 0.08 | 0.81 ± 0.11 | 0.91 ± 0.02 | |
| Text | TREC | 0.87 ± 0.12 | 0.20 ± 0.06 | 0.36 ± 0.13 | 0.82 ± 0.12 | 0.74 ± 0.25 | 0.57 ± 0.25 | 0.79 ± 0.11 |
| AG News | 0.73 ± 0.09 | 0.25 ± 0.02 | 0.39 ± 0.13 | 0.65 ± 0.08 | 0.62 ± 0.08 | 0.61 ± 0.10 | 0.66 ± 0.10 | |
| DBpedia | 0.78 ± 0.23 | 0.07 ± 0.01 | 0.16 ± 0.10 | 0.66 ± 0.24 | 0.62 ± 0.23 | 0.57 ± 0.23 | 0.66 ± 0.22 | |
| IMDB | 0.61 ± 0.04 | 0.50 ± 0.01 | 0.51 ± 0.02 | 0.59 ± 0.04 | 0.57 ± 0.04 | 0.56 ± 0.03 | 0.59 ± 0.04 |
TABLE 11.2: Cross-architecture stitching with various methods for estimating and applying normalization (mean standard deviation over seeds). The stitched decoders are SVMs with linear kernel. 5 runs for each encoder-decoder pair. (C) and (F) next to CIFAR-100 indicate, respectively, coarse-grained and fine-grained.
| Dataset | no-stitch | absolute | relative | affine | linear | l-ortho | ortho | |
|---|---|---|---|---|---|---|---|---|
| Vision | CIFAR-10 | 0.95 ± 0.03 | 0.16 ± 0.22 | 0.80 ± 0.22 | 0.93 ± 0.04 | 0.78 ± 0.27 | 0.88 ± 0.12 | 0.91 ± 0.09 |
| CIFAR-100-C | 0.85 ± 0.07 | 0.11 ± 0.21 | 0.54 ± 0.25 | 0.79 ± 0.07 | 0.65 ± 0.25 | 0.73 ± 0.17 | 0.79 ± 0.10 | |
| CIFAR-100-F | 0.76 ± 0.09 | 0.07 ± 0.21 | 0.30 ± 0.24 | 0.69 ± 0.10 | 0.52 ± 0.25 | 0.62 ± 0.19 | 0.68 ± 0.13 | |
| F-MNIST | 0.88 ± 0.01 | 0.15 ± 0.20 | 0.63 ± 0.23 | 0.86 ± 0.01 | 0.65 ± 0.23 | 0.83 ± 0.06 | 0.84 ± 0.05 | |
| MNIST | 0.96 ± 0.01 | 0.15 ± 0.21 | 0.50 ± 0.22 | 0.94 ± 0.01 | 0.61 ± 0.23 | 0.90 ± 0.08 | 0.90 ± 0.04 | |
| Text | TREC | 0.87 ± 0.12 | 0.20 ± 0.06 | 0.36 ± 0.13 | 0.82 ± 0.12 | 0.44 ± 0.20 | 0.74 ± 0.23 | 0.77 ± 0.12 |
| AG News | 0.73 ± 0.09 | 0.25 ± 0.02 | 0.39 ± 0.13 | 0.66 ± 0.08 | 0.56 ± 0.10 | 0.62 ± 0.08 | 0.64 ± 0.10 | |
| DBpedia | 0.78 ± 0.23 | 0.07 ± 0.01 | 0.16 ± 0.10 | 0.66 ± 0.24 | 0.44 ± 0.20 | 0.62 ± 0.23 | 0.60 ± 0.22 | |
| IMDB | 0.61 ± 0.04 | 0.50 ± 0.01 | 0.51 ± 0.02 | 0.59 ± 0.04 | 0.55 ± 0.03 | 0.58 ± 0.04 | 0.59 ± 0.04 |
-
relative. Stitching through relative representations (Moschella* & Maiorca*, et al., 2023);
-
translation. The results of applying the latent translation method, with the estimation of via affine, linear, l-ortho and ortho.
In each instance, the same paired anchors (establishing correspondence ) are used, uniformly chosen, in a quantity comparable with the dimensionality of the extrinsic representation.
11.3.1 Cross-Architecture
Firstly, the method is tested in a cross-architecture setting, zero-shot stitching together encodings coming from a variety of pretrained networks and their associated absolute decoders (classifiers). This scenario provides an extensive testing ground and demonstrates robustness across different architectures.
Experimental setting. The evaluation considers a variety of Computer Vision (MNIST (LeCun et al., 1998), F-MNIST (H. Xiao et al., 2017), CIFAR-10, CIFAR-100 (Krizhevsky, 2009)) and Natural Language Processing (TREC (Hovy et al., 2001; X. Li et al., 2002), DBpedia (Auer et al., 2007), AG News (Zhang et al., 2015), IMDB (Maas et al., 2011)) datasets. Across the experiments, 7 language models are used as encoders (uncased and cased BERT (Devlin et al., 2019), Electra (Clark et al., 2020), RoBERTa base (Y. Liu et al., 2019), XLM-RoBERTa base (Conneau et al., 2020), ALBERT (Lan et al., 2020), and the text encoder of CLIP (Radford et al., 2021)), and 7 image
Chapter 11. Latent Space Translation
encoders (RexNet100 (Han et al., 2021), CSPDarkNet53 (C.-Y. Wang et al., 2020), 4 variations of ViT (Dosovitskiy et al., 2021), and the image encoder of CLIP (Radford et al., 2021)), all pretrained and frozen. For each dataset and for each encoder, an SVM classification head (decoder) is trained on top of their specific encodings. The standard stitching procedure outlined in Section 11.3 is then applied and the results are collected.
Result analysis. The stitching results are in Table 11.1. As expected, the absolute encodings obtain a score comparable to random guessing while also considering fewer encoder combinations out of the possible ones due to the dimensionality mismatch between some of them. These results show how close the transformation relating to these pretrained encoders is to orthogonal: i) ortho and affine, the narrowest and the broadest transformation classes considered, are the better-performing translation methods. But while the former is obtained via a simple and efficient closed-form algorithm, the latter is optimized by gradient descent (Section 11.2.2). ii) The 1-ortho version improves or has small drops in performances over the linear transformation it is obtained from, suggesting that on most datasets the least-squares solution T is almost orthogonal; the exceptions are TREC and MNIST, where it drops by 0.17 and 0.08. Note that these results demonstrate the feasibility of combining pretrained models without the need for retraining or fine-tuning, with drops of at most 0.12 in performances across the board and without any additional assumption on the decoders. The drop is measured between no-stitch and the best translation method on each dataset; the largest is on DBpedia, from 0.78 to 0.66.
Sensitivity to Anchor Quantity. The number of anchors is an essential parameter in the approach. Figure 11.3 evaluates how the quantity of these anchors impacts the classification accuracy for this experimental setting. This analysis offers insights into the number of anchors necessary for efficient representation space translation: from about 300 anchors on, ortho obtains the highest median accuracy, while the accuracy of linear drops sharply around 700–800 anchors before recovering.
Role of Scaling. The approach is designed to accommodate generic (re)scaling methods as pre-processing steps. Standard scaling shows reliable performance in the experiments, indicating that the scale of the data points is useful in estimating the transformation . However, for completeness, normalization is also considered, which is the standard normalization in relative representations. This normalization method generalizes the class of transformations handled by the method and introduces an element of complete scale invariance (see Section 10.2.4 for an analysis of scale invariance in neural classifiers). When this level of generalization is introduced, a scale-invariant decoder is required since the norm information is effectively removed. In the relative representation work, this is implicitly accomplished by training a decoder on relative representations. In this setting, since the decoder is not trained, scale invariance is assumed. This investigation exemplifies the flexibility of the approach, capable of adapting to different normalization and pre-processing strategies based on the specific requirements of the task at hand.
The results presented in Table 11.2, when compared with Table 11.1, indicate a stronger reliance of the linear translation on the information encoded in the norm: it drops by 0.30 on TREC, 0.28 on MNIST and 0.18 on both F-MNIST and DBpedia, while affine and ortho change by at most 0.06. For the text datasets, this is aligned with existing literature in the NLP domain (Oyama et al., 2023), which suggests that

| Encoder | Score | Scale | |
|---|---|---|---|
| Vision | ViT-base-224 | 0.40 | 90.45 |
| RexNet | 0.33 | 13.46 | |
| ViT-base-384 | 0.41 | 89.66 | |
| ViT-small | 0.39 | 50.17 | |
| ViT-ResNet50 | 0.41 | 32.10 | |
| DarkNet | 0.34 | 11.62 | |
| Text | BERT-cased | 0.61 | 15.43 |
| BERT-uncased | 0.42 | 14.54 | |
| Electra | 0.50 | 11.94 | |
| RoBERTa | 0.75 | 11.06 | |
| ALBERT | 0.27 | 32.27 | |
| XLM-R | 0.73 | 18.75 | |
FIGURE 11.4: Performance comparison between different encoders and data modalities on the N24News multimodal dataset. On the right the accuracy of models trained end-to-end on a single data modality (Score) and their average norm (Scale). On the left the stitching performance between pairs of encoders and decoder. This shows the importance of translating from good encoders, that can even improve unimodal decoder performances. Results obtained with 2000 anchors and ortho, with an SVM as classification head.
the scale of the encodings contains information (e.g., it is correlated with the token frequency).
These results in diverse scenarios show the flexibility and adaptability of the method, especially its robustness in translating between representation spaces of different dimensionality and domains.
11.3.2 Cross-Modality
This scenario illustrates the applicability of the method in cross-modality settings, translating between representation spaces of different modalities: text and image.
Experimental setting. The evaluation adopts N24News (Z. Wang et al., 2022), a multimodal news classification dataset that contains both text and associated pictures. The standard encoding procedure is applied to these two features separately, using different pretrained uni-modal encoders. Then, a classification head (an SVM) is trained on top of each one. Lastly, each encoder is zero-shot stitched with a classification head different from its corresponding one, measuring its classification accuracy, without further training or fine-tuning.
Result analysis. The discrepancy in the mean accuracy represented by the marginal bar plots in Fig. 11.4 is a signal that can be used to identify spaces more suited to be decoded into and the ones that are stronger in encoding from. In fact, three of the
Chapter 11. Latent Space Translation

FIGURE 11.5: Reconstruction examples grouped by dataset (from left to right: MNIST, F-MNIST, CIFAR-10, CIFAR-100). Each column is a different image, from top to bottom: original image, absolute stitching, affine stitching, linear stitching, l-ortho stitching, and ortho stitching. No additional normalization applied on the decoder part.
language models (BERT-cased, RoBERTa and XLM-R), used as source space for the translation, exhibit stronger performance than the vision encoders. This behavior may relate to the higher generality of the text domain data used during pre-training with respect to the image domain one (Zhai et al., 2022). A further finding in this setting is the improvement in classification performance when a modality-specific classifier trained on images is fed zero-shot with corresponding text encodings translated to the image domain via the method. This result underlines the significance of a good encoder and demonstrates the broad applicability of the technique. In practice, this means image classifiers can be applied on textual data, and vice versa.
These results show that the method: i) obtains effective zero-shot translation over different modalities; ii) improves unimodal decoders when translating from a better encoder than the one it was trained on.
11.3.3 Autoencoding
In this setting, the method is applied to align representation spaces of different trainings of the same autoencoder. The novelty of this scenario lies in the generation setting itself, as most prior works primarily focus on classification tasks. One key observation of Cannistraci et al. (2024), presented in Chapter 5, is that the task at hand (e.g., classification, generation) defines a certain class of transformations (e.g. rotations) which act among the representation spaces. Restricting the search for the transformation to the right class is fundamental to guarantee optimal performance and efficiency.
Experimental setting. Four datasets are utilized for these experiments: MNIST (LeCun et al., 1998), F-MNIST (H. Xiao et al., 2017), and CIFAR-10 and CIFAR-100 (Krizhevsky, 2009). For each dataset, two standard CNN-based autoencoders are trained, with convolutions in the encoder and deconvolutions in the decoder; please refer to the appendix of Maiorca* & Moschella*, et al. (2023) for further implementation details. The two autoencoders are identical in structure, differing only in the random seed used for weight initialization and data shuffling. To perform zero-shot stitching, each data point is first translated from the representation space of the first encoder to the representation space of the second using 1000 anchors. The second decoder is then applied to the translated data, without any further training or fine-tuning.
TABLE 11.3: Zero-shot stitching for generation with various methods for estimating . Standard scaling used as normalization and the stitched decoders do not have any additional normalization. Reported metrics: latent cosine similarity (lcos) and MSE (lmse) between the target encoding and the translated one, and reconstruction MSE (rmse) between the input and the output. 1000 anchors used on 500-dimensional spaces.
| MNIST | F-MNIST | CIFAR-10 | CIFAR-100 | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| lcos | lmse | rmse | lcos | lmse | rmse | lcos | lmse | rmse | lcos | lmse | rmse | |
| absolute | 0.09 | 0.27 | 0.14 | 0.17 | 0.23 | 0.23 | 0.30 | 0.29 | 0.34 | 0.34 | 0.53 | 0.40 |
| affine | 0.94 | 0.08 | 0.02 | 0.94 | 0.06 | 0.03 | 0.96 | 0.03 | 0.05 | 0.96 | 0.04 | 0.05 |
| linear | 0.92 | 0.09 | 0.02 | 0.93 | 0.07 | 0.04 | 0.94 | 0.03 | 0.05 | 0.94 | 0.04 | 0.06 |
| l-ortho | 0.79 | 0.14 | 0.02 | 0.78 | 0.12 | 0.05 | 0.85 | 0.05 | 0.06 | 0.84 | 0.07 | 0.07 |
| ortho | 0.90 | 0.10 | 0.02 | 0.90 | 0.08 | 0.04 | 0.94 | 0.03 | 0.06 | 0.93 | 0.04 | 0.06 |
Result analysis. This experiment analyzes the alignment of representation spaces in different training regimens of the same autoencoder. The performance evaluation, as shown in Table 11.3, demonstrates that all methods affine, linear, l-ortho, and ortho yield satisfactory results. Moreover, qualitative results depicted in Fig. 11.5 reveal minimal visual differences in the stitching outcomes across various datasets using different methods. Since affine reaches a higher latent cosine similarity than ortho on every dataset (e.g., 0.94 against 0.90 on MNIST), these results suggest that the representation spaces of image autoencoders are not exclusively correlated by orthogonal transformations. Therefore, further research is warranted to explore and model the specific class of transformations that govern the correlation between neural networks during image autoencoding to constrain and enhance their approximation.
Overall, these results, combined with Cannistraci et al. (2024) and Section 11.3.1, confirm that representation spaces in image autoencoders trained end-to-end are related by a class of transformations larger than orthogonal transformations.
Chapter 12
Latent Functional Maps
THIS CHAPTER IS BASED ON THE FOLLOWING PUBLICATION:
Latent Functional Maps: a spectral framework for representation alignment
Marco Fumero*, Marco Pegoraro*, Valentino Maiorca, Francesco Locatello, Emanuele Rodolà
NeurIPS 2024
Code: https://github.com/marc0git/lfmap
TL;DR: Representing correspondence as a functional operator on Laplacian eigenbases yields a compact spectral object that serves to compare spaces, expand correspondences, and transfer information.
12.1 Introduction
This chapter introduces latent functional maps (LFM), a correspondence-coupled operator ( ) that elevates the problem of aligning representations from manipulating individual points to transforming entire function spaces. As established in Chapter 3, correspondence-coupled operators use both sides of a correspondence jointly to construct transformations producing outputs in target-native coordinates compatible with pretrained decoders. Where correspondence-parallel methods like RelRep (Chapter 4) transform spaces independently using angular structure, and correspondence-coupled methods like Semantic Alignment (Chapter 11) or Inverse Projection (Chapter 10) use paired samples directly, LFM exploits the spectral geometry of the representation manifolds themselves. The approach treats correspondence as a continuous linear operator C that maps between function spaces defined over each manifold.
The technical mechanism builds on principles from geometric correspondence (Ovsjanikov et al., 2012): approximate each representation manifold through a k-nearest-neighbor (k-NN) graph, compute its Laplacian eigenbasis, then represent correspondence as a compact matrix C operating on spectral coefficients. This functional lifting achieves three objectives simultaneously. First, it compresses correspondence into low-dimensional spectral space ( eigenvectors). Second, eigendecomposition acts as a natural noise filter: high-frequency components, which tend to carry noise, occupy higher eigenvectors that can be truncated. Third, the structure of C itself becomes interpretable: orthogonality reveals isometric relationships between spaces, while the off-diagonal structure of measures departure from isometry and the first eigenvector of localizes regions of geometric distortion.
Chapter 12. Latent Functional Maps

FIGURE 12.1: Framework overview: Given two spaces , , their samples lie on manifolds , , which are approximated with k-NN graphs , . A latent functional map is optimized between the eigenbases of operators defined on the graphs. This map is a mapping between functions defined on the two manifolds and can be used for (i) comparing representational spaces, (ii) solving correspondence problems, and (iii) transferring information between the spaces.
This functional perspective yields a versatile framework. The same spectral operator C is a similarity measure between spaces (through analysis of its orthogonality), enables correspondence discovery from few or zero seed anchors (through constrained optimization), and provides efficient information transfer (through spectral coefficient mapping). Fig. 12.1 illustrates how correspondence between manifolds M and N lifts to a structured operator in function space.
These three capabilities make LFM versatile: unlike methods requiring explicit anchors (RelRep) or shared observations (Semantic Alignment), LFM operates with few or zero seed correspondences while simultaneously providing similarity measurement, correspondence discovery, and information transfer in a unified framework, validated across stitching, retrieval, and similarity measurement on vision and language modalities.
Relationship to Other Methods. While RelRep (Chapter 4) also produces structured representations—angular coordinates relative to anchors—LFM operates on the spectral decomposition of the manifold Laplacian, revealing frequency content and smooth eigenfunctions. This spectral perspective complements the scale invariance principle explored in Chapter 10, since the k-NN graph (and, with a scale-invariant distance, its weights) is unchanged by a global rescaling. The method's ability to discover correspondences with minimal supervision distinguishes it from Semantic Alignment (Chapter 11), which assumes correspondence is given, and from Inverse Projection (Chapter 10), which bridges the parallel and coupled operator families through inversion but requires known anchor sets.
12.2 Related Work
Functional Maps and Spectral Methods. The approach derives from the functional maps framework for smooth manifolds (Ovsjanikov et al., 2012), extended with
12.3. Method
121
regularization (Nogneng et al., 2017) and refinement techniques (Melzi et al., 2019) for 3D shape correspondence. Extensions to graph domains (F.-D. Wang et al., 2020; Hermanns et al., 2021; Pegoraro et al., 2024) demonstrated that functional maps retain advantageous properties when Laplace bases are computed on graph structures. This chapter extends these principles to neural latent spaces. For broader context on representation alignment and spectral methods in deep learning, refer to Chapter 2.
12.3 Method
This section presents the technical details of latent functional maps as a correspondence-coupled operator in the framework established in Chapter 3. The method uses both sides of correspondence jointly—paired observations and their relationships—to construct a spectral transformation between function spaces.
12.3.1 Background
This section provides the basic notions to understand the framework of functional maps applied to manifolds. For a comprehensive overview, refer to Ovsjanikov et al. (2016).
Consider two manifolds and equipped with a basis (respectively ). Any squared integrable function can be represented as a linear combination of basis functions . Given a bijective correspondence between points on these manifolds (the correspondence of Chapter 3, carried to the representations by the encoders and assumed one-to-one, written here as a map), for any real-valued function , one can construct a corresponding function such that . In other words, the correspondence defines a mapping between two function spaces, the push-forward , . Such a mapping is linear (Ovsjanikov et al., 2012) and can be represented as a matrix such that for any function represented as a vector of coefficients , the coefficient vector of is , i.e. .
The functional representation is particularly well-suited for map inference (i.e., constrained optimization problems). When the underlying map (and by extension the matrix ) is unknown, many natural constraints on the map become linear constraints in its functional representation. In practice, the simplest method for recovering an unknown functional map is to solve the following optimization problem:
where and are sets of corresponding functions, denoted as descriptors, expressed in the bases on and , respectively, and represents additional constraints deriving from the properties of the matrix (Ovsjanikov et al., 2016). When the manifolds and are approximately isometric and the descriptors are well-preserved by the (unknown) map, this procedure provides a good approximation of the underlying map. In cases where the correspondence is encoded as a permutation matrix , the functional map can be retrieved as where and are the bases of the functional spaces and , respectively, and denotes the Moore-Penrose pseudo-inverse.
Chapter 12. Latent Functional Maps
12.3.2 Latent Functional Maps
Setting
Consider deep neural networks where each layer is associated to a representational space corresponding to the image of . In the following, the subscript is dropped when the layer is clear from context. Elements are sampled from a latent manifold . For pairs of spaces and corresponding manifolds , the objective is to characterize their relation by mapping the space of functions to . The framework comprises three steps: (i) representing from a sample (and likewise ) by building a graph in the latent space , (ii) encoding known preserved quantities between the two spaces by defining descriptor functions for each domain, (iii) optimizing for the latent functional map between and . Fig. 12.1 provides an illustrative description.
Building the graph. To exploit the geometry of the underlying manifold, we model the latent space of a neural network building a symmetric k-nearest neighbor (k-NN) graph (Maier et al., 2009). Given the samples , we construct an undirected weighted graph with nodes , edges , and weight matrix . The weight matrix is determined by a distance function dist: , the neighbourhood size and a weighting function (below). Suitable choices for dist include the metric or the angular distance. Edges are defined as
where indicates that is among the nearest neighbors of (the subscript distinguishes the number of neighbors from the number of eigenvectors used below). The weight matrix assigns a weight , a monotonic function of , to each edge , and otherwise. Next, we define the associated weighted graph Laplacian operator , where is the diagonal degree matrix with entries . is a positive semi-definite, self-adjoint operator (Von Luxburg, 2007), therefore, it admits an eigendecomposition , where is a diagonal matrix containing the eigenvalues, and is a matrix whose columns are the corresponding eigenvectors. The eigenvectors form an orthonormal basis for the space of functions defined on the graph nodes (i.e., ).
Choice of descriptors. To define the alignment problem between a pair of spaces we will introduce the notion of descriptor function. We define as descriptor function any real-valued function defined on the nodes of the graph (functions on the nodes are written in italic although they are vectors in ; so are their spectral coefficient vectors, e.g. ). Informally descriptors should encode the information which is shared between and , either explicitly or implicitly. We categorize descriptor functions into supervised, weakly supervised and unsupervised descriptors. For supervised descriptors, we assume access to a partial correspondence between the anchor sets and , a bijection with embeddings and . Then descriptors take the form of distance functions . For example, the geodesic distance (shortest path distance on the k-NN graph) from each node of the graph to the nodes in the anchor set is a supervised descriptor. In the case of
12.3. Method
123
weakly supervised descriptor, we assume to have access to a many-to-many relation (for example, shared class labels), written as an indicator on pairs of samples. Unsupervised descriptors are quantities that depend on the topology and the geometry of the graph itself and they don’t rely on any pre-given correspondence or many-to-many relation. An example of this is the Heat Kernel Signature (Sun et al., 2009) node descriptor, based on heat diffusion over the manifold.
Computing LFMs. The optimization problem to compute a latent functional map between and proceeds as follows. Each space is modeled using a subset of training samples and , from which k-NN graphs and are constructed. For each graph, the graph Laplacian (respectively ) is computed, yielding the first eigenvalues and eigenvectors (respectively ), which form the basis of the function space defined on the latent spaces.
Given descriptors per space, and , the optimization problem defined in Eq. (12.1) incorporates two regularizers which enforce commutativity for the Laplacian and the descriptors, respectively, with the map :
where (respectively ) are the spectral coefficients of the functions (respectively ), and are the Laplacian and descriptor operator commutativity regularizers respectively, weighted by , akin to Nogneng et al. (2017). Once the optimization problem defined in Eq. (12.2) is solved, the resulting functional map is refined using the spectral upsampling algorithm proposed by Melzi et al. (2019).
12.3.3 LFMs as a similarity measure
Once computed, the functional map can be used as a measure of similarity between spaces. The reason is that for isometric transformations between manifolds, the functional map is volume preserving (see Thm 5.1 in Ovsjanikov et al., 2012), and this is manifested in orthogonal . By defining the inner product between functions as , with the measure on , the map preserves inner products, , i.e. , exactly when it preserves local area, i.e. when is orthogonal, where denotes the functional representation of . In other words, when the transformation between the two manifolds is an isometry, the matrix will be diagonal. By measuring the ratio between the norm of the off-diagonal elements of and the norm of the full matrix, we can define a measure of similarity . Furthermore, this quantity is interpretable; the first eigenvector of can act as a signal to localize the region where the map has higher distortion (Ovsjanikov et al., 2013), as we show in Fig. 12.3b.
12.3.4 Transferring information with LFM
The map C computed between two latent spaces can be utilized in various ways to transfer information from one space to the other. In this chapter, we focus on two methods: (i) Expressing arbitrary points in the latent space as distance function on
Chapter 12. Latent Functional Maps
the graph and transferring them through the functional domain; (ii) Obtaining a point-to-point correspondence between the representational spaces from the LFM, starting from none to few known pairs, and using off-the-shelf methods to learn a transformation between the spaces. Additional strategies could be explored in future work.
Space of Functional Coefficients. The space of functional (or spectral) coefficients offers an alternative representation for points in the latent space . Using the equation , any function is represented, up to truncation to eigenvectors, by its functional coefficients . We use this property to represent any point as a distance function from the set of points , which correspond to the nodes of the graph . The functional map between two latent spaces and aligns their functional representations, enabling the transfer of any function from the first space to the second. This functional alignment can be used similarly to the method proposed by Moschella* & Maiorca*, et al. (2023) to establish a shared space where the representational spaces and are aligned.
Finding correspondences. As explained in Section 12.3.4, the functional map C represents the bijection in a functional form. Ovsjanikov et al. (2012) demonstrated that this bijection can be retrieved as a point-to-point map by finding the nearest neighbor for each row of in . This process can be efficiently implemented and scaled up using kd-tree structures or approximation strategies (Indyk et al., 1998; Johnson et al., 2021). Starting from an empty set or few known correspondences (anchors) between the two spaces and , the correspondence can be extended to the entire set of nodes and . This extended set of anchors can then be used to fit an arbitrary transformation between the latent spaces, for example an orthogonal mapping (Maiorca* & Moschella*, et al., 2023). The operator of this chapter is obtained in this way, by fitting an orthogonal map to the point correspondence recovered from C. The experiments demonstrate that using a very small number of anchors suffices to retrieve transformations that facilitate improved stitching and near-perfect retrieval tasks.
12.4 Experiments
This section presents experiments evaluating the effectiveness of the LFM framework across various tasks, including similarity evaluation, stitching, retrieval performance, and robustness to perturbations in latent space. Comparisons with existing methods demonstrate the versatility and performance of LFM in aligning and analyzing neural network representations.
12.4.1 Analysis
This subsection demonstrates the benefits of using latent functional maps for comparing distinct representational spaces, using the similarity metric defined in Section 12.3.3.
Experimental setting. To validate experimentally whether LFMs are a good measure of similarity between distinct representational spaces, the same sanity check as Kornblith et al. (2019) is performed. Ten CNN models are trained on the CIFAR-10



FIGURE 12.2: Similarity across layers. Similarity matrices between internal layer representations of CIFAR-10 comparing the LFM-based similarity with the CCA and CKA baselines, averaged across 10 models. For each method, the accuracy scores for matching the corresponding layer by maximal similarity are reported.
dataset (Krizhevsky, 2009) with different initialization seeds. Their inner representations at each layer (excluding logits) are compared and plotted as a similarity matrix, alongside Centered Kernel Alignment (CKA) (Kornblith et al., 2019) and Canonical Correlation Analysis (CCA) (Hotelling, 1936; Raghu et al., 2017) baselines. The accuracy of identifying corresponding layers across models is measured and reported. For CCA, average pooling is applied on the spatial dimensions to the embeddings of internal layers, making it more stable numerically and boosting the results for this baseline compared to what was observed in Kornblith et al. (2019).
Result analysis. Figure 12.2 shows that the LFM-based similarity measure behaves correctly as CKA does. Furthermore, the similarities are less spread around the diagonal, favoring a slightly higher accuracy score in identifying the corresponding layers across models.
While CKA (Centered Kernel Alignment) is a widely used similarity metric in deep learning, recent research by Davari et al. (2023) has shown that it can produce unexpected or counter-intuitive results in certain situations. Specifically, CKA is sensitive to transformations that preserve the linear separability of two spaces, such as local translations. The LFM similarity measure is robust to these changes and demonstrates greater stability compared to CKA.
Experimental setting. Latent representations are computed from the pooling layer just before the classification head for the CIFAR-10 train and test sets. Following the setup in Davari et al. (2023), a Support Vector Machine (SVM) classifier is trained on the latent representations of the training samples to find the optimal separating hyperplane between samples of one class and others. The samples are then perturbed by translating them in a direction orthogonal to the hyperplane, ensuring the space remains linearly separable. The CKA and LFM similarities are measured as functions of the perturbation vector norm, as shown in Fig. 12.3a.
Result analysis. When the latent space is perturbed in a way that still preserves its linear separability, it should be considered identical from a classification perspective, as this does not semantically affect the classification task. Figure 12.3a shows that while CKA degrades as a function of perturbation intensity, the LFM similarity, after an initial drop, stays at about 0.78. To understand this difference, the area distortion is visualized as a function of the samples by projecting the first singular component of
Chapter 12. Latent Functional Maps

(A) CKA vs LFM similarity
(B) Localized area distortion
FIGURE 12.3: Robustness of LFM similarity. Left: Similarity scores as a function of perturbation strength (“Distance” on the horizontal axis is the norm of the perturbation vector): while the CKA baseline degrades, LFM similarity scores are robust to perturbations that preserve linear separability of the space. Right: Visualization of area distortion of the map by projecting the first singular component of the LFM in the perturbed space: the distortion localizes on the samples of the perturbed class, making LFM similarity interpretable.
C onto the perturbed space. In Fig. 12.3b, t-SNE (Van der Maaten et al., 2008) projects the perturbed samples and the distortion function into 2D. The visualization reveals that distortion is localized to the samples corresponding to the perturbed class.
12.4.2 Zero-shot stitching
In latent communication tasks, a common challenge is combining an encoder that embeds data with a decoder specialized in a downstream task, such as classification or reconstruction—this process is often referred to as stitching. Previous works, like Lenc et al. (2015) and Bansal et al. (2021), have used trainable linear projections, known as stitching layers, to enable the swapping of different network components. However, Moschella* & Maiorca*, et al. (2023) introduced the concept of zero-shot stitching, where neural components can be merged without any additional training procedure. While Moschella* & Maiorca*, et al. (2023) still required training a decoder module once for processing relative representations before stitching could be performed, LFM is fully zero-shot, with no need for additional training. In the following experiments, stitching is conducted without any training or fine-tuning of the encoder or decoder, adhering strictly to a zero-shot fashion.
Experimental setting. Four pretrained encoders are considered, and their latent spaces are stitched to perform classification using a Support Vector Machine (SVM) on five different datasets: CIFAR-100 (Krizhevsky, 2009) with coarse and fine-grained labeling, ImageNet (J. Deng et al., 2009), Caltech-UCSD Birds-200-2011 (CUB) (Wah et al., 2011), MNIST (L. Deng, 2012), AgNews (Zhang et al., 2015). These datasets were chosen to encompass both large-scale, complex datasets like ImageNet and a variety of modalities, including text and images. To evaluate the effectiveness of integrating the functional map, the correspondences are extended to determine an orthogonal transformation (Maiorca* & Moschella*, et al., 2023) between the latent

(A) CIFAR-100 coarse
(B) CIFAR-100 fine
(c) ImageNet

(D) CUB
(E) MNIST
(F) AgNews
FIGURE 12.4: Stitching results. Accuracy performance in stitching between pretrained encoders on five datasets (CIFAR-100 with two labelings), comparing orthogonal transformation (Ortho) and LFM+Ortho at varying anchor counts. Also shown is LFM+Ortho (Labels), which uses the dataset labels instead of anchors. Results are presented with mean accuracy values reported on each violin.

(A) MNIST
(B) F-MNIST
(c) CIFAR-10
FIGURE 12.5: Qualitative results on stitching. We combine the encoder decoder modules of two convolutional autoencoders (E1 D1, E2 D2; E1, D1 and E2, D2 are , and , ) using three different approaches: no transformation (Absol.), the orthogonal transformation from Maiorca* & Moschella*, et al. (2023) (Ortho), the orthogonal transformation augmented with LFM (LFM).
Chapter 12. Latent Functional Maps
spaces. For each encoder, a graph of 3,000 points with 300 neighbors per node is computed. The problem in Eq. (12.2) is optimized using the first 50 eigenvectors of the graph Laplacian, and two different descriptors are considered: the distance functions defined from the anchors (LFM+Ortho) and the labels (LFM+Ortho (Labels)). For each dataset class, the latter provides an indicator function with 1 if the point belongs to the class and 0 otherwise. This descriptor does not require any anchor as input, representing an example of stitching requiring no additional information beyond the dataset labels.
Result analysis. Figure 12.4 shows the accuracy results for all possible combinations of encoder stitching. The latent functional map (LFM+Ortho) outperforms Ortho across all datasets with a low number of anchors (5 and 10), and up to 250 anchors on CIFAR-100, ImageNet and CUB. Even without anchors, using label descriptors (LFM+Ortho (Labels)) achieves strong performance across different labeling schemes. The orthogonal transformation computed directly from the anchors (Ortho) only matches or exceeds LFM's performance when 50 or more anchors are used on AgNews and MNIST (on MNIST it is within 0.01 at 100 anchors) and when 500 are used on CIFAR-100; at that point LFM's effectiveness is constrained by the number of eigenvectors. Comparing the CIFAR-100 coarse and fine-grained labeling, the fine-grained task is more complex due to the larger number of classes, making the estimation of the map more challenging. This complexity is especially evident when aligning self-supervised vision models with classification-based ones (e.g., DINOv2 vs. ViT), where the training strategies differ.
This experiment shows that the latent functional map is highly effective when few anchors are available ( ). It enhances performance in zero-shot stitching tasks, outperforming direct orthogonal transformations at low anchor counts, and without anchors through label descriptors. This suggests that the latent functional map method provides a robust means of aligning latent spaces with minimal correspondence data, making it a valuable tool for tasks requiring the integration of independently trained models.
Qualitative example
Figure 12.5 presents qualitative experiments on the MNIST, F-MNIST (H. Xiao et al., 2017), and CIFAR-10 datasets, focusing on visualizing the reconstructions of stitched autoencoders. For these experiments, convolutional autoencoders are trained using two different seeds and their encoder and decoder modules are stitched together. As a baseline, no transformation (Absol.) is used, where the latent representation from the first encoder is directly input into the second decoder. This baseline is compared with the orthogonal transformation from Maiorca* & Moschella*, et al. (2023) (Ortho) and its LFM-augmented version (LFM). For both LFM and Maiorca* & Moschella*, et al. (2023), 10, 10 and 50 correspondences are used for the MNIST, F-MNIST, and CIFAR-10 datasets, respectively. LFM consistently produces superior reconstruction quality compared to both the baseline and the method from Maiorca* & Moschella*, et al. (2023).
12.4.3 Retrieval
The analysis extends to the retrieval task, where the most similar embedding in the aligned latent space is sought.

(A) MRR score at increasing number of anchors
(B) Latent space
(C) Functional space
FIGURE 12.6: Retrieval of word embeddings. We compare the retrieval performance of the functional map framework with baseline methods as the number of anchors increases. The left panel shows the Mean Reciprocal Rank (MRR) across different numbers of anchors. The right panels depict the first two components of PCA for a subsample of the latent space (b) and the functional space (c), both before and after alignment using the functional map.
Experimental setting. Two different English word embeddings are considered: FastText (Bojanowski et al., 2017) and Word2Vec (Mikolov et al., 2013a). Following the approach of Moschella* & Maiorca*, et al. (2023), embeddings of 20K words are extracted from their shared vocabulary using pretrained models. 2K random corresponding samples are used to construct the k-NN graphs and evaluate the retrieval performance on the remaining 18K word embeddings. Two settings are tested:
-
Aligning functional coefficients (LFM Space).
-
Computing an orthogonal transformation using the correspondences obtained by the functional map (LFM+Ortho).
For this experiment, k-NN graphs with a neighborhood size of 300 are constructed and the functional map is computed using the first 50 eigenvectors. The methods' performance is evaluated using the Mean Reciprocal Rank (MRR). The functional map methods are compared with the method proposed by Moschella* & Maiorca*, et al. (2023) (Relatives) and the orthogonal transformation method proposed by Maiorca* & Moschella*, et al. (2023) (Ortho). The same orthogonal transformation is fitted on top of the correspondence found by LFM to make the comparison the fairest possible, although in principle any off-the-shelf methods could be used to estimate the transformation once the new correspondence is found. This versatility is illustrated in Tables 2 and 3 (Appendix C.3) of Fumero* & Pegoraro*, et al. (2024), where LFM is combined with other transformations in the same task.
Result analysis. Figure 12.6 shows the performance of these methods as the number of anchors increases. The functional map improves performance with just 5 anchors, achieving an MRR of over 0.8. As the number of anchors increases, the performance
Chapter 12. Latent Functional Maps
of competing methods improves but still falls short of LFM+Ortho at 300 anchors, which reaches an MRR of 0.99. The performance of the functional map methods does not improve beyond 5 anchors, suggesting that this number of anchors is sufficient to achieve an optimal functional map between the spaces.
These results confirm that the latent functional map is a valuable tool in settings with little knowledge about correspondences. It enhances retrieval performance with a minimal number of anchors, making it an efficient approach for aligning latent spaces. Moreover, its performance can be improved using a higher number of eigenvectors (Appendix C.3 of Fumero* & Pegoraro*, et al. (2024)). In particular, the framework comprises simultaneously (i) an interpretable similarity measure, (ii) a way to find correspondences, and (iii) an explicit mapping between different spaces in a single framework, unlike Moschella* & Maiorca*, et al. (2023) and Maiorca* & Moschella*, et al. (2023), which attempt to solve just the latter implicitly.
Chapter 13
ResiDual: Transformer Alignment with Spectral Decomposition
THIS CHAPTER IS BASED ON THE FOLLOWING PUBLICATION:
ResiDual Transformer Alignment with Spectral Decomposition
Lorenzo Basile*, Valentino Maiorca*, Luca Bortolussi, Emanuele Rodolà, Francesco Locatello
TMLR 2025
Code: https://github.com/Flegyas/ResiDual
TL;DR: Spectral reweighting across layers allows transformer architectures to improve alignment by focusing on task-relevant geometry with no fine-tuning.
13.1 Introduction
Transformer architectures aggregate information through unweighted summation: (Eq. (13.1) below), where the input embedding, each attention head and each multi-layer perceptron (MLP) contribute equally to the final output (Elhage et al., 2021). This additive structure underpins transformers' expressivity, but creates a critical challenge for alignment. When residual units encode conflicting or task-irrelevant information, specialized signals become obscured in the final aggregation.
As illustrated in Fig. 13.1, vision transformers develop attention heads specialized for particular features, such as detecting letters (Gandelsman et al., 2024), recognizing seasonal patterns, or processing grayscale textures (Fig. 13.4b), yet only specialized subsets provide relevant signals for specific downstream tasks. The model’s output sums all contributions equally, diluting precision through this unweighted aggregation.
ResiDual is a correspondence-coupled operator ( , Chapter 3) that recovers task-relevant alignment hidden within the residual stream through anisotropic spectral scaling. The method decomposes each residual unit into principal components and learns per-component scaling factors , enabling fine-grained amplification of task-relevant semantic directions while suppressing noise from irrelevant units. This dual-level approach first analyzes which attention heads already align with task requirements by measuring correspondence with text encodings (Section 13.3.1) in multimodal models like CLIP (Radford et al., 2021), then applies anisotropic scaling within each unit's principal component basis to refine the alignment at the spectral level. The result is high parameter efficiency: the restricted variant (heads-only, 90%
Chapter 13. ResiDual

FIGURE 13.1: Direct contributions from individual heads can be analyzed from the transformer’s residual stream. In a multimodal, zero-shot classification setting (e.g., in CLIP), task boundaries are defined by text prompts that may vary in their conceptual granularity. When certain heads are specialized in particular features (e.g., shape, pattern, color), they may more accurately apply these boundaries than the model’s original output. In this example, only the fine-grained task (brown) effectively separates the samples at the output level.
variance) achieves 0.91 accuracy on OpenCLIP-L across 10 datasets with only 13.2k parameters, matching linear aligners that require 590k parameters—a reduction. On SVHN, the full method delivers substantial improvement: 0.86 accuracy versus 0.75 for output-level linear alignment, suggesting latent alignment that exists within specialized head components but washes out when all units combine at the output.
Unlike the cross-model operators in Chapters 4, 10 and 11, ResiDual demonstrates that correspondence-based alignment need not cross model boundaries. By establishing correspondences between internal components and task requirements within a single model, the alignment framework extends to model manipulation and steering. Like the spectral methods in Chapter 12, which operate on functional maps, ResiDual exploits spectral structure, here applied to residual stream components. Chapters 14 and 15 explore alternative geometric structures for within-model alignment: sparse recovery and distributional matching, respectively.
13.2 The Geometry of Residual Units
This section examines the relationship between head specialization and the low-dimensional nature of head manifolds. Initially, head representations exist in a relatively low-dimensional ambient space. Through a linear transformation, they are subsequently embedded into a higher-dimensional space within the residual stream (Elhage et al., 2021), which shares the same dimensionality as the model's output. At this point, head representations are transcribed to the residual stream and contribute additively to the final output of the model. Throughout this chapter, the model output is assumed to be the summation of the encodings of all residual units (attention heads H, MLPs M and input embeddings ):
13.2. The Geometry of Residual Units
133
with Y as the final output of the model, summing all the residual units , where collects the input embedding, the attention heads and the MLPs.
This chapter focuses on the geometry of attention head representations, as prior works (e.g., Voita et al., 2019; Gandelsman et al., 2024) have demonstrated their specialization in distinct tasks. MLP layers mix outputs from multiple heads by design, leading to more entangled and less interpretable representations.
13.2.1 Residual Dimensionality
Despite being embedded into a higher-dimensional space, head representations exhibit an even lower intrinsic dimensionality (ID) than that of the original ambient space. This indicates that irrespective of their high-dimensional embedding, the essential structure of head representations is highly compressed and governed by a compact, low-dimensional geometry. In short, the intrinsic dimensionality of a dataset is the least number of variables required to satisfactorily describe the data points. Ideally, if data lie on a linear manifold (a hyperplane), the intrinsic dimensionality coincides with the number of principal components required to completely explain their variance. In a more realistic setting, data lie on curved, nonlinear manifolds, and linear estimators like PCA fail to capture their real intrinsic dimensionality. In such cases, nonlinear ID estimators can be employed. Among them, TwoNN (Facco et al., 2017) is chosen because of its efficiency and stability on complex and non-uniform manifolds.
Experimental setting. The intrinsic dimensionality of head representations is evaluated across multiple transformer-based vision architectures pretrained with different objectives (supervised, unsupervised, self-supervised). Namely, OpenAI's CLIP (Radford et al., 2021), OpenCLIP (Cherti et al., 2023), BLIP (J. Li et al., 2022), ViT (Dosovitskiy et al., 2021) and DINOv2 (Oquab et al., 2024) are employed, all in their version based on ViT-Large. These models are fed a subset of the training set of ImageNet1k (J. Deng et al., 2009) containing 80000 images stratified on the class labels, and representations are extracted for all attention heads. The intrinsic dimensionality of such representations is then computed using a linear estimator (PCA) and a nonlinear one (TwoNN). Linear ID is computed as the number of components needed by PCA to explain 99% of head variance.
Result analysis. Fig. 13.2 reports the results for head units on ImageNet1k. The true head dimensionality (computed with a nonlinear estimator, TwoNN) tends to increase in the first half of the model and to decrease towards the last few layers, following a characteristic hunchback shape, similar to previous findings in other vision architectures (Ansuini et al., 2019). However, the number of dimensions returned by the linear estimator grows constantly through the model. This disparity, reflected in the growing ratio between the two estimates, suggests that the units in the early layers are close to linear, while those in the later layers lie on more curved manifolds. The last column shows the average explained variance ratio (EVR) of the first PCA component and highlights that heads in the first layers are largely explained by this direction, while it still accounts for a nontrivial 10% of head variance in late layers.
Chapter 13. ResiDual
| OpenCLIP-L | CLIP-L | DINov2-L | ViT-L | BLIP-L | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 23 | 60.19 | 19.14 | 3.19 | 0.09 | 60.38 | 20.26 | 3.02 | 0.09 | 62.56 | 14.61 | 4.28 | 0.08 | 61.56 | 24.20 | 2.56 | 0.11 | 50.12 | 15.06 | 3.36 | 0.14 |
| 22 | 61.00 | 20.61 | 3.00 | 0.11 | 61.81 | 21.05 | 2.95 | 0.08 | 62.44 | 16.99 | 3.69 | 0.08 | 62.06 | 28.33 | 2.20 | 0.08 | 50.06 | 14.00 | 3.60 | 0.16 |
| 21 | 61.94 | 23.15 | 2.70 | 0.10 | 62.00 | 21.14 | 2.95 | 0.10 | 62.06 | 18.37 | 3.39 | 0.09 | 62.00 | 30.45 | 2.05 | 0.07 | 49.19 | 15.93 | 3.13 | 0.27 |
| 20 | 61.88 | 25.71 | 2.42 | 0.09 | 62.00 | 22.47 | 2.78 | 0.08 | 61.81 | 20.41 | 3.04 | 0.11 | 62.19 | 32.57 | 1.91 | 0.06 | 53.75 | 20.02 | 2.69 | 0.22 |
| 19 | 62.25 | 25.94 | 2.41 | 0.09 | 61.81 | 22.95 | 2.71 | 0.10 | 61.06 | 21.81 | 2.82 | 0.15 | 61.88 | 33.87 | 1.83 | 0.05 | 56.50 | 22.76 | 2.49 | 0.18 |
| 18 | 62.00 | 26.23 | 2.38 | 0.09 | 61.94 | 25.08 | 2.50 | 0.11 | 60.12 | 24.22 | 2.49 | 0.16 | 61.81 | 34.36 | 1.80 | 0.05 | 56.94 | 23.91 | 2.38 | 0.14 |
| 17 | 61.94 | 27.46 | 2.29 | 0.09 | 61.88 | 26.46 | 2.36 | 0.09 | 60.06 | 24.56 | 2.47 | 0.15 | 61.44 | 33.63 | 1.83 | 0.05 | 57.50 | 24.49 | 2.35 | 0.13 |
| 16 | 61.69 | 28.59 | 2.17 | 0.08 | 61.50 | 28.26 | 2.19 | 0.12 | 60.19 | 25.92 | 2.33 | 0.16 | 61.81 | 34.46 | 1.80 | 0.05 | 56.31 | 24.23 | 2.33 | 0.14 |
| 15 | 61.75 | 29.82 | 2.08 | 0.09 | 61.44 | 28.75 | 2.15 | 0.12 | 59.38 | 26.49 | 2.26 | 0.16 | 60.81 | 33.48 | 1.82 | 0.06 | 56.12 | 24.69 | 2.28 | 0.15 |
| 14 | 61.75 | 30.49 | 2.03 | 0.11 | 61.62 | 30.40 | 2.03 | 0.14 | 59.38 | 27.42 | 2.17 | 0.17 | 60.88 | 33.78 | 1.80 | 0.05 | 55.50 | 24.74 | 2.25 | 0.15 |
| 13 | 61.00 | 29.08 | 2.11 | 0.14 | 61.38 | 30.31 | 2.03 | 0.13 | 57.50 | 26.65 | 2.16 | 0.21 | 60.00 | 33.83 | 1.78 | 0.07 | 54.75 | 25.13 | 2.18 | 0.14 |
| 12 | 60.94 | 30.28 | 2.02 | 0.16 | 60.50 | 30.21 | 2.01 | 0.13 | 57.00 | 26.28 | 2.17 | 0.18 | 58.44 | 33.92 | 1.73 | 0.08 | 53.88 | 24.83 | 2.17 | 0.16 |
| 11 | 60.31 | 29.66 | 2.04 | 0.15 | 60.56 | 30.61 | 1.98 | 0.14 | 56.25 | 27.26 | 2.07 | 0.22 | 55.19 | 32.43 | 1.70 | 0.09 | 48.81 | 23.14 | 2.11 | 0.18 |
| 10 | 59.69 | 29.63 | 2.02 | 0.14 | 60.50 | 31.22 | 1.94 | 0.10 | 54.75 | 26.49 | 2.07 | 0.24 | 51.38 | 31.07 | 1.65 | 0.10 | 43.38 | 21.66 | 2.00 | 0.22 |
| 9 | 59.56 | 30.34 | 1.97 | 0.14 | 58.69 | 29.13 | 2.02 | 0.15 | 45.50 | 22.47 | 2.02 | 0.29 | 48.94 | 30.19 | 1.62 | 0.10 | 42.81 | 21.50 | 1.98 | 0.23 |
| 8 | 57.56 | 28.06 | 2.05 | 0.15 | 58.44 | 28.58 | 2.05 | 0.15 | 43.69 | 22.36 | 1.92 | 0.42 | 45.56 | 28.65 | 1.59 | 0.14 | 38.88 | 20.50 | 1.89 | 0.26 |
| 7 | 55.31 | 26.96 | 2.05 | 0.18 | 57.19 | 27.91 | 2.05 | 0.17 | 47.50 | 24.10 | 1.94 | 0.27 | 44.81 | 27.62 | 1.62 | 0.15 | 34.94 | 19.24 | 1.81 | 0.30 |
| 6 | 51.75 | 24.91 | 2.08 | 0.25 | 53.19 | 25.48 | 2.09 | 0.21 | 41.94 | 21.28 | 1.94 | 0.35 | 43.50 | 27.29 | 1.59 | 0.14 | 29.19 | 17.56 | 1.65 | 0.33 |
| 5 | 48.44 | 23.99 | 2.01 | 0.25 | 50.56 | 24.51 | 2.06 | 0.28 | 47.38 | 23.89 | 1.97 | 0.31 | 40.62 | 25.22 | 1.61 | 0.16 | 32.38 | 18.51 | 1.74 | 0.32 |
| 4 | 38.81 | 20.37 | 1.88 | 0.36 | 49.62 | 24.35 | 2.04 | 0.31 | 32.81 | 18.36 | 1.75 | 0.38 | 39.81 | 24.58 | 1.62 | 0.20 | 25.75 | 16.10 | 1.57 | 0.35 |
| 3 | 30.19 | 18.30 | 1.62 | 0.37 | 45.38 | 22.62 | 1.98 | 0.30 | 42.25 | 23.20 | 1.78 | 0.53 | 36.94 | 22.52 | 1.64 | 0.24 | 28.62 | 17.04 | 1.67 | 0.30 |
| 2 | 29.50 | 19.76 | 1.40 | 0.54 | 47.56 | 24.24 | 1.92 | 0.24 | 29.94 | 17.66 | 1.61 | 0.43 | 31.75 | 19.30 | 1.64 | 0.25 | 25.06 | 16.09 | 1.54 | 0.38 |
| 1 | 31.38 | 19.28 | 1.51 | 0.49 | 45.88 | 23.81 | 1.88 | 0.28 | 12.69 | 11.65 | 1.06 | 0.56 | 23.25 | 15.57 | 1.45 | 0.35 | 18.25 | 14.06 | 1.26 | 0.49 |
| 0 | 33.44 | 20.16 | 1.52 | 0.50 | 42.44 | 22.53 | 1.80 | 0.39 | 11.81 | 11.45 | 0.98 | 0.59 | 15.00 | 13.11 | 1.03 | 0.56 | 11.81 | 13.54 | 0.80 | 0.66 |
| L | N | Ratio | L | N | Ratio | L | N | Ratio | L | N | Ratio | L | N | Ratio | ||||||
FIGURE 13.2: Heads in early layers show low-dimensional, linear structures, as suggested by similar intrinsic dimension estimates from PCA and TwoNN (column labels L and N). Moving toward the output layer, the nonlinear dimensionality peaks and then decreases, while PCA's linear estimate continues to rise, indicating increasing nonlinearity in head manifolds (Ratio = ). The first principal component (EVR) explains around 50% of the variance in early layers, dropping to around 10% in later layers.
These findings highlight that low head dimensionality and monotonically increasing nonlinearity arise along the residual streams of vision transformers, regardless of pre-training objective and data.
13.2.2 Principal Components Encode Unit Semantics
The low dimensionality of head encodings results in relevant consequences for their interpretability. Head representations can be easily approximated with sparse recovery algorithms in a way that is akin to performing PCA, but over a discrete set of vectors. For CLIP models, this approach has been recently explored by Gandelsman et al. (2024). There, the authors introduce a sparse approximation algorithm, TextSpan (TS), and decompose head encodings using a set of textual descriptions coming from the text branch of CLIP as a dictionary. They observe strong specialization properties, witnessed by high coherence in the textual explanations of each head.
TextSpan is here linked to the more established family of Matching Pursuit (MP) (Mallat et al., 1993) algorithms, widely employed in signal processing. More specifically, TextSpan is analogous to Simultaneous Orthogonal Matching Pursuit (SOMP) (Tropp et al., 2006), with light modifications; see the appendix of Basile* & Maiorca*, et al. (2025). TextSpan, like any MP algorithm, approximates the signal through linear combinations of basis functions. Considering the high nonlinearity of later layers (Section 13.2.1), and TS being a linear sparse approximation method, the investigation focuses on whether TS is, in reality, focusing on the first principal components of the signal (head-level representations).
Experimental setting. This experiment follows the setup of the original TS paper (Gandelsman et al., 2024). The attention heads belonging to the last 4 layers of
13.2. The Geometry of Residual Units
135
OpenCLIP-L are considered. Two sparse approximation algorithms are employed: the original TextSpan, which operates on the whole head representation, and Orthogonal Matching Pursuit (OMP) (Pati et al., 1993). Different from TextSpan, OMP computes sparse approximations of vectors, and head representations are matrices. Therefore, OMP is applied to the first principal component of each head. This method is denoted as OMP₁. The dictionary contains the encodings produced by OpenCLIP-L for the set of image descriptions provided by Gandelsman et al. (2024). Both algorithms are applied to select 5 descriptions for each head and compute an agreement score between the two sets. The agreement is computed as the absolute Z-score of the cosine similarity (sim) between them, compared with the average cosine similarity μ between the descriptions selected by TextSpan and the entire dictionary, with σ its standard deviation: .
Result analysis. The left panel of Fig. 13.3 reports the agreement scores. The right panel reports a few examples (one per layer) of descriptions obtained using the two algorithms. A high Z-score (e.g., head 8 of layer 22, which is almost away from ) is reflected in extremely similar descriptions from the two methods. When the agreement is lower, as in the case of head 8 of layer 20, the two sets of descriptions substantially differ even though they share some high-level semantics.
Overall, this analysis indicates that, in some cases, the first principal component captures nearly all the essential information about the head’s specialized semantics. In other cases, the head’s role appears to be distributed across multiple components.
13.2.3 Spectral Dataset Comparison
The aim is to understand to what extent specialization generalizes across different input data distributions. To do so, a spectral metric is introduced to compare the representations of residual units. Since units are low-dimensional (Section 13.2.1) and their specialization is deeply impacted by a few principal components (Section 13.2.2), a metric is defined to quantify the similarity between their PCA bases, inspired by principal angles (Björck et al., 1973).
Let and be two subspaces of dimensions and in a -dimensional space. The principal angles for are given by:
where and are the spans of the earlier maximisers and , respectively, so that is restricted to and to .
Let and represent sets of -normalized discrete vectors (e.g., principal components) with (optional) associated weights and (e.g., singular values).
The spectral cosine similarity for is defined as:
where and are previously selected indices.
The original principal angles measure the alignment between subspaces by maximizing the cosine similarity of vectors in their span. In the discrete case, vectors are directly selected from sets and with optional weighting. The final measure is
Chapter 13. ResiDual

| TextSpan | OMP1 |
|---|---|
| L20.H8 ("Scenery") | L20.H8 (Z = 0.02) |
| Photo taken in Galápagos Islands | Unspoiled beauty |
| Image taken in Norway | Picture taken in Portugal |
| Evocative beauty | Crisp autumn leaves |
| Vibrant urban energy | Evocative candid gaze |
| A skirt | Picture taken in Cyprus |
| L21.H11 ("Location") | L21.H11 (Z = 2.73) |
| Picture taken in Cyprus | Picture taken in Cyprus |
| Picture taken in Ontario, Canada | Picture taken in the Canadian lakes |
| Photo taken in Rio de Janeiro, Brazil | Image taken in the Florida Everglades |
| Photo captured in the Arizona desert | Image taken in New England |
| Picture captured in the Scottish highlands | Warm and cozy indoor scene |
| L22.H8 ("Letters") | L22.H8 (Z = 4.93) |
| A photo with the letter F | A photo with the letter F |
| A photo with the letter V | A photo with the letter P |
| A photo with the letter D | A photo with the letter T |
| A photo with the letter T | A photo with the letter X |
| A photo with the letter X | A photo with the letter B |
| L23.H2 ("Animals") | L23.H2 (Z = 1.91) |
| Image showing prairie grouse | Picture of a feline |
| Image with a penguin | An image with dogs |
| A magnolia | Photo of a furry animal |
| An image with dogs | Photo taken in Grand Canyon |
| An image with cats | An image with cats |
FIGURE 13.3: Comparison between TextSpan and Orthogonal Matching Pursuit on the first principal component (OMP ), applied to the heads of OpenCLIP-L. Left: agreement score between the descriptions returned by the two methods. Right: qualitative comparison of selected descriptions for 4 heads, one per layer, at different agreement levels.
the aggregation of the spectral cosine similarities along the entries, with normalization to bound the measure between 0 and 1 (weights sorted in decreasing order). The normalized spectral cosine similarity between the two sets of principal components is defined as:
This measure is applied to compare residual units across different input datasets. The main advantage of this formulation, compared to standard approaches to representation similarity, is that the metric does not rely on the alignment between samples, as it operates in the dual spectral space. This property is crucial in the application to different datasets, which even vary in size.
Experimental setting. The same ViT-based encoders of Section 13.2.1 are considered, along with 14 different datasets: ImageNet1k (the same split used in Section 13.2.1), CIFAR-10/CIFAR-100 (Krizhevsky, 2009), ImageNet-Sketch (H. Wang et al., 2019), Cars (Krause et al., 2013), MNIST (LeCun et al., 1998), SVHN (Netzer et al., 2011), EuroSAT (Helber et al., 2019), RESISC45 (G. Cheng et al., 2017), DTD (Cimpoi et al., 2014), SUN397 (J. Xiao et al., 2016), GTSRB (Stallkamp et al., 2011), PACS (D. Li et al., 2017), and random images (10000 samples with RGB values in ). The original train/validation/test splits are used if available, otherwise the splits are produced through a stratified random sampling over the classes. For each encoder, the similarity measure is used to compare its unit representations produced on each training dataset with the ones obtained on the training split of ImageNet1k. ImageNet1k is taken as a reference under the assumption that being a general enough dataset, its head PCA bases are sufficiently comprehensive to approximate the primary features across other datasets. Additionally, a qualitative inspection of a few heads that stand out is performed by finding their textual decomposition. For this step, Simultaneous Orthogonal Matching Pursuit (SOMP) is used, having established its strong relationship with TextSpan (see the appendix of Basile* & Maiorca*, et al. (2025)).
Result analysis. Figure 13.4 reports the results of the spectral head-to-head comparison between ImageNet1k and all other datasets on OpenCLIP-L. Rows are ordered according to the mean overall similarity between the corresponding dataset and ImageNet1k. Dataset ordering is consistent across different encoders. The mean correlation coefficient between dataset similarities (averaged over all heads) across different models is 0.97. On OpenCLIP-L, datasets that maximally align with ImageNet1k share classes with it (e.g., SUN397 and Sketch) and/or contain generic images (e.g., DTD and Cars). Moreover, datasets that share the same input image structure and concepts (CIFAR-10 and CIFAR-100) have an almost identical similarity distribution across heads. Overall, a decreasing trend in head similarity scores as depth in the model increases is observed. The simple, linear heads of the first layers are responsible for the extraction of low-level patterns (Dosovitskiy et al., 2021) and are almost always identical across different data distributions. On the last layers, just a few heads per dataset stand out: this is where specialization is found. Zooming in on a few of these heads, Fig. 13.4b reports their textual descriptions obtained with SOMP. Head 7 of layer 22 (specialized on seasons) stands out because it is highly activated in many datasets that contain pictures of scenery (such as SUN397, GTSRB, and, more prominently, EuroSAT). Head 11 of layer 22 (specialized in shades of gray) is extremely different between ImageNet1k and Sketch, which contains grayscale drawings of ImageNet1k classes. Head 10 of layer 23 (specialized in numbers) is highly activated on both MNIST and SVHN. Other heads are shared between the two, such as head 1 of the same layer, but they are also activated by the random dataset, signaling that they are not as specific.
These findings show that the similarity measure yields intuitive scores, with ImageNet1k's foundational attributes demonstrating generalizability across various data distributions.
13.3 ResiDual Alignment
With a refined understanding of head specialization, the objective is now to use this property to enhance alignment between visual unit representations (both heads and MLPs) and text encodings in CLIP-like models. From this point onwards, the experiments share a common objective: given a frozen zero-shot classifier (e.g., text encodings or prototypes for classes), manipulating the residual to improve its alignment with this target subspace. The focus is on multimodal architectures, where improved alignment directly benefits tasks such as zero-shot classification by strengthening the model's capacity to interpret visual data through text-based descriptors.
Chapter 13. ResiDual

(A)
| L22.H7 ("Seasons") | L22.H11 ("Grayscale") | L23.H10 ("Numbers") |
|---|---|---|
| Serene winter wonderlandA photo taken in the summerA photo taken in the fallA photo taken in the springSerene garden oasis | A charcoal gray colorMinimalist white backdropSepia-toned photographAn amber colorHigh-contrast black and white | Image with six subjectsAn image of three subjectsAn image of the number 9The number fifteenImage with four people |
(B)
FIGURE 13.4: (a) Attention head similarity across layers of OpenCLIP-L, computed between ImageNet1k head representations and those obtained on other datasets. (b) Descriptions picked by SOMP for three specialized heads found in the analysis of panel (a).
13.3.1 Coarse Unit Alignment
The exploration begins by investigating whether certain heads are already aligned with the text subspace relevant to the task. Specifically, the goal is to optimize vision-text alignment by combining visual heads weighted using various scoring functions. These functions assign weights to entire head representations to modulate (in some cases completely remove) their contributions to the residual stream. Crucially, these methods operate exclusively at the level of whole-head reweighting, leaving the internal structure and intrinsic specialization of individual heads unchanged. As a result, only the output specialization is affected.
Experimental setting. Three different selection methods are employed: i) Unsupervised (U): The head-to-output correlation is used as a measure. Intuitively, the more one head correlates to the full output, the more information it carries. In practice, the Pearson correlation is computed between each sample at the head level and its corresponding output encoding, averaging across samples to obtain a scalar; ii) Task-conditioned Unsupervised (U|T): Conditioning on the output alone does not necessarily imply that the selected heads will be suitable for a given task. Since the task is modeled by a text subspace, having one encoding for each class, the previous unsupervised measure can be conditioned to be applied only on the head and output subspaces spanned by the task encodings. This has the effect of ignoring features that might influence the correlation but are not related to the task at hand. This is a direct application of the CompAttribute metric introduced by Balasubramanian et al. (2024); iii) Supervised (S): When both the task encodings and labeled samples are assumed
| BLIP-L | OpenCLIP-L | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dataset | U | U|T | S | R | H | B | O | U | U|T | S | R | H | B | O |
| CIFAR-10 | 0.94 | 0.94 | 0.93 | 0.56 | 0.93 | 0.94 | 0.96 | 0.96 | 0.96 | 0.96 | 0.59 | 0.94 | 0.97 | 0.98 |
| CIFAR-100 | 0.70 | 0.71 | 0.72 | 0.33 | 0.69 | 0.71 | 0.75 | 0.80 | 0.78 | 0.79 | 0.38 | 0.76 | 0.82 | 0.84 |
| Cars | 0.67 | 0.68 | 0.71 | 0.27 | 0.66 | 0.72 | 0.77 | 0.92 | 0.92 | 0.93 | 0.39 | 0.89 | 0.93 | 0.93 |
| DTD | 0.52 | 0.54 | 0.54 | 0.27 | 0.50 | 0.55 | 0.61 | 0.59 | 0.59 | 0.59 | 0.29 | 0.54 | 0.63 | 0.69 |
| EuroSAT | 0.49 | 0.53 | 0.53 | 0.24 | 0.37 | 0.50 | 0.92 | 0.64 | 0.64 | 0.67 | 0.34 | 0.55 | 0.64 | 0.95 |
| GTSRB | 0.34 | 0.34 | 0.37 | 0.14 | 0.33 | 0.35 | 0.59 | 0.55 | 0.56 | 0.55 | 0.20 | 0.49 | 0.56 | 0.75 |
| MNIST | 0.62 | 0.64 | 0.65 | 0.27 | 0.41 | 0.52 | 0.94 | 0.74 | 0.84 | 0.85 | 0.25 | 0.41 | 0.54 | 0.97 |
| RESISC45 | 0.58 | 0.57 | 0.60 | 0.28 | 0.56 | 0.59 | 0.79 | 0.70 | 0.69 | 0.70 | 0.33 | 0.63 | 0.73 | 0.86 |
| SUN397 | 0.67 | 0.66 | 0.68 | 0.28 | 0.65 | 0.70 | 0.73 | 0.70 | 0.69 | 0.71 | 0.27 | 0.59 | 0.74 | 0.76 |
| SVHN | 0.25 | 0.36 | 0.42 | 0.16 | 0.21 | 0.33 | 0.56 | 0.48 | 0.57 | 0.53 | 0.24 | 0.41 | 0.41 | 0.70 |
| Average | 0.58 | 0.60 | 0.61 | 0.28 | 0.53 | 0.59 | 0.76 | 0.71 | 0.73 | 0.73 | 0.33 | 0.62 | 0.70 | 0.84 |
TABLE 13.1: Accuracy when doing zero ablation of all units except top 5% of attention heads. Heads are assigned a binary weight using an Unsupervised (U), Task-conditioned Unsupervised (U|T), Supervised (S), and Random (R) strategy (a mean over 10 different seeds). H corresponds to using all the attention heads available, B is the original model performance, and O is the optimized continuous weighting case. Bold: best average among U, U|T, S.
to be available, the head score can be directly estimated by looking at its performance on the downstream task (in the style of logit lens (nostalgebraist, 2020)).
For each scoring function, each head is evaluated individually, ranked according to its score, and a greedy top-k selection is applied. These selected heads are then summed to create a partially recovered residual, which is subsequently evaluated on downstream task performance:
Three control measures are in place: i) Heads (H): The performance of the model when all the attention heads, and only them, are used. This gives information about the heads' contribution to the residual and, symmetrically, how much the final performance depends on the MLP units; ii) Random (R): The average performance over 10 independent random samplings of head units. This can be seen as a lower bound on the expected performance; iii) Base (B): The original performance of the model without any modification to its residual. Intuitively, this could represent a theoretical upper bound on the performance if there are no task-aligned units.
The greedy selection strategy scores heads independently, disregarding inter-head relationships. To make the selection aware of them, a scalar weight for each head is optimized simultaneously using gradient descent, providing an empirical upper bound for the selection performance. This procedure is referred to as Optimized (O).
These unit selection strategies are evaluated on two CLIP-like models (BLIP-L and OpenCLIP-L) and 10 of the datasets of Section 13.2.3. The value of for the greedy and random selection is chosen so that of the total heads are considered.
Result analysis. As reported in Table 13.1, the unsupervised scoring (U) performs unexpectedly well despite not explicitly considering the task. A likely reason is that core task information is often embedded in the first few principal components (PCs) of the output. By aligning with this information using only a few heads, a dual
Chapter 13. ResiDual
benefit is achieved: preserving essential task-relevant information while effectively filtering out noise. In fact, adding the conditioning on the task (U | T) is just slightly beneficial in terms of performance, with the exception of SVHN (and MNIST on OpenCLIP-L). The vast majority (on average around 90%) of alignment between task and residual comes from the head contributions, as witnessed by the similarity between the columns H and B. The optimized selection strategy (O) is extremely powerful, having the best score among them, and sometimes almost doubling the original model performances (B), showing how task-relevant information is already present in the residual, just hidden.
These results illustrate that retaining only task-aligned units (effectively “panning for the gold” contained in the residual) is highly effective across the board.
13.3.2 Spectral ResiDual Alignment
Given that: i) unit specialization is essentially encoded in the principal components (Section 13.2.2); ii) components of general enough data distributions (e.g., ImageNet1k) capture specialized behavior even on other datasets (Section 13.2.3); iii) retaining only task-aligned units is beneficial for image-text alignment (Section 13.3.1), a method to directly filter information along the residual at the spectral level is proposed: ResiDual.
Starting from the decomposition formula for the residual stream (Eq. (13.1)), anisotropic scaling of each unit representation is allowed. Specifically, given a unit representation U, its corresponding principal component basis , and associated mean , the ResiDual transformation of U is defined as:
where the learnable vector contains the weights associated with each principal component, and the rows of are the principal components of the unit, with (rows are samples), subtracted from every row, and the result transposed back to before the sum. When all of them are kept (RD), is orthogonal and ; when only the leading ones are kept (the truncated variant RD* below), has orthonormal rows and is its pseudo-inverse. Basile* & Maiorca*, et al. (2025) write in both cases. Then, the transformation is applied to every residual unit independently, resulting in a transformed version of the output Y:
In summary, ResiDual models a simple spectral anisotropic scaling of residual units that results in more complex dynamics in the output space. Summed over units, the map RD realises on the representation space of the vision encoder, with pairing the residual units with the text encodings that define the task. The effectiveness of this method is extensively evaluated across a variety of configurations, models and datasets.
Experimental setting. ResiDual is evaluated in 3 different configurations: i) RD, as presented in the original formulation; ii) RD*, a version of ResiDual constrained on the number and type of units (restricted to heads) and the number of considered components (PCA bases truncated to explain 90% of the variance). This is done because head units, and specifically their principal components, are strongly connected

FIGURE 13.5: Performance comparison between text-image alignment methods on zero-shot classification tasks.
to specialization; iii) , where the ResiDual transformation is applied directly on the output encoding Y, to assess whether output components can already be aligned with the task. For all configurations, ImageNet1k is selected as a reference for the PCA bases and unit means that appear in Eq. (13.6).
ResiDual is compared with 3 reference alignment methods: i) Base: the base zero-shot performance of the model, relying on the alignment coming from pre-training; ii) Full Fine-tuning: its score is considered the empirical upper bound for alignment. It is obtained by fine-tuning the whole vision transformer with frozen text encodings; iii) Linear Aligner (Lin): the performance of a trained linear transformation of the output shows to what extent output alignment could be linearly recovered. This approach is well-supported by recent studies (Chapters 4 and 11), which indicate that even independently trained models with different architectures can often be aligned by a simple linear transformation (Maiorca* & Moschella*, et al., 2023; Moschella* & Maiorca*, et al., 2023; Norelli et al., 2023; Balasubramanian et al., 2024; Lähner et al., 2024).
For this experiment, 3 CLIP-like models are employed: BLIP-L, CLIP-L, and OpenCLIP-L, tuned on the 10 datasets employed in Section 13.3.1. All training runs use the Schedule-Free Adam optimizer (Defazio et al., 2024) with the automatic learning rate finder by L. N. Smith (2017), implemented in PyTorch Lightning (Falcon et al., 2019). The maximum number of epochs is 30, with an early-stopping policy on the validation set accuracy with patience of 5 epochs.
Result analysis. Fig. 13.5 reports a comparative analysis of ResiDual against reference alignment methods. A linear transformation of the output is sufficient to approximate full fine-tuning performance on most datasets. The spectral residual transformation modeled by ResiDual attains comparable (and, in some cases, better) results than the linear aligner on all datasets. These statements hold true across all models. Specifically, the case of SVHN stands out: on this input dataset, ResiDual has an advantage of 0.09–0.16 accuracy over the linear aligner on all models. This gap is hypothesized to be due to the absence of task-relevant features at the output level. This is confirmed by the results in Table 13.2: on SVHN, has one of the largest gaps from RD, meaning that output components are not well aligned with the task. While having approximately 30% of the learnable parameters, achieves comparable results to RD, indicating that applying the ResiDual procedure to heads (and not MLPs) and their first principal components alone is sufficient. Moreover, in the cases where the performance of the original model is already satisfactory (e.g., CIFAR-10), applying ResiDual does not compromise alignment.
Chapter 13. ResiDual
| Dataset | BLIP-L | CLIP-L | OpenCLIP-L | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Lin | RD | Lin | RD | Lin | RD | |||||||
| CIFAR-10 | 0.97 | 0.97 | 0.97 | 0.96 | 0.97 | 0.98 | 0.98 | 0.97 | 0.98 | 0.98 | 0.98 | 0.98 |
| CIFAR-100 | 0.82 | 0.83 | 0.81 | 0.74 | 0.85 | 0.86 | 0.85 | 0.80 | 0.88 | 0.88 | 0.87 | 0.85 |
| DTD | 0.79 | 0.77 | 0.76 | 0.58 | 0.81 | 0.80 | 0.79 | 0.63 | 0.84 | 0.84 | 0.83 | 0.69 |
| EuroSAT | 0.95 | 0.98 | 0.98 | 0.83 | 0.97 | 0.99 | 0.98 | 0.95 | 0.97 | 0.98 | 0.98 | 0.94 |
| GTSRB | 0.87 | 0.87 | 0.84 | 0.59 | 0.92 | 0.92 | 0.92 | 0.77 | 0.94 | 0.92 | 0.92 | 0.78 |
| MNIST | 0.98 | 0.99 | 0.99 | 0.93 | 0.99 | 0.99 | 0.99 | 0.97 | 0.99 | 0.99 | 0.99 | 0.97 |
| RESISC45 | 0.92 | 0.93 | 0.92 | 0.77 | 0.95 | 0.96 | 0.95 | 0.87 | 0.95 | 0.95 | 0.95 | 0.89 |
| Cars | 0.86 | 0.84 | 0.82 | 0.75 | 0.89 | 0.86 | 0.85 | 0.81 | 0.94 | 0.94 | 0.94 | 0.93 |
| SUN397 | 0.80 | 0.80 | 0.77 | 0.72 | 0.82 | 0.80 | 0.77 | 0.70 | 0.83 | 0.82 | 0.80 | 0.75 |
| SVHN | 0.65 | 0.81 | 0.77 | 0.53 | 0.77 | 0.86 | 0.86 | 0.70 | 0.75 | 0.86 | 0.85 | 0.64 |
| Average | 0.86 | 0.88 | 0.86 | 0.74 | 0.89 | 0.90 | 0.90 | 0.82 | 0.91 | 0.92 | 0.91 | 0.84 |
| #params | 65.8k | 30.7k | 8.3k | 256 | 590k | 43k | 14k | 768 | 590k | 43k | 13.2k | 768 |
TABLE 13.2: Accuracy produced by different configurations of ResiDual, compared with a linear aligner. (Lin): linear aligner at the output level; (RD): ResiDual in the original formulation (all principal components of all residual units); (RD*): ResiDual limited to head units alone (no MLPs), and PCs truncated to 90% of explained variance; (RD): ResiDual applied to the output encoding. Bold: best average per model.
Overall, these results show that, through spectral-level operations along the residual, ResiDual builds a concise yet expressive transformation that bridges the modality gap, closely approximating full fine-tuning-level performance on most datasets, even in its more parameter-efficient configuration.
Chapter 14
Head Pursuit: Probing Attention Specialization in Multimodal Transformers
THIS CHAPTER IS BASED ON THE FOLLOWING PUBLICATION:
Head Pursuit: Probing Attention Specialization in Multimodal Transformers
Lorenzo Basile, Valentino Maiorca, Diego Doimo, Francesco Locatello, Alberto Cazzaniga
NeurIPS 2025 (Spotlight)
Code: https://github.com/lorenzobasile/HeadPursuit
TL;DR: Sparse decomposition over the unembedding matrix reveals concept-specialized heads, enabling targeted interventions on LLMs and VLMs.
14.1 Introduction
This chapter presents HeadPursuit, a correspondence-coupled operator ( , Chapter 3) that applies the Simultaneous Orthogonal Matching Pursuit (SOMP) framework, related to TextSpan in Chapter 13, to attention head analysis in generative transformers. The core correspondence links attention head outputs to interpretable semantic directions from the unembedding matrix—a fixed dictionary where each row is a natural language token embedded in latent space. By decomposing residual stream contributions over this semantic dictionary, SOMP reveals which heads specialize in generating specific concepts (colors, numbers, sentiment), enabling targeted interventions to steer model outputs in both language and vision-language models.
The unembedding matrix provides semantic grounding: its rows align with interpretable tokens, establishing correspondences between internal geometry and semantic content. SOMP then identifies which heads contribute to target concepts across multiple examples, generalizing the logit lens (nostalgebraist, 2020) from single-example, single-direction inspection to multi-example, multi-direction characterization.
Intervening on concept-specific heads identified through this correspondence enables precise control. Suppressing a few color-related heads almost removes color words from generated captions, while enhancing them increases their presence; sentiment and quantity words behave the same way. These capabilities demonstrate that
Chapter 14. Head Pursuit

FIGURE 14.1: Overview of the method. Given a language or vision-language model and a target property defined by text (e.g., colors, sentiments, numbers), HeadPursuit scores all attention heads according to how well they align with interpretable directions from a fixed dictionary, using a method based on Matching Pursuit (Mallat et al., 1993) (1). The method then selects the top-k heads (2) and intervenes by rescaling their contribution to the residual stream (3), either enhancing or suppressing the attribute in the model's output.
sparse geometric structure within the residual stream supports targeted interventions across both language and vision-language models.
Unlike the spectral approach in Chapter 13, which operates through continuous spectral decomposition, HeadPursuit exploits sparse dictionary structure. Where ResiDual identifies relevant components through variance explained by principal directions, HeadPursuit uses sparse coding to select interpretable atoms from a fixed semantic dictionary. This sparsity-based approach complements the distributional methods explored in Chapter 15, together demonstrating how different geometric structures within the residual stream enable distinct intervention strategies.
14.2 Pursuing specialized attention heads
The investigation begins by exploring whether individual attention heads of generative LLMs specialize in interpretable functions. To isolate the contribution of each head, a residual stream decomposition approach is employed. This allows assessment of how each attention head contributes to the residual stream at head-level granularity. Specifically, following Elhage et al. (2021), the output written by each head into the residual stream is modeled as a matrix for head of layer , where is the number of samples in the dataset and is the internal dimensionality of the transformer.
Motivated by the growing body of literature that uses latent decompositions for interpretability, especially in vision-language models (Gandelsman et al., 2024; Parekh et al., 2024; Basile* & Maiorca*, et al., 2025; Khayatan et al., 2025), the goal is to identify sparse and interpretable directions for each attention head that maximally explain its variance on a given dataset. Concretely, the method seeks a sparse representation of using only directions drawn from a fixed dictionary of
14.2. Pursuing specialized attention heads
145
interpretable vectors, to ensure that the resulting components are meaningful and grounded in known semantic structures.
As a dictionary, the unembedding matrix of the language model , where is the vocabulary size, is adopted, as it contains directions aligned with semantically meaningful outputs, grounding latent structure in human-interpretable terms. Every row of this matrix is a -dimensional vector that effectively represents in latent space a token that can be decoded into natural language.
An approximation of each head representation is then constructed using directions from this dictionary (the unembedding matrix) via a classical sparse coding algorithm: Simultaneous Orthogonal Matching Pursuit (SOMP) (Tropp et al., 2006) (see Section 14.2.1). SOMP is a multi-sample extension of Orthogonal Matching Pursuit (Pati et al., 1993), itself a refinement of the original Matching Pursuit algorithm (Mallat et al., 1993). SOMP jointly considers all samples in a given dataset and selects the dictionary directions that are most informative across the representation.
Formally, given a head activation matrix (the indices are dropped from here on) and a dictionary , SOMP aims to iteratively construct a column-sparse coefficient matrix such that:
At each iteration t, the algorithm selects the dictionary atom (i.e., a row of D) that maximally correlates with the head residuals across all samples:
Here, the head residual matrix is defined as the difference between the original signal and its reconstruction at step : . The selected index is added to the support set , and the coefficients are refit by solving a least-squares problem restricted to the current support:
Here keeps the rows indexed by , so ; after iterations, is padded with zero columns outside . The reconstruction is updated as , and the residuals are recomputed accordingly. This process runs for iterations, so exactly atoms are selected (the sparsity level; typically in the experiments). The resulting decomposition expresses each head's output using a sparse set of semantically meaningful dictionary atoms, yielding an interpretable approximation of its behavior.
A conceptual connection exists between this reinterpretation of SOMP and the logit lens (LL) (nostalgebraist, 2020), a tool widely used in mechanistic interpretability to probe internal representations of transformer models. Similarly to the method just described, LL works by projecting a single residual stream vector onto the unembedding directions to approximate the output logits of the model at intermediate layers. This is equivalent to performing a single step of Matching Pursuit on an individual example. The SOMP-based method generalizes this idea in two key ways: it operates on multiple examples simultaneously, and it selects multiple dictionary directions, each capturing distinct components of the signal. This leads to a more robust and semantically structured characterization of the attention head's functional role.
Chapter 14. Head Pursuit
Table 14.1 presents examples of specialized attention heads, obtained by applying SOMP to Mistral-7B attention heads, prompted by questions from the TriviaQA dataset (Joshi et al., 2017). Before applying SOMP, the tokens from the prompt were aggregated by averaging. LL applies to one sample at a time; to aggregate it over a dataset, the 5 tokens with the highest logits are stored for each sample, and the 5 most frequent tokens overall are reported. Table 14.2 shows that a direct application of LL in this setting results in noisier and highly redundant explanations.
TABLE 14.1: Top-5 tokens identified by SOMP on selected attention heads of Mistral-7B, evaluated on TriviaQA prompts. Lℓ.Hh denotes head of layer . Layers and heads are 0-indexed.
| L18.H27 ("Politics") | L24.H20 ("Nationality") | L25.H14 ("Months") | L30.H28 ("Numbers") |
|---|---|---|---|
| COVID | British | December | 9 |
| Soviet | American | July | 1 |
| Obama | European | April | 3 |
| Biden | German | October | 7 |
| Clinton | English | February | five |
TABLE 14.2: Top-5 tokens identified by aggregated logit lens on selected attention heads of Mistral-7B, evaluated on TriviaQA data.
| L18.H27 ("Politics") | L24.H20 ("Nationality") | L25.H14 ("Months") | L30.H28 ("Numbers") |
|---|---|---|---|
| vaccine | American | Sunday | 8 |
| Covid | Americans | breakfast | u |
| pandemic | California | Oct | u |
| COVID | America | October | n |
| Soviet | American | February | 9 |
Besides returning lists of latent directions and associated natural language tokens that better characterize each head, SOMP produces a reconstruction of the head representation in the space spanned by those vectors. Building on this insight, the method automatically identifies the heads most relevant for a target attribute. Given a list of words related to the chosen semantic area, the unembedding matrix is restricted to the rows associated with these tokens, and SOMP is applied on this concept-specific dictionary. The fraction of head variance explained by SOMP in this setting is a measure of specialization, allowing heads to be ranked and selected by their relevance with respect to the target concept.
14.2.1 Simultaneous Orthogonal Matching Pursuit Algorithm
The pseudocode for the Simultaneous Orthogonal Matching Pursuit (OMP) algorithm (Tropp et al., 2006) is given in Algorithm 2.
14.3 Controlling language generation through specialized heads
This section evaluates how the specialization of attention heads can be used to apply domain-specific targeted interventions to model behavior, effectively validating the selection. One approach disrupts the information flow from a selected subset of heads to the residual stream during the forward pass. Concretely, this intervention
14.3. Controlling language generation through specialized heads
147
Algorithm 2 Simultaneous Orthogonal Matching Pursuit (SOMP)
Require: Signal Matrix (head representation) , dictionary , number of iterations
Ensure: Reconstruction , support set
1: Initialize: Residual , reconstruction , support set
2: for do
3:
4:
5:
6:
7:
8:
9: end for
inverts the sign of the head representations. This intervention affects both the direct contribution of the head to the residual stream and the indirect contribution of its information content to subsequent layers.
The key preliminary step identifies relevant and specialized heads. To accomplish this, SOMP (see Section 14.2) is applied over a restricted unembedding dictionary, filtered to include only a set of tokens associated with the target property. These tokens can be selected using various strategies, such as user-defined word lists, class names, or keywords generated by an external LLM. Attention heads are then ranked by the proportion of variance in the data explained by SOMP (typically using 50 iterations in the experiments) and intervention is applied to the top-k ranked heads.
All experiments include a random control condition to verify the specificity of findings. This control involves intervening on a randomly selected set of attention heads that matches the original set in both size and layer distribution but is entirely disjoint from it. To ensure fair comparison, heads previously identified as specialized are explicitly avoided when constructing the control set. In all experiments, random control results are reported in terms of medians and interquartile ranges over 10 independently sampled sets of heads.
14.3.1 Question answering
Experimental setting. The generative LLM Mistral-7B (A. Q. Jiang et al., 2023) is evaluated on textual prompts from the TriviaQA (Joshi et al., 2017) question answering dataset. The goal is to identify attention heads specialized in generating country names, a target attribute motivated by their relative abundance in the dataset: despite their specificity, country names account for over 6% of the answers in the test split. For targeting the countries concept, the tokens in the dictionary (unembedding matrix) are restricted to those corresponding to names of countries, and the Matching Pursuit based method is applied to select specialized heads. As an additional baseline, heads are also selected with a simple adaptation of the logit lens: each head is scored by the mean logit that LL assigns to country-related tokens, and the top-k heads are selected as in the SOMP-based method. Both sets of heads are computed using representations obtained from the training data, which is strictly disjoint from the data used in evaluation. Model performance on TriviaQA is evaluated in terms of
Chapter 14. Head Pursuit
the standard F1 score, which accounts for partial overlaps between the predicted and ground-truth answers.

FIGURE 14.2: Question answering performance of Mistral-7B on TriviaQA. F1 scores are shown for samples associated (country) or not (other) with the target attribute, normalized to the F1 score of the base model without intervention. Random baselines are displayed as medians and interquartile ranges.
Result analysis. The results of intervention on subsets of specialized heads are reported in Fig. 14.2, varying the number of selected heads. Performance on the target attribute (solid blue line) noticeably degrades when the signs of 8 heads (0.8% of the total) or more are inverted. Performance on the remaining examples (solid orange line) declines more gradually, suggesting that these specialized heads have a targeted effect. Since the semantic domains of the questions answered by a country name and the remaining part of TriviaQA are not disentangled, intervening on the selected heads is expected to also have a (lower) impact on the remaining examples (orange line). Control experiments using random heads (faded lines) show a limited impact on performance, suggesting the specificity of the identified heads. Instead, heads selected by the logit lens (dashed lines) are relevant to the question answering task but not specific to the target concept, as they degrade performance equally within and outside the target domain.
Overall, the analysis suggests that HeadPursuit correctly identifies heads relevant to country-related examples, as intervention disproportionately impacts target performance, while control heads induce a limited effect and the logit lens selects relevant but non-specific heads.
14.3.2 Mitigation of toxic content
Experimental setting. This experiment evaluates HeadPursuit in a more realistic and less controlled scenario, where a complete list of target keywords is not available. Instead, only a limited and incomplete list of words represents the topic or concept.
The focus is on toxicity mitigation: specifically, reducing the occurrence of offensive content in text generated by Mistral. To accomplish this, a subset of toxic heads within the model is identified and intervened upon. Two datasets are considered: RealToxicityPrompts (RTP) (Gehman et al., 2020), which contains real-world Web prompts, and Thoroughly Engineered Toxicity (TET) (Luong et al., 2024), a benchmark with carefully constructed test cases, both of which are designed to elicit harmful responses from LLMs.
For both datasets, toxic words are extracted from Mistral's responses using Llama-3.1-8B (Grattafiori et al., 2024) (the prompt is reported in the appendix of Basile et al. (2025b)), and those words are used to identify and invert toxic heads. Two complementary metrics quantify the toxicity of Mistral's responses: one semantic and one lexical. The semantic metric uses a RoBERTa-based toxicity classifier from Logacheva et al. (2022), trained to detect toxic content in text. The lexical metric measures the frequency of a held-out subset of toxic words that were not used for head selection.
TABLE 14.3: Normalized count of toxic generations after intervention, as judged by the toxicity classifier. Lower values indicate better mitigation. Targeted heads reduce toxicity, while heads selected using LL have a weaker impact and random heads maintain or increase toxicity. For random baselines, only the median is shown; the interquartile ranges are reported in the appendix of Basile et al. (2025b).
| Dataset | 8 heads | 16 heads | 32 heads | ||||||
|---|---|---|---|---|---|---|---|---|---|
| SOMP | LL | Rand. | SOMP | LL | Rand. | SOMP | LL | Rand. | |
| RTP | 0.83 | 0.91 | 1.02 | 0.67 | 0.79 | 1.00 | 0.66 | 0.71 | 1.13 |
| TET | 0.83 | 0.81 | 0.97 | 0.68 | 0.73 | 0.95 | 0.49 | 0.68 | 0.95 |
Result analysis. The results obtained by inverting the sign of toxic head activations are displayed in Table 14.3, for 8, 16 and 32 heads. In both RTP and TET, intervening on such heads noticeably reduces the number of generations deemed toxic by the classifier, while intervening on heads identified by the logit lens has a generally weaker impact on toxicity. Moreover, intervening on randomly chosen control heads tends to maintain or even increase the frequency of toxic completions. A possible explanation is that random selection picks and disrupts heads that are deemed non-toxic (imposed to be distinct from the targeted ones), thus implicitly reinforcing toxic behavior. Analogous results are reported in the appendix of Basile et al. (2025b) for the lexical metric, showing that the intervention reduces the frequency of toxic words, even those not used for the head selection.
These results demonstrate that intervening on a small subset of heads can make generated text less toxic. Moreover, the approach impacts broader semantic areas, beyond the keywords used for head selection.
14.4 Targeted control of visual attributes
This section evaluates the extent and implications of head specialization in the LLM backbones within generative Vision-Language models (VLMs). These models are usually built by fine-tuning a pretrained LLM on multimodal tasks, such as visual question answering or image captioning, using visual tokens coming from a pretrained vision encoder as contextual information (H. Liu et al., 2023). In line with
Chapter 14. Head Pursuit
recent works (Neo et al., 2025) that have applied the logit lens to visual tokens of LLaVA, a prominent example of VLM, the analysis applies SOMP-based head selection to the head representations of image patches, averaged over tokens. Two task scenarios are considered: image classification and image captioning.
14.4.1 Image classification
Experimental setting. For this experiment, LLaVA-NeXT-7B (H. Liu et al., 2024a) (referred to as LLaVA hereafter) is benchmarked on a range of image classification datasets, including: MNIST, SVHN (Netzer et al., 2011), GTSRB (Stallkamp et al., 2011), EuroSAT (Helber et al., 2019), RESISC45 (G. Cheng et al., 2017) and DTD (Cimpoi et al., 2014). For each dataset, the set of k most relevant heads is selected. As in previous experiments, heads are chosen by running SOMP using as dictionary a restriction of the unembedding matrix, and sorting heads by the fraction of variance explained by the SOMP reconstruction. Two settings are considered: one task-conditioned, in which the unembedding matrix is restricted to the tokens corresponding to class names; and one completely task-agnostic, in which a set of keywords extracted by an external VLM (Mistral-Small-3.1-24B) is considered. Results for the latter are reported in Fig. 14.5, and the prompt is reported in the appendix of Basile et al. (2025b). In this experiment, the model is prompted to classify the image, and the generated output is evaluated in terms of exact match with the ground truth class label.

FIGURE 14.3: Classification results under different head selection strategies: (light blue) 16 heads with highest variance ratio explained by SOMP; (dark blue) 32 heads with highest explained variance ratio; (yellow) 16 random heads, with the same layer-wise counts of top 16; (orange) 32 random heads, with the same layer-wise counts of top 32.
Result analysis. The classification results are reported in Fig. 14.3, normalized for each dataset with respect to the accuracy obtained by LLaVA when no intervention is applied to its forward pass. For all datasets, inverting the top 32 heads identified by the method is sufficient to disrupt the classification performance, while inverting 32 random heads at equivalent layers has substantially lower to no impact on performance. At k = 16 the picture is similar with the exception of DTD, whose performance is weakly affected, hinting at higher head redundancy on this task. In Fig. 14.4, the interaction between head choices for different datasets is analyzed. In the left panel, the Jaccard similarity between head selections reveals a clear structure: datasets with related semantics tend to share more specialized heads. For example, MNIST and SVHN (both digit recognition tasks) exhibit substantial overlap, as do EuroSAT and RESISC45 (both involving remote sensing imagery). This structure is reflected in the right panel, which shows normalized classification accuracy on each target dataset (rows) when intervening on heads selected from a different source dataset (columns). Interventions based on similar datasets lead to stronger performance degradation, indicating that these datasets rely on overlapping functional heads. Large drops in GTSRB (traffic sign recognition) performance are also observed when intervening with heads selected from MNIST or SVHN. Despite their visual differences, all three datasets contain numerical symbols, suggesting that certain heads contribute specifically to number recognition across domains. The same analysis with k = 8 and k = 32 heads is shown in Figs. 14.6 and 14.7. Logit lens baselines are reported in the appendix of Basile et al. (2025b), where additional experiments on LLaVA-NeXT-13B, Gemma3-12B and Qwen2.5-VL-7B confirm the trends observed here on LLaVA-NeXT-7B.


FIGURE 14.4: (left) Jaccard similarity between sets of top-16 LLaVA heads selected with SOMP over different datasets; (right) Classification accuracy on a target dataset, denoted by row, when the top-16 heads are selected with SOMP on a source dataset, denoted by column. Accuracy is normalized w.r.t. the base accuracy on target dataset.
Summing up, intervening on a small set of attention heads selected via SOMP disrupts classification performance across diverse datasets, confirming head-level specialization in LLaVA. Moreover, overlap patterns reflect semantic similarities between datasets.
14.4.2 Image captioning
Experimental setting. The Flickr30k dataset (Young et al., 2014) is considered, and the possibility of promoting or reducing the presence of words belonging to specific semantic areas in the captions generated by LLaVA is evaluated (other VLMs are evaluated on the same task in the appendix of Basile et al. (2025b)). In this experiment, two opposite intervention directions are considered: one is inhibitory, as in previous experiments, and one enhancing. In the former case, the objective is to make the model produce meaningful captions that do not contain the target property (e.g., colors), while in the latter the aim is to enhance the target property, while preserving the model's capabilities in generating meaningful descriptions. The two setups reduce to rescaling selected heads by a coefficient that is in the negative case and
Chapter 14. Head Pursuit

FIGURE 14.5: Task-agnostic head selection on image classification benchmarks. Heads were selected using dataset-specific lists of keywords obtained from an external VLM, with no task knowledge. Classification results under different head selection strategies: (light blue) 16 heads with highest variance ratio explained by SOMP; (dark blue) 32 heads with highest explained variance ratio; (yellow) 16 random heads, with the same layer-wise counts of top 16; (orange) 32 random heads, with the same layer-wise counts of top 32.
in the positive case; the intervention rescales the selected heads by , which realises . Heads are selected using SOMP on a dictionary of tokens corresponding to lists of keywords regarding colors, sentiments and quantity, the first two produced by Khayatan et al. (2025) and the last one manually curated. After the intervention, evaluation is carried out in terms of caption quality, measured using the CIDEr metric (Vedantam et al., 2015), and effectiveness of the intervention, measured as the average number of target concept keywords present in the captions.
Inhibitory intervention. The first setup evaluated is analogous to the previous examples on text generation and image classification tasks. The generation of tokens in a certain semantic domain is inhibited by inverting the signs of a few carefully selected attention heads. The results of this analysis are reported in Fig. 14.8, for the three sets of attributes colors (left), sentiments (center) and quantity (right). In all cases, the intervention is able, with as few as 16 heads, to almost completely remove attribute-related keywords from the output captions, while keeping the overall caption quality almost on par with the original, as witnessed by the CIDEr score, which stays at or above 80% of the original. The CIDEr results, together with a comparison with heads selected using the logit lens, are reported in the appendix of Basile et al. (2025b).
Enhancing intervention. Across different tasks and data modalities, intervening on selected head activations by inverting their sign is highly effective in disrupting the generation of a target attribute. A different perspective now evaluates whether amplifying those specialized attention heads can incentivize the generation of the target concept. This is accomplished by multiplying the activations of chosen heads by a coefficient : is chosen for the experiments as it guarantees a reasonable trade-off between caption quality and attribute enhancement. The results, on the same attributes of the previous experiment (colors, sentiments and quantity),


FIGURE 14.6: (left) Jaccard similarity between sets of top-8 LLaVA heads selected with SOMP over different datasets; (right) Classification accuracy on a target dataset, denoted by row, when the top-8 heads are selected with SOMP on a source dataset, denoted by column. Accuracy is normalized w.r.t. the base accuracy on target dataset.


FIGURE 14.7: (left) Jaccard similarity between sets of top-32 LLaVA heads selected with SOMP over different datasets; (right) Classification accuracy on a target dataset, denoted by row, when the top-32 heads are selected with SOMP on a source dataset, denoted by column. Accuracy is normalized w.r.t. the base accuracy on target dataset.
are reported in Fig. 14.9. As in the previous case, the intervention affects the overall caption quality only marginally (see the appendix of Basile et al. (2025b)), while the presence of target concepts increases by more than 60% in all three cases with 32 heads. The effect of between 2 and 8 on 32 color-specialized heads is shown in Fig. 14.10: the frequency of color-related words increases smoothly with , at the cost of a small decrease in caption quality (CIDEr drops by up to 12% for ). Captions generated for two sample images after applying interventions in both directions (inhibitory and enhancing) are reported in Table 14.4.
Overall, these results show that head-level specialization can be used to control the prevalence of words belonging to a target semantic area in generated image captions. This result holds for both inhibiting and enhancing the target concept.
Computational resources. To perform the experiments, implementations of Mistral-7B (Mistral AI, 2023), LLaVA-NeXT-7B (H. Liu et al., 2024b) and the other models
Chapter 14. Head Pursuit

FIGURE 14.8: Effect of inhibitory interventions on LLaVA attention heads for Flickr30k captioning. Bars show the normalized presence of target attributes (colors, sentiments, quantity) under different head selection strategies (SOMP and random). Random baselines are reported in terms of medians and interquartile ranges.

FIGURE 14.9: Effect of enhancing interventions on LLaVA attention heads for Flickr30k captioning. Bars show the normalized presence of target attributes (colors, sentiments, quantity) under different head selection strategies (SOMP and random). Random baselines are reported in terms of medians and interquartile ranges.
listed in the appendix of Basile et al. (2025b), as provided in the HuggingFace transformers library (Wolf et al., 2020), were employed. All experiments were executed on a single NVIDIA H100 GPU equipped with 80GB VRAM.
Colors (k=32)

FIGURE 14.10: Effect of enhancing interventions on 32 color-specialized heads in image captioning. Increasing the rescaling coefficient leads to a stronger presence of color-related words in captions, accompanied by a gradual drop in overall caption quality as measured by CIDEr.
TABLE 14.4: Examples of captions produced by LLaVA-NeXT on Flickr30k images, before and after inhibiting (top) or enhancing (bottom) 16 heads specialized on colors (left) and sentiments (right). Analogous examples for quantity are reported in the appendix of Basile et al. (2025b).
Flickr30k examples:


| Original | A small dachshund wearing a pink sweater. | A young woman with long brown hair and a smile. |
|---|---|---|
| Intervention | Colors inhibition (k = 16, α = -1) | Sentiments inhibition (k = 16, α = -1) |
| Output | A small dachshund wearing a sweater. | Girl with long brown hair blowing in the wind. |
| Intervention | Colors enhancement (k = 16, α = 5) | Sentiments enhancement (k = 16, α = 5) |
| Output | A black and brown dog wearing a pink sweater. | A happy girl with long hair and a big smile. |
Chapter 15
LinEAS: Linear End-to-end Activation Steering
THIS CHAPTER IS BASED ON THE FOLLOWING PUBLICATION:
LinEAS: End-to-End Learning of Activation Steering with a Distributional Loss
Pau Rodríguez, Michal Klein, Eleonora Gualdoni, Valentino Maiorca, Arno Blaas, Luca Zappella, Marco Cuturi, Xavier Suau
NeurIPS 2025
Code: https://github.com/apple/ml-lineas
TL;DR: A distributional correspondence between 32 samples is enough to learn SoTA utility-preserving steering vectors for generative models.
15.1 Introduction: Distributional Correspondence Across Layers
This chapter presents LinEAS, a correspondence-coupled same-space operator ( , as defined in Chapter 3) that operates within a single model through distributional alignment. Component-wise interventions (ResiDual's spectral decomposition, Chapter 13) and sparse selection (HeadPursuit's attention head identification, Chapter 14) act on individual components. LinEAS establishes correspondence between activation distributions.
The correspondence links source and target distributional properties—for instance, the statistical signatures of representations when processing toxic versus non-toxic prompts, or when generating images with versus without specific concepts. While distributional correspondence represents the weakest form in the taxonomy of geometric structures (Chapter 3), requiring only statistical agreement and no instance-level pairing, LinEAS demonstrates that this generality enables learning from very few examples: as few as 32 unpaired samples suffice for effective steering in both language and vision generative models.
LinEAS's defining characteristic is joint correspondence-guided optimization of transport maps scattered throughout network depth. Local layer-wise interventions—optimizing each layer independently while freezing others—ignore causal dependencies propagating across layers, causing distributional shifts that degrade model utility. LinEAS addresses this by learning affine transport maps at each layer through end-to-end optimization using a global distributional loss grounded in optimal transport theory.
Chapter 15. LinEAS
This joint training accounts for layer interactions while enabling sparsity regularization that automatically selects which activations to intervene on, reducing the intervened support by while preserving alignment quality.
The method demonstrates distributional correspondence on language generation (toxicity mitigation in LLMs) and text-to-image generation (concept removal/induction in generative models), achieving state-of-the-art results among activation steering methods that preserve model utility.
15.2 End-to-end Learning of Steering Maps
LinEAS optimizes activation-specific interventions jointly across layers. The hypothesis is that global estimation exploiting causal interdependencies between activations is needed to maintain model utility while achieving the steering goal.
15.2.1 Interventions Setup and Distributional Loss
Consider a generative model with intermediate activation layers targeted for intervention. The model can be described as a composition of abstract pretrained functions, where the output, given an input prompt , can be written as . For convenience, denote as the dimension of activations at layer , i.e. the size of the activation vector . The pretrained computational graph of intermediate frozen layers is interlaced with comparatively much simpler vector-to-vector maps: , where for , the map acts on the intermediate activations observed after layer , by altering its coordinates and outputting a vector of the same size. The maps together realise .
Layerwise Distributional Losses. The correspondence links source and target distributions over prompts: (source behavior) and (desired behavior). For instance, and may represent toxic versus non-toxic sentences (Section 15.3.1), or prompts inducing versus suppressing specific visual concepts in image generation. Each sampled prompt traces through the model’s layers, inducing a sequence of activation distributions that LinEAS aligns through joint transport. In practice, this means having access to a minibatch of samples and , tracking the execution trace of their activations, either modified through interleaved transports for samples from :
or run through the original network for samples of q:
The goal is to learn jointly all transport maps so that, for each , the families of vectors and are similar with respect to a distributional discrepancy between probability measures, making the cost below small:
Sliced Wasserstein Losses. To define at each layer, the approach of Rodriguez et al. (2025) is adopted: summing the squared univariate Wasserstein distances between
15.2. End-to-end Learning of Steering Maps
159
the marginal distributions at each layer . This choice is motivated by the typical setting's high-dimensionality / low sample regime, , with N the number of prompts available for each distribution, which would hinder the use of more complex multivariate distributional losses that account more closely for cross-variable effects. Empirically, adding univariate quantities yields more robust loss estimation that translates to better downstream task performance than considering, e.g., Sinkhorn divergences (Genevay et al., 2018).
The activations can be arranged as matrices
with one sample per row; of the two families in Eq. (15.3) is of these matrices. To compute their 1D-Wasserstein distance (Santambrogio, 2015, Chap. 2), these activations must be first sorted in increasing order along the sample axis, i.e. each column separately:
to define the (squared) sliced Wasserstein distance (Rabin et al., 2012) computed only on the canonical directions, namely:
where is the 2-Wasserstein distance between the empirical distributions of the k-th coordinates, denoting the k-th column.
Differences with ITI, Lin-ACT and ReFT. Both ITI (K. Li et al., 2023) and Lin-ACT (Rodriguez et al., 2025) optimize each independently across layers, minimizing a single distributional difference in closed form (Lin-ACT) or learning a linear classifier (ITI), and assuming all other layers are frozen. While arguably much faster, this also generates causal inconsistencies, which can be partially resolved as in Lin-ACT by using a sequential approach: when is trained, is reused to recompute all activation distributions used for . This suboptimality is hypothesized to limit generalization. This independent approach also precludes trade-offs when choosing which activations to turn on/off across layers, which can easily be surfaced using sparsity regularizers. One fundamental difference with ReFT (Wu et al., 2024a) is that LinEAS does not need paired data, i.e. sample does not need to be a counterfactual of (paired indices are used here for the pairing methods), which is the case for ReFT. While counterfactual data is important for applications like translation, there is a vast amount of applications (e.g. toxicity) where paired data is not available.
15.2.2 Parameterization and Regularization
Following Rodriguez et al. (2025), each map is parameterized as an affine map for each activation , namely for , one has
where is the element-wise product. Write and for the collections of all scale and intercept parameters. In what follows, since each map is entirely parameterized through its scale/intercept parameters , notation is overloaded to define
Chapter 15. LinEAS
Sparse Regularization. A sparsity regularizer carries out both layer and within-layer selection of activations. This can be achieved by using structured regularization, using either 1-norms or 2-norms:
resulting in a sparse group lasso regularizer (Simon et al., 2013; Yoon et al., 2017), , which can be added to the cost to result in:
(15.6)
where controls the amount of sparsity, i.e. larger will result in fewer activations and/or layers being intervened on, with solution such that and .
On the choice of sparsity hyperparameters. The regularizer adds two hyperparameters, and , on top of ; this is a small number, since the affine maps themselves have none. Empirically, tuning with provides a range of trade-offs between conditioning and utility as reported in Fig. 15.2. This also reduces the number of additional hyper-parameters to tune to just one ( ) and enables automatic layer selection (see the appendix of Rodríguez et al. (2025), section "Group Sparsity Trade-offs").
15.2.3 Optimization
Proximal SGD. in Eq. (15.6) is optimized with proximal stochastic gradient descent (PSGD) with a learning rate of 0.1 and cosine decay (see the appendix of Rodríguez et al. (2025) for the algorithm and the proximal operators). The method assumes access to 2 sets of unpaired prompts and and runs PSGD on minibatches of activations and of size . Note that activations originating from use the untouched network, and can be pre-computed beforehand.
15.3 Experimental Results
15.3.1 Toxicity Mitigation in LLMs
This section analyzes LinEAS effectiveness at toxicity mitigation, comparing with prompting, CAA (Rimsky et al., 2024), ReFT (Wu et al., 2024a), ITI (K. Li et al., 2023), and Lin-ACT (Rodriguez et al., 2025) on three LLMs ranging from 1.5B to 7B parameters, by aligning the activations of N = 32 toxic to 32 non-toxic sentences sampled from the Jigsaw dataset (Adams et al., 2017).
Toxicity Metrics. Toxicity mitigation is evaluated on the RealToxicityPrompts (RTP) dataset (Gehman et al., 2020) and the Thoroughly Engineered Toxicity (TET) dataset (Luong et al., 2024). For RTP, the evaluation follows Rodriguez et al. (2025) by sampling 1000 prompts from the dataset and letting the model (intervened or not) complete them. For TET, the 2546 prompts provided are used. Generations are scored using the open-source Roberta toxicity classifier (RTC) (Logacheva et al., 2022). Tox and Tox denote the respective percentage of generations flagged as toxic on RTP and TET.
Utility Metrics. To measure whether the utility of the model is affected by these interventions, PPL (the perplexity obtained on a fixed set of 20k Wikipedia sentences (Wikimedia Foundation, n.d.)) is reported, as well as the overall 5-shot accuracy on the MMLU compendium (Hendrycks et al., 2021).
Oracle Baselines. Two oracle baselines are introduced that require strong supervision directly from the RTC oracle (i.e. the classifier used for test-time metrics), giving them a strong advantage. A LoRA adapter and LoFIT (F. Yin et al., 2024) are trained using RTC labels, yielding the oracle methods LRTC-RL and LoFIT-RL. Table 15.1 reports only LoFIT-RL results as it outperformed LRTC-RL (see the appendix of Rodríguez et al. (2025)).
Setup. All methods have access to only 32 toxic and 32 non-toxic sentences (unpaired). LinEAS is optimized for 1K steps using SGD with learning rate 0.1. To focus on the benefit of end-to-end loss, is used for LinEAS (see Section 15.3.3 for 's impact). For Lin-ACT and CAA, default settings are used with intervention strength . For ReFT, training runs for 10 epochs (selected via epoch sweep). For ITI, is used (obtained through grid search). Toxicity mitigation is evaluated by intervening on different layers, reporting the best overall layer type per method: .*post.*layernorm for LinEAS and .*o_proj for ITI and Lin-ACT, according to the Huggingface implementation. Both CAA and ReFT intervene on residuals of Transformer blocks, as suggested in their original works. For CAA, two baselines are run: intervening on all layers (reported in Table 15.1), and on the middle layer (as in the original paper; omitted given its worse performance, see the appendix of Rodríguez et al. (2025)). Additionally, prompting is included as a conditioning strategy, preprompting with “Continue the text in a non-toxic way:”.
Results. Table 15.1 summarizes the toxicity mitigation experiments averaged over 4 generation seeds (and RTP samplings). CAA and ReFT induce a stronger degradation of utility, invalidating their toxicity mitigation results. Note that both methods are designed for paired data, which does not exist in the toxicity setup, so they are not used in their nominal setting, which affects their performance. Prompting is not effective for the models tested, and even increases . LinEAS achieves a consistent toxicity mitigation, outperforming all steering methods that preserve utility (ITI, Lin-ACT, prompting) at this low data regime. For example, LinEAS reduces Gemma2-2B toxicity by , getting closer to the mitigation obtained with the oracle LoFIT-RL. In terms of utility, LinEAS shows a minimal degradation, with values very similar to the utility incurred by the oracle LoFIT-RL. In absolute terms, LinEAS reduces MMLU by less than 1 point and increases by at most 0.7. LinEAS demonstrates much greater robustness to layer choice than ITI and Lin-ACT (see the appendix of Rodríguez et al. (2025)). Additionally, Fig. 15.1 provides an analysis on higher data regimes, up to sentences, showing that LinEAS remains reliable in such scenarios. The compute needed to train these methods differs widely: in the low data regime , estimating each method on a Nvidia A100-80Gb GPU and Qwen2.5-7B takes 37s (ITI), 30s (Lin-ACT, which uses closed forms), 500s (LinEAS for 1K steps) and 27300s for LoFIT-RL.
User Study. A user preference study complements the quantitative results by evaluating perceived quality of continuations generated by different intervention methods. The findings indicate strong preference for LinEAS over three alternatives: Lin-ACT, ITI, and no intervention (identity). Specifically, users preferred LinEAS in 57.70% of cases compared to 18.43% for Lin-ACT and 11.67% for ITI.
Chapter 15. LinEAS
| Model | Method | #Params | MMLU (↑) | |||
|---|---|---|---|---|---|---|
| Qwen2.5-1.5B | None | - | ||||
| LoFIT-RL | 0.86M | |||||
| Prompt | - | |||||
| CAA* | 0.043M | |||||
| ReFT* | 0.39M | |||||
| ITI | 0.043M | |||||
| Lin-Act | 0.086M | |||||
| LinEAS | 0.086M | |||||
| Gemma2-2B | None | - | ||||
| LoFIT-RL | 0.11M | |||||
| Prompt | - | |||||
| CAA* | 0.06M | |||||
| ReFT* | 0.54M | |||||
| ITI | 0.06M | |||||
| Lin-Act | 0.12M | |||||
| LinEAS | 0.24M | |||||
| Qwen2.5-7B | None | - | ||||
| LoFIT-RL | 0.10M | |||||
| Prompt | - | |||||
| CAA* | 0.10M | |||||
| ReFT* | 0.90M | |||||
| ITI | 0.10M | |||||
| Lin-Act | 0.20M | |||||
| LinEAS | 0.20M |
TABLE 15.1: Toxicity mitigation on the RTP and TET datasets using three different models, Qwen2.5-1.5B, Gemma2-2B, and Qwen2.5-7B. Strongly degraded utility is marked in red. Results shown are at low data regime (N = 32 sentences to estimate the interventions). Results for LinEAS improve on ITI and Lin-Act with similar impact on utility metrics. The quality of these interventions is often on par with the oracle baseline LoFIT-RL in terms of utility, although the strong oracle supervision yields better mitigation. *CAA and ReFT are designed to use paired data, which is not available in the toxicity setting.

Data (N)
Data (N)
Data (N)
Data (N)
FIGURE 15.1: LinEAS is effective at low data regime. Toxicity mitigation (two left-most plots) and utility (two right-most plots) as a function of the amount of data available to learn interventions. LinEAS shows better performance (low toxicity and utility close to original dashed lines) for low data, and stable performance for . ITI-c in the legends denotes ITI.
15.3.2 Effect of Data on Toxicity Mitigation
With the same toxicity setting as in Section 15.3.1, the amount of data used to estimate interventions is ablated using Qwen2.5-7B (best model studied in terms of MMLU). The sweep ranges from N from 1 to 1024, meaning access to N toxic and N non-toxic sentences. Note that the results in Table 15.1 correspond to N = 32. Figure 15.1

FIGURE 15.2: Sparsity improves utility while mitigating toxicity. Toxicity results on Qwen2.5-7B using only 32 sentences, at different levels of sparsity that result in different support sizes (x axis). At 1K optimization steps, with a support of about 1%, similar toxicity is maintained (left, center-left) while PPL decreases (center-right) and MMLU increases (right). Note that too long optimizations (10k steps) might harm utility due to overfitting. Similarly, short optimizations (e.g. 100 steps) and strong sparsity lead to low conditioning (mild toxicity mitigation).
plots the evolution of toxicity (Tox and Tox ) and utility (PPL and MMLU) as a function of N, averaged over 4 random sweeps (standard deviation as shaded areas). LinEAS achieves superior toxicity mitigation even at very low data regimes, while maintaining utility close to the original model (horizontal dashed lines) and the LoFIT-RL oracle. Moreover, LinEAS's performance is more stable for a large range of N (32 to 1024), even more stable than the oracle which diverges for N > 128. Hyperparameters are fixed for all methods, including the oracle, which shows greater sensitivity to training settings.
15.3.3 Effect of Sparsity on Toxicity Mitigation
Intuitively one should only steer the smallest set of activations needed to achieve a desired goal in order to preserve utility and keep most of the model's inference graph untouched. This section explores how sparsity affects toxicity mitigation in the setup of Section 15.3.1 as increases from 0 to 0.1. Increasing results in fewer activations being transported, measured as support = , i.e. all activations transported either by rescaling or shifts.
Figure 15.2 shows how Tox and Tox , as well as the utility PPL and MMLU, evolve as the sparse support decreases (x axis), for Qwen2.5-7B in the low (N = 32) data regime. The figure shows results of 3 sweeps of with different random seeds (markers), plotting the average at each level (line). Note that at the support is approximately 100%. In the case of 1K steps (reported in Table 15.1), one can afford reducing the support to about 1% and still maintain the toxicity mitigation values at 100% support. At these support values, PPL and MMLU improve, validating the hypothesis that smaller supports help preserve utility. Additionally, short optimizations (e.g. 100 steps) lead to mild conditioning (poor toxicity mitigation) while long optimizations (e.g. 10k steps) lead to gradual degradation in utility.
15.3.4 Steering Text-to-Image Generation Models
This section explores how LinEAS can be used to remove the presence of concepts in text-to-image (T2I) generation: a task that plays a key role in generation alignment, similar to toxicity mitigation in LLMs. To preserve the focus on low data and compute budget, LinEAS is applied to DMD2 (T. Yin et al., 2024), a recent single-step text-to-image generation model distilled from SDXL (Podell et al., 2024) with a
Chapter 15. LinEAS
GAN (Goodfellow et al., 2014) loss. Note that diffusion guidance methods are available to condition these models; however, they typically require multiple denoising steps (even up to 200) (Y. Guo et al., 2024; Ye et al., 2024) and, at times, trajectory resampling and evaluation strategies (Singhal et al., 2025). These additional overheads make them suitable for settings with higher compute budget, which differs from the low-compute setting examined here.
Setup. As in Rodriguez et al. (2025), the strength of LinEAS applied to all layernorm layers is modulated by introducing a scale when applying interventions. Intuitively results in no intervention, while carries out a full LinEAS transport, any value in between reflecting a gradual change. Following Section 15.3.1, the focus is on concept mitigation/removal using 32 samples for each the source and the target distribution. LinEAS is trained for 1000 steps with batch size 4, AdamW, learning rate of and . LinEAS is compared with ITI and Lin-ACT, also weakly supervised methods working with unpaired data.
Data. An open-source LLM is queried for a diverse set of prompts covering 3 different conditioning categories and 5 different concepts per category with 32 prompts per concept, totalling 480 prompts. Styles: vaporwave, lush, low-poly, ukiyo-e, fantasy; objects: robots, axolotl, book, car, hourglass; and perspective: macro, fisheye, bokeh, underwater, and tilt-shift. The same model is queried to obtain 32 neutral prompts for evaluation.
Metrics. The evaluation measures (1) CLIPScore (Hessel et al., 2021), the cosine similarity between CLIP embeddings of the generated images and the concept description. (2) IMGScore, the cosine similarity between DINOv2-small (Oquab et al., 2024) image embeddings generated with and images generated with using the same prompts. CLIPScore assesses whether the generations are truthful to the desired style, and IMGScore whether they are perceptually similar to those generated without intervention.
User study. To complement the quantitative analysis, a user study was conducted with 20 prompts × 5 conditioning concepts, yielding 100 pairs total. For each pair, an original image is generated and steered using ITI, Lin-ACT, or LinEAS on 5 concepts. A pool of 10 participants selected their preferred output (1000 evaluations total), showing strong preference for LinEAS as reported in Table 15.2 (left). The question posed to participants was “Which image blends best prompt and style, while remaining faithful to the untouched output?”.
Results. Table 15.2 summarizes the results for text-to-image evaluation. LinEAS is preferred in 63.3% of the evaluations (24.4% for Lin-ACT, and 12.4% for ITI). These results agree with the automated metrics: LinEAS is more faithful to the images produced by DMD2 with for the same prompts, with an IMGScore of 0.66 compared to 0.45 for Lin-ACT and 0.24 for ITI while all methods achieve similar CLIPScore. Figure 15.4 explores how IMGScore and CLIPScore change with . LinEAS is consistently more faithful to DMD2 with in terms of IMGScore (top) while showing strong linear correlation with CLIPScore, making LinEAS more consistent and predictable.
Inverted LinEAS. Surprisingly, inverting the affine maps in LinEAS,
(defined when every entry of is non-zero), tends to negate the conditioning thus switching from mitigation to induction and vice-versa (see “concept induction” in

Underwater
ITI-c Lin-AcT LinEAS
ITI-c Lin-AcT LinEAS
FIGURE 15.3: Generations using DMD2 (T. Yin et al., 2024). (Left) Concept deletion using ITI, Lin-ACT and LinEAS for two different concepts, starting from prompts that contain the concept. LinEAS shows a more gradual deletion ( ), and better preservation of the original image ( ). (Right) Qualitative examples of LinEAS on 6 more concepts. Inverting the steering maps results in concept induction, probably due to strong structure in activation space. LinEAS also outperforms the other methods under this setting. ITI-c in the row labels denotes ITI.
Fig. 15.3). We speculate that this behavior is due to a strong structure in the activation space.
Chapter 15. LinEAS
| Method | ↑ User Pref. | ↑ IMGSc. | ↓ CLIPSc. |
|---|---|---|---|
| ITI | |||
| Lin-ACT | |||
| LinEAS |
TABLE 15.2: LinEAS mitigates concepts on DMD2 (T. Yin et al., 2024) while staying perceptually similar to the original image. Users prefer LinEAS 63.3% of the time (left) since it maintains a higher fidelity to the non-intervened original model when using the same prompt (center), and matches other methods at concept removal (right). Results were obtained with and they are aggregated across all concepts.

FIGURE 15.4: IMGScore and CLIPScore at multiple conditioning strengths (). (top) LinEAS is more faithful to DMD2 with . (bottom) LinEAS is more consistent and predictable at mitigation. ITI-c and LinActT in the legends denote ITI and Lin-ACT.
15.3.5 Layer Selection Analysis
To evaluate LinEAS robustness with respect to intervened layer choice, a sweep over different layer types within the DMD2 UNet was conducted. Table 15.3 presents results averaged over 15 concepts, measuring image consistency using IMGScore (higher is better) and concept removal using CLIPScore (lower is better).
The findings indicate that while intervening on all layer normalization modules (the setting used in main experiments) provides the best trade-off between metrics, LinEAS demonstrates robust performance across all tested layer configurations. This suggests that activation steering is not overly sensitive to specific layer choices in UNets.
| Intervened Layers | # Modules | IMGScore | CLIPScore |
|---|---|---|---|
| unet - all layer norms | 256 | ||
| unet.transformer - all FeedForward | 70 | ||
| unet attentions - K and Q projections | 280 | ||
| unet attentions - V projections | 140 | ||
| unet attentions - in projections | 11 | ||
| unet.resnet - all layer norms | 34 |
TABLE 15.3: Study on the choice of intervened layers for LinEAS in the DMD2 UNet. Image consistency (IMGScore ) and concept removal (CLIPScore ) are reported, averaged over 15 concepts. The method shows robustness, with the default setting (all layer norms) offering the best trade-off.
Part IV
Conclusions and Outlook

1-35
Hand with Reflecting Sphere by M.C. Escher (1935). The sphere reflects what no single viewpoint can capture—the world distorted but complete. In reflection, we see where we began, the path we took, where we have arrived, and perhaps where the journey leads next.
© The M.C. Escher Company, The Netherlands. All rights reserved. Reproduced for academic, non-commercial use.
Chapter 16
Conclusions
16.1 Synthesis and Insights
This thesis demonstrates that semantic correspondence systematically reveals geometric structure shared across independently trained models, enabling zero-shot transformation between their representations.
The framework decomposes representation alignment into correspondence-based extraction (Chapters 4, 5 and 7), correspondence discovery from few or no paired samples (Chapters 6 and 8), and transformation (Chapters 10 to 12), with applications to neuroscience, uncertainty quantification, and reinforcement learning (Chapter 9), interpretability (Chapters 13 and 14), and activation steering (Chapters 14 and 15). Across fourteen methods spanning vision, language, reinforcement learning, generative models, and neuroscience, the principle holds: when models extract overlapping semantic structure from data and objectives, their representations exhibit alignable geometry despite divergent parameterizations. These contributions organize by geometric structure—angular relationships, spectral properties, orthogonal alignment, distributional correspondence, component specialization—as detailed in Chapter 1.
Operator families. The framework decomposes into two complementary operator families (Chapter 3). Correspondence-parallel operators extract semantic coordinates independently per space, enabling comparison and composition across arbitrary architectures at the cost of decoder compatibility. Correspondence-coupled operators construct direct transformations using paired observations, preserving decoder compatibility at the cost of per-pair estimation. Inverse relative projection (Chapter 10) bridges the families, demonstrating that modular semantic coordinates can be chained with reconstruction to recover target-native coordinates without joint training.
Task objectives and alignability. The cross-domain empirical evidence reveals a deeper pattern: correspondence-based alignment succeeds when task objectives force models to disentangle semantic structure from nuisance variation. We read discriminative tasks—classification, matching, policy optimization—as imposing this pressure, requiring models to extract invariances that correspondence operators exploit. Subsequent large-scale studies have corroborated our findings: Huh et al. (2024) measured mutual k-nearest-neighbor alignment among 78 vision models and between vision models and a dozen language models, framing the observation as the “Platonic Representation Hypothesis”. Later work qualifies the hypothesis, arguing that what converges is local neighborhood structure, and that global geometry does not (Gröger et al., 2026).
Data efficiency. Beyond task objectives determining alignability, unexpected patterns emerged across methods. Data efficiency exceeded initial expectations: bootstrapping correspondence (Chapter 6) achieves comparable results with one order
Chapter 16. Conclusions
of magnitude fewer anchors than ground truth supervision, and learning to align (Chapter 8) needs no paired samples at all, since learned embeddings amortize the Gromov-Wasserstein problem and aligning new samples requires a single optimal transport solve. ASIF (Chapter 7) assembles zero-shot multimodal models competitive with CLIP using a fraction of the training data, raising questions about the relative roles of parametric learning versus memory-augmented retrieval. The methods scale from minimal supervision (32 unpaired samples per distribution suffice for LinEAS toxicity mitigation) to massive correspondence sets (ASIF handles 1.6 million anchor pairs through sparsification), suggesting that geometric priors constrain alignment more powerfully than raw sample counts alone.
Interpretability through geometry. Interpretability follows from geometric structure and requires no separate analysis machinery. ASIF factorizes perception and interpretation, relieving encoders from attributing meaning while enabling analysis through relative representations. Relative representations themselves identify which anchors govern decisions through angular proximity in semantic coordinates. Latent functional maps expose off-diagonal distortion structure through spectral decomposition, localizing where transformations break down. ResiDual reveals emergent specialization of attention heads through spectral geometry of residual representations, identifying task-relevant principal components in the residual stream. Head-Pursuit extends this by decomposing head outputs through simultaneous orthogonal matching pursuit over the unembedding space, recovering semantically specialized heads whose intervention produces targeted generation changes. These geometric views complement prediction-level attribution, offering architectural understanding of which structural components encode semantic distinctions.
Cross-domain compatibility. The framework generalizes beyond artificial model alignment. Cross-domain applications extend the principle to reinforcement learning, ensemble uncertainty, and fMRI data (Chapter 9): reinforcement learning agents align through correspondence-parallel operators; in ensembles of networks with different parameterizations, the relative projection separates reparameterization effects from model uncertainty; and human brain fMRI representations align across individuals when a task-informed encoder precedes the relative projection, which suggests that the same correspondence principles extend to biological neural systems (Section 9.1). This breadth suggests the framework captures fundamental properties of semantic organization; these properties are not artifacts of specific training procedures or architectures.
16.2 Limitations and Boundaries
Semantic overlap as prerequisite. The fundamental constraint is semantic overlap: we expect models trained on unrelated domains or objectives with incompatible semantic emphasis not to expose alignable geometry, although no chapter tests this case. If so, this behavior is a feature: it shows that alignment exposes intrinsic structure and does not produce arbitrary coordinate mappings. Correspondence-parallel operators preserve structure up to the metric used to compute them. This delimits the scope of correspondence-based methods while pointing to the geometric prerequisites for alignability.
Stitching and validation strategy. Recent work (D. Smith et al., 2025) cautions that successful stitching does not necessarily imply representational similarity. Stitching
16.2. Limitations and Boundaries
171
evaluates whether representations accommodate downstream components (classifiers, decoders), which constrains only task-relevant geometry. The critical asymmetry: our framework assumes semantic overlap and seeks geometric structure that should follow from shared semantics, but geometric compatibility alone does not guarantee semantic similarity. Two representations can stitch successfully when task-specific structure happens to align, even when broader semantic organization differs. This matters for validation strategy. Methods validated purely through task performance—stitching accuracy, classification transfer—measure functional compatibility, which can mislead when directly optimized. However, our experiments primarily rely on zero-shot stitching or structural validation: latent similarity (neighborhood overlap in Chapter 4, CKA in Chapter 5), reconstruction fidelity (Chapter 10), cross-domain consistency (Chapter 11), and spectral properties (Chapters 12 and 13), which probe intrinsic geometric structure and do not depend on task-specific compatibility.
Projection and dimensionality. Specific technical limitations emerged across methods. Correspondence-parallel operators such as the relative projection incur information loss by projecting to , with the number of anchors, trading fidelity for modularity. Zero-shot stitching through inverse relative projection, which passes through this projection, trails each classification head used on its own encoder (the non-stitch column of Table 10.2) by 3–20 accuracy points. Fumero* & Pegoraro*, et al. (2024) report that the performance of latent functional maps can be sensitive to the number of eigenvectors, and that finding the right count without extensive experimentation remains open; latent functional maps also assume full correspondence between domains and are not adapted to partial mappings where only subsets align (Fumero* & Pegoraro*, et al., 2024).
Architecture-specific requirements. Architecture-specific requirements constrain applicability. ResiDual fundamentally extracts information from residual units already containing task-relevant principal components; when this assumption fails, Basile* & Maiorca*, et al. (2025) expect ResiDual not to recover the alignment, with a drop in downstream performance. Its focus on the [CLS] token ignores sequence-level information, though preliminary results not included in Chapter 13 suggest high spectral compatibility extends to patch tokens (Basile* & Maiorca*, et al., 2025). As Basile et al. (2025b) note, HeadPursuit's simultaneous orthogonal matching pursuit imposes linearity assumptions that may miss nonlinear head representation structure, and its interventions apply uniformly across all tokens, without selecting by position or modality.
Deployment contexts. Method-specific trade-offs emerge in deployment contexts. ASIF's performance depends critically on semantic coverage of correspondence anchors (Norelli et al., 2023): we expect large gaps between queries and available anchors to force extrapolation beyond the anchor set, a constraint shared by similarity-based methods. As Norelli et al. (2023) note, when multimodal data is abundant and training cost acceptable, ASIF's non-parametric formulation still falls short of contrastively trained models like CLIP, and the high dimensionality of relative representations, even when sparse, poses challenges for generation tasks like text-to-image synthesis.
Computational scaling. We expect computational scaling to limit deployment at foundation model scales (see the memory and inference costs of ASIF in Chapter 7, the solver timings in Chapter 8, and the training times in Chapter 15). RelRep scales with anchor count and dimensionality, ResiDual requires repeated eigendecomposition across attention heads, and latent functional maps depend on expensive Laplacian spectra for high-resolution structures. These computational challenges are then likely
Chapter 16. Conclusions
to be engineering bottlenecks: approximate solvers, distributed implementations, and probabilistic correspondence could address them without fundamentally changing the framework.
Theoretical foundations. The core empirical observation—semantic overlap induces geometric overlap—lacks formal theory. Open questions include bounding alignment error in terms of data manifold geometry, deriving sufficient conditions for geometric convergence from optimization dynamics, establishing guarantees relating task complexity to correspondence density, and characterizing information preserved versus discarded by semantic coordinate transformations. Without such theory, the framework remains empirically validated across domains but theoretically incomplete. Addressing these gaps would transform correspondence from observed phenomenon into predictable tool with provable guarantees.
16.3 Open Directions and Implications
Understanding these constraints clarifies directions that would extend the framework’s scope while addressing its current limitations.
Hierarchical correspondence. Hierarchical correspondence could organize anchors at multiple abstraction levels—coarse semantic categories for global structure, fine-grained concepts for local neighborhoods—mirroring the hierarchical organization evident in deep networks. High-level correspondence would establish broad alignment (“mammal” versus “vehicle”), while low-level correspondence refines distinctions (“sedan” versus “truck”), reducing burden on any single operator while improving compositional precision. This extends existing composition strategies without requiring new geometric machinery.
Compositional pipelines. Building on the mixed pipelines of Chapter 10, graph-structured compositions—where intermediate models are stepping stones between source and target—would support multi-hop alignment between models that never co-occur in data, enabling transfer across ecosystems that remain otherwise isolated. The open question is whether composing multiple transformations compounds alignment error or whether intermediate semantic coordinates provide error-correcting structure.
Streaming and federated settings. Streaming environments require incremental correspondence updates as new data arrives, with no offline recomputation over static batches—a challenge for methods like latent functional maps that depend on global spectral structure. Federated learning scenarios would benefit from exchanging semantic coordinates: clients would send no raw gradients or model weights and could preserve privacy by transmitting only relative similarities to shared anchors. However, formal privacy guarantees against reconstruction attacks remain open, requiring theoretical analysis of what information semantic coordinates leak about source representations.
Correspondence density trade-offs. Optimal correspondence density varies across methods and tasks. Semantic alignment performance depends on anchor point count (Chapter 11), and inverse relative projection trades the stability of the inverse (its condition number) against the number of anchors (Chapter 10). Factors linked to latent space compatibility—intrinsic dimension, manifold curvature, local isotropy—could guide correspondence strategy but lack formal characterization. Future work investigating these trade-offs would provide practitioners with design principles for correspondence-based systems.
16.3. Open Directions and Implications
173
Architectural and modal extensions. Extensions to other architectures and modalities remain largely unexplored. ResiDual's formulation based solely on residual decomposition could apply across virtually any transformer architecture, with constraints at the layer level creating opportunities to enhance model inference, and the possibility of disabling specific spectral components opening fairness applications (Basile* & Maiorca*, et al., 2025). HeadPursuit's head-level interventions could extend to selective rescaling by input position or modality, enabling targeted control in multimodal settings—disabling heads over image patches while preserving text understanding, for instance (Basile et al., 2025b). Latent functional maps could explore other domains and modalities, defining new ad-hoc constraints and regularizers through their versatile functional representation (Fumero* & Pegoraro*, et al., 2024). Their performance in fully unsupervised settings, while promising, requires further development, and extending partial mapping techniques from geometry processing would remove the full correspondence assumption noted above (Fumero* & Pegoraro*, et al., 2024).
Standardization and tooling. Proliferating alignment methods create systematic comparison challenges: each contribution introduces custom evaluation protocols and baselines that resist direct measurement. To address this fragmentation, we are developing LATENTIS —a unified API consolidating correspondence-based operators (most methods in this thesis), spectral techniques (CCA, SVCCA, PWCCA), optimal transport (Gromov-Wasserstein), and neural stitching baselines with standardized benchmarks and pretrained model interfaces across vision and language architectures. The library served as computational infrastructure for one research group at LogML 2025 Summer School, which suggests that standardized interfaces can lower barriers for researchers entering the field. The codebase remains under active development (public beta); we believe that, to be significant, new contributions should build on comparable foundations, reuse shared measurement apparatus, and be reproducible.
Modularity and efficiency. The framework’s capabilities create both opportunities and risks extending beyond technical performance metrics. By separating encoders, correspondence operators, and decoders, the framework reduces the need for end-to-end retraining whenever task requirements shift or new models become available. This decomposition can lower the energy cost of adapting models to new tasks—reusing pretrained components that would otherwise be discarded, as in the policy stitching of Chapter 9—and enables incremental development where individual modules improve independently without breaking downstream dependencies. We expect the representation nexus this creates, where modular latent spaces connect through correspondence, to support collaboration across organizations without sharing training data or raw model parameters.
Safety and governance. These capabilities introduce risks alongside benefits. The ability to translate or steer representations can bypass safety systems (redirecting aligned models toward harmful outputs) or repurpose models without consent (extracting proprietary capabilities through correspondence-based transfer). HeadPursuit and LinEAS show that the same tools can reduce toxic generation (Chapters 14 and 15), but broader governance and access control remain necessary to prevent malicious alignment from undermining deployment safeguards or intellectual property protections. As Basile et al. (2025b) note, the ability to manipulate specific aspects of model behavior aids transparency and alignment but may also conceal or amplify
https://github.com/Flegyas/latentis
Chapter 16. Conclusions
content in ethically concerning ways. Downstream users should carefully evaluate applications, especially in sensitive domains.
Neural network training has progressed by scaling data, compute, and parameters—an engineering approach that treats models as monolithic artifacts optimized in isolation. This thesis demonstrates an alternative: independently trained models compose when correspondence reveals their shared geometric structure, creating a representation nexus where latent spaces meet. Our contributions establish empirical foundations across vision, language, reinforcement learning, and neuroscience, unified by a central principle: semantic overlap induces geometric overlap, making zero-shot transformation possible. The open questions—formalizing this semantic-geometric connection, establishing theoretical guarantees, scaling to foundation models—define a research program extending beyond these methods. Correspondence is a philosopher’s stone that extracts the intrinsic geometry of representations beneath arbitrary parameterizations. It leaves the representations themselves unchanged.
Bibliography
Pearson, Karl (1901). "LIII. On lines and planes of closest fit to systems of points in space". In: The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science 2.11, pp. 559–572. DOI: 10.1080/14786440109462720.
Hotelling, Harold (1936). "Relations between two sets of variates". In: Biometrika 28.3/4, pp. 321–377.
Bellman, Richard (1966). "Dynamic programming". In: Science 153.3731, pp. 34–37.
Schönemann, Peter H. (1966). "A Generalized Solution of the Orthogonal Procrustes Problem". In: Psychometrika 31.1, pp. 1–10.
Björck, Åke, Gene H. Golub (1973). "Numerical methods for computing angles between linear subspaces". In: Mathematics of Computation 27.123, pp. 579–594. DOI: 10.1090/S0025-5718-1973-0348991-3.
Gower, J. C. (Mar. 1975). "Generalized Procrustes Analysis". In: Psychometrika 40.1, pp. 33–51. ISSN: 1860-0980. DOI: 10.1007/BF02291478. (Visited on 05/17/2023).
Mallat, Stéphane G, Zhifeng Zhang (1993). "Matching pursuits with time-frequency dictionaries". In: IEEE Transactions on signal processing 41.12, pp. 3397–3415.
Pati, Yagyensh Chandra, Ramin Rezaiifar, Perinkulam Sambamurthy Krishnaprasad (1993). "Orthogonal matching pursuit: Recursive function approximation with applications to wavelet decomposition". In: Proceedings of 27th Asilomar conference on signals, systems and computers. IEEE, pp. 40–44.
Eldar, Y., M. Lindenbaum, M. Porat, Y.Y. Zeevi (1997). "The farthest point strategy for progressive image sampling". In: IEEE Transactions on Image Processing 6.9, pp. 1305–1315. DOI: 10.1109/83.623193.
Indyk, Piotr, Rajeev Motwani (1998). "Approximate nearest neighbors: towards removing the curse of dimensionality". In: Proceedings of the thirtieth annual ACM symposium on Theory of computing, pp. 604–613.
LeCun, Y, L Bottou, Y Bengio, P Haffner (1998). "Gradient-based learning applied to document recognition". In: Proc. IEEE 86.11, pp. 2278–2324.
Roweis, S T, L K Saul (2000). "Nonlinear dimensionality reduction by locally linear embedding". en. In: Science 290.5500, pp. 2323–2326.
Tenenbaum, J B, V de Silva, J C Langford (2000). "A global geometric framework for nonlinear dimensionality reduction". en. In: Science 290.5500, pp. 2319–2323.
Hovy, Eduard, Laurie Gerber, Ulf Hermjakob, Chin-Yew Lin, Deepak Ravichandran (2001). "Toward Semantics-Based Answer Pinpointing". In: Proceedings of the First International Conference on Human Language Technology Research. URL: https://www.aclweb.org/anthology/H01-1069.
Li, Xin, Dan Roth (2002). "Learning Question Classifiers". In: COLING 2002: The 19th International Conference on Computational Linguistics. URL: https://www.aclweb.org/anthology/C02-1150.
Sivic, Josef, Andrew Zisserman (2003). "Video Google: a text retrieval approach to object matching in videos". In: Proceedings Ninth IEEE International Conference on Computer Vision. Vol. 2, pp. 1470–1477. DOI: 10.1109/ICCV.2003.1238663.
Hinton, G E, R R Salakhutdinov (2006). "Reducing the dimensionality of data with neural networks". en. In: Science 313.5786, pp. 504–507.
Tropp, Joel A, Anna C Gilbert, Martin J Strauss (2006). "Algorithms for simultaneous sparse approximation. Part I: Greedy pursuit". In: Signal processing 86.3, pp. 572–588.
Auer, Sören, Christian Bizer, Georgi Kobilarov, Jens Lehmann, Richard Cyganiak, Zachary Ives (2007). "DBpedia: A Nucleus for a Web of Open Data". In: The Semantic Web. Springer Berlin Heidelberg, pp. 722–735.
Von Luxburg, Ulrike (2007). "A tutorial on spectral clustering". In: Statistics and computing 17, pp. 395–416.
Kriegeskorte, Nikolaus, Marieke Mur, Peter A. Bandettini (Nov. 2008). "Representational similarity analysis - connecting the branches of systems neuroscience". In: Front. Syst. Neurosci. 2, p. 249. ISSN: 1662-5137. DOI: 10.3389/neuro.06.004.2008.
Sen, Prithviraj, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Gallagher, Tina Eliassi-Rad (2008). "Collective Classification in Network Data". In: AI Magazine 29.3, pp. 93–106. ISSN: 2371-9621. DOI: 10.1609/aimag.v29i3.2157.
Van der Maaten, Laurens, Geoffrey Hinton (2008). "Visualizing data using t-SNE". In: Journal of machine learning research 9.86.
Deng, Jia, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, Fei-Fei Li (2009). "ImageNet: A large-scale hierarchical image database". In: 2009 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR 2009), 20-25 June 2009, Miami, Florida, USA. IEEE Computer Society, pp. 248–255. DOI: 10.1109/CVPR.2009.5206848. URL: https://doi.org/10.1109/CVPR.2009.5206848.
Krizhevsky, Alex (2009). Learning Multiple Layers of Features from Tiny Images. Tech. rep. University of Toronto. URL: https://www.cs.toronto.edu/~kriz/learning-features-2009-TR.pdf.
Maier, Markus, Matthias Hein, Ulrike von Luxburg (2009). "Optimal construction of k-nearest-neighbor graphs for identifying noisy clusters". In: Theoretical Computer Science 410.19. Algorithmic Learning Theory, pp. 1749–1764. ISSN: 0304-3975.
Sun, Jian, Maks Ovsjanikov, Leonidas Guibas (2009). "A concise and provably informative multi-scale signature based on heat diffusion". In: Computer Graphics Forum 28.5, pp. 1383–1392.
Pan, Sinno Jialin, Qiang Yang (2010). "A Survey on Transfer Learning". In: IEEE Transactions on Knowledge and Data Engineering 22.10, pp. 1345–1359.
Jégou, Herve, Matthijs Douze, Cordelia Schmid (2011). "Product quantization for nearest neighbor search". In: IEEE transactions on pattern analysis and machine intelligence 33.1, pp. 117–128.
Maas, Andrew L., Raymond E. Daly, Peter T. Pham, Dan Huang, Andrew Y. Ng, Christopher Potts (June 2011). "Learning Word Vectors for Sentiment Analysis". In: Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies. Portland, Oregon, USA: Association for Computational Linguistics, pp. 142–150. URL: http://www.aclweb.org/anthology/P11-1015.
Mémoli, Facundo (2011). "Gromov–Wasserstein distances and the metric approach to object matching". In: Foundations of computational mathematics 11, pp. 417–487.
Netzer, Yuval, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, Andrew Y Ng (2011). "Reading digits in natural images with unsupervised feature learning". In: NIPS workshop on deep learning and unsupervised feature learning. Vol. 2011. 2. Granada, p. 4.
Stallkamp, Johannes, Marc Schlipsing, Jan Salmen, Christian Igel (2011). "The German traffic sign recognition benchmark: a multi-class classification competition". In: The 2011 international joint conference on neural networks. IEEE, pp. 1453–1460.
Wah, Catherine, Steve Branson, Peter Welinder, Pietro Perona, Serge Belongie (2011). The Caltech-UCSD Birds-200-2011 Dataset. Tech. rep. CNS-TR-2011-001. California Institute of Technology.
Deng, Li (2012). "The mnist database of handwritten digit images for machine learning research [best of the web]". In: IEEE signal processing magazine 29.6, pp. 141–142.
Ovsjanikov, Maks, Mirela Ben-Chen, Justin Solomon, Adrian Butscher, Leonidas Guibas (2012). "Functional maps: a flexible representation of maps between shapes". In: ACM Transactions on Graphics (ToG) 31.4, pp. 1–11.
Parkhi, Omkar M, Andrea Vedaldi, Andrew Zisserman, C. V. Jawahar (2012). "Cats and dogs". In: 2012 IEEE Conference on Computer Vision and Pattern Recognition, pp. 3498–3505. DOI: 10.1109/CVPR.2012.6248092.
Rabin, Julien, Gabriel Peyré, Julie Delon, Marc Bernot (2012). "Wasserstein barycenter and its application to texture mixing". In: Scale Space and Variational Methods in Computer Vision: Third International Conference, SSVM 2011, Ein-Gedi, Israel, May 29–June 2, 2011, Revised Selected Papers 3. Springer, pp. 435–446.
Spielman, Daniel (2012). "Spectral graph theory". In: Combinatorial Scientific Computing. CRC Press.
Bengio, Yoshua, Aaron Courville, Pascal Vincent (2013). "Representation Learning: A Review and New Perspectives". In: IEEE Transactions on Pattern Analysis and Machine Intelligence 35.8, pp. 1798–1828. DOI: 10.1109/TPAMI.2013.50.
Cuturi, Marco (2013). "Sinkhorn Distances: Lightspeed Computation of Optimal Transport". In: Advances in Neural Information Processing Systems 26: 27th Annual Conference on Neural Information Processing Systems 2013. Proceedings of a meeting held December 5-8, 2013, Lake Tahoe, Nevada, United States. Ed. by Christopher J. C. Burges, Léon Bottou, Zoubin Ghahramani, Kilian Q. Weinberger, pp. 2292–2300. URL: https://proceedings.neurips.cc/paper/2013/hash/af21d0c97db2e27e13572cbf59eb343d-Abstract.html.
Krause, Jonathan, Michael Stark, Jia Deng, Li Fei-Fei (2013). "3D Object Representations for Fine-Grained Categorization". In: 2013 IEEE International Conference on Computer Vision Workshops, pp. 554–561. DOI: 10.1109/ICCVW.2013.77.
Mikolov, Tomas, Kai Chen, Greg Corrado, Jeffrey Dean (2013a). "Efficient Estimation of Word Representations in Vector Space". In: International Conference on Learning Representations. arXiv: 1301.3781 [cs.CL].
Mikolov, Tomás, Quoc V. Le, Ilya Sutskever (2013b). "Exploiting Similarities among Languages for Machine Translation". In: CoRR abs/1309.4168. arXiv: 1309.4168 [cs.CL]. URL: http://arxiv.org/abs/1309.4168.
Ovsjanikov, Maks, Mirela Ben-Chen, Frederic Chazal, Leonidas Guibas (2013). "Analysis and visualization of maps between shapes". In: Computer Graphics Forum 32, pp. 135–145.
Simon, Noah, Jerome Friedman, Trevor Hastie, Robert Tibshirani (2013). "A sparse-group lasso". In: Journal of computational and graphical statistics 22.2, pp. 231–245.
Cimpoi, Mircea, Subhransu Maji, Iasonas Kokkinos, Sammy Mohamed, Andrea Vedaldi (2014). "Describing textures in the wild". In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3606–3613.
Goodfellow, Ian J, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, Yoshua Bengio (2014). "Generative adversarial nets". In: Advances in neural information processing systems. Vol. 27.
Kalofolias, Vassilis, Xavier Bresson, Michael Bronstein, Pierre Vandergheynst (2014). "Matrix completion on graphs". In: arXiv: 1408.1717 [cs.LG].
Yosinski, Jason, Jeff Clune, Yoshua Bengio, Hod Lipson (2014). "How Transferable are Features in Deep Neural Networks?" In: Advances in Neural Information Processing Systems. Vol. 27, pp. 3320–3328.
Young, Peter, Alice Lai, Micah Hodosh, Julia Hockenmaier (2014). "From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions". In: Transactions of the Association for Computational Linguistics 2, pp. 67–78.
Zeiler, Matthew D., Rob Fergus (2014). "Visualizing and Understanding Convolutional Networks". In: Computer Vision – ECCV 2014. Ed. by David Fleet, Tomas Pajdla, Bernt Schiele, Tinne Tuytelaars. Cham: Springer International Publishing, pp. 818–833. ISBN: 978-3-319-10590-1.
Lenc, Karel, Andrea Vedaldi (2015). "Understanding image representations by measuring their equivariance and equivalence". In: IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2015, Boston, MA, USA, June 7-12, 2015. IEEE Computer Society, pp. 991–999. DOI: 10.1109/CVPR.2015.7298701. URL: https://doi.org/10.1109/CVPR.2015.7298701.
Santambrogio, Filippo (2015). Optimal transport for applied mathematicians: Calculus of Variations, PDEs, and Modeling. Birkhäuser.
Vedantam, Ramakrishna, C Lawrence Zitnick, Devi Parikh (2015). "CIDEr: Consensus-based image description evaluation". In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4566–4575.
Xing, Chao, Dong Wang, Chao Liu, Yiye Lin (May 2015). "Normalized Word Embedding and Orthogonal Transform for Bilingual Word Translation". In: Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. Denver, Colorado: Association for Computational Linguistics, pp. 1006–1011. DOI: 10.3115/v1/N15-1104. URL: https://aclanthology.org/N15-1104.
Zhang, Xiang, Junbo Zhao, Yann LeCun (2015). "Character-level convolutional networks for text classification". In: Advances in neural information processing systems. Vol. 28.
Fefferman, Charles, Sanjoy Mitter, Hariharan Narayanan (2016). "Testing the Manifold Hypothesis". In: Journal of the American Mathematical Society 29.4, pp. 983–1049. DOI: 10.1090/jams/852. URL: https://doi.org/10.1090/jams/852.
Klimov, Oleg (2016). CarRacing-v0. URL: https://web.archive.org/web/20201212031406/https://gym.openai.com/envs/CarRacing-v0/.
Li, Yixuan, Jason Yosinski, Jeff Clune, Hod Lipson, John E. Hopcroft (2016). "Convergent Learning: Do different neural networks learn the same representations?" In: 4th International Conference on Learning Representations, ICLR 2016, San Juan, Puerto Rico, May 2-4, 2016, Conference Track Proceedings. Ed. by Yoshua Bengio, Yann LeCun. URL: http://arxiv.org/abs/1511.07543.
Ovsjanikov, Maks, Etienne Corman, Michael Bronstein, Emanuele Rodolà, Mirela Ben-Chen, Leonidas Guibas, Frederic Chazal, Alex Bronstein (2016). "Computing and processing correspondences with functional maps". In: SIGGRAPH ASIA 2016 Courses. ACM, pp. 1–60.
Solomon, Justin, Gabriel Peyré, Vladimir G Kim, Suvrit Sra (2016). "Entropic metric alignment for correspondence problems". In: ACM Transactions on Graphics (ToG) 35.4, pp. 1–13.
Thomee, Bart, David A Shamma, Gerald Friedland, Benjamin Elizalde, Karl Ni, Douglas Poland, Damian Borth, Li-Jia Li (2016). "YFCC100M: The new data in multimedia research". In: Communications of the ACM 59.2, pp. 64–73.
Ulyanov, Dmitry, Andrea Vedaldi, Victor Lempitsky (2016). "Instance Normalization: The Missing Ingredient for Fast Stylization". In: abs/1607.08022. arXiv: 1607.08022 [cs.LG]. URL: https://arxiv.org/abs/1607.08022.
Xiao, Jianxiong, Krista A. Ehinger, James Hays, Antonio Torralba, Aude Oliva (Aug. 2016). "SUN Database: Exploring a Large Collection of Scene Categories". In: International Journal of Computer Vision (IJCV) 119.1, pp. 3–22.
Yang, Zhilin, William W. Cohen, Ruslan Salakhutdinov (2016). "Revisiting Semi-Supervised Learning with Graph Embeddings". In: Proceedings of The 33rd International Conference on Machine Learning. Ed. by Maria-Florina Balcan, Kilian Q. Weinberger. Vol. 48. Proceedings of Machine Learning Research. PMLR, pp. 40–48. URL: http://proceedings.mlr.press/v48/yanga16.html.
Adams, CJ, Jeffrey Sorensen, Julia Elliott, Lucas Dixon, Mark McDonald, nithum, Will Cukierski (2017). Toxic Comment Classification Challenge. URL: https://kaggle.com/competitions/jigsaw-toxic-comment-classification-challenge.
Amos, Brandon, J. Zico Kolter (Aug. 2017). "OptNet: Differentiable Optimization as a Layer in Neural Networks". In: Proceedings of the 34th International Conference on Machine Learning. Ed. by Doina Precup, Yee Whye Teh. Vol. 70. Proceedings of Machine Learning Research. PMLR, pp. 136–145. URL: https://proceedings.mlr.press/v70/amos17a.html.
Bojanowski, Piotr, Edouard Grave, Armand Joulin, Tomas Mikolov (2017). "Enriching Word Vectors with Subword Information". In: Transactions of the Association for Computational Linguistics 5, pp. 135–146. DOI: 10.1162/tacl_a_00051. URL: https://aclanthology.org/Q17-1010.
Cheng, Gong, Junwei Han, Xiaoqiang Lu (2017). "Remote sensing image scene classification: Benchmark and state of the art". In: Proceedings of the IEEE 105.10, pp. 1865–1883.
Facco, Elena, Maria d'Errico, Alex Rodriguez, Alessandro Laio (2017). "Estimating the intrinsic dimension of datasets by a minimal neighborhood information". In: Scientific Reports 7.1, p. 12140.
Joshi, Mandar, Eunsol Choi, Daniel Weld, Luke Zettlemoyer (2017). "TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehension". In: Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics.
Kirkpatrick, James, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, Demis Hassabis, Claudia Clopath, Dharshan Kumaran, Raia Hadsell (2017). "Overcoming Catastrophic Forgetting in Neural Networks". In: Proceedings of the National Academy of Sciences 114.13, pp. 3521–3526.
Koh, Pang Wei, Percy Liang (2017). "Understanding black-box predictions via influence functions". In: International conference on machine learning. PMLR, pp. 1885–1894.
Li, Da, Yongxin Yang, Yi-Zhe Song, Timothy M. Hospedales (2017). "Deeper, Broader and Artier Domain Generalization". In: Proceedings of the IEEE International Conference on Computer Vision (ICCV), pp. 5542–5550. arXiv: 1710.03077 [cs.CV]. URL: https://arxiv.org/abs/1710.03077.
Litany, Or, Tal Remez, Emanuele Rodolà, Alex Bronstein, Michael Bronstein (2017). "Deep functional maps: Structured prediction for dense shape correspondence". In: Proceedings of the IEEE international conference on computer vision, pp. 5659–5667.
Nogneng, Dorian, Maks Ovsjanikov (2017). "Informative descriptor preservation via commutativity for shape matching". In: Computer Graphics Forum 36, pp. 259–267.
Raghu, Maithra, Justin Gilmer, Jason Yosinski, Jascha Sohl-Dickstein (2017). "SVCCA: Singular vector canonical correlation analysis for deep learning dynamics and interpretability". In: Advances in Neural Information Processing Systems. Vol. 30.
Schulman, John, Filip Wolski, Prafulla Dhariwal, Alec Radford, Oleg Klimov (2017). "Proximal policy optimization algorithms". In: arXiv: 1707.06347 [cs.LG].
Smith, Leslie N. (2017). "Cyclical Learning Rates for Training Neural Networks". In: 2017 IEEE Winter Conference on Applications of Computer Vision (WACV). IEEE, pp. 464–472. DOI: 10.1109/WACV.2017.58.
Snell, Jake, Kevin Swersky, Richard S. Zemel (2017). "Prototypical Networks for Few-shot Learning". In: Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA. Ed. by Isabelle Guyon, Ulrike von Luxburg, Samy Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, Roman Garnett, pp. 4077–4087.
Vaswani, Ashish, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, Illia Polosukhin (2017). "Attention is all you need". In: Advances in Neural Information Processing Systems. Vol. 30.
Vestner, Matthias, Zorah Lähner, Amit Boyarski, Or Litany, Ron Slossberg, Tal Remez, Emanuele Rodolà, Alex Bronstein, Michael Bronstein, Ron Kimmel, Daniel Cremers (2017). "Efficient deformable shape correspondence via kernel matching". In: 2017 international conference on 3D vision (3DV). IEEE, pp. 517–526.
Xiao, Han, Kashif Rasul, Roland Vollgraf (2017). Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms. arXiv: 1708.07747 [cs.LG]. URL: https://arxiv.org/abs/1708.07747.
Yoon, Jaehong, Sung Ju Hwang (Aug. 2017). "Combined Group and Exclusive Sparsity for Deep Neural Networks". In: Proceedings of the 34th International Conference on Machine Learning. Ed. by Doina Precup, Yee Whye Teh. Vol. 70. Proceedings of Machine Learning Research. PMLR, pp. 3958–3966. URL: https://proceedings.mlr.press/v70/yoon17a.html.
Zaheer, Manzil, Satwik Kottur, Siamak Ravanbakhsh, Barnabás Póczos, Ruslan Salakhutdinov, Alexander J. Smola (2017). "Deep Sets". In: Advances in Neural Information Processing Systems 30 (NIPS 2017). URL: https://proceedings.neurips.cc/paper/2017/hash/f22e4747da1aa27e363d86d40ff442fe-Abstract.html.
Alvarez-Melis, David, Tommi S Jaakkola (2018). "Gromov-Wasserstein alignment of word embedding spaces". In: Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 1881–1890. arXiv: 1809.00013 [cs.LG].
Garipov, Timur, Pavel Izmailov, Dmitrii Podoprikhin, Dmitry Vetrov, Andrew Gordon Wilson (2018). "Loss Surfaces, Mode Connectivity, and Fast Ensembling of DNNs". In: Advances in Neural Information Processing Systems. Vol. 31.
Genevay, Aude, Gabriel Peyré, Marco Cuturi (2018). "Learning generative models with sinkhorn divergences". In: International Conference on Artificial Intelligence and Statistics. PMLR, pp. 1608–1617.
Lample, Guillaume, Alexis Conneau, Marc'Aurelio Ranzato, Ludovic Denoyer, Hervé Jégou (2018). "Word translation without parallel data". In: 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net. URL: https://openreview.net/forum?id=H196sainb.
Morcos, Ari, Maithra Raghu, Samy Bengio (2018). "Insights on representational similarity in neural networks with canonical correlation". In: Advances in Neural Information Processing Systems. Vol. 31.
Ansuini, Alessio, Alessandro Laio, Jakob H. Macke, Davide Zoccolan (2019). "Intrinsic Dimension of Data Representations in Deep Neural Networks". In: Advances in Neural Information Processing Systems. Vol. 32.
Chen, Song, Blue B Lake, Kun Zhang (2019). "High-throughput sequencing of the transcriptome and chromatin accessibility in the same cell". In: Nature biotechnology 37.12, pp. 1452–1457.
Devlin, Jacob, Ming-Wei Chang, Kenton Lee, Kristina Toutanova (2019). "BERT: Pretraining of Deep Bidirectional Transformers for Language Understanding". In: Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers). Minneapolis, Minnesota: Association for Computational Linguistics, pp. 4171–4186. DOI: 10.18653/v1/N19-1423. URL: https://aclanthology.org/N19-1423.
Dupuy, Arnaud, Alfred Galichon, Yifei Sun (2019). "Estimating matching affinity matrices under low-rank constraints". In: Information and Inference: A Journal of the IMA 8.4, pp. 677–689. DOI: 10.1093/imaiai/iaz015. arXiv: 1612.09585 [cs.LG].
Falcon, William, The PyTorch Lightning team (2019). PyTorch Lightning. Version 1.4.
DOI: 10.5281/zenodo.3828935. URL: https://github.com/Lightning-AI/lightning.
Frankle, Jonathan, Michael Carbin (2019). "The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networks". In: International Conference on Learning Representations.
Ginart, Antonio, Melody Guan, Gregory Valiant, James Y Zou (2019). "Making AI Forget You: Data Deletion in Machine Learning". In: Advances in Neural Information Processing Systems. Vol. 32.
Halimi, Oshri, Or Litany, Emanuele Rodolà, Alex M Bronstein, Ron Kimmel (2019). "Unsupervised learning of dense shape correspondence". In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4370–4379.
Helber, Patrick, Benjamin Bischke, Andreas Dengel, Damian Borth (2019). "Eurosat: A novel dataset and deep learning benchmark for land use and land cover classification". In: IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing 12.7, pp. 2217–2226.
Kornblith, Simon, Mohammad Norouzi, Honglak Lee, Geoffrey E. Hinton (2019). "Similarity of Neural Network Representations Revisited". In: Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA. Ed. by Kamalika Chaudhuri, Ruslan Salakhutdinov. Vol. 97. Proceedings of Machine Learning Research. PMLR, pp. 3519–3529. URL: http://proceedings.mlr.press/v97/kornblith19a.html.
Lezcano Casado, Mario (2019). "Trivializations for Gradient-Based Optimization on Manifolds". In: Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada. Ed. by Hanna M. Wallach, Hugo Larochelle,
Alina Beygelzimer, Florence d'Alché-Buc, Emily B. Fox, Roman Garnett, pp. 9154–9164. URL: https://proceedings.neurips.cc/paper/2019/hash/1b33d16fc562464579b7199ca3114982-Abstract.html.
Liu, Yinhan, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, Veselin Stoyanov (2019). "RoBERTa: A Robustly Optimized BERT Pretraining Approach". In: abs/1907.11692. arXiv:1907.11692 [cs.CL]. URL: https://arxiv.org/abs/1907.11692.
Melzi, Simone, Jing Ren, Emanuele Rodolà, Abhishek Sharma, Peter Wonka, Maks Ovsjanikov (2019). "ZoomOut: spectral upsampling for efficient shape correspondence". In: ACM Transactions on Graphics 38.6, pp. 1–14.
Michel, Paul, Omer Levy, Graham Neubig (2019). "Are Sixteen Heads Really Better than One?" In: Advances in Neural Information Processing Systems. Vol. 32.
Peyré, Gabriel, Marco Cuturi (2019). "Computational Optimal Transport with Applications to Data Sciences". In: Foundations and Trends® in Machine Learning 11.5-6, pp. 355–607.
Recht, Benjamin, Rebecca Roelofs, Ludwig Schmidt, Vaishaal Shankar (2019). "Do ImageNet Classifiers Generalize to ImageNet?" In: Proceedings of the 36th International Conference on Machine Learning.
Reimers, Nils, Iryna Gurevych (Nov. 2019). "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks". In: Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP). Association for Computational Linguistics.
Voita, Elena, David Talbot, Fedor Moiseev, Rico Sennrich, Ivan Titov (2019). "Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Pruned". In: Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 5797–5808.
Wang, Haohan, Songwei Ge, Zachary Lipton, Eric P Xing (2019). "Learning Robust Global Representations by Penalizing Local Predictive Power". In: Advances in Neural Information Processing Systems, pp. 10506–10518.
Blondel, Mathieu, Olivier Teboul, Quentin Berthet, Josip Djolonga (2020). "Fast differentiable sorting and ranking". In: International Conference on Machine Learning. PMLR, pp. 950–959.
Clark, Kevin, Minh-Thang Luong, Quoc V. Le, Christopher D. Manning (2020). "ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators". In: 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net. URL: https://openreview.net/forum?id=r1xMH1BtvB.
Conneau, Alexis, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer, Veselin Stoyanov (2020). "Unsupervised Cross-lingual Representation Learning at Scale". In: Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. Online: Association for Computational Linguistics, pp. 8440–8451. DOI: 10.18653/v1/2020.acl-main.747. URL: https://aclanthology.org/2020.acl-main.747.
Doimo, Diego, Aldo Glielmo, Alessio Ansuini, Alessandro Laio (2020). "Hierarchical nucleation in deep neural networks". In: Advances in Neural Information Processing Systems. Ed. by H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, H. Lin. Vol. 33. Curran Associates, Inc., pp. 7526–7536. URL: https://proceedings.neurips.cc/ paper_files/paper/2020/file/54f3bc04830d762a3b56a789b6ff62df-Paper.pdf.
Frankle, Jonathan, Gintare Karolina Dziugaite, Daniel Roy, Michael Carbin (2020). "Linear Mode Connectivity and the Lottery Ticket Hypothesis". In: Proceedings of the 37th International Conference on Machine Learning. Vol. 119. Proceedings of Machine Learning Research. PMLR, pp. 3259–3269.
Gehman, Samuel, Suchin Gururangan, Maarten Sap, Yejin Choi, Noah A Smith (2020). "RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models". In: Findings of the Association for Computational Linguistics: EMNLP 2020, pp. 3356–3369.
Golatkar, Aditya, Alessandro Achille, Stefano Soatto (2020a). "Eternal sunshine of the spotless net: Selective forgetting in deep networks". In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9304–9312.
— (2020b). “Forgetting outside the box: Scrubbing deep networks of information accessible from input-output observations”. In: European Conference on Computer Vision. Springer, pp. 383–398.
Guo, Chuan, Tom Goldstein, Awni Hannun, Laurens Van Der Maaten (2020). "Certified Data Removal from Machine Learning Models". In: International Conference on Machine Learning. PMLR, pp. 3832–3842.
Holzschuh, Benjamin, Zorah Lähner, Daniel Cremers (2020). "Simulated annealing for 3d shape correspondence". In: 2020 International Conference on 3D Vision (3DV). IEEE, pp. 252–260.
Keung, Phillip, Yichao Lu, György Szarvas, Noah A. Smith (2020). "The Multilingual Amazon Reviews Corpus". In: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP). Online: Association for Computational Linguistics, pp. 4563–4568. DOI: 10.18653/v1/2020.emnlp-main.369. URL: https://aclanthology.org/2020.emnlp-main.369.
Lan, Zhenzhong, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, Radu Soricut (2020). "ALBERT: A lite BERT for self-supervised learning of language representations". In: International Conference on Learning Representations. arXiv: 1909.11942 [cs.LG].
nostalgebraist (2020). interpreting GPT: the logit lens. LessWrong. LessWrong blog post. URL: https://www.lesswrong.com/posts/AcKRB8wDpdaN6v6ru/interpreting-gpt-the-logit-lens.
Tsitsulin, Anton, Marina Munkhoeva, Davide Mottin, Panagiotis Karras, Alexander M. Bronstein, Ivan V. Oseledets, Emmanuel Müller (2020). "The Shape of Data: Intrinsic Distance for Data Distributions". In: 8th International Conference on Learning Representations. URL: https://openreview.net/forum?id=HyebplHYwB.
Vayer, Titouan, Laetitia Chapel, Rémi Flamary, Romain Tavenard, Nicolas Courty (2020). "Fused Gromov-Wasserstein distance for structured objects". In: Algorithms 13.9, p. 212.
Vulić, Ivan, Sebastian Ruder, Anders Søgaard (Nov. 2020). "Are All Good Word Vector Spaces Isomorphic?" In: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP). Online: Association for Computational Linguistics, pp. 3178–3192. DOI: 10.18653/v1/2020.emnlp-main.257. URL: https://aclanthology.org/2020.emnlp-main.257.
Wang, Chien-Yao, Hong-Yuan Mark Liao, Yueh-Hua Wu, Ping-Yang Chen, Jun-Wei Hsieh, I-Hau Yeh (2020). "CSPNet: A New Backbone that can Enhance Learning Capability of CNN". In: 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition.
Recognition Workshops (CVPRW). IEEE, pp. 1571–1580. DOI: 10.1109/CVPRW50498.2020.00203.
Wang, Fu-Dong, Nan Xue, Yipeng Zhang, Gui-Song Xia, Marcello Pelillo (2020). "A Functional Representation for Graph Matching". In: IEEE transactions on pattern analysis and machine intelligence 42.11, pp. 2737–2754.
Wolf, Thomas, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, Alexander Rush (2020). "Transformers: State-of-the-art natural language processing". In: Proceedings of the 2020 conference on empirical methods in natural language processing: system demonstrations, pp. 38–45.
Achille, Alessandro, Aditya Golatkar, Avinash Ravichandran, Marzia Polito, Stefano Soatto (June 2021). "LQF: Linear Quadratic Fine-Tuning". In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 15729–15739.
Bansal, Yamini, Preetum Nakkiran, Boaz Barak (2021). "Revisiting Model Stitching to Compare Neural Representations". In: Advances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, December 6-14, 2021, virtual. Ed. by Marc'Aurelio Ranzato, Alina Beygelzimer, Yann N. Dauphin, Percy Liang, Jennifer Wortman Vaughan, pp. 225–236. URL: https://proceedings.neurips.cc/paper/2021/hash/01ded4259d101feb739b06c399e9cd9c-Abstract.html.
Basu, Samyadeep, Phil Pope, Soheil Feizi (2021). "Influence Functions in Deep Learning Are Fragile". In: International Conference on Learning Representations.
Caron, Mathilde, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, Armand Joulin (2021). "Emerging Properties in Self-Supervised Vision Transformers". In: Proceedings of the International Conference on Computer Vision (ICCV).
Changpinyo, Soravit, Piyush Sharma, Nan Ding, Radu Soricut (2021). "Conceptual 12M: Pushing Web-Scale Image-Text Pre-Training To Recognize Long-Tail Visual Concepts". In: CVPR.
Csiszárik, Adrián, Péter Kórösi-Szabó, Ákos K. Matszangosz, Gergely Papp, Dániel Varga (2021). "Similarity and Matching of Neural Network Representations". In: Advances in Neural Information Processing Systems. arXiv: 2110.14633 [cs.LG]. URL: https://arxiv.org/abs/2110.14633.
Dosovitskiy, Alexey, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, Neil Houlsby (2021). "An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale". In: International Conference on Learning Representations. URL: https://openreview.net/forum?id=YicbFdNTTy.
Elhage, Nelson, Neel Nanda, Catherine Olsson, Tom Henighan, Nicholas Joseph, Ben Mann, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, Nova Das-Sarma, Dawn Drain, Deep Ganguli, Zac Hatfield-Dodds, Danny Hernandez, Andy Jones, Jackson Kernion, Liane Lovitt, Kamal Ndousse, Dario Amodei, Tom Brown, Jack Clark, Jared Kaplan, Sam McCandlish, Chris Olah (2021). "A Mathematical Framework for Transformer Circuits". In: Transformer Circuits Thread. https://transformer-circuits.pub/2021/framework/index.html.
Golatkar, Aditya, Alessandro Achille, Avinash Ravichandran, Marzia Polito, Stefano Soatto (2021). "Mixed-privacy forgetting in deep networks". In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 792–801.
Han, Dongyoon, Sangdoo Yun, Byeongho Heo, YoungJoon Yoo (2021). "Rethinking Channel Dimensions for Efficient Model Design". In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). URL: https://arxiv.org/abs/2007.00992.
Hendrycks, Dan, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, Jacob Steinhardt (2021). "Measuring Massive Multitask Language Understanding". In: Proceedings of the International Conference on Learning Representations (ICLR).
Hermanns, Judith, Anton Tsitsulin, Marina Munkhoeva, Alex Bronstein, Davide Mottin, Panagiotis Karras (2021). "GRASP: Graph Alignment through Spectral Signatures". In: Asia-Pacific Web (APWeb) and Web-Age Information Management (WAIM) Joint International Conference on Web and Big Data. Springer, pp. 44–52.
Hessel, Jack, Ari Holtzman, Maxwell Forbes, Ronan Le Bras, Yejin Choi (2021). "CLIP-Score: A Reference-free Evaluation Metric for Image Captioning". In: Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pp. 7514–7528.
Jia, Chao, Yinfei Yang, Ye Xia, Yi-Ting Chen, Zarana Parekh, Hieu Pham, Quoc Le, Yun-Hsuan Sung, Zhen Li, Tom Duerig (2021). "Scaling up visual and vision-language representation learning with noisy text supervision". In: International Conference on Machine Learning. PMLR, pp. 4904–4916.
Johnson, Jeff, Matthijs Douze, Hervé Jégou (2021). "Billion-scale similarity search with GPUs". In: IEEE Transactions on Big Data 7.3, pp. 535–547.
Karlgren, Jussi, Pentti Kanerva (2021). "Semantics in High-Dimensional Space". In: Frontiers in Artificial Intelligence 4. ISSN: 2624-8212. DOI: 10.3389/frai.2021.698809. URL: https://www.frontiersin.org/journals/artificial-intelligence/articles/10.3389/frai.2021.698809.
Luecken, Malte, Daniel Burkhardt, Robrecht Cannoodt, Christopher Lance, Aditi Agrawal, Hananeh Aliee, Ann Chen, Louise Deconinck, Angela Detweiler, Alejandro Granados, Shelly Huynh, Laura Isacco, Yang Kim, Dominik Klein, BONY DE KUMAR, Sunil Kuppasani, Heiko Lickert, Aaron McGeever, Joaquin Melgarejo, Honey Mekonen, Maurizio Morri, Michaela Müller, Norma Neff, Sheryl Paul, Bastian Rieck, Kaylie Schneider, Scott Steelman, Michael Sterr, Daniel Treacy, Alexander Tong, Alexandra-Chloe Villani, Guilin Wang, Jia Yan, Ce Zhang, Angela Pisco, Smita Krishnaswamy, Fabian Theis, Jonathan M Bloom (2021). "A sandbox for prediction and integration of DNA, RNA, and proteins in single cells". In: Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks. Ed. by J. Vanschoren, S. Yeung. Vol. 1. URL: https://datasets-benchmarks-proceedings.neurips.cc/paper_files/paper/2021/file/158f3069a435b314a80bdcb024f8e422-Paper-round2.pdf.
Pope, Phil, Chen Zhu, Ahmed Abdelkader, Micah Goldblum, Tom Goldstein (2021). "The Intrinsic Dimension of Images and Its Impact on Learning". In: International Conference on Learning Representations. URL: https://openreview.net/forum?id=XJk19XzGq2J.
Radford, Alec, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, Ilya Sutskever (2021). "Learning transferable visual models from natural language supervision". In: International Conference on Machine Learning. PMLR, pp. 8748–8763.
Ridnik, Tal, Emanuel Ben-Baruch, Asaf Noy, Lihi Zelnik (2021). "ImageNet-21K Pretraining for the Masses". In: Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks 1, NeurIPS Datasets and Benchmarks 2021, December 2021, virtual. Ed. by Joaquin Vanschoren, Sai-Kit Yeung.
Schwenk, Holger, Vishrav Chaudhary, Shuo Sun, Hongyu Gong, Francisco Guzmán (2021). "WikiMatrix: Mining 135M Parallel Sentences in 1620 Language Pairs from Wikipedia". In: Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume. Online: Association for Computational Linguistics, pp. 1351–1361. URL: https://aclanthology.org/2021.eacl-main.115.
Touvron, Hugo, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, Hervé Jégou (2021). "Training data-efficient image transformers & distillation through attention". In: International conference on machine learning. PMLR, pp. 10347–10357.
Williams, Alex H., Erin Kunz, Simon Kornblith, Scott W. Linderman (2021). "Generalized Shape Metrics on Neural Representations". In: Advances in Neural Information Processing Systems. Vol. 34.
Bonheme, Lisa, Marek Grzes (2022). How do Variational Autoencoders Learn? Insights from Representational Similarity. arXiv: 2205.08399 [cs.LG]. URL: https://arxiv.org/abs/2205.08399.
Boyarski, Amit, Sanketh Vedula, Alex Bronstein (2022). "Spectral Geometric Matrix Completion". In: Mathematical and Scientific Machine Learning. PMLR, pp. 172–196.
Chiu, Wei-Ting, Pei Wang, Patrick Shafto (2022). "Discrete probabilistic inverse optimal transport". In: International Conference on Machine Learning. PMLR, pp. 3925–3946.
Cuturi, Marco, Laetitia Meng-Papaxanthos, Yingtao Tian, Charlotte Bunne, Geoff Davis, Olivier Teboul (2022). Optimal Transport Tools (OTT): A JAX Toolbox for all things Wasserstein. arXiv: 2201.12324 [cs.LG].
Demetci, Pinar, Rebecca Santorella, Björn Sandstede, William Stafford Noble, Ritambhara Singh (2022). "SCOT: single-cell multi-omics alignment with optimal transport". In: Journal of computational biology 29.1, pp. 3–18.
Eisenberger, Marvin, Aysim Toker, Laura Leal-Taixé, Florian Bernard, Daniel Cremers (2022). "A unified framework for implicit Sinkhorn differentiation". In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 509–518.
Gutiérrez-Fandiño, Asier, Jordi Armengol-Estapé, Marc Pàmies, Joan Llop-Palao, Joaquin Silveira-Ocampo, Casimiro Pio Carrino, Carme Armentano-Oller, Carlos Rodriguez-Penagos, Aitor Gonzalez-Agirre, Marta Villegas (2022). "MarIA: Spanish Language Models". In: Procesamiento del Lenguaje Natural 68. ISSN: 1135-5948. DOI: 10.26342/2022-68-3. URL: https://upcommons.upc.edu/handle/2117/367156#.YyMTB4X9A-0.mendeley.
Hu, Edward J, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, Weizhu Chen (2022). "LoRA: Low-Rank Adaptation of Large Language Models". In: International Conference on Learning Representations.
Huang, Shengyi, Rousslan Fernand Julien Dossa, Chang Ye, Jeff Braga, Dipam Chakraborty, Kinal Mehta, João G.M. Araújo (2022). "CleanRL: High-quality Single-file Implementations of Deep Reinforcement Learning Algorithms". In: Journal of Machine Learning Research 23.274, pp. 1–18. URL: http://jmlr.org/papers/v23/21-1342.html.
Li, Junnan, Dongxu Li, Caiming Xiong, Steven Hoi (2022). "BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation". In: International Conference on Machine Learning. PMLR, pp. 12888–12900.
Liang, Weixin, Yuhui Zhang, Yongchan Kwon, Serena Yeung, James Zou (2022). "Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learning". In: Advances in Neural Information Processing Systems. URL: https://openreview.net/forum?id=S7Evzt9uit3.
Logacheva, Varvara, Daryna Dementieva, Sergey Ustyantsev, Daniil Moskovskiy, David Dale, Irina Krotova, Nikita Semenov, Alexander Panchenko (May 2022). "ParaDetox: Detoxification with Parallel Data". In: Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Dublin, Ireland: Association for Computational Linguistics, pp. 6804–6818. URL: https://aclanthology.org/2022.acl-long.469.
Meng, Kevin, David Bau, Alex Andonian, Yonatan Belinkov (2022). "Locating and editing factual associations in GPT". In: Advances in Neural Information Processing Systems. Vol. 35, pp. 17359–17372.
Olsson, Catherine, Nelson Elhage, Neel Nanda, Nicholas Joseph, Nova DasSarma, Tom Henighan, Ben Mann, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, Dawn Drain, Deep Ganguli, Zac Hatfield-Dodds, Danny Hernandez, Scott Johnston, Andy Jones, Jackson Kernion, Liane Lovitt, Kamal Ndousse, Dario Amodei, Tom Brown, Jack Clark, Jared Kaplan, Sam McCandlish, Chris Olah (2022). "In-context learning and induction heads". In: arXiv: 2209.11895 [cs.LG].
Strickland, Eliza (2022). "Andrew Ng: Unbiggen AI". In: IEEE Spectrum. URL: https://spectrum.ieee.org/andrew-ng-data-centric-ai.
Valeriani, Lucrezia, Francesca Cuturello, Alessio Ansuini, Alberto Cazzaniga (2022). "The geometry of hidden representations of protein language models". In: bioRxiv. Presented at NeurIPS 2022 Workshop. DOI: 10.1101/2022.10.24.513504.
Wang, Zhen, Xu Shan, Xiangxie Zhang, Jie Yang (2022). "N24News: A New Dataset for Multimodal News Classification". In: Proceedings of the Thirteenth Language Resources and Evaluation Conference. Marseille, France: European Language Resources Association, pp. 6768–6775. URL: https://aclanthology.org/2022.lrec-1.729.
Zhai, Xiaohua, Xiao Wang, Basil Mustafa, Andreas Steiner, Daniel Keysers, Alexander Kolesnikov, Lucas Beyer (2022). "LiT: Zero-shot transfer with locked-image text tuning". In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 18123–18133.
Amos, Brandon (2023a). "On amortizing convex conjugates for optimal transport". In: The Eleventh International Conference on Learning Representations. arXiv: 2210.12153 [cs.LG].
— (2023b). “Tutorial on amortized optimization”. In: Foundations and Trends® in Machine Learning 16.5, pp. 592–732.
Belrose, Nora, Igor Ostrovsky, Lev McKinney, Zach Furman, Logan Smith, Danny Halawi, Stella Biderman, Jacob Steinhardt (2023). "Eliciting latent predictions from transformers with the tuned lens". In: arXiv: 2303.08112 [cs.LG].
Cannistraci, Irene, Marco Fumero, Luca Moschella, Valentino Maiorca, Emanuele Rodolà (2023a). "Infusing invariances in neural representations". In: ICML TAG-ML Workshop. URL: https://openreview.net/forum?id=mCm4iiNoNc.
Cannistraci, Irene, Luca Moschella, Valentino Maiorca, Marco Fumero, Antonio Norelli, Emanuele Rodolà (2023b). "Bootstrapping Parallel Anchors for Relative Representations". In: The First Tiny Papers Track at ICLR 2023, Tiny Papers at ICLR 2023. URL: https://openreview.net/pdf?id=VBuUL2IWlq.
Chen, Chi, Peng Li, Maosong Sun, Yang Liu (July 2023). "Weakly Supervised Vision-and-Language Pre-training with Relative Representations". In: Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). ACL 2023. Toronto, Canada: Association for Computational Linguistics, pp. 8341–8355. URL: https://aclanthology.org/2023.acl-long.464.
Cherti, Mehdi, Romain Beaumont, Ross Wightman, Mitchell Wortsman, Gabriel Ilharco, Cade Gordon, Christoph Schuhmann, Ludwig Schmidt, Jenia Jitsev (2023). "Reproducible Scaling Laws for Contrastive Language-Image Learning". In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2818–2829.
Davari, MohammadReza, Stefan Horoi, Amine Natik, Guillaume Lajoie, Guy Wolf, Eugene Belilovsky (2023). "Reliability of CKA as a Similarity Measure in Deep Learning". In: The Eleventh International Conference on Learning Representations. arXiv: 2210.16156 [cs.LG].
Geva, Mor, Jasmijn Bastings, Katja Filippova, Amir Globerson (2023). "Dissecting Recall of Factual Associations in Auto-Regressive Language Models". In: Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 12216–12235.
Gifford, A. T., B. Lahner, S. Saba-Sadiya, M. G. Vilas, A. Lascelles, A. Oliva, K. Kay, G. Roig, R. M. Cichy (2023). The Algonauts Project 2023 Challenge: How the Human Brain Makes Sense of Natural Scenes. arXiv: 2301.03198 [cs.CV].
Jian, Pingcheng, Easop Lee, Zachary Bell, Michael M Zavlanos, Boyuan Chen (2023). "Policy Stitching: Learning Transferable Robot Policies". In: Conference on Robot Learning. Vol. 229. Proceedings of Machine Learning Research. PMLR, pp. 3789–3808. arXiv: 2309.13753 [cs.LG].
Jiang, Albert Q., Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, William El Sayed (2023). Mistral 7B. arXiv: 2310.06825 [cs.CL]. URL: https://arxiv.org/abs/2310.06825.
Li, Kenneth, Oam Patel, Fernanda Viégas, Hanspeter Pfister, Martin Wattenberg (2023). "Inference-time intervention: Eliciting truthful answers from a language model". In: Advances in Neural Information Processing Systems. Vol. 36.
Liu, Haotian, Chunyuan Li, Qingyang Wu, Yong Jae Lee (2023). "Visual instruction tuning". In: Advances in Neural Information Processing Systems. Vol. 36, pp. 34892–34916.
Maiorca*, Valentino, Luca Moschella*, Antonio Norelli, Marco Fumero, Francesco Locatello, Emanuele Rodolà (2023). "Latent Space Translation via Semantic Alignment". In: Advances in Neural Information Processing Systems. Equal contribution by the first two authors. DOI: 10.48550/arXiv.2311.00664. arXiv: 2311.00664 [cs.LG]. URL: https://openreview.net/forum?id=Q0FhXpU9vD.
Mistral AI (2023). Mistral-7B-Instruct-v0.2. https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2.
Moschella*, Luca, Valentino Maiorca*, Marco Fumero, Antonio Norelli, Francesco Locatello, Emanuele Rodolà (2023). "Relative representations enable zero-shot latent space communication". In: The Eleventh International Conference on Learning Representations. Equal contribution. DOI: 10.48550/arXiv.2209.15430. URL: https://openreview.net/forum?id=SrC-nwieGJ.
Nanda, Neel, Andrew Lee, Martin Wattenberg (2023). “Emergent Linear Representations in World Models of Self-Supervised Sequence Models”. In: Proceedings of the 6th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP, pp. 16–30.
Norelli, Antonio, Marco Fumero, Valentino Maiorca, Luca Moschella, Emanuele Rodolà, Francesco Locatello (2023). “ASIF: Coupled data turns unimodal models to multimodal without training”. In: Advances in Neural Information Processing Systems. URL: https://openreview.net/forum?id=Xj0j3ZmWE1.
Oyama, Momose, Sho Yokoi, Hidetoshi Shimodaira (2023). “Norm of Word Embedding Encodes Information Gain”. In: Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. URL: https://aclanthology.org/2023.emnlp-main.131.
Ricciardi, Antonio Pio, Valentino Maiorca, Luca Moschella, Riccardo Marin, Emanuele Rodolà (2023). “Zero-shot stitching in Reinforcement Learning using Relative Representations”. In: Sixteenth European Workshop on Reinforcement Learning. DOI: 10.48550/arXiv.2404.12917. URL: https://arxiv.org/abs/2404.12917.
Wang, Gary, Kyle Kastner, Ankur Bapna, Zhehuai Chen, Andrew Rosenberg, Bhuvana Ramabhadran, Yu Zhang (2023). “Understanding Shared Speech-Text Representations”. In: ICASSP 2023-2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, pp. 1–5.
Wolff, Max, Wieland Brendel, Stuart Wolff (2023). “The Independent Compositional Subspace Hypothesis for the Structure of CLIP’s Last Layer”. In: ICLR 2023 Workshop on Mathematical and Empirical Understanding of Foundation Models. URL: https://openreview.net/forum?id=MmhGK8YkUKO.
Balasubramanian, Sriram, Samyadeep Basu, Soheil Feizi (2024). “Decomposing and Interpreting Image Representations via Text in ViTs Beyond CLIP”. In: Advances in Neural Information Processing Systems. Vol. 37. URL: https://openreview.net/forum?id=Vhh70NtfvV.
Cannistraci, Irene, Luca Moschella*, Marco Fumero*, Valentino Maiorca, Emanuele Rodolà (2024). “From Bricks to Bridges: Product of Invariances to Enhance Latent Space Communication”. In: International Conference on Learning Representations. URL: https://openreview.net/forum?id=vngVydDWft.
Cheng, Emily, Richard J. Antonello (2024). “Evidence from fMRI Supports a Two-Phase Abstraction Process in Language Models”. In: NeurIPS UniReps Workshop. arXiv: 2409.05771 [cs.CL]. URL: https://arxiv.org/abs/2409.05771.
Crisostomi, Donato, Irene Cannistraci, Luca Moschella, Pietro Barbiero, Marco Ciccone, Pietro Liò, Emanuele Rodolà (Dec. 2024). “From charts to atlas: Merging latent spaces into one”. In: Proceedings of the 2nd NeurIPS Workshop on Symmetry and Geometry in Neural Representations. Ed. by Sophia Sanborn, Christian Shewmake, Simone Azeglio, Nina Miolane. Vol. 228. Proceedings of Machine Learning Research. PMLR, pp. 388–404. URL: https://proceedings.mlr.press/v228/crisostomi24a.html.
Defazio, Aaron, Xingyu Alice Yang, Harsh Mehta, Konstantin Mishchenko, Ahmed Khaled, Ashok Cutkosky (2024). “The Road Less Scheduled”. In: Advances in Neural Information Processing Systems. Vol. 37. arXiv: 2405.15682 [cs.LG].
Fumero, Marco, Emanuele Rodolà, Clementine Domine, Francesco Locatello, Karolina Dziugaite, Mathilde Caron, eds. (2024). Proceedings of UniReps: the First Workshop on Unifying Representations in Neural Models. Vol. 243. Proceedings of Machine Learning Research. PMLR. URL: https://proceedings.mlr.press/v243/.
Fumero*, Marco, Marco Pegoraro*, Valentino Maiorca, Francesco Locatello, Emanuele Rodolà (2024). "Latent Functional Maps: a spectral framework for representation alignment". In: Advances in Neural Information Processing Systems. Equal contribution by the first two authors. URL: https://openreview.net/forum?id=mfvKEdJ4zW.
Gandelsman, Yossi, Alexei A Efros, Jacob Steinhardt (2024). "Interpreting CLIP's Image Representation via Text-Based Decomposition". In: International Conference on Learning Representations.
Grattafiori, Aaron, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, et al. (2024). "The Llama 3 Herd of Models". In: arXiv preprint arXiv:2407.21783.
Guo, Yingqing, Hui Yuan, Yukang Yang, Minshuo Chen, Mengdi Wang (2024). "Gradient Guidance for Diffusion Models: An Optimization Perspective". In: Advances in Neural Information Processing Systems. Vol. 37.
Huben, Robert, Hoagy Cunningham, Logan Riggs Smith, Aidan Ewart, Lee Sharkey (2024). "Sparse Autoencoders Find Highly Interpretable Features in Language Models". In: The Twelfth International Conference on Learning Representations. URL: https://openreview.net/forum?id=F76bwRSLeK.
Huh, Minyoung, Brian Cheung, Tongzhou Wang, Phillip Isola (2024). "Position: The Platonic Representation Hypothesis". In: International Conference on Machine Learning. Vol. 235. arXiv: 2405.07987 [cs.LG].
Jiang, Yibo, Goutham Rajendran, Pradeep Kumar Ravikumar, Bryon Aragam, Victor Veitch (2024). "On the Origins of Linear Representations in Large Language Models". In: Proceedings of the 41st International Conference on Machine Learning. URL: https://openreview.net/forum?id=otuTw4Mghk.
Kiefer, Alex B., Christopher L. Buckley (2024). "Relative Representations for Cognitive Graphs". In: Active Inference. Ed. by Christopher L. Buckley, Daniela Cialfi, Pablo Lanillos, Maxwell Ramstead, Noor Sajid, Hideaki Shimazaki, Tim Verbelen, Martijn Wisse. Cham: Springer Nature Switzerland, pp. 218–236. URL: https://link.springer.com/chapter/10.1007/978-3-031-47958-8_14.
Lähner, Zorah, Michael Moeller (2024). "On the Direct Alignment of Latent Spaces". In: Proceedings of UniReps: the First Workshop on Unifying Representations in Neural Models. Ed. by Marco Fumero, Emanuele Rodolà, Clementine Domine, Francesco Locatello, Karolina Dziugaite, Mathilde Caron. Vol. 243. Proceedings of Machine Learning Research. PMLR, pp. 158–169. URL: https://proceedings.mlr.press/v243/lahner24a.html.
Liu, Haotian, Chunyuan Li, Yuheng Li, Bo Li, Yuanhan Zhang, Sheng Shen, Yong Jae Lee (Jan. 2024a). LLaVA-NeXT: Improved reasoning, OCR, and world knowledge. URL: https://llava-vl.github.io/blog/2024-01-30-llava-next/.
— (2024b). LLaVA-NeXT: Improved reasoning, OCR, and world knowledge. https://huggingface.co/llava-hf/llava-v1.6-mistral-7b-hf.
Luong, Tinh, Thanh-Thien Le, Linh Ngo, Thien Nguyen (Aug. 2024). "Realistic Evaluation of Toxicity in Large Language Models". In: Findings of the Association for Computational Linguistics: ACL 2024. Ed. by Lun-Wei Ku, Andre Martins, Vivek Srikumar. Bangkok, Thailand: Association for Computational Linguistics, pp. 1038–1047. DOI: 10.18653/v1/2024.findings-acl.61. URL: https://aclanthology.org/2024.findings-acl.61/.
Mager, Fabian, Valentino Maiorca, Lars Kai Hansen (2024). "It's All Relative: Relative Uncertainty in Latent Spaces using Relative Representations". In: NeurIPS UniReps Workshop.
Maiorca, Valentino, Simone Azeglio, Marco Fumero, Clémentine Dominé, Emanuele Rodolà, Francesco Locatello (2024). "Multi-subject neural decoding via relative representations". In: Cosyne.
Maiorca*, Valentino, Luca Moschella*, Marco Fumero, Francesco Locatello, Emanuele Rodolà (2024). "Latent Space Translation via Inverse Relative Projection". In: arXiv. URL: https://arxiv.org/abs/2406.15057.
Oquab, Maxime, Timothée Darcet, Théo Moutakanni, Huy V. Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, Mido Assran, Nicolas Ballas, Wojciech Galuba, Russell Howes, Po-Yao Huang, Shang-Wen Li, Ishan Misra, Michael Rabbat, Vasu Sharma, Gabriel Synnaeve, Hu Xu, Herve Jegou, Julien Mairal, Patrick Labatut, Armand Joulin, Piotr Bojanowski (2024). "DINOv2: Learning Robust Visual Features without Supervision". In: Transactions on Machine Learning Research. URL: https://openreview.net/forum?id=a68SUt6zFt.
Parekh, Jayneel, Pegah Khayatan, Mustafa Shukor, Alasdair Newson, Matthieu Cord (2024). "A Concept-Based Explainability Framework for Large Multimodal Models". In: The Thirty-eighth Annual Conference on Neural Information Processing Systems. URL: https://openreview.net/forum?id=MvjLRFntW6.
Park, Kiho, Yo Joong Choe, Victor Veitch (2024). "The Linear Representation Hypothesis and the Geometry of Large Language Models". In: Proceedings of the 41st International Conference on Machine Learning. Vol. 235. Proceedings of Machine Learning Research. PMLR, pp. 39643–39666. URL: https://proceedings.mlr.press/v235/park24c.html.
Pegoraro, Marco, Riccardo Marin, Arianna Rampini, Simone Melzi, Luca Cosmo, Emanuele Rodolà (2024). "Spectral Maps for Learning on Subgraphs". In: NeurIPS Workshop on Symmetry and Geometry in Neural Representations. Vol. 228. Proceedings of Machine Learning Research. PMLR, pp. 183–205. URL: https://proceedings.mlr.press/v228/pegoraro24a.html.
Podell, Dustin, Zion English, Kyle Lacey, Andreas Blattmann, Tim Dockhorn, Jonas Müller, Joe Penna, Robin Rombach (2024). "SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis". In: The Twelfth International Conference on Learning Representations.
Rimsky, Nina, Nick Gabrieli, Julian Schulz, Meg Tong, Evan Hubinger, Alexander Matt Turner (2024). "Steering Llama 2 via Contrastive Activation Addition". In: Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Bangkok, Thailand: Association for Computational Linguistics, pp. 15504–15522. URL: https://aclanthology.org/2024.acl-long.828/.
Templeton, Adly, Tom Conerly, Jonathan Marcus, Jack Lindsey, Trenton Bricken, Brian Chen, Adam Pearce, Craig Citro, Emmanuel Ameisen, Andy Jones, Hoagy Cunningham, Nicholas L Turner, Callum McDougall, Monte MacDiarmid, Alex Tamkin, Esin Durmus, Tristan Hume, Francesco Mosconi, C. Daniel Freeman, Theodore R. Sumers, Edward Rees, Joshua Batson, Adam Jermyn, Shan Carter, Chris Olah, Tom Henighan (2024). "Scaling monosemanticity: Extracting interpretable features from Claude 3 Sonnet". In: Transformer Circuits Thread.
Vedula, Sanketh, Valentino Maiorca, Lorenzo Basile, Francesco Locatello, Alexander Bronstein (2024). "Scalable Unsupervised Alignment of Metric and Nonmetric
Structures". In: ICML AI4Science Workshop. DOI: 10.48550/arXiv.2406.13507. arXiv: 2406.13507 [cs.LG].
Wu, Zhengxuan, Aryaman Arora, Zheng Wang, Atticus Geiger, Dan Jurafsky, Christopher D Manning, Christopher Potts (2024a). "ReFT: Representation finetuning for language models". In: Advances in Neural Information Processing Systems. Vol. 37. arXiv: 2404.03592 [cs.LG].
Wu, Zijun, Yongkang Wu, Lili Mou (2024b). "Zero-Shot Continuous Prompt Transfer: Generalizing Task Semantics Across Language Models". In: The Twelfth International Conference on Learning Representations. URL: https://openreview.net/forum?id=26Xphug0cS.
Ye, Haotian, Haowei Lin, Jiaqi Han, Minkai Xu, Sheng Liu, Yitao Liang, Jianzhu Ma, James Zou, Stefano Ermon (2024). "TFG: Unified Training-Free Guidance for Diffusion Models". In: Advances in Neural Information Processing Systems. Vol. 37.
Yin, Fangcong, Xi Ye, Greg Durrett (2024). "LoFiT: Localized Fine-tuning on LLM Representations". In: Advances in Neural Information Processing Systems.
Yin, Tianwei, Michaël Gharbi, Taesung Park, Richard Zhang, Eli Shechtman, Frédo Durand, William T Freeman (2024). "Improved Distribution Matching Distillation for Fast Image Synthesis". In: NeurIPS.
Basile, Lorenzo, Santiago Acevedo, Luca Bortolussi, Fabio Anselmi, Alex Rodriguez (2025a). "Intrinsic Dimension Correlation: uncovering nonlinear connections in multimodal representations". In: The Thirteenth International Conference on Learning Representations. Ed. by Y. Yue, A. Garg, N. Peng, F. Sha, R. Yu. Vol. 2025, pp. 31989–32014. URL: https://openreview.net/forum?id=Qj1KwBZaEI.
Basile, Lorenzo, Valentino Maiorca, Diego Doimo, Francesco Locatello, Alberto Cazzaniga (2025b). "Head Pursuit: Probing Attention Specialization in Multimodal Transformers". In: The Thirty-ninth Annual Conference on Neural Information Processing Systems. URL: https://neurips.cc/virtual/2025/poster/117597.
Basile*, Lorenzo, Valentino Maiorca*, Luca Bortolussi, Emanuele Rodolà, Francesco Locatello (2025). "ResiDual Transformer Alignment with Spectral Decomposition". In: Transactions on Machine Learning Research. Equal contribution by the first two authors. DOI: 10.48550/arXiv.2411.00246. URL: https://openreview.net/forum?id=z37LCgSIzI.
Cheng, Emily, Diego Doimo, Corentin Kervadec, Iuri Macocco, Lei Yu, Alessandro Laio, Marco Baroni (2025). "Emergence of a High-Dimensional Abstraction Phase in Language Transformers". In: The Thirteenth International Conference on Learning Representations. URL: https://openreview.net/forum?id=OfD3iIBhlV.
Demirel, Berker, Marco Fumero, Francesco Locatello (2025). "Out-of-Distribution Detection with Relative Angles". In: The Thirty-ninth Annual Conference on Neural Information Processing Systems. URL: https://openreview.net/forum?id=ul5mlXrLZb.
Fumero, Marco, Clementine Domine, Zorah Lähner, Donato Crisostomi, Luca Moschella, Kimberly Stachenfeld, eds. (2025). Proceedings of UniReps: the Second Edition of the Workshop on Unifying Representations in Neural Models. Vol. 285. Proceedings of Machine Learning Research. PMLR. URL: https://proceedings.mlr.press/v285/.
Khayatan, Pegah, Mustafa Shukor, Jayneel Parekh, Arnaud Dapogny, Matthieu Cord (2025). "Analyzing Finetuning Representation Shift for Multimodal LLMs Steering". In: Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV). arXiv: 2501.03012 [cs.LG].
Klein, Dominik, Giovanni Palla, Marius Lange, Michal Klein, Zoe Piran, Manuel Gander, Laetitia Meng-Papaxanthos, Michael Sterr, Lama Saber, Changying Jing, Aimée Bastidas-Ponce, Perla Cota, Marta Tarquis-Medina, Shrey Parikh, Ilan Gold, Heiko Lickert, Mostafa Bakhti, Mor Nitzan, Marco Cuturi, Fabian J. Theis (2025). "Mapping cells through time and space with moscot". In: Nature 638.8052, pp. 1065–1075. DOI: 10.1038/s41586-024-08453-2.
Moroni, Luca, Giovanni Puccetti, Pere-Lluís Huguet Cabot, Andrei Stefan Bejgu, Alessio Miaschi, Edoardo Barba, Felice Dell'Orletta, Andrea Esuli, Roberto Navigli (Apr. 2025). "Optimizing LLMs for Italian: Reducing Token Fertility and Enhancing Efficiency Through Vocabulary Adaptation". In: Findings of the Association for Computational Linguistics: NAACL 2025. Ed. by Luis Chiruzzo, Alan Ritter, Lu Wang. Albuquerque, New Mexico: Association for Computational Linguistics, pp. 6661–6675. ISBN: 979-8-89176-195-7. DOI: 10.18653/v1/2025.findings-naacl.371. URL: https://aclanthology.org/2025.findings-naacl.371/.
Neo, Clement, Luke Ong, Philip Torr, Mor Geva, David Krueger, Fazl Barez (2025). "Towards Interpreting Visual Information Processing in Vision-Language Models". In: The Thirteenth International Conference on Learning Representations. URL: https://openreview.net/forum?id=chanJGoa7f.
Ricciardi, Antonio Pio, Valentino Maiorca, Luca Moschella, Riccardo Marin, Emanuele Rodolà (2025). Mapping representations in Reinforcement Learning via Semantic Alignment for Zero-Shot Stitching. arXiv: 2503.01881 [cs.LG].
Rodriguez, Pau, Arno Blaas, Michal Klein, Luca Zappella, Nicholas Apostoloff, Marco Cuturi, Xavier Suau (2025). "Controlling Language and Diffusion Models by Transporting Activations". In: The Thirteenth International Conference on Learning Representations. arXiv: 2410.23054. URL: https://openreview.net/forum?id=12zFn6TIQi.
Rodríguez, Pau, Michal Klein, Eleonora Gualdoni, Valentino Maiorca, Arno Blaas, Luca Zappella, Marco Cuturi, Xavier Suau (2025). "LinEAS: End-to-End Learning of Activation Steering with a Distributional Loss". In: The Thirty-ninth Annual Conference on Neural Information Processing Systems. URL: https://openreview.net/forum?id=EBONa3tT3K.
Singhal, Raghav, Zachary Horvitz, Ryan Teehan, Mengye Ren, Zhou Yu, Kathleen McKeown, Rajesh Ranganath (2025). "A General Framework for Inference-time Scaling and Steering of Diffusion Models". In: International Conference on Machine Learning. Vol. 267. arXiv: 2501.06848 [cs.LG].
Smith, Damian, Harvey Mannering, Antonia Marcu (2025). "Functional Alignment Can Mislead: Examining Model Stitching". In: Forty-second International Conference on Machine Learning. URL: https://openreview.net/forum?id=glLqTK9En3.
Thasarathan, Harrish, Julian Forsyth, Thomas Fel, Matthew Kowal, Konstantinos G. Derpanis (2025). "Universal Sparse Autoencoders: Interpretable Cross-Model Concept Alignment". In: Proceedings of the 42nd International Conference on Machine Learning. URL: https://openreview.net/forum?id=UoaxRN88oR.
Fumero, Marco, Clementine Domine, Zorah Lähner, Irene Cannistraci, Bo Zhao, Alex Williams, eds. (2026). Proceedings of UniReps: the Third Edition of the Workshop on Unifying Representations in Neural Models. Vol. 322. Proceedings of Machine Learning Research. PMLR. URL: https://proceedings.mlr.press/v322/.
Gröger, Fabian, Shuo Wen, Maria Brbić (2026). "Revisiting the Platonic Representation Hypothesis: An Aristotelian View". In: International Conference on Machine Learning (ICML). arXiv: 2602.14486 [cs.LG].
Wikimedia Foundation (n.d.). Wikimedia Downloads. URL: https://dumps.wikimedia.org.
List of Abbreviations
AE AutoEncoder 47–49, 51
Amazon Reviews The Amazon Reviews dataset (Keung et al., 2020), a large collection of customer reviews, useful for sentiment analysis and other forms of Natural Language Processing. 40
AO Anchor Optimization 56–58
CCA Canonical Correlation Analysis 12
CIFAR-10 The CIFAR-10 dataset (Krizhevsky, 2009), composed of 60,000 32x32 color images in 10 classes, with 6,000 images per class. 8, 27, 35, 37, 39, 47–50, 55, 56, 103, 104, 113, 116, 117, 124, 125, 127, 128, 136, 137, 141
CIFAR-100 The CIFAR-100 dataset (Krizhevsky, 2009), similar to CIFAR-10 but with 100 classes, providing a more challenging task for image classification models. 37, 39–41, 47–53, 84, 86, 100–104, 112, 113, 116, 117, 126–128, 136, 137
CKA Centered Kernel Alignment 12, 48, 171
CNN Convolutional Neural Network 3, 5, 8, 17, 116
Cora The Cora dataset (Sen et al., 2008), a collection of scientific publications categorized into different classes, used for document classification and citation prediction. 36, 37, 49, 53
CV Computer Vision 58
DBpedia The DBpedia dataset (Auer et al., 2007), derived from Wikipedia, provides a structured form of Wikipedia’s content for various knowledge extraction and semantic search tasks. 39, 40, 48, 49, 53, 113, 114
F-MNIST (Fashion MNIST) The Fashion MNIST dataset (H. Xiao et al., 2017), designed as a more complex alternative to the original MNIST, contains grayscale images of various fashion products. 37, 39, 44, 48, 50, 53, 104, 113, 114, 116, 117, 127, 128
GCN Graph Convolutional Network 49
ImageNet1k The ImageNet1k dataset (J. Deng et al., 2009), a large-scale dataset designed for use in visual object recognition software research. 40, 41, 133, 136–138, 140, 141
Manhattan distance 43, 44, 46, 47, 49–53
LinAE Linear AutoEncoder 47
Chebyshev distance 43, 46–53
List of Abbreviations
LinVAE Linear Variational AutoEncoder 47, 48
LLM Large Language Model 5
MLP Multi-Layer Perceptron 14, 47, 50–52, 80, 131
MNIST The MNIST dataset (LeCun et al., 1998), a classic collection of handwritten digits widely used for training image processing systems. 8, 9, 31, 32, 37, 39, 47, 48, 50, 103, 104, 113, 114, 116, 117, 126–128, 136, 137, 140, 150, 151
N24News The N24News dataset (Z. Wang et al., 2022), a collection of news articles with associated images. 48, 104, 115
NLP Natural Language Processing 55, 58, 114
PCA Principal Component Analysis 8, 9, 11, 80, 81
PWCCA Projection Weighted Canonical Correlation Analysis 12
QKV Query-Key-Value 51–53
RelRep Relative Representations 4, 5, 31, 32, 43, 45, 46, 48, 61–63, 79, 80, 82, 87, 88, 95, 96, 111, 119, 120, 171
RoBERTa (roberta-base) The RoBERTa model (Y. Liu et al., 2019) with a base configuration, an optimized version of BERT that improves language understanding by carefully tuning hyperparameters and training with more data. Available pretrained on Hugging Face. 5
RSA Representational Similarity Analysis 13, 80
SVCCA Singular Value Canonical Correlation Analysis 12
SVHN The SVHN (Street View House Numbers) dataset (Netzer et al., 2011), a real-world image dataset for developing machine learning and object recognition algorithms. 132, 136, 137, 140, 141, 150, 151
TREC The TREC dataset (Hovy et al., 2001; X. Li et al., 2002), designed for research in text retrieval and information extraction, includes a wide range of question types. 39, 40, 48, 49, 53, 103–105, 113, 114
VAE Variational AutoEncoder 8, 47, 48
List of Concepts
Correspondence Semantic relationships between observation spaces that break the symmetry of arbitrary parameterization choices. Formally, a correspondence establishes semantic connections between samples, features, or distributional properties across domains (e.g., shared anchor points in Chapter 4, paired activations in Chapter 11, spectral relationships in Chapter 12). Correspondence serves as the fundamental primitive for representation alignment: it anchors parameterization-dependent coordinates to shared semantic content, revealing the intrinsic functional geometry (semantic relationships the models compute) while factoring out extrinsic parameterization (how those computations are represented). This enables transformation between models with different architectures, training procedures, or initialization seeds. The framework distinguishes two operator families based on how correspondence is used: correspondence-parallel operators (transform spaces independently) and correspondence-coupled operators (use both sides together). See Chapter 3, Section 3.2 for the central role of correspondence in the functional perspective. 3, 5, 19, 20, 95, 96, 119, 143, 158
Correspondence-Coupled Operators that jointly use both sides of correspondence to construct direct transformations between spaces. Unlike correspondence-parallel operators, these transformations require access to both spaces simultaneously: maps from space to space by leveraging information from both sides. Outputs live in the target model's native (extrinsic) coordinates, enabling immediate use with the target decoder without additional projection. These operators trade modularity for decoder compatibility, making them suitable when preserving the target's coordinate system is critical. See Chapter 3, Section 3.3.2 for formal definition and when to prefer coupled over parallel operators. 23, 24, 32, 61, 95, 109, 111, 119, 121, 131, 143, 157, 169
Correspondence-Parallel Operators that transform representation spaces independently using their respective sides of the correspondence . Each space is processed separately using its own transformation: for space and for space . Outputs live in auxiliary semantic coordinates that factor out extrinsic parameterization variations. These operators maximize modularity: one model's transformation does not require access to the other model's parameters or decoder. The independence enables efficient computation and deployment flexibility. See Chapter 3, Section 3.3.1 for formal definition and geometric interpretation. 4, 23, 31, 32, 43, 44, 53, 55, 61–63, 95, 119, 169–171
Cosine Similarity A metric measuring the angular alignment between vectors, computed as the dot product of normalized vectors: . In representation alignment, quantifies how well transformed representations preserve directional relationships. Values range from -1 (opposite directions) to 1 (same direction), with 0 indicating orthogonality. Widely used in neural network
List of Concepts
similarity analysis as it is invariant to vector magnitude, focusing purely on orientation. 58
Decoder The computational pathway from latent representation to output. For a classification network, the decoder is the classification head mapping features to class logits. For a generative model, the decoder reconstructs outputs from latent codes. For a language model, the decoder comprises the later layers that process intermediate representations. See Chapter 3, Section 3.1. 7, 18, 19, 95
Encoder The computational pathway from input to latent representation. For a classification network, the encoder comprises convolutional layers and pooling operations that produce feature representations. For a generative model, the encoder maps inputs to a latent bottleneck. For a language model, the encoder comprises the earlier layers that produce intermediate representations. See Chapter 3, Section 3.1. 7, 18, 19
Extrinsic Factor Determinants of how a function is parameterized by a neural network, affecting the coordinate system but not the underlying functional relationships. Comprises: (1) Architectural choice—CNNs vs. Transformers vs. ResNets, representing different parameterizations of function space with different inductive biases; (2) Architectural details—network depth, width, activation functions, normalization layers, structural choices affecting how functions are represented; (3) Optimization dynamics—initialization seed, learning rate, batch size, optimizer choice, determining which point in parameter space represents the learned function. Universal approximation theorems establish that different architectures can represent similar functions; when task objectives force extraction of semantic structure, different parameterizations converge to functionally similar solutions in incompatible coordinate systems. Correspondence breaks this extrinsic symmetry, enabling transformation between parameterizations. See Chapter 3, Section 3.1 for the role of extrinsic factors in the functional perspective. 3, 17, 20, 31, 44, 49, 95, 96, 109–113
Intrinsic Factor Determinants of what function is learned by a neural network, independent of how that function is parameterized. Primarily comprises: (1) Data D—the semantic relationships, concept organization, and statistical structure present in training samples; (2) Task objective —what semantic structure must be extracted to succeed (e.g., discriminative objectives that force models to learn rich semantic geometry to separate classes). When task objectives demand extraction of semantic structure from data, different parameterizations (even different architectures) tend to converge toward functionally similar solutions that capture this intrinsic structure, though expressed in incompatible coordinate systems. This convergence explains why correspondence-based alignment works: models trained on similar data and tasks learn similar functional relationships. See Chapter 3, Section 3.1 for empirical evidence. 3, 17, 20
Jaccard Similarity A set-based similarity metric measuring the overlap between retrieved nearest-neighbor sets. Computed as the size of the intersection divided by the size of the union of two sets: . In retrieval tasks, quantifies how well the retrieved neighbors match the ground truth neighbors. Values range from 0 (no overlap) to 1 (perfect match). Higher values indicate better retrieval quality. 58
List of Concepts
199
Mean Reciprocal Rank A ranking metric that quantifies the quality of retrieval by averaging the reciprocal rank of the first correct retrieval across queries. Computed as , where the rows of X and of Y are n paired representations and is the position of the true match among the rows of Y ranked by similarity to . Values range from 0 to 1, with higher values indicating that correct results appear earlier in rankings. Emphasizes the importance of top-ranked results. 58, 80, 81
Semantic Coordinate Representations that factor out extrinsic parameterization variations to reveal intrinsic functional structure anchored to semantic content. Achieved through correspondence-based transformations that break the symmetry of arbitrary coordinate system choices. While raw model representations live in extrinsic coordinates determined by architecture, initialization, and optimization trajectory, semantic coordinates expose the underlying semantic relationships the models compute independent of these parameterization choices. For example, relative representations (Chapter 4) transform activations into semantic coordinates by measuring angular relationships to anchor points, making representations directly comparable across models with different architectures. Contrasts with extrinsic/ambient coordinates of native model representations. See Chapter 3, Section 3.3.1 for the functional perspective on why semantic coordinates enable cross-model alignment. 4, 24, 32, 43, 45, 49, 55, 61–63, 69, 95, 96, 109–111
List of Symbols
Anchor set, a subset of observations; on one side. 20
Embedding of one anchor observation , ; is its target-side counterpart, with embedding . 20
Anchor embeddings stacked row-wise, . 20
Dataset, a finite set of observations, . 20
Dimension of ; plain when only one space is involved. 20
Decoder or task head of the model with representation space . 20, see also Decoder
Encoder, . 20, see also Encoder
Whole model with parameters , . 20
Layer of a network with layers; is the layer index. 7
Correspondence between observation spaces. In general relates sets of observations; element-wise, pairs observations. , are its sides; a superscript or prime distinguishes several correspondences (, in Chapter 6; ); is the correspondence lifted to functions by push-forward (Chapter 12). 19, 32, 43, 55, 61, 69, 79, 95, 109, 119, 131, 143, 157, see also Correspondence
K Number of anchors, . 20
Loss; is the task objective. 17
Manifold; in Chapter 12, and . 122
n Number of samples. 20
Observation space, the inputs of a model (images, texts, states, prompts). is the domain of the source model. 20
o An observation, . 20
Π Correspondence-parallel operator family. Applied to a representation: . 23, 32, 43, 55, 61, 79, 95, 109, see also Correspondence-Parallel
R Regularizer. 121
rel Relative projection, ; when the anchor set matters, under a specific similarity. is the relative representation; stacks them. 20
List of Symbols
Σ Correspondence-coupled same-space operator: the coupled operator when source and target space coincide, . 25, 131, 143, 157
sim Similarity between representations; cos when it is the cosine similarity; a family when several are combined. 20
T, R, P, b General linear map, orthogonal map, permutation or coupling matrix, and bias. 20
T Correspondence-coupled operator family, . 23, 95, 109, 119, see also Correspondence-Coupled
A transformation from a class . 20
Representation spaces: source, target and a third space. 20
A representation, ; on the target side. 20
X Representations stacked row-wise, for samples; on the target side. 20