Pulling back towards the manifold
Representational similarity and the identifiable alignment map
Based on the paper
Identifiable alignment of unpaired representations
Technical University of Denmark
Unpaired alignment is having a moment. The task is to translate one model's representations into another's without ever being told which representations belong to the same input. Rosetta, mini-vec2vec and vec2vec do this with impressive success when the two models are a rigid mapA rigid map is a rotation or reflection followed by a shift, so it keeps every Euclidean distance, and no other map does. Rosetta and mini-vec2vec first centre each model's representations and scale them to unit length, and then fit the rotation. apart, and fail or match only coarsely when they are not. The theory has not kept up: the alignment map has no definition, its properties are unknown, and nobody asks whether it can be recovered from unpaired samples at all. What justification there is leans on the Platonic representation hypothesis (PRH), whose meaning is disputed and whose reach is contested (PRH, An Aristotelian View, Back into Plato’s Cave). Stripped down, the PRH says one thing: two models induce similar kernels on the data. That claim has content only once the kernel is specified, and the common choice of the Euclidean inner product in the latent space makes it specific to how the models were built.
Unpaired alignment methods depend on the notion of shared similarity, and we want to align any two models, however they were built. So a similarity that depends on how the models were built is not up to that task. We show that this model-dependent similarity is behind much of the PRH debate and many documented alignment failures. The solution is simple: ground the choice of similarity in the data manifold and pull it back to the latent space. The immediate benefits are an identifiable metric structure that is shared by all models learning the manifold, and a well-defined alignment map that is identifiable for generic data and can be recovered from unpaired samples.
The shared similarity is a modelling choice either way. Pulled back from the data, it is the same for every model. Taken in the latent space, it inherits every choice that shaped that space: architecture, loss, prior and training data.
Our work stays within one modality, where both models see one data-generating process. There, under a precise form of the manifold hypothesis that we call the metric manifold hypothesis, we know exactly what two models should share. That makes it the simplest case in which an account of representational similarity can be checked. Alignment across modalities is geometrically more complicated and contains the single-modality case, so any theory or method has to get the special case right first. In the following we do exactly that.
of 10,000 held-out lung cells matched to themselves, between scVI models that never saw the same cell. Chance is 0.01%.
R@1 between a VampPrior and a Gaussian-prior VAE on FashionMNIST. A rigid map fitted on all the true pairs reaches 0.07.
lung samples, and 9 of 9 image settings, in which NGMA is ahead of every baseline, label-informed ones included.
The metric manifold hypothesis and the alignment map
Since Gauss's Theorema EgregiumGauss proved in 1827 that the curvature of a surface depends only on distances measured within it. The sphere is curved and the plane is not, so no flat map keeps all distances on the globe. Theorema Egregium., we know that every flat map of the Earth distorts distances. In September 2026 the UN General Assembly voted to encourage equal-area maps over the Mercator projection, on which Greenland looks as large as Africa although it is a fraction of Africa's size.The resolution is nonbinding and passed by 164 votes to one. It encourages equal-area projections such as Equal Earth and does not ban Mercator. NPR, Equal Earth projection. Maps keep what their makers care about, as Mercator kept the directions sailors needed, and that changes with the times. Yet changing the map does not change reality, which lives on the globe and not on the paper. Following Hauberg, we take the same view of models. A model is a map of the data manifold, and measuring its latent space with Euclidean distances treats reality as if it lived on the paper.
Our metric manifold hypothesis (H1) makes the globe precise. It states what we already assume whenever we cluster, interpolate or compare representations by distance in the latent space. The data lie near a smooth manifold $\mathcal{M}$ that is connected, so that any two points are joined, and compact, so that distances stay bounded, and the data cover all of it. H2 makes "a model is a map" precise. A model's decoder, or the inverse of its encoder on $\mathcal{M}$, is a smooth one-to-one map $f$ from the latent space onto $\mathcal{M}$ with a smooth inverse, so distinct data points get distinct representations.
H1 and H2 in full
H1 · Metric manifold hypothesis
- The data concentrate near a manifold $\mathcal{M}$ of lower dimension than the observation space, and $\mathcal{M}$ is smooth, compact and connected.
- The noise-free data follow a smooth distribution with positive density everywhere on $\mathcal{M}$.
- The noise is small enough that every observation has a unique nearest point on $\mathcal{M}$, and that point is where the observation came from.
Distances on $\mathcal{M}$ are the lengths of shortest paths along it. With the data distribution on top, $\mathcal{M}$ becomes a metric measure space, in which we can say both how far apart two points are and how much data lies where.
H2 · Model coordinates
A model gives coordinates on $\mathcal{M}$, a smooth, one-to-one map $f$ from a latent space onto $\mathcal{M}$ with a smooth inverse. Either kind of model provides one.
- Decoder. $f = \mathrm{dec}$ on the codes it sends onto $\mathcal{M}$, for a decoder that is one-to-one with a full-rank Jacobian.
- Encoder. $f = (\mathrm{enc}|_{\mathcal{M}})^{-1}$, the inverse of the encoder on the data manifold, for an encoder that is one-to-one on $\mathcal{M}$ with a full-rank Jacobian there.
Two models of the same data are then two maps of one manifold, and aligning them means switching from one map to the other. Take a representation in model a, find the data point it stands for, and look that point up in model b. That is the alignment we are after, and H1 and H2 are exactly what makes each of those steps well defined.
Definition · Alignment map
The alignment map takes a representation in model a to its data point on the manifold, and from there to the representation of the same data point in model b. Since both maps are one-to-one under H2, there is exactly one such map, so we know precisely what we are looking for.
In unpaired alignment we have neither pairs nor the models, so nobody can evaluate this closed form. The map has to be inferred from relative distances and distributions alone. Since $\textcolor{#9085e9}{A}$ only changes coordinates, it keeps latent distances if and only if both models give every pair of data points the same distance. In other words, the two models have to share a similarity measure, and unpaired alignment cannot do without one.
There is much debate about where a shared similarity should come from. The globe comes with one, the distance along its surface, but data unfortunately come with none, so it is a modelling choice. One camp restricts the models until the alignment is a rigid map, the only case in which Euclidean or cosine distances are shared. The other camp chooses a notion of local similarity on the data manifold and pulls it back to the latent space. Neither is fully satisfying. The first is restrictive and need not capture the metric structure of the data manifold. The second, to which this work belongs, makes one subjective choice, and that choice makes all models agree. It also lets us bring in domain knowledge, such as a perceptual distance for images or the Fisher metric of the likelihood for cells, so the similarity can be meaningful and interpretable.
The pullback construction lets us measure in the latent space as if we were on the data manifold, with our chosen notion of local similarity. It does so by giving each step in the latent space the length of the step it makes on $\mathcal{M}$, so the distance between two representations is the distance between their data points, in every model. The shortest curve between two points under this metric is called a geodesic, the latent-space version of a great-circle route between two cities on the globe.
More on the pullback metric and geodesics in generative models: Identifiable latent metric space, our post on the earlier paper, or Søren Hauberg's guide to differential geometry for machine learning.
With the pullback metric, every model measures the same distance along the globe, and the alignment map keeps it. So when we couple the points of two models by matching their distances, the alignment is among the answers, whatever the architecture, loss or training data.
Trained models behave this way. Two VAEs on FashionMNIST, one with a VampPrior and one with a Gaussian prior, give the same 1,500 test images pullback distances that correlate at 0.97 and Euclidean distances that correlate at only 0.61. That difference makes or breaks alignment, as the experiments show.
Visual summary of H1, H2, the alignment map and the pullback construction
A toy example computed in your browser. ℳ is the graph of h(u, v) = 0.31 cos 2.3u − 0.235 cos 2.9v over the unit disc, and the two models are two smooth charts of it.
The alignment map is identifiable for generic data
We have learned that $\textcolor{#9085e9}{A}$ is well defined, that it keeps pullback distances between representations, and that it carries one model's distribution of representations onto the other's. Formally, such a map is an isomorphism of metric measure spaces. Unpaired alignment usually proceeds in two steps: first we find a coupling, a stand-in for the missing pairs, by solving a variant of the Gromov–Wasserstein problem, and then we fit a map to that coupling. We would like to know when this procedure gives us $\textcolor{#9085e9}{A}$ rather than something else. The first question is whether $\textcolor{#9085e9}{A}$ is the only isomorphism, because if another map keeps distances and carries the distribution just as well, its coupling is an equally good solution.
The obstacles are symmetries of the data, maps $S$ of the manifold onto itself that keep both the distances and the distribution. Each one gives another isomorphism, $f_b^{-1} \circ S \circ f_a$, which sends points to the wrong partners.
If the data have such symmetries, the alignment map is not identifiable, and no method that sees only independent samples can tell it apart from these other isomorphisms. Such symmetries are fragile, though. We show that on any data manifold, the only such $S$ for a genericA property is generic if an arbitrarily small change can make it hold and no small change can break it. An example is invertibility of square matrices, where a small change of the entries makes a singular matrix invertible and keeps an invertible one invertible. Formally, it holds on an open and dense set. data distribution is the identity, so an arbitrarily small change of the density breaks every symmetry.
C1 · Symmetry breaking
The identity is the only symmetry of the data. No other map of the data manifold onto itself keeps both the distances and the distribution of the data.
Proposition 3.2. On any data manifold, the densities that satisfy C1 form an open and dense set, so C1 holds generically.
Conversely, every isomorphism other than the alignment comes from a symmetry, so under C1 the alignment is the only one (Proposition 3.1).
The alignment map $\textcolor{#9085e9}{A}$ is identifiable if and only if the data distribution breaks every symmetry of the data manifold.
If we visit the Euclidean camp with this in mind, we see that some modelling choices do the opposite and build the symmetry back in. Contrastive losses push representations towards the uniform distribution on a sphere, and LeJEPA and Gaussian-prior VAEs push them towards a standard Gaussian. Every rotation preserves both, so with Euclidean distances every rotated alignment fits just as well as $\textcolor{#9085e9}{A}$. Methods such as mini-vec2vec and Rosetta counteract this by first matching k-means cluster centres across the two spaces and then fitting a rotation. This only works as far as the modelling choices keep the two representations a rotation apart, and clustered despite the pull towards uniformity.
In contrast, the pullback camp only has to model the data manifold as well as possible. The only symmetries it can run into are those of the data, and generic data have none.
To see how little it takes, try the panel below. Add bumps to the sphere one at a time until only the true alignment is left, or make the density on the curved disc uneven and watch the wrong alignments stop fitting.
Symmetry breaking in action
The bumps are those of the paper's mixture Pmix (κ = 8, 12, 16; weights 0.42, 0.33, 0.25). Every rotation and reflection keeps distances on the sphere, so only the distribution tells maps apart. Mismatch is the L2 distance between model b's density and model a's density carried by the map, relative to its largest value.
The surface of chapter 01. Its three symmetries are two mirrors, S1 and S2, and a half turn, S3.
Recovering the alignment from unpaired samples
Identifiability tells us there is exactly one answer. It does not tell us how to find it. Without pairs, a match is a coupling, the stand-in for the missing pairs from chapter 02, and the true match is the alignment coupling, which pairs every representation with its image under $\textcolor{#9085e9}{A}$.
The alignment coupling in full
Definition · Alignment coupling
A coupling is a joint distribution of representations in model a and model b. The alignment coupling draws a representation from model a's distribution $P_a$ and pairs it with its image under $\textcolor{#9085e9}{A}$, so all of its mass lies on the graph of $\textcolor{#9085e9}{A}$.
Gromov–Wasserstein (GW) looks for the coupling that distorts distances least, and under C1 the alignment coupling is the only one that does (Proposition 4.1).
In practice we only have samples. If both models encode the same points in shuffled order, the true pairing is the unique optimum, even without C1 (Proposition 4.4). If the samples are independent, no pairing is exact, and we only have consistency. Under C1 the global optima converge to the alignment coupling as the number of samples grows. A map fitted to that coupling then converges to $\textcolor{#9085e9}{A}$, as long as $\textcolor{#9085e9}{A}$ is among the maps we fit. We do not know how fast either converges.
Under C1, the alignment coupling is the only minimiser of Gromov–Wasserstein, and from independent samples the minimisers converge to it as the samples grow.
The catch is that GW is non-convex, and solvers can stop at a pairing that is not the best one. So we start somewhere easier. The LDD-LP matches points by their local distance distributionsA point's local distance distribution summarises all of its distances to the rest of the data as one signature, the share of the data within each radius around it. Comparing these signatures instead of the distances themselves gives the third lower bound on GW of Mémoli (2011)., the share of the data within each radius around them. It is a linear program, so solvers find its optimum, but it sees less than GW. Each distribution collapses a point's distances to all others into one curve, so two points with the same curve can be swapped at no cost. The LDD-LP therefore recovers the alignment coupling only when almost every point has a distribution that no other point shares, a stronger condition than C1 (C2 in the paper).
So GW has the resolution and the LDD-LP has the convexity, and neither has both. To test the theory, we combine them in one procedure, Neural Gromov–Monge Alignment (NGMA). It is one way to put the theory to work, not the only one. It starts from the LDD-LP solution and shifts the weight step by step to GW. That way it reaches a stationary point of GW from a good start. Solvers usually begin from the pairing of everything with everything instead. Finally, NGMA fits two networks to the coupling, one for $\textcolor{#9085e9}{A}$ and one for its inverse. It trains them to keep the pullback metric, to follow the coupling and to invert each other. Outside the Euclidean camp the true map need not be a rigid map. So we only initialise each network at the rotation and shift that best follow the coupling, and training bends it from there.
The optimal transport problems: GW, the LDD-LP and their combination
All three problems search over the couplings $\Pi(P_a, P_b)$, the joint distributions of representations whose marginals are the two models' distributions $P_a$ and $P_b$.
Gromov–Wasserstein
The distortion of all pairwise distances under the coupling (Mémoli, 2011). Under C1 its only minimiser is the alignment coupling $\eta^\star$ (Proposition 4.1), but the problem is non-convex.
LDD-LP
$\Phi_a(z, r)$ is the share of model a's representations within distance $r$ of $z$, and the cost compares two such distributions by the squared $L^2$ distance between their quantile functions. The problem is linear in $\eta$, so every stationary point is a global optimum, and under C2 its only minimiser is $\eta^\star$ (Proposition 4.2).
The combined objective
The LDD-LP takes the place of the feature term in fused GW. Both terms are nonnegative and vanish at $\eta^\star$, so under C1 it is the unique minimiser for every $\beta < 1$, and under C2 also for $\beta = 1$. NGMA lowers $\beta$ from 1 to 0, which keeps the minimiser in place while the problem turns from convex to non-convex. We do not prove that this path ends at $\eta^\star$.
The panel below shows GW and the LDD-LP on the curved disc. Watch GW recover a shuffled pairing, switch the distances to Euclidean and compare, and see how one point's local distance distribution lines up with its partner's in the other model.
Recovery from samples and local distance distributions
The surface of chapter 01. Both models encode the same 40 points in shuffled order, the case in which recovery is exact. With the symmetric density they are 10 points and their images under the three symmetries. GW is solved by entropic steps with ε lowered from 0.08 to 0.003.
Experiments
Chapters 01 to 03 make three predictions we can check on trained models. First, the two camps should part ways when only the distance changes. Second, models trained on different data should still align. Third, recovery should break where the data come close to a symmetry. We score every method by R@1, the share of test points whose own partner in the other model is ranked first. A sanity check comes first. When both models encode the same images in shuffled order, chapter 03 promises exact recovery. NGMA reaches R@1 of 0.990–0.999 in every MNIST and FashionMNIST setting. Every test below is harder, since the two samples share no image.
Pullback against Euclidean distances
R@1 of NGMA with pullback distances, on the FashionMNIST pair from chapter 01
the same method with Euclidean distances in the coupling and the map
a rigid map fitted on all the true pairs
Here the two camps meet with the same method. Chapter 01 says the alignment map keeps pullback distances. It keeps Euclidean ones only when the two models are a rigid map apart, and across priors $\textcolor{#9085e9}{A}$ is far from one. MNIST shows the same pattern. The gap shrinks when both models share a prior, because their latent spaces are then closer to a rigid map of each other.
The same split shows before any map is fitted. Given the same test images, two models share far more of each image's nearest neighbours under pullback distances than under Euclidean ones.
Mutual 10-nearest-neighbour agreement, mean over model pairings on 6,000 validation images per pairing for MNIST and FashionMNIST and 15,000 for CelebA. Latent dimension 16, and 32 on CelebA. Pullback: lengths of straight segments under the expected metric of an ensemble of eight decoders. Centring and normalising the codes, as Rosetta does before its rotation, changes the Euclidean values by at most 0.02. Low Euclidean agreement does not mean a rotation fails: on CelebA cross-prior, a rigid map fitted on the true pairs still retrieves 0.990 of the test faces.
Against the baselines, NGMA leads in all nine image settings. Chapter 06 explains why rotation-based methods fall behind.
All image results against the baselines
| Data | Prior | NGMA | Best unpaired | Best with labels | Rigid map, true pairs |
|---|---|---|---|---|---|
| MNIST | Gaussian | 0.967 | 0.941 | 0.525 | 0.955 |
| VampPrior | 0.989 | 0.930 | 0.552 | 0.936 | |
| cross-prior | 0.955 | 0.571 | 0.319 | 0.512 | |
| FashionMNIST | Gaussian | 0.719 | 0.710 | 0.159 | 0.782 |
| VampPrior | 0.979 | 0.656 | 0.355 | 0.747 | |
| cross-prior | 0.871 | 0.065 | 0.098 | 0.071 | |
| CelebA | Gaussian | 0.804 12/15 | 0.567 8/15 | 0.445 | 0.993 |
| VampPrior | 0.818 8/10 | 0.616 7/10 | 0.387 | 0.995 | |
| cross-prior | 0.818 8/10 | 0.757 8/10 | 0.220 | 0.990 |
R@1 among 10,000 held-out test images (19,962 on CelebA) between VAEs aligned on samples that share no image, mean over model pairings and draws. Baselines without pairs: Rosetta, mini-vec2vec, GENOT-Q, LFM; with labels: RelReps, RelGeo. On CelebA, small numbers count draws reaching R@1 of 0.3; the others end in the mirror alignment.
Different training data, one data-generating process
of 10,000 held-out lung cells get their true partner ranked first, without pairs
chance, one cell in 10,000
cells matched to a cell of their own type
H1 and H2 only ask the two models to see the same data-generating process. They do not ask for the same training points, so two models trained on different data should still align. Our lung models are scVI models trained on disjoint sets of Tabula Sapiens lung cells. They share nothing but the tissue. Here, too, $\textcolor{#9085e9}{A}$ is not a rigid map. One fitted on the true pairs stays far below a flexible map fitted on them. With Euclidean distances NGMA fails on most draws. With the pullback metric of a single decoder in place of the ensemble, it is lower on 17 of 18 draws.
In the diagram, model a's representations are on the left and model b's on the right. Each point travels to where the method matches it. A point that lands in a region of its own colour was matched to its own type. Hover a point to follow it.
Where each point is matched, on lung cells and FashionMNIST
t-SNE of each model's codes for the 10,000 held-out points, with model a's turned to face model b's using NGMA's matches. Each curve ends at the point's match. Rosetta was rerun with the paper's settings (R@1 11.9% on the lung cells, 12.6% in the paper; 5.1% on FashionMNIST in both).
Failure where the theory expects it
CelebA draws in which NGMA finds the true alignment
R@1 of the failed draws, scored against the mirrored faces
a rigid map fitted on the true pairs
Chapter 02 also tells us where recovery should break. If the data come close to a symmetry, a wrong alignment keeps the distances and nearly keeps the distribution. Without pairs, it is almost indistinguishable from the true one. Faces come close, because a left-right flip nearly preserves their distribution. Every failed draw lands on the mirror alignment, which sends each face to its mirror image, and almost never finds the true face. A rigid map fitted on the true pairs does nearly perfectly, so the geometry is fine, and the search is what fails.
Limitations
Our guarantees have two gaps, both for independent samples. First, they hold at the global optimum of the matching problem. GW is non-convex, so a solver can stop at a coupling that is not the best one, and close to a symmetry a wrong coupling scores almost as well as the right one. On CelebA, seven of our 35 draws end on the mirror alignment of chapter 04, and their objective values overlap with those of the successful draws, so without pairs we cannot tell which draws failed.
Second, even at the global optimum, recovery is only consistent. With independent samples, no point of one sample is the image of a point of the other, so no matching of the two samples is exactly right. What we prove is that the optimal coupling, and a map fitted to it, converge to the alignment as the samples grow. We have no rate for this convergence, so we cannot say how many samples a given accuracy needs.
Pullback distances need each model's decoder. Each owner computes its own distance matrix, so the decoder never leaves it, but a model without a decoder needs one trained for it first.
The theory is the main contribution of the paper. NGMA is one way to put it to work, and we do not claim it is the best one. Our experiments also use latent spaces of the same dimension. The theory does not need that, since each model only has to contain a chart of the manifold, but NGMA maps between spaces of equal dimension and would need changes to map a chart in one space into a space of another dimension.
PRH debate, other alignment methods and conclusion
The Platonic representation hypothesis sees two models only through their kernels, so what it claims depends entirely on which kernel we pick. Take the split Gröger et al. draw between local and global agreement. A geometry that measures the same way everywhere, like an inner product, can make two maps of one manifold agree on neighbours and disagree on distances. A geometry that changes from point to point, like the pullback metric, makes them agree on both. The PRH in its most general form allows either.
The evidence for and against the PRH is almost always measured with inner products of the representations, as cosine on normalised features. That is also the one kernel the PRH's formal argument covers, through contrastive losses and the pointwise mutual information kernel. So the debate measures every model with a kernel that only contrastive and JEPA models are trained to share, and only when their positives match. The same cosine then means different things in different models. In a contrastive encoder a small distance means two observations often co-occur, in a VAE it means whatever the chart and prior made it, and in neither does it measure length along the data manifold. Comparing the two is comparing apples with oranges.
Still, apples and oranges share the same overall shape. A VAE's chart keeps nearby points nearby, and things close on the manifold often co-occur, so at a coarse level the two similarities agree. That is why measurements keep finding shared clusters and categories. They part ways within a category, which is exactly where a pointwise alignment needs them to agree.
What the PRH claims depends on the kernel. The inner product it is tested with is shared only by models trained to share it, so it finds agreement on clusters and categories, not the pointwise agreement an alignment needs.
Methods such as mini-vec2vec and Rosetta take their justification from the PRH, and they are built for the case where cosine similarity is meaningful. They work when the two models really are a rotation apart, as two contrastive encoders with matching positives roughly are. When the latent geometry is not spherical and a rotation is the wrong kind of map, they keep the coarse match their cluster-centre start relies on and lose the resolution a pointwise alignment needs. On our two FashionMNIST VAEs with different priors, Rosetta retrieves 0.065 of the test images, about what a rigid map fitted on all the true pairs reaches (0.071).
Rosetta step by step compared to NGMA
Each model is drawn in the top two principal axes of its own normalised codes, the same in every step. The distance plots use the same 1,500 test images in both models.
None of this is an argument against cosine similarity or contrastive methods. Inner products of normalised embeddings sit under much of modern AI, from retrieval to CLIP, and aligning spherical geometries looks useful even without guarantees. Our point is twofold. First, a claim about all models cannot rest on a kernel that only one kind of training makes meaningful. Second, in much of science and medicine, learning the data manifold is the goal itself. There, the maps are of something we do not yet understand, and the alignment is part of the discovery. A finding marked on one map is only useful if we can find it on the other, and an alignment that gets only the coarse shape right puts it in a nearby but wrong place. Without pairs, nothing in the result warns us, so the guarantee has to come from the geometry.
Just as Gauss showed that a curved surface cannot be faithfully represented by a flat space, our work in this paper and the one before it shows that representational similarity and identifiable alignment need a geometry that is grounded in the data. This comes at a cost, since the pullback construction is feasible but not free. However, the payoff is a similarity that every model of the data shares and an alignment that can be recovered without pairs. General statements and guarantees based on Euclidean notions of similarity are a dead end.
Cite
We hope you liked the story. The full paper has the proofs and experiments behind it, and we encourage you to read it.
@inproceedings{syrota2026identifiable,
title = {Identifiable alignment of unpaired representations},
author = {Syrota, Stas and Lopez i Serrano, Albert and Franck, Johanne and Hauberg, S{\o}ren},
booktitle = {Advances in Neural Information Processing Systems},
year = {2026}
}