Manuscript Offprint
arXiv:2610.12781Representation Alignment from a Few Paired Data via Distilled Optimal Transport
Abstract
Aligning two independently pretrained unimodal encoders typically demands millions of paired examples. In this paper, we study the regime where only pairs are available, while unpaired data on either side is abundant. Our method expresses every representation by its similarities to the N paired anchors, which places both modalities in a common coordinate system; matches the two point clouds with a single entropic optimal transport problem solved over the entire pool, whose marginal constraints counteract the hubness that defeats nearest-neighbor matching; and distills the resulting plan into two lightweight encoders, so that the correspondence becomes inductive. We additionally put this marginal constraint in relation with the one-step hub corrections of the bilingual lexicon induction literature. Pairing is required only for the anchors: the unpaired collections may be drawn independently from the two marginals, so that no item outside the anchor set needs to have both of its modalities observed. We evaluate on image-text and molecule-text alignment, where our method outperforms existing approaches at the same anchor budget on Flickr30k, MS-COCO and ChEBI-20.
1 Introduction
Vision-language models such as CLIP [Radford et al., 2021] learn a shared cross-modal space from hundreds of millions of paired examples. However, such paired multimodal data is scarce, requiring costly manual annotation or specialized paired measurements. In contrast, unimodal data can be abundant, and strong unimodal encoders are readily available off the shelf [Caron et al., 2021, Reimers and Gurevych, 2019, Ross et al., 2022]. Leveraging these encoders for multimodal tasks requires aligning their embedding space, a fundamental challenge: trained independently, on different objectives and data distributions, their spaces differ in dimension, scale, and geometry, with no known mapping between them. In this work, we investigate the extreme low-resource regime: aligning two pre-trained unimodal encoders using only a few hundred paired examples ( ).
Prior approaches to low-resource cross-modal alignment fall into three categories. 1) Anchor-relative methods express each representation as its vector of similarities to a set of anchors, i.e. paired multimodal representations, casting both modalities into a shared coordinate system. Moschella et al. [2022] introduced this approach for a single modality, and ASIF [Norelli et al., 2023] extended across modalities. However, these non-parametric methods require very large anchor collections, e.g. anchors for ASIF. Moreover, inference is costly since the large anchor set must be stored to compute the anchor-relative coordinates. 2) Graph-based methods such as SUE [Yacobi et al., 2025] embed each modality independently through the spectrum of its neighborhood graph, whose edges are weighted by intra-modal distances, and use the anchors only to provide the initial linear alignment. While SUE operates at a low anchor budget ( ), it assumes that independently trained unimodal encoders converge toward latent spaces with comparable local geometry, a local form of the Platonic Representation Hypothesis [Huh et al., 2024]. This assumption is strong: cross-modal representations agree locally on which points are close, but not on local distances [Gröger et al., 2026]. 3) Recently, SOTAlign [Roschmann et al., 2026] also performs a linear alignment using the anchors and uses it as a teacher, regularizing a student on unpaired batches with an optimal-transport divergence derived from the linear alignment. Since this regularization enforces consistency with the teacher, SOTAlign inherits the limits of the linear alignment.
To overcome these limitations, we introduce AnchorDOT, a three-stage alignment framework (Figure 1) that combines (i) the expressiveness of anchor-relative coordinates with (ii) the global matching guarantees of optimal transport (OT) and (iii) the inference efficiency of parametric distillation. First, we project unpaired collections from both modalities into a common anchor-relative coordinate space. Next, rather than performing nearest-neighbor matching, which suffers from the hubness problem in which a small number of embeddings are the nearest neighbors of many queries [Radovanović et al., 2010, Dinu et al., 2014], we formulate cross-modal alignment as a global entropic optimal transport problem over the unpaired pool. The transport problem's marginal constraints determine the total mass each point receives, avoiding hubs. Finally, because the optimal transport plan is transductive and defined only on the unpaired pool, we distill the computed assignment plan into two compact, modality-specific student encoders. At inference time, new queries are embedded in a single forward pass, with no dependence on stored memory banks.
Our contributions can be summarized as follows: (i) we align two frozen unimodal encoders from paired anchors and distill the resulting transport plan into inductive encoders that require no reference collection at inference; (ii) we show that pairing is needed only for the anchors, i.e. the two unpaired collections may be sampled independently from their marginals, with no latent pairing in the pool; and (iii) holding the anchor-relative cost fixed, we show that enforcing both transport marginals leads to more accurate and significantly less hub-dominated correspondences than nearest neighbor and the one-step corrections used in retrieval.
STEP 1
STEP 2
STEP 3

Figure 1: Overview of AnchorDOT. Step 1: modality-specific representations are expressed by their similarity profile to a small set of shared anchors, embedding them in a common anchor-relative coordinate space. Step 2: an entropic optimal transport coupling is solved between the two anchor-relative embedding spaces, recovering a soft cross-modal correspondence between points. Step 3: this coupling is used as a pseudo-pairing signal to train two lightweight encoders and , via contrastive learning directly on the original pretrained embeddings, distilling the transport plan into a shared aligned space that requires no anchors and no optimal transport at inference time.
methods work with a few hundred anchors within a single modality, but have so far relied on far more paired data across modalities.
Alignment with little or no supervision. SUE [Yacobi et al., 2025] works at a comparable pair budget to ours but along a different axis: it computes a spectral embedding of each modality's random-walk graph independently, uses the pairs only to fit a linear alignment between the two spectral embeddings via Canonical Correlation Analysis (CCA), and refines with an MMD residual network. Its premise is that the two point clouds carry similar intra-domain structure, so the pairs are asked only to fix an ambiguity between two spaces that already correspond; where that structural correspondence is weak, little supervision remains to recover it. CSA [Li et al., 2025] applies CCA directly to the paired unimodal features and compares items by a cosine weighted by the canonical correlations. It trains no network, but fits on the pairs alone, leaves the unpaired data unused, and is validated with thousands of pairs (5k on Flickr30k), an order of magnitude above our budget. SOTAlign [Roschmann et al., 2026] fits a linear teacher on the same few pairs and regularizes a student network toward it on unpaired batches via an OT-based divergence. SOTAlign thus refines an existing alignment rather than discovering one, unlike ours. Gholamzadeh and Sajid [2025] build a cross-modal cost from intra-modal distances routed through the known pairs, an inter-modal bridge cost, which consults the anchors only through a per-pair minimum and so discards the profile of similarities to all anchors. At tens of thousands of pairs, two to nearly three orders of magnitude above the budget we target, STRUCTURE [Gröger et al., 2025] aligns frozen encoders by regularizing towards each encoder's neighborhood geometry, using intra-modal structure as a penalty rather than to build the cost. With no pairs at all, Gromov-Wasserstein alignment [Alvarez-Melis and Jaakkola, 2018] matches points by comparing intra-domain distances, MUSE [Conneau et al., 2017] aligns adversarially, and Wasserstein Procrustes [Grave et al., 2019] jointly estimates an orthogonal and a permutation matrix initialized by a convex relaxation. Its dictionary-seeded counterpart is the offline setting of Smith et al. [2017]. All of these were developed and validated on two instances of the same modality (word embedding spaces of different languages). Gromov-Wasserstein does not require a shared dimension, but it matches on intra-domain geometry alone.
Optimal transport as a distillation target. Using a Sinkhorn coupling as soft supervision for a network has already been proposed. OTTER [Wu et al., 2021] computes an entropic plan within each batch of noisy web-collected image-text pairs and distils it as soft labels for contrastive pre-training. SwAV [Caron et al., 2020] enforces a Sinkhorn equipartition on cluster assignments within each batch, using the code of one augmented view to supervise the prediction from the other. S-CLIP [Mo et al., 2023] transports unpaired images onto a few captioned images to build soft caption targets for CLIP. In each case, the similarity is available by construction: OTTER's teacher encoders are trained on paired data, SwAV compares two augmentations of a single image, and S-CLIP compares images with images in a pretrained CLIP space. Between independently trained unimodal encoders no such similarity exists, and the anchor-relative coordinates supply it.
Hubness. In high dimension, a few points, the hubs, are the nearest neighbors of many others [Radovanović et al., 2010]. The usual corrections are one-step rescalings of the similarity matrix, applied at retrieval time [Smith et al., 2017, Conneau et al., 2017, Bogolin et al., 2022]. Enforcing transport marginals instead constrains all assignments jointly. Section 3.3 relates the two.
3 Method
3.1 Problem setup and notation
Let and denote representations obtained from two pre-trained, modality-specific encoders, and let denote their joint distribution, with marginals and . Our supervision is a set of paired anchors drawn from the joint distribution,
Beyond the anchors we assume access to two unpaired collections drawn independently from the two marginals,
with . The two collections may differ in size and require no hidden pairing. Ground-truth correspondence is therefore limited to the N anchors.
No map between and is given. The three steps below construct one: first a common coordinate system, then a correspondence within it, then an inductive model of that correspondence. Algorithm 1 presents the complete procedure.
3.2 Anchor-relative coordinate space
A point’s absolute coordinates carry no meaning across modality-specific encoders. However, its similarity profile relative to a paired anchor set provides a modality-agnostic representation on a unified scale. We therefore express all cross-modal quantities through these anchors.
Definition 1 (Relative representation). For a similarity sim on and an ordered anchor set , the relative representation of is
Applied to each modality over the anchor sets and :
Since and form a multimodal anchor pair, coordinate of and coordinate of measure similarity to the same concept. The two vectors are therefore directly comparable coordinate by coordinate, regardless of the dimensionality, scale, or geometry of the underlying encoders, and all subsequent cross-modal computations take place in .
Anchor-orthonormalized similarity. With unit-normalized embeddings and cosine similarity, coordinate of the profile is the projection of onto anchor : , where stacks the anchors as rows. Since the anchors are sampled from the data, many of them are expected to be along the same dominant directions, with the profile counting them several times. Formally, with , instead of : directions along which many anchors lie are amplified relative to the others, and, for large , this squares the spectrum of the embedding covariance (Appendix B.1). We therefore compensate for within each modality, to a degree set by :
Coordinate remains the similarity to anchor . Setting recovers plain cosine similarity. At , when is invertible, is an exact isometric embedding of for every , an orthonormalization (Löwdin) of the anchor matrix itself rather than of the embedding covariance (Appendix B.1). At , the profile instead compensates twice, which whitens the embedding covariance and makes the comparison equivalent to an unregularized canonical correlation across modalities. Larger relies more heavily on directions poorly estimated from only anchors. Small eigenvalues of are clipped for numerical stability, and is treated in the same way with its own . We select with the procedure of Appendix D and use for the remainder of this work.
Placing the two modalities in one space makes them comparable, but does not say which unpaired corresponds to a given unpaired . That assignment is the matching problem of the next section, and the obvious rule for it, nearest neighbor, as used by ASIF's retrieval rule and by RELIT's pair-mining step [Norelli et al., 2023, Chen et al., 2023], typically fails due to hubness.
3.3 Global entropic optimal transport in the anchor-relative space
Once both modalities are expressed in the common anchor-relative space , cross-modal alignment reduces to a matching problem between two point clouds. Let and denote the anchor-relative representations of the unpaired points of Equation 2, and define the cross-modal cost
where k is a similarity on , such as cosine similarity. It acts on anchor-relative representations and is therefore distinct from the sim of Section 3.2, which acts on modality-specific representations. We then solve a single entropy-regularized optimal transport problem over the entire unpaired pool,
where is the entropy [Peyré and Cuturi, 2019], the regularization strength, and the uniform marginals on the two sides.
Why a global problem. Training-free retrieval methods compare each item against the reference collection [Norelli et al., 2023]. Since nearest-neighbor matching in high dimension is dominated by hubs, a few points are typically matched with many queries [Radovanović et al., 2010]. Equation 7 couples all assignments instead: its marginal constraints fix the total mass each point receives, such that every receives exactly . Existing methods used to mitigate hubness in retrieval can be related to optimal transport. The inverted softmax [Smith et al., 2017] is the first half-step of Sinkhorn's algorithm and normalizes a single marginal [Pan et al., 2025]. CSLS [Conneau et al., 2017] instead subtracts a fixed penalty on each side, the average similarity to each point's nearest neighbors (Appendix B.2). Our coupling is thus a converged solution to these methods.
Solving Equation 7 at collection scale. Since the entropic solution factorizes as , it is fully determined by the dual potentials , which occupy memory even when does not. We thus compute block-by-block on demand and never materialize it [Ye et al., 2026]. The exact global coupling is therefore attainable for large pool sizes, and the problem stays rectangular, with independent marginals and no assumption that the two collections share an indexing, as Equation 2 requires.
3.4 From a transductive coupling to inductive encoders via distillation
The coupling is transductive: it is defined only over the points jointly considered when it was solved, so it cannot score an unseen point without re-solving Equation 7 against a reference collection. We therefore train two lightweight, modality-specific encoders,
mapping raw (not relative) embeddings into a shared -dimensional space, so that at inference time a new modality-specific representation can be embedded with a single forward pass through or , with no dependence on the anchor set or on any reference collection.
Training in chunks. The encoders are trained contrastively, so each point must be scored against a set of candidates, and the pool is too large for one softmax over all of it. We therefore draw chunks , with and indexed independently and , and take one gradient step per chunk. The transport itself is not chunked. Because the potentials determine everywhere, the block a chunk needs is available in closed form,
requiring no further Sinkhorn iterations. Each chunk is therefore supervised by an exact restriction of the global plan, and the chunking is confined to the gradient estimate.
Soft-target distillation. Each point of the chunk is supervised by its own row or column of the restricted plan, normalized within the chunk. Define the row- and column-normalized plans
which redistribute, for each (respectively each ), the transport mass it receives over the candidates present in the chunk. A point that is ambiguous or poorly covered by the anchors simply yields a more diffuse target distribution rather than a degenerate one; every point of the chunk is both a source of supervision and a candidate for every other point's softmax.
Algorithm 1: Representation alignment from a few paired examples via distilled OT
Require: Unlabeled pools (drawn independently, Eq. 2); paired anchor set ; chunk size ; similarity sim; regularization
1: Compute relative representations for all unpaired points, using Sec. 3.2
2: Solve the global entropic OT problem over the full pool by streaming in tiles, obtaining the dual potentials Sec. 3.3, Eq. 7
3: Initialize encoders
4: while not converged do
5: Draw the next chunk of size , or the anchor chunk with Sec. 3.4
6: Recover the exact block , in closed form from Eq. 9
7: Compute distillation loss Eq. 11–12
8: Update by gradient descent
9: end while
10: return inductive encoders
Direction-asymmetric distillation loss. We minimize a soft-target contrastive loss in each direction separately, using the full chunk both as the set of supervised points and as the candidate pool against which the softmax is computed:
with a learned inverse-temperature scalar clamped to , following CLIP [Radford et al., 2021], and total objective . The anchor set enters as one further chunk with , so the known pairs also supervise the encoders directly as one-hot targets, recovering a standard InfoNCE loss on this chunk. Appendix A gives the training schedule and Appendix C reports further ablations.
4 Experiments
In this section, we evaluate our method across a diverse set of experiments. We benchmark cross-modal retrieval against established baselines on two structurally different modality pairs, including image-text and molecule-text, at low anchor budget ( ). We isolate the contribution of the marginal constraint by comparing it against one-step hubness corrections from the bilingual lexicon induction literature, and we test whether our method needs a hidden pairing in the unpaired pool.
Image-text. Following the experimental setting of Yacobi et al. [2025], we use Flickr30k [Young et al., 2014] and MS-COCO [Lin et al., 2014] image-caption pairs. Image embeddings are extracted with a frozen DINOv2 ViT-S/14 backbone [Caron et al., 2021]. Caption embeddings are extracted with a frozen SBERT model, all-MiniLM-L6-v2 [Reimers and Gurevych, 2019].
Molecule-text. We additionally use ChEBI-20 [Edwards et al., 2021], a dataset of molecule-description pairs combining PubChem compounds with ChEBI textual annotations. Molecule embeddings are extracted
Table 1: Cross-modal retrieval at anchors, recall@ (%). All baselines are re-run under our protocol, with the same frozen backbones, anchors and test split, averaged over five seeds. Our re-run of SUE exceeds its published Flickr30k results at this budget (I2T R@1 7.80 vs. 4.25).
| Flickr30k | MS-COCO | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Image → Text | Text → Image | Image → Text | Text → Image | |||||||||
| Method | R@1 | R@5 | R@10 | R@1 | R@5 | R@10 | R@1 | R@5 | R@10 | R@1 | R@5 | R@10 |
| Contrastive | 22.05 | 49.10 | 60.45 | 22.30 | 48.05 | 59.60 | 14.60 | 40.65 | 54.95 | 15.00 | 40.55 | 54.30 |
| ASIF | 10.35 | 29.10 | 42.45 | 9.55 | 29.80 | 43.05 | 15.15 | 48.65 | 69.95 | 14.20 | 48.80 | 69.70 |
| CSA | 0.90 | 3.15 | 5.60 | 0.95 | 3.55 | 6.10 | 1.30 | 5.55 | 9.40 | 1.35 | 5.70 | 8.95 |
| SUE | 7.80 | 24.50 | 37.50 | 7.35 | 26.80 | 38.05 | 9.90 | 36.60 | 55.80 | 9.10 | 37.25 | 56.35 |
| SOTAlign | 35.60 | 65.00 | 76.20 | 35.20 | 65.10 | 75.55 | 30.50 | 70.10 | 84.50 | 30.90 | 69.70 | 84.50 |
| Ours | 36.55 | 67.90 | 79.25 | 36.05 | 68.10 | 79.40 | 29.05 | 71.05 | 85.35 | 30.30 | 70.95 | 86.45 |
with a frozen MoLFormer-XL [Ross et al., 2022] encoder. Description embeddings are extracted with the same frozen SBERT model used for the image-text experiments, so that the text-side encoder is held fixed across modality pairs.
General protocol. In every setting, all backbone encoders are frozen and embeddings are precomputed once. Only the lightweight encoders of Section 3.4 are trained. The architecture of the encoders is kept identical to the ones used by SOTAlign (a single LayerNorm with a Linear projection layer). We sample paired anchors (Section 3.2) and hold out a test split never used during OT coupling or distillation. Unless otherwise noted, we use a pool of items split into disjoint image-only and caption-only halves, and a held-out test set of 400 pairs, following SUE's protocol on Flickr30k. This test set is smaller than the standard Flickr30k 1K and MS-COCO 5K test sets, so our numbers are not comparable to the CLIP-era retrieval literature. We report recall@ in both retrieval directions for on the held-out split, using nearest-neighbor search between and .
Retrieval performance. All competing methods are tested under our protocol, with the same backbones, anchors, unpaired pool ( items on MS-COCO) and test split. Three use the anchors only: ASIF [Norelli et al., 2023], CSA [Li et al., 2025], and a contrastive baseline, i.e. our encoders and loss trained on the anchor chunk alone, which isolates the contribution of the coupling. SUE [Yacobi et al., 2025] and SOTAlign [Roschmann et al., 2026] also use the unpaired pool, whose image and text parts are disjoint. On image-text (Table 1), our method is best in 10 of 12 columns, and SOTAlign and ours hold the top two positions in every column. Against SOTAlign, we lead by 0.9 R@1 points on Flickr30k and SOTAlign leads by 1.4/0.6 on MS-COCO, i.e. a few test queries per seed, so we consider the two tied at R@1. At R@5 and R@10, we lead in all eight entries (+0.9 to +3.9). Distilling the coupling multiplies the contrastive baseline's R@1 by 1.6–2.0, a gain that comes entirely from unpaired data. ASIF, which retrieves each query independently by nearest neighbor, is 14–27 R@1 points below ours. SUE is below the contrastive baseline at R@1 and R@5, and CSA, validated with thousands of pairs, stays near chance.
Molecule-text retrieval. On ChEBI-20 (Table 2), where no prior method operates at , our method is first in all six columns, 1.5–3.2 points ahead of SOTAlign. The gain over the contrastive baseline is smaller than on image-text (R@1 × 1.4–1.5), and SUE falls furthest, to a fifth of the contrastive baseline's R@1.
Table 2: Molecule-text retrieval on ChEBI-20 at .
| Method | Molecule → Text | Text → Molecule | ||||
|---|---|---|---|---|---|---|
| R@1 | R@5 | R@10 | R@1 | R@5 | R@10 | |
| Contrastive | 16.10 | 37.90 | 48.20 | 15.10 | 36.15 | 47.05 |
| ASIF | 8.40 | 28.20 | 40.90 | 14.55 | 35.85 | 49.40 |
| CSA | 0.20 | 1.10 | 2.55 | 0.65 | 2.45 | 4.40 |
| SUE | 3.25 | 14.85 | 25.05 | 3.35 | 15.10 | 26.10 |
| SOTAlign | 20.30 | 47.15 | 60.60 | 20.30 | 47.80 | 62.20 |
| Ours | 22.10 | 49.75 | 63.25 | 22.05 | 51.00 | 63.70 |
Table 3: Zero-shot classification accuracy (%) on 700 ImageNet images from 7 classes. Methods trained on Flickr30k or MS-COCO. Mean (std) over 5 seeds.
| Method | Flickr30k | MS-COCO |
|---|---|---|
| SUE | 72.26 (2.59) | 63.97 (8.99) |
| SOTAlign | 87.51 (2.73) | 95.34 (1.73) |
| Ours | 89.91 (3.89) | 93.63 (3.33) |
| CLIP | 98.43 | 98.43 |

(a)
(b)
(c)
Figure 2: Recall@10 (I2T/T2I mean) under two independent ablations on the pool composition. (a)-(b) Recall@10 vs. number of anchor pairs , at fixed pool and test split, over the full and low- ranges respectively: (a) restricted to our method and the contrastive baseline, (b) all six methods of Table 1. (c) Recall@10 vs. unpaired pool size at fixed and test split.
Anchor budget and pool size. On Flickr30k (Figure 2b), our method consistently outperforms SOTAlign and the contrastive baseline across the evaluated anchor budgets. The gap with SOTAlign remains relatively stable as the number of paired anchors increases, while both methods improve with additional paired data. When the number of anchors becomes very large (a), our method and the contrastive baseline approach similar performance from , reaching approximately 0.9 R@10. This panel isolates the contribution of our OT-learned coupling on unpaired data which decreases as the pool of unpaired is replaced by paired data. In contrast, increasing the size of the unpaired pool (c) consistently benefits our method, which improves from approximately 0.63 R@10 with unpaired samples to 0.80 with samples.

Figure 3: Recall@10 on Flickr30k as a function of the overlap , for SUE, SOTAlign and our method.
Hidden pairing influence. We vary the overlap , the fraction of the unpaired pool whose image and caption come from the same underlying pair, at fixed , pool size and test split, and retrain

(a)
(b)
Figure 4: (a) skewness (lower is better) and (b) recall@10 of nearest neighbor, the inverted softmax, CSLS and our converged coupling, on the same anchor-relative cost between the 400 held-out Flickr30k test pairs, in both retrieval directions. Error bars denote std over 5 seeds.
all methods at every value (Figure 3). At o = 1, every unpaired item has its counterpart on the other side, although the pairing is not revealed. At o = 0, our default in the rest of the paper, the image-only and caption-only pools are disjoint, as when each modality is collected independently and no cross-modal pair exists beyond the N anchors. Recall@10 is essentially unchanged across the whole range, so the methods are as effective without a hidden correspondence as with one. This is consistent with the fact that the unpaired collections can be drawn independently from the two marginals (Equation 2).
Hubness reduction. We compare four matching rules on the same anchor-relative cost: (i) nearest neighbor, as in ASIF [Norelli et al., 2023], (ii) the inverted softmax [Smith et al., 2017], (iii) CSLS [Conneau et al., 2017], and (iv) our converged Sinkhorn coupling. The inverted softmax uses the same entropic kernel as our coupling but normalizes only the gallery side, so the gap between the two isolates the effect of enforcing both marginals. The rules are applied directly to the 400 held-out test pairs, before any distillation. We measure hubness in both retrieval directions by the skewness of the k-occurrence distribution [Radovanović et al., 2010], the number of queries whose top-10 contains each gallery item. On Flickr30k (Figure 4), our coupling has the lowest skewness in both directions (0.32/0.37, against 2.40/1.52 for nearest neighbor, 1.68/2.18 for the inverted softmax and 1.12/0.66 for CSLS) and the highest recall@10 (0.80/0.80, against 0.67/0.64 for nearest neighbor and 0.76–0.77 for the two one-step corrections). Normalizing a single marginal is not enough: the inverted softmax even increases hubness over nearest neighbor in the text-to-image direction.
Zero-shot classification. Following Yacobi et al. [2025], we classify 700 ImageNet images from seven categories (cat, dog, man, woman, mountain, shore, snow) with the encoders trained on Flickr30k or MS-COCO, without further training, by cosine similarity to the embeddings of the prompts “A photo of a {}”. Our encoders never see these images, categories or the task during training. At the same anchor budget, they outperform SUE by 18–30 points and are comparable to SOTAlign, 2.4 points ahead on Flickr30k and 1.7 points below on MS-COCO (Table 3, examples in Appendix C.5.1).
Further experiments. Beyond retrieval, we analyze the evolution of the participation ratio of the learned representation with (Appendix C.1), compare our method against classical unsupervised approaches (Appendix C.2), and ablate two choices underlying our matching cost (Appendix C.3): injecting a structural term via Fused Gromov–Wasserstein and replacing the N-anchor relative representation itself. We then show that the learned shared representation supports qualitative cross-modal generation (Appendix C.4). Finally, we evaluate zero-shot retrieval (Appendix C.5.2) and provide additional examples for zero-shot classification and classical retrieval (Appendices C.5.1 and C.6).
5 Conclusion and future work
We investigated the extreme low-resource regime of aligning two frozen unimodal encoders from only paired examples. Our framework expresses both modalities in anchor-relative coordinates, matches the unpaired collections with a global entropic optimal transport problem whose marginal constraints reduce hubness more than one-step corrections, and distills the resulting plan into two compact, modality-specific encoders. At the same anchor budget, it outperforms anchor-relative and graph-based methods by a wide margin, matches SOTAlign at R@1 on image-text and outperforms it elsewhere, and requires no hidden pairing in the unpaired pool.
Zero-pair methods reach near-random recall on our encoders, and a Gromov-Wasserstein term on intra-modal geometry never improves our coupling: consistent with Gröger et al. [2026], independently trained encoders do not share enough structure to be aligned without supervision. Our method remains bounded by the quality of these encoders, and its uniform marginals assume that both collections come from the same joint distribution (Equation 2), which unbalanced optimal transport would relax. Finally, our anchors are drawn at random, and choosing which items to pair is a promising direction for domains such as medical imaging, where each pair requires expert annotation.
Acknowledgments
This work was supported by ANR through the “Investissements d’avenir” program (ANR-10-IAIHU-06, ANR-19-P3IA-0001, PRAIRIE 3IA Institute), the “France 2030” program (ANR-23-IACL-0008, PRAIRIE-PSAI). The ARAMIS Lab is affiliated with DIM C-BRAINS, funded by the Conseil Régional d’Ile-de-France. This work was performed using HPC resources from GENCI-IDRIS (Grant 2026-AD011017987). RD received Marie Skłodowska-Curie grant No. 101154248 (SafeREG).
AI use statement
In this work, we used generative AI tools to aid or polish writing: every paragraph of this paper was checked by AI and by us to look for writing mistakes or wrong phrasing.
We also used generative AI tools for retrieval and discovery: the pipeline was entirely designed by us without the use of AI. We performed an initial literature review and analyzed relevant papers. However, we used AI to confirm implementation details of competing methods and to search for potential missing related work. Our related work section was drafted by us.
We also used generative AI tools for research ideation and execution: we mainly used AI to test and execute our ideas. A significant part of our code was generated by AI and then manually checked to verify that it was consistent with our intent.
Finally, we used generative AI tools to draft sections of the paper: some sections were first drafted by AI (results, appendix) and then revised by us to ensure they reflected our own thinking. Tables were done manually. Figures were generated locally.
We take full responsibility for the final content of this work, including text, claims, and artifacts produced with the aid of generative AI.
Ethics statement
We do not anticipate any ethical concerns arising from this work.
References
David Alvarez-Melis and Tommi S. Jaakkola. Gromov-wasserstein alignment of word embedding spaces. In Conference on Empirical Methods in Natural Language Processing (EMNLP), 2018.
Simion-Vlad Bogolin, Ioana Croitoru, Hailin Jin, Yang Liu, and Samuel Albanie. Cross modal retrieval with querybank normalisation. In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022.
Irene Cannistraci, Luca Moschella, Valentino Maiorca, Marco Fumero, Antonio Norelli, and Emanuele Rodolà. Bootstrapping parallel anchors for relative representations. In Tiny Papers Track, International Conference on Learning Representations (ICLR), 2023.
Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments. In Advances in Neural Information Processing Systems (NeurIPS), 2020.
Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. Emerging properties in self-supervised vision transformers. In International Conference on Computer Vision (ICCV), 2021.
Chi Chen, Peng Li, Maosong Sun, and Yang Liu. Weakly supervised vision-and-language pre-training with relative representations. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (ACL), 2023.
Alexis Conneau, Guillaume Lample, Marc'Aurelio Ranzato, Ludovic Denoyer, and Hervé Jégou. Word translation without parallel data. arXiv preprint arXiv:1710.04087, 2017.
Georgiana Dinu, Angeliki Lazaridou, and Marco Baroni. Improving zero-shot learning by mitigating the hubness problem. arXiv preprint arXiv:1412.6568, 2014.
Carl Edwards, ChengXiang Zhai, and Heng Ji. Text2mol: Cross-modal molecule retrieval with natural language queries. In Conference on Empirical Methods in Natural Language Processing (EMNLP), 2021.
Ali Gholamzadeh and Noor Sajid. Model alignment using inter-modal bridges. arXiv preprint arXiv:2505.12322, 2025.
Edouard Grave, Armand Joulin, and Quentin Berthet. Unsupervised alignment of embeddings with wasserstein procrustes. In The 22nd International Conference on Artificial Intelligence and Statistics, pages 1880–1890. PMLR, 2019.
Fabian Gröger, Shuo Wen, Huyen Le, and Maria Brbić. With limited data for multimodal alignment, let the STRUCTURE guide you, 2025.
Fabian Gröger, Shuo Wen, and Maria Brbić. Revisiting the platonic representation hypothesis: An aristotelian view. In International Conference on Machine Learning (ICML), 2026.
Xiang Gu, Yucheng Yang, Wei Zeng, Jian Sun, and Zongben Xu. Keypoint-guided optimal transport with applications in heterogeneous domain adaptation. Advances in Neural Information Processing Systems, 35:14972–14985, 2022.
Minyoung Huh, Brian Cheung, Tongzhou Wang, and Phillip Isola. The platonic representation hypothesis. arXiv preprint arXiv:2405.07987, 2024.
Shiwon Kim and Yu Rang Park. Learning relative representations for fine-grained multimodal alignment with limited data, 2026.
Po-han Li, Sandeep Chinchali, et al. Csa: Data-efficient mapping of unimodal features to multimodal features. In International Conference on Learning Representations, volume 2025, pages 99459–99478, 2025.
Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C. Lawrence Zitnick. Microsoft COCO: Common objects in context. In European Conference on Computer Vision (ECCV), 2014.
Sangwoo Mo, Minkyu Kim, Kyungmin Lee, and Jinwoo Shin. S-CLIP: Semi-supervised vision-language learning using few specialist captions. In Advances in Neural Information Processing Systems (NeurIPS), 2023.
Luca Moschella, Valentino Maiorca, Marco Fumero, Antonio Norelli, Francesco Locatello, and Emanuele Rodolà. Relative representations enable zero-shot latent space communication. arXiv preprint arXiv:2209.15430, 2022.
Antonio Norelli, Marco Fumero, Valentino Maiorca, Luca Moschella, Emanuele Rodolà, and Francesco Locatello. ASIF: Coupled data turns unimodal models to multimodal without training. In Advances in Neural Information Processing Systems (NeurIPS), 2023.
Zhengxin Pan et al. Hubness reduction with dual bank sinkhorn normalization for cross-modal retrieval. In Proceedings of the 33rd ACM International Conference on Multimedia, 2025.
Gabriel Peyré and Marco Cuturi. Computational optimal transport. now publishers, Inc. eBooks, 2019. doi:10.1561/9781680835519.
Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International Conference on Machine Learning (ICML), 2021.
Miloš Radovanović, Alexandros Nanopoulos, and Mirjana Ivanović. Hubs in space: Popular nearest neighbors in high-dimensional data. Journal of Machine Learning Research, 11:2487–2531, 2010.
Nils Reimers and Iryna Gurevych. Sentence-BERT: Sentence embeddings using Siamese BERT-networks. In Conference on Empirical Methods in Natural Language Processing (EMNLP), 2019.
Simon Roschmann, Paul Krzakala, Sonia Mazelet, Quentin Bouniot, and Zeynep Akata. Sotalign: Semi-supervised alignment of unimodal vision and language models via optimal transport. arXiv preprint arXiv:2602.23353, 2026.
Jerret Ross, Brian Belgodere, Vijil Chenthamarakshan, Inkit Padhi, Youssef Mroueh, and Payel Das. Large-scale chemical language representations capture molecular structure and properties. Nature Machine Intelligence, 4:1256–1264, 2022.
Samuel L Smith, David HP Turban, Steven Hamblin, and Nils Y Hammerla. Offline bilingual word vectors, orthogonal transformations and the inverted softmax. arXiv preprint arXiv:1702.03859, 2017.
Omer Tov, Yuval Alaluf, Yotam Nitzan, Or Patashnik, and Daniel Cohen-Or. Designing an encoder for stylegan image manipulation. ACM Transactions on graphics (TOG), 40(4):1–14, 2021.
Titouan Vayer, Laetitia Chapel, Rémi Flamary, Romain Tavenard, and Nicolas Courty. Optimal transport for structured data with application on graphs. In International Conference on Machine Learning (ICML), 2019.
Bichen Wu, Ruizhe Cheng, Peizhao Zhang, Tianren Gao, Peter Vajda, and Joseph E Gonzalez. Data efficient language-supervised zero-shot recognition with optimal transport distillation. arXiv preprint arXiv:2112.09445, 2021.
Amitai Yacobi, Nir Ben-Ari, Ronen Talmon, and Uri Shaham. Learning shared representations from unpaired data. In Advances in Neural Information Processing Systems (NeurIPS), 2025.
Felix X.-F. Ye, Xingjie Li, An Yu, Ming-Ching Chang, Linsong Chu, and Davis Wertheimer. FlashSinkhorn: IO-aware entropic optimal transport on GPU, 2026.
Peter Young, Alice Lai, Micah Hodosh, and Julia Hockenmaier. From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions. Transactions of the Association for Computational Linguistics, 2:67–78, 2014.
A Distillation details
Anchors as a distinguished chunk. The anchor pairs A are appended as an additional, distinguished chunk with plan (their correspondence being exactly known rather than inferred by transport).
Properties of the distillation objective. and (Equations 11-12) form a direction-asymmetric soft-target loss: the two directions use row- and column-normalized targets , respectively, which differ unless is symmetric. reduces to a standard InfoNCE loss with hard, one-hot targets when is one-hot for every , and more generally distills the residual uncertainty the transport plan assigns to ambiguous matches (e.g. two visually similar images with semantically close captions). Each chunk (including the anchor chunk) is visited exactly once per epoch, in an order reshuffled every epoch, and contributes a single stochastic-gradient step from its own . The plan is computed once before optimization begins and held fixed throughout training.
Because and operate directly on raw embeddings rather than on relative representations, the trained encoders no longer require access to the anchor set A, or to any reference collection, at inference time. This is the precise sense in which the distillation step removes the transductive constraint introduced in Section 3.3: the anchors are used only to supervise training, not to compute the final representation of a query.

Figure 5: Recall comparison of the transductive OT teacher with how much is retained after distillation to the inductive encoders
B Theory details
B.1 Spectral distortion of anchor-relative profiles
We clarify the spectrum-squaring effect referenced in Section 3.2 and its correction by anchor orthonormalization (Eq. 5).
Setup. Let with second-moment matrix , , assumed positive definite, so that ; for unit-normalized embeddings, . As in Section 3.2, the anchors are stacked as rows of , and . Then and, by the strong law of large numbers, almost surely as . Since is positive definite, almost surely is invertible for all sufficiently large (for every if has a density on the unit sphere).
Eigenvalue clipping. In practice the eigenvalues of are clipped below at times their mean, i.e. for unit-normalized anchors, before taking powers. Write for with its eigenvalues clipped at . It is a spectral function of and therefore commutes with , so the proof below goes through verbatim with replaced by . The two coincide whenever , which holds almost surely for large if . We therefore state the results without clipping.
Anchor orthonormalization at . is times the polar factor of , its symmetric (Löwdin) orthonormalization: its columns are orthonormal and, when , its rows (the transformed anchors) form a tight frame of rather than an orthonormal set. Consequently for all : is an isometry of into , exactly at every with invertible.
Proposition 1 (Spectrum interpolation). For , let denote the profile induced by of Eq. 5, and its second-moment matrix at fixed anchors. (i) For any anchors with invertible, has exactly nonzero eigenvalues, counted with multiplicity, equal to those of . In particular, for they are exactly \{N s_i\}_{i=1}^d_x. (ii) With iid anchors as above, as , the sorted nonzero eigenvalues of converge almost surely to the sorted \{s_i^{2-\gamma}\}_{i=1}^d_x.
Proof. (i) By definition of , the anchors are fixed and the expectation is over only, so
The matrices and share their nonzero eigenvalues. Using and the fact that commutes with ,
which is positive definite as a congruence of the positive definite by the invertible , so all its eigenvalues are nonzero. This proves the identity. For , and , whose eigenvalues are .
(ii) Almost surely, is positive definite for all large and . The map is continuous on positive definite matrices for any real exponent, so almost surely. By Weyl's inequality, for the sorted eigenvalues of symmetric matrices . Hence the sorted eigenvalues of converge to those of , namely the sorted \{s_i^{2-\gamma}\}_{i=1}^d_x.
Proposition 1 recovers the reference points used above: squares the spectrum , matching plain cosine similarity. preserves its shape , exactly at every , the exact isometry described above. flattens it entirely in the limit , equivalent to fully whitening . Only the case is exact at every finite (Statement (i)). For , Statement (ii) is an asymptotic approximation, accurate for the leading eigenvalues once is large relative to
Remark 1 (Effective dimensionality). The participation ratio of the limiting spectrum increases monotonically with .
B.2 Relation to CSLS
CSLS [Conneau et al., 2017], another one-step hubness correction used in retrieval, shares the additive structure of one full Sinkhorn iteration. Writing and , taking of the factorized coupling with gives, at any iteration ,
This matches the shape of CSLS( ) = 2 - - : a raw similarity corrected by one additive term per side, and being the average similarity to the nearest neighbors in the opposite space. We make this resemblance precise by writing out one full Sinkhorn iteration both potentials updated in parallel from (absorbing the constant , terms):
with . Substituting into Equation 13 at gives
Fix , write and let . Factoring out of the sum inside the LSE,
Since is bounded uniformly in , and as . The same argument applies symmetrically to , giving and . Substituting back into Equation 13 at ,
exactly the CSLS shape with coefficient 1 instead of 2, and an additive function that vanishes as .
C Additional experiments
C.1 Participation ratio

(a)
(b)
(c)
Figure 6: Participation ratio as a function of evaluated on Flickr30k for three anchor budgets N.
Figure 6 reports the participation ratio of the anchor-relative profile on Flickr30k, for both modalities, as is varied from 0 to 2, at three anchor budgets . At and , PR increases monotonically with for both modalities, as predicted by the Remark 1, saturating near its asymptotic ceiling as . At , however, the curve peaks around and drops sharply toward . This is consistent with a finite-N estimation bias rather than a failure of the underlying result: the negative exponent on at disproportionately amplifies its smallest eigenvalues, which are also the ones N anchors estimate least reliably (Appendix B.1). At against , a handful of poorly-estimated directions can dominate the empirical spectrum once inverted, depressing PR well below its asymptotic value. As N grows, estimates more accurately in exactly these tail directions, and the curve converges to the monotonic prediction of Proposition 1. This is precisely why we restrict to in practice (Appendix D): at our target budget of a few hundred anchors, risks amplifying anchor-estimation noise rather than correcting a real bias, well before reaching its asymptotic behavior.
C.2 Comparison to unsupervised methods
Figure 7 evaluates the zero-pair setting: Gromov-Wasserstein, Wasserstein Procrustes and Iterative Closest Point align the two point clouds using only their intra-modal geometry, with no anchors at all. All three collapse to near-random recall. This gap is not a failure of the matching algorithms themselves, which are well established. However, it indicates that the intra-modal geometries of our frozen image and text encoders are not yet close enough to be matched on structure alone. Unlike two instances of the same modality (e.g. word embeddings of different languages), where such zero-pair methods are known to succeed, image and text encoders trained independently offer not enough shared geometric signal for these methods to exploit. A handful of paired anchors is therefore a necessity in this regime.
Transductive (no generalization)

(a)
Inductive (generalizes to unseen queries)
(b)
Figure 7: Recall comparison of our method to existing unsupervised baselines on Flickr30k with the same usual setting
C.3 Choice of the optimal transport plan
We now focus on the cost used to build our coupling, and on how effectively it exploits the information available beyond the N anchors. Sections C.3.1 and C.3.2 respectively compare our anchor-relative representation against the bridge cost of Gholamzadeh and Sajid [2025], an alternative construction that routes cross-modal distance through the anchors, and the cost of Gu et al. [2022], another construction that represents each point by a softmax-normalized distribution over its distances to the anchors, compared across modalities via Jensen-Shannon divergence. Then the section C.3.3 studies the effect of adding a structural constraint on top of our coupling through a Fused Gromov-Wasserstein [Vayer et al., 2019] formulation, which interpolates between our anchor-relative cost and a Gromov-Wasserstein penalty on the intra-modal geometry.
C.3.1 Bridge-cost
As an alternative to our anchor-relative profile, we consider the bridge cost of Gholamzadeh and Sajid [2025], which also builds a cross-modal transport cost solely from distances to the N anchors, but combines them differently. For a query x in modality X and y in modality Y, the bridge cost is
the length of the shortest two-hop path from x to y routed through a single anchor . This differs from our profile representation, which embeds every point into the full N-dimensional coordinate system given by its distance to every anchor and compares two such coordinate vectors directly (e.g. by cosine distance), rather than selecting a single best anchor per pair. We plug this cost into the same Sinkhorn coupling used throughout the paper, changing nothing else, and compare the resulting retrieval performance and hubness to our own cost in Figure 8.
C.3.2 KPG-RL cost
As a further alternative, we consider the relation profile of Gu et al. [2022], which also builds a cross-modal transport cost from distances to the N anchors, but combines them differently. For a point z in either modality,

(a)
(b)
(c)
(d)
Figure 8: Hubness and recall@10 comparison on Flickr30k and MS-COCO for the Bridge cost against our method. The skewness gives similar results while the recall@10 drops considerably when using the Bridge cost suggesting that our method benefits from representing a point from its similarity to all anchors and not only the closest one.
the relation score is the softmax-normalized distribution over its distances to the anchors,
and the cross-modal cost compares the two distributions by Jensen-Shannon divergence, . This differs from our profile representation in two respects: the anchor coordinates are pre-normalized into a probability distribution rather than compared as a raw similarity vector, and the two profiles are compared by a divergence between distributions rather than a similarity. Gu et al. [2022] was designed for a different task and a far smaller anchor budget: heterogeneous domain adaptation between two feature extractors on the same visual data, guided by only 1 to 3 keypoints per class, rather than cross-modal retrieval with a few hundred paired anchors. It further imposes a mask constraining the coupling to match each anchor pair exactly within the transport problem itself, a hard constraint our transport plan does not impose. We plug the cost , without the mask, into the same Sinkhorn coupling, doing the same analysis as in section C.3.1 and results are reported on Figure 9.
C.3.3 Fused-Gromov-Wasserstein
Recent critiques of the Platonic Representation Hypothesis [Huh et al., 2024] argue that the predicted convergence holds only partially in practice, and that the two modalities may have fundamentally different intra-modal geometries [Gröger et al., 2026]. Our Fused Gromov-Wasserstein ablation offers a targeted piece of evidence for this view within our own setting. We interpolate between the structural and feature-cost terms via
where is the entropic Gromov-Wasserstein term matching intra-modal pairwise distances, and is our anchor-relative feature-cost objective. The structural term never improves retrieval (Figure 10): recall increases with and is highest at or near , i.e. when the structural term is dropped entirely and the coupling reduces exactly to our feature-cost OT. This suggests that the intra-modal geometries of images and text are not shared closely enough to be exploited through structural alignment alone.

Figure 9: Hubness and recall@10 comparison on Flickr30k and MS-COCO for the KPG-RL cost against our method. Both skewness and recall@10 give similar results with our method getting slightly better performances on the retrieval task

Figure 10: Recall@k as a function of the weight in the FGW setting
C.4 Qualitative cross-modal generation
To probe whether the shared embedding space supports generation and not only retrieval, we reproduce the “(almost-) text-free” generation protocol of Yacobi et al. [2025] on caption-FFHQ. A pretrained StyleGAN2 generator and its GAN-inversion encoder (e4e, Tov et al., 2021) are kept entirely fixed; we train only a lightweight MLP converter that maps a universal image embedding to the corresponding StyleGAN2 latent code, using images only. At inference, a text query is instead projected by into the same shared space and passed through this same, image-only-trained converter and then to the GAN decoder. Generation from text alone is possible only because the coupling that aligns and makes a text embedding indistinguishable, to the converter, from an image embedding.
Generated faces (Figure 11) are visually coherent and capture the coarse semantic content of the caption (hair color, expression, apparent age, glasses, facial hair), but fine or spatially localized attributes are imperfect: captions mentioning a hat rarely yield a recognizable texture, though the decoder consistently adds a silhouette above the head.

"a girl with blonde hair"
"a boy is happy"
"a woman with glasses"

"a man with sunglasses"
"a man with a beard"
"a woman with a hat"
Figure 11: Examples of images generated from a custom caption following Yacobi et al. [2025]'s generation protocol
C.5 Zero-shot transfer
C.5.1 Zero-shot classification
Figure 12 shows examples for the zero-shot classification experiment of Section 4 (Table 3).

True: dog | Ours: dog | SUE: dog | SOTAlign: dog | CLIP (zero-shot): dog

Probability (cosine)

True: woman | Ours: woman | SUE: shore | SOTAlign: woman | CLIP (zero-shot): woman

Probability (cosine)
True: shore | Ours: shore | SUE: shore | SOTAlign: shore | CLIP (zero-shot): shore

Probability (cosine)
True: mountain | Ours: mountain | SUE: snow | SOTAlign: mountain | CLIP (zero-shot): mountain

Probability (cosine)
Figure 12: Examples of zero-shot classification on ImageNet comparing our method to SUE, SOTAlign (all trained on Flickr30k) and a pretrained CLIP checkpoint
C.5.2 Zero-shot retrieval
This experiment tests whether the alignment learned by our method transfers to a new data distribution. We fit each method on 29k unpaired sampled from MS-COCO and N = 500 anchors and then evaluate recall@10 directly on Flickr30k, a dataset never seen during training or hyperparameter selection. No further fine-tuning, calibration, or optimization is performed on Flickr30k: the frozen unimodal encoders and the learned alignment heads (fitted on MS-COCO) are directly applied to encode its images and captions, and retrieval is measured on a held-out query set. This is a substantially harder test than the standard held-out split, since MS-COCO and Flickr30k differ in image content, caption style, length and vocabulary. As expected, all three methods degrade under this distribution shift but the recall remains comparable to that of Table 1 (3/4 of it is kept), meaning that the alignment learned on a different distribution can be transferred to a new one. Our method remains the strongest in absolute terms in the zero-shot setting (59.7% against 56.7% and 24.3%), preserving the same ranking observed in-distribution (79.3% against 75.9% and 37.8%).

Figure 13: Comparison of our method, SUE and SOTAlign on zero-shot retrieval on Flickr30k after being trained on 30k samples from MS-COCO
C.6 Retrieval examples
"An old man in dirty clothes rides a bike loaded with possessions down a busy city street."
"a young girl wearing a gray snowsuit skiing on a snowy mountain."
Ground truth image

Rank 1

Rank 2

Rank 3









Figure 14: Text to Image retrieval examples on the dataset Flickr30k
Query image

Retrieved captions (ranked)
-
"Wearing shorts, a man holds up a snowboard while standing in the snow."
-
"a snowboarder making their way down the hill in front of some trees"
-
"A man who is performing a trick on a snowboard."

-
"A couple of women sitting at a table eating food."
-
"This family is enjoying a meal together at a restaurant"
-
"Black and white photograph of two women eating food."

-
"A red double decker bus driving down a street."
-
"A double decker bus is traveling on the road."
-
"A red bus driving down a street past a forest."
Figure 15: Image to Text retrieval examples on the dataset MS-COCO
"disaccharide derivative consisting of two D-gala..."
Ground truth molecule

Rank 1

Rank 2

Rank 3

"proanthocyanidin consisting of (-)-epigallocatec..."




"pyridinemonocarboxylate"




Figure 16: Text to Molecule retrieval examples on the dataset ChEBI-20
C.7 Complement
Table 4: Complement of Table 1 with std over 5 seeds for Flickr30k.
| Method | Image → Text | Text → Image | ||||
|---|---|---|---|---|---|---|
| R@1 | R@5 | R@10 | R@1 | R@5 | R@10 | |
| Contrastive | 22.05 (2.21) | 49.10 (2.48) | 60.45 (2.99) | 22.30 (2.76) | 48.05 (3.07) | 59.60 (3.20) |
| ASIF | 10.35 (0.57) | 29.10 (2.68) | 42.45 (3.24) | 9.55 (0.82) | 29.80 (2.17) | 43.05 (1.56) |
| CSA | 0.90 (0.45) | 3.15 (1.28) | 5.60 (1.27) | 0.95 (0.65) | 3.55 (0.84) | 6.10 (0.96) |
| SUE | 7.80 (1.51) | 24.50 (1.71) | 37.50 (0.85) | 7.35 (0.70) | 26.80 (1.00) | 38.05 (1.08) |
| SOTAlign | 35.60 (2.05) | 65.00 (1.92) | 76.20 (3.29) | 35.20 (2.31) | 65.10 (2.06) | 75.55 (2.27) |
| Ours | 36.55 (1.66) | 67.90 (2.96) | 79.25 (2.47) | 36.05 (3.99) | 68.10 (2.23) | 79.40 (2.10) |
Table 5: Complement of Table 1 with std over 5 seeds for MS-COCO.
| Method | Image → Text | Text → Image | ||||
|---|---|---|---|---|---|---|
| R@1 | R@5 | R@10 | R@1 | R@5 | R@10 | |
| Contrastive | 14.60 (0.58) | 40.65 (2.41) | 54.95 (1.45) | 15.00 (1.43) | 40.55 (2.69) | 54.30 (2.64) |
| ASIF | 15.15 (1.04) | 48.65 (2.93) | 69.95 (2.42) | 14.20 (2.28) | 48.80 (2.26) | 69.70 (2.00) |
| CSA | 1.30 (0.73) | 5.55 (1.47) | 9.40 (1.39) | 1.35 (1.01) | 5.70 (1.68) | 8.95 (1.91) |
| SUE | 9.90 (0.72) | 36.60 (1.34) | 55.80 (3.95) | 9.10 (1.07) | 37.25 (1.56) | 56.35 (2.31) |
| SOTAlign | 30.50 (1.93) | 70.10 (1.86) | 84.50 (2.46) | 30.90 (1.19) | 69.70 (2.78) | 84.50 (2.08) |
| Ours | 29.05 (1.32) | 71.05 (1.16) | 85.35 (2.08) | 30.30 (1.27) | 70.95 (2.09) | 86.45 (1.60) |
Table 6: Complement of Table 2 with std over 5 seeds for ChEBI-20.
| Method | Molecule → Text | Text → Molecule | ||||
|---|---|---|---|---|---|---|
| R@1 | R@5 | R@10 | R@1 | R@5 | R@10 | |
| Contrastive | 16.10 | 37.90 | 48.20 | 15.10 | 36.15 | 47.05 |
| ASIF | 8.40 (0.91) | 28.20 (1.52) | 40.90 (2.28) | 14.55 (0.60) | 35.85 (1.46) | 49.40 (0.91) |
| CSA | 0.20 (0.20) | 1.10 (0.84) | 2.55 (0.51) | 0.65 (0.52) | 2.45 (1.08) | 4.40 (1.52) |
| SUE | 3.25 (0.77) | 14.85 (2.71) | 25.05 (3.83) | 3.35 (1.01) | 15.10 (1.65) | 26.10 (3.52) |
| SOTAlign | 20.30 (1.02) | 47.15 (2.33) | 60.60 (0.76) | 20.30 (1.43) | 47.80 (2.03) | 62.20 (0.93) |
| Ours | 22.10 (1.27) | 49.75 (1.68) | 63.25 (2.09) | 22.05 (0.92) | 51.00 (2.35) | 63.70 (1.81) |
D Hyperparameters
Beyond the anchor budget and the pool size, our method involves three groups of hyperparameters: standard encoder-training hyperparameters, the entropic regularization of the Sinkhorn coupling, and the anchor-relative profile itself. The first group is fixed across datasets and seeds and summarized in Table 8; only some of the Sinkhorn and profile hyperparameters depend on the seed and dataset and are selected with the held-out procedure described below.
Sinkhorn regularization. The Sinkhorn coupling built on the anchor-relative profile is regularized by , where is the anchor-relative cost matrix and a single scalar multiplier, selected
Table 7: Training wall-clock time (seconds) on Flickr30k, averaged over 3 seeds. We vary either the number of anchors while fixing , or the number of unpaired points while fixing . Speedup is measured relative to SOTAlign.
| Setting | Value | Ours | SOTAlign | Speedup |
|---|---|---|---|---|
| Varying number of anchors () | ||||
| Varying number of unpaired points () | ||||
Table 8: Training hyperparameters, fixed across datasets and seeds.
| Hyperparameter | Value |
|---|---|
| Projection dimension | 1024 |
| Optimizer | Adam |
| Learning rate | |
| Weight decay | |
| Warmup steps | 200 |
| Epochs | 200 |
| Temperature initialization | 0.07 |
| Chunk size | 2000 |
| Sinkhorn max iterations | 1000 |
| Sinkhorn tolerance | 0.0001 |
per dataset and seed (Table 9). Because median() is recomputed from data every time, alone suffices to adapt to the scale of for every dataset and every candidate profile – itself is never tuned directly.
Profile hyperparameters. The anchor-relative profile is built from -interpolated orthonormalized embeddings: each modality is whitened independently before a point is compared to each anchor by cosine similarity, with interpolating between the untouched profile () and an unmodified spectrum (). Together with above, is the only other hyperparameter we select per dataset and seed (Table 9); every other aspect of the profile construction is fixed across datasets.
Selecting the profile hyperparameters. For every seed, we split the anchors 90/10: the larger split defines the anchor-relative representation, while the OT coupling is solved, for each candidate on a small grid, over the unpaired pool together with the held-out 10% of anchors, with everything else about the profile fixed, so that only vary between candidates. For every held-out anchor we record the rank of its true match in the resulting coupling, in both directions, and keep the candidate minimizing the mean held-out rank (Fig. 17). With fixed, we use this same configuration for the corresponding distillation run, over the full set of anchors. Table 9 reports the resulting choice per dataset for one seed (results are very consistent across different seeds of the same dataset but may vary).

Figure 17: Held-out rank (mean, both retrieval directions), skewness and recall@1 as a function of the epsilon multiplier , one curve per value. The selected minimizes this held-out rank.
Table 9: Selected profile hyperparameters per dataset (seed 0)
| Dataset | ||
|---|---|---|
| Flickr30k | 0.75 | 0.02 |
| MS-COCO | 0.75 | 0.02 |
| ChEBI-20 | 1.00 | 0.02 |