Manuscript Offprint
arXiv:2610.31145RankAlign: Vision-Language Representation Alignment via Rank Transformation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
While the Platonic Representation Hypothesis posits that vision and language models converge toward compatible latent geometries, recovering class-level correspondences between unpaired modalities without cross-modal supervision remains challenging. Existing relational matching methods compare within-modality similarity kernels directly, although the same semantic structure may be represented through different numerical parameterizations across modalities. We propose RankAlign, a rank-based normalization strategy for class-level unpaired vision-language matching. RankAlign transforms each within-modality similarity kernel into an ordinal relational representation before permutation matching, while leaving the correspondence space and matching solver unchanged. The resulting representation is invariant to strictly increasing reparameterizations of similarity values while preserving the ordinal structure used for matching. We provide exact-recovery and stability guarantees that characterize correspondence recovery under both exact and partial ordinal agreement. Experiments across diverse frozen vision and language encoders and multiple datasets demonstrate improved and more stable class-level correspondence recovery, including under label corruption and domain shift.
1 Introduction
Recent advances in foundation models have fundamentally redefined representation learning across diverse modalities. While self-supervised vision encoders like DINO [1] and large-scale language models [3, 17] have matured within their respective domains, multimodal contrastive frameworks such as CLIP [15] and SigLIP2 [22] have further bridged the two modalities. These architectures induce sophisticated latent representations that capture intricate structural and semantic nuances. Yet, despite this progress, the geometric alignment between visual and language representation spaces remains poorly understood when encoders are trained independently on disparate datasets. This poses a significant challenge for class-level unpaired cross-modal matching, where category structure is available within each modality, while the correspondence between visual and textual categories remains unknown and must be recovered.
Representation similarity and the Platonic hypothesis. Independently trained visual and language models frequently exhibit a striking convergence toward compatible representational structures. This phenomenon is formalized by the Platonic Representation Hypothesis, which posits that scaling and data diversity drive neural networks toward shared latent geometries that encode the statistical regularities of the world [6]. In vision-language settings, visual and textual encoders learn compatible relational structures despite disparate training objectives [10, 19]. Although methods such as CCA [5],
Equal contribution. Correspondence to: marco.fiorucci@unipd.it.
40th Conference on Neural Information Processing Systems (NeurIPS 2026).
SVCCA [16], and CKA [8] provide quantitative measures of representational similarity, they rely on direct numerical comparisons that are inherently sensitive to modality-specific scale distortions and biases.
Class-level unpaired vision-language matching. The emergence of a shared embedding space raises the fundamental question: can explicit correspondences between vision and language representations be recovered when independently trained encoders receive no paired supervision? Traditional alignment relies on image-caption pairs or manually verified correspondences to learn a cross-modal mapping. We instead study class-level unpaired vision-language matching with known within-modality groups and an unordered candidate set of textual concepts, where visual groups and a set of candidate textual concepts are available but their cross-modal correspondence is unknown. Supervision is confined to constructing class-level representations within each modality, with no paired image-text samples, cross-modal anchors, or verified correspondences provided to the matching procedure. When reliable cross-modal anchors are available, supervised alignment is often simpler and more practical. Our goal is to determine whether independently trained encoders contain sufficient relational structure to recover correspondence without such anchors. This zero-anchor setting can arise when visual groups and a candidate textual ontology are collected or maintained independently, so that both sides are available but their correspondence has not been verified. In this regime, correspondence recovery can reduce the need for manually established cross-modal anchors and also serves as a diagnostic of structural compatibility between independently trained representation spaces. More broadly, it tests whether cross-modal correspondence can emerge from relational structure alone, without shared training data or explicit cross-modal supervision. Recent work frames this problem as matching pairwise relationships between embeddings [19]. Such formulations arise naturally in kernel alignment [2], graph matching via quadratic assignment [23], and structural optimal transport, most notably the Gromov-Wasserstein (GW) distance [14, 24].
Limitations of value-based relational alignment. Blind matching compares the within-modality similarity kernels and and searches for the class permutation under which their relational structures agree best (Section 2.1). Existing relational alignment methods already operate at the level of pairwise relations rather than raw embeddings, but they still compare the numerical entries of the two kernels directly [11, 19, 12]. Even when vision and language encoders learn similar embeddings, the numerical entries of their within-modality kernels need not be directly comparable across modalities. The two modalities may agree on the ordering of concept similarities, while still assigning different kernel values to the same relations. Consequently, alignment objectives that rely directly on kernel-entry comparison can become weakly discriminative [8, 16].
This numerical mismatch weakens the discriminative value of direct kernel-entry comparison. At the same time, recent evidence suggests that cross-modal agreement can be more stable in relative and local relational structure than in absolute similarity values [4]. These observations raise a key question: can cross-modal correspondence be recovered from relational order when the numerical kernel values are not directly comparable across modalities?
Rank-based relational alignment. To address this issue, we introduce an rank-based formulation of relational alignment. Instead of matching kernels based on raw values, we align them by comparing their rank-based transformation, which uses the ordering induced by these entries. The goal is therefore not to compare and as numbers, but to ask whether the two modalities induce consistent relational order over concept pairs. Concretely, we replace each off-diagonal entry of a within-modality kernel with its rank among the off-diagonal entries and evaluate the same matching objective on the transformed kernels. The correspondence problem itself remains unchanged, while the matching signal is determined by relational order rather than raw kernel values.
Contributions. We study class-level unpaired vision-language matching with known categories. Class-level representations are available within each modality, while their cross-modal correspondence is unknown. Our contributions are summarized as follows:
• Solver-agnostic ordinal relational representation. We introduce a rank-based representation that plugs into existing blind-matching objectives and QAP solvers without changing the correspondence space or optimization procedure. RankAlign removes arbitrary strictly increasing reparameterizations of similarity values while retaining the ordinal structure used for matching.
• Theory of ordinal correspondence recovery. We formalize cross-modal agreement up to modality-specific monotone reparameterizations and show that the resulting ordinal repre-

Figure 1: Visual-language alignment pipeline. The RankAlign module provides the core ordinal representation of each within-modality similarity kernel. These representations are refined using local neighbor order before permutation matching, without changing the matching space or solver.
sentation is invariant to such distortions. We further provide exact-recovery and stability guarantees that separate cross-modal ordinal disagreement from the intrinsic distinguishability of class relational profiles.
• Empirical validation. Experiments across diverse vision and language encoders and datasets demonstrate that RankAlign achieves more stable and reliable cross-modal correspondence alignment.
2.1 Preliminary
We adopt the blind-matching setting of Schnaus et al. [19]. Let and denote frozen visual and language encoders, respectively. We consider semantic classes shared across the two modalities. We construct class-level prototypes as
Then, we center the prototypes independently within each modality and renormalize them before constructing the relational kernels
and analogously for the language prototypes. This operation uses no cross-modal correspondence information and is permutation equivariant.
For notational simplicity, we use and below to denote the resulting normalized prototypes. The within-modality similarity kernels are
A candidate cross-modal correspondence is represented by a permutation . Given a distortion function , define
Blind relational matching seeks
Equivalently, we use the agreement score
Lemma 1 (Distortion and agreement). For , minimizing is equivalent to maximizing . For the squared distortion ,
where and do not depend on . Hence both formulations have identical optimizers.
Hence, the objective function can be written as . And we use the maximization form throughout the remainder of the paper. The resulting problem is a quadratic assignment problem (QAP). A proof of Lemma 1 is given in Appendix A.1.
2.2 Limitations of value-based relational alignment
The objective in Eq. 6 compares numerical kernel values directly. This implicitly assumes that visual and language similarities are sufficiently calibrated across modalities. Such calibration is not guaranteed for independently trained encoders.
To formalize this distinction, suppose both modalities encode a shared latent relational structure through modality-specific strictly increasing maps,
where denotes the ground-truth correspondence.
Even under the correct correspondence, the numerical similarities in the two modalities may differ substantially whenever and have different parameterizations. Consequently, a value-based objective can penalize a correct correspondence despite the two modalities encoding the same underlying relational structure.
By contrast, strictly increasing transformations preserve relational order. For any two unordered class pairs ,
Thus, the two modalities may share the same ordinal relational geometry without sharing the same numerical parameterization. This suggests representing relational structure through order rather than absolute similarity values, thereby making the matching objective insensitive to modality-specific monotone reparameterizations.
2.3 Rank-based relational alignment
Because the similarity kernels are symmetric, we rank unordered class pairs. Let
For a symmetric kernel K, we define the empirical cumulative distribution function of its off-diagonal similarities as
(11) and the corresponding rank transformation as
The transformation replaces the numerical spacing of pairwise similarities by their relative positions within each modality. If all M unordered off-diagonal similarities are distinct, the transformed values are . If ties are present in the original kernel, they remain tied after the transformation. Rank transformation preserves the available relational ordering rather than creating additional relational information.
Lemma 2 (Ordinal invariance). For every strictly increasing function ,
Moreover, for every permutation ,
where .
Lemma 2 establishes the central invariance of the rank representation. Modality-specific strictly monotone reparameterizations of similarity values are removed without changing the underlying correspondence structure. The transformation also preserves every strict pairwise ordering induced by the original kernel. The proof is provided in Appendix A.1.
Replacing the kernels in Eq. 6 by their rank representations gives the ordinal matching objective
The correspondence problem itself is unchanged. RankAlign changes only the relational representation supplied to the matching objective. The recovery analysis below focuses on the core rank representation , while the full ordinal refinement used in the experiments is described in Appendix A.1.
2.4 Recovery guarantees
We next give conditions under which ordinal relational matching recovers the ground-truth correspondence. We first establish exact recovery for the basic rank objective in Eq. 15, which isolates the contribution of ordinal information, and then study stability under partial ordinal disagreement.
Assumption 1 (Strict ordinal consistency). Let denote the ground-truth correspondence. Assume that the unordered off-diagonal values of are distinct and that the two modalities induce the same strict ordering over unordered class pairs under . For any distinct ,
Assumption 1 requires agreement in relational order, rather than agreement in numerical similarity values. The noise-free latent model of Eq. 8 satisfies this assumption whenever the latent similarities are distinct, independently of the strictly increasing modality-specific maps and .
Proposition 1 (Exact recovery). Under Assumption 1 and , is the unique maximizer of over . Moreover, for every ,
when the objective is summed over ordered off-diagonal pairs. Equivalently, the corresponding margin over unordered pairs is at least .
Proposition 1 shows that strict ordinal consistency is sufficient for unique correspondence recovery. The guarantee depends only on the relational ordering and the problem size, rather than on the numerical spacing of either kernel. The complete proof is given in Appendix A.2.
Strict ordinal consistency is an idealized condition. In practice, some relational orders may disagree across modalities. We therefore state the stability result in a representation-independent form. Let
denote any permutation-equivariant ordinal representation, with and . We define the cross-modal residual as
and the structural discrepancy induced by a permutation as
Proposition 2 (Stability under partial ordinal disagreement). For any candidate permutation , let . Then
where . Consequently, every maximizer satisfies
The result separates two sources of difficulty. The residual measures cross-modal ordinal disagreement, while measures how distinguishable the relational structure is under an incorrect relabeling. Further specialization to the practical RankAlign representation, together with bounds on mismatched classes and approximate solver outputs, is provided in Appendix A.2.
2.5 Computational complexity
We finally analyze the additional computational cost introduced by RankAlign. Constructing a dense similarity kernel from class prototypes of dimension requires time and memory. The kernel-level rank transformation sorts pairwise similarities, while the anchor-wise transformation ranks rows of length . Both operations require time. The score transformation, symmetrization, and standardization are all .
Consequently, excluding feature extraction, RankAlign representation can be constructed in time and memory. Since the kernel construction is already required by value-based relational matching, the additional asymptotic preprocessing overhead of RankAlign is time and memory. RankAlign does not change the subsequent correspondence problem. If denotes the running time of a chosen QAP solver , the complete matching pipeline requires time. Further details are provided in Appendix A.3.
3 Experiments
We measured performance using matching accuracy, defined as the fraction of correctly recovered class correspondences. A matching accuracy of 1.00 corresponds to exact recovery of the ground-truth class permutation. We compared against BlindMatch [19] using both Gromov–Wasserstein ((GW)) and Mutual kNN. RankAlign uses the same permutation solvers as the baselines but replaces the raw within-modality similarity kernels with the ordinal representation defined in Section 2.3 before matching. To isolate the contribution of this representation, we additionally compare against z-score normalization, quantile normalization, and row-wise ranking under an identical protocol. The controlled ablation in Appendix B.2 shows that the gains cannot be explained by generic normalization or local ranking alone. All experiments were conducted on a single NVIDIA RTX A6000 GPU with 48GB memory.
Pre-trained models. We evaluated RankAlign using a variety of frozen pre-trained visual and textual encoders to cover diverse representation geometries and supervision paradigms, including DINO/DINov2 [1, 13], DeiT [21], and vision-language models such as CLIP [15], SigLIP [25], and SigLIP2 [22]. For language side, we primarily used SentenceTransformers models [17].
Prompt construction. Given an image classification dataset with N visual groups, we form class-level prototypes independently in the two modalities. On the visual side, each image is embedded with the frozen visual encoder and the embeddings are averaged within each visual group. On the language side, we construct an unordered candidate set of N textual concepts. For each candidate concept, we generate a small collection of semantically equivalent textual descriptions, embed them with the frozen language encoder, and average them to obtain a textual prototype. The correspondence between the visual groups and textual prototypes is withheld from the matching algorithm. The algorithm receives only the two unordered sets of class-level prototypes and recovers their cross-modal permutation from within-modality relational structure.
Dataset We conducted our experiments on CIFAR-100 [9], ImageNet-100 [18], the medical imaging dataset CheXpert [7], and a pseudo-class dataset derived from the LAION-Aesthetic subset [20]. More details are provided in Appendix B.1.
3.1 Computational Cost
Because encoders were frozen, no end-to-end training was required. RankAlign introduces only an ordinal preprocessing step before permutation matching. As analyzed in Section 2.5, constructing the complete RankAlign representation requires additional preprocessing time and memory beyond the similarity-kernel construction. The transformed representations remain , so the overall computational cost is primarily determined by the QAP solver.
Table 1: Runtime and matching accuracy on CIFAR-100 across different problem sizes using CLIP as the vision encoder and Sentence-T as the language encoder. Results are reported as mean standard deviation over five random seeds. * indicates that the solver reaches the 300s time limit. Actual wall-clock runtime may be slightly higher due to termination and post-processing overhead.
| Solver | Method | |||
|---|---|---|---|---|
| Matching accuracy | ||||
| FAQ | BLINDMATCH | |||
| RANKALIGN | ||||
| OT | BLINDMATCH | |||
| RANKALIGN | ||||
| FHG | BLINDMATCH | |||
| RANKALIGN | ||||
| Runtime (s) | ||||
| FAQ | BLINDMATCH | |||
| RANKALIGN | ||||
| OT | BLINDMATCH | |||
| RANKALIGN | ||||
| FHG | BLINDMATCH | |||
| RANKALIGN | ||||
Table 1 reports runtime and matching accuracy on CIFAR-100 with respect to the problem size . When the same solver is used, RankAlign introduces only a modest runtime overhead while providing substantially higher matching accuracy. The OT-based solver remains computationally efficient across all tested problem sizes. In contrast, FHG reaches the runtime limit at larger problem sizes in our implementation. These results indicate that the main scalability bottleneck comes from permutation optimization rather than the rank transformation itself.
3.2 Scalability
We tested scalability on CIFAR-100 and ImageNet-100 by increasing the problem size , where larger requires finer-grained semantic discrimination and yields a more challenging matching problem. Following [19], we selected class subsets using a p-dispersion strategy, which favors subsets whose relational structures are well aligned across modalities. Specifically, let be a subset of classes with . We can get a subset score
which measures the agreement between visual and language relational kernels restricted to . We then select subsets by approximately solving , which is an instance of the p-dispersion-sum problem. This procedure yielded class subsets where cross-modal relational structure is more consistent, making non-trivial matching feasible. For each problem size N, i.e., the number of classes to be matched, we constructed matching instances from the selected subsets and reported results across different visual encoders. We use the same solver of FHG [19] for a fair comparison. Fig. 2 shows that the matching problem becomes progressively more challenging as N increases, particularly at larger problem sizes. At smaller N, RANKALIGN reaches a matching accuracy of 1 for several backbone settings. Since matching accuracy measures the fraction of correctly recovered class correspondences, a value of 1 means that the recovered permutation exactly matches the ground-truth permutation, i.e., . This should be interpreted as exact correspondence recovery for the given matching instance rather than as an indication of overfitting. This observation is consistent with Proposition 1, which shows that under strict ordinal consistency, is the unique maximizer of the ordinal matching objective. As N grows, RANKALIGN consistently outperforms BLINDMATCH(GW), with the advantage becoming increasingly pronounced at larger problem sizes. Most notably, at N = 100, RANKALIGN retains approximately 30% – 60% matching accuracy across the representative backbones on CIFAR-100 and ImageNet-100, while BLINDMATCH(GW) falls to near-chance levels. This yields an improvement of roughly 45% – 70% at the largest evaluated problem size.
These observations are consistent with the recovery analysis in Section 2.4. Ordinal consistency yields unique recovery of the ground-truth permutation, while under partial disagreement recovery depends on the balance between cross-modal ordinal agreement and the distinguishability of class relational profiles. The widening performance gap suggests that ordinal relational structure remains informative as correspondence recovery requires increasingly fine-grained discrimination among classes. For clarity, Fig. 2 reports representative results for CLIP, DINOv2, and SigLIP2, while results across all evaluated vision backbones are provided in Appendix B.4. Additional comparisons in Appendix B.3 show that classical Orthogonal Procrustes and vanilla Gromov–Wasserstein optimal transport remain substantially below RankAlign under the same representations and matching instances.


Figure 2: Matching accuracy as a function of problem size on CIFAR-100 and ImageNet-100. Each color corresponds to a vision backbone. For each backbone, the darker solid line denotes RANKALIGN, while the lighter dashed line denotes BLINDMATCH with GW.
3.3 Robustness to label corruption
Setup. We conducted this experiment on CIFAR-100 and ImageNet-100 with classes. For each corruption rate , we randomly assigned a fraction of image embeddings within each class to incorrect classes. Let be the set of samples originally assigned to class , and let be the number of corrupted samples from class . This produces corrupted labels , while the language prototypes remain unchanged. Using the corrupted labels, we recomputed the visual class centroids as
where is the visual embedding of image . We performed cross-modal matching between the corrupted visual prototypes and the clean language prototypes.
Let denote the recovered permutation. We report the class-level matching accuracy
Each experiment was repeated over multiple random seeds and we report mean and standard deviation. Robustness is quantified by the relative drop from the clean setting:
where denotes the mean matching accuracy at corruption rate .
Table 2: Robustness under visual-side label corruption on CIFAR-100 and ImageNet-100. We report matching accuracy (%) as mean standard deviation over five random seeds and relative performance drop (%) with respect to the clean setting.
| Dataset | Metric | 0.00 | 0.10 | 0.20 | 0.30 | 0.40 |
|---|---|---|---|---|---|---|
| CIFAR-100 | Acc. (%) | |||||
| Drop (%) | ||||||
| ImageNet-100 | Acc. (%) | |||||
| Drop (%) |
Table 2 reports robustness under increasing visual-side label corruption on CIFAR-100 and ImageNet-100. As the corruption rate increases, matching accuracy decreases on both datasets, reflecting the impact of noisy class assignments on prototype quality. The degradation remains gradual across a wide range of corruption levels, indicating that our method maintains reasonable performance even under moderate noise. Similar trends are observed on both datasets, suggesting that the approach is consistently robust across different data distributions.
3.4 LAION Pseudo-Class Matching
We further evaluate RankAlign on the LAION pseudo-class dataset, which provides a noisy image-text setting without manually defined class annotations. We compare RANKALIGN against BLIND-MATCH() across different visual backbones.
Table 3: Matching accuracy on the LAION pseudo-class dataset. We compare BLINDMATCH() with RANKALIGN across different visual backbones.
| Vision model | BLINDMATCH | RANKALIGN |
|---|---|---|
| DINOv2 | ||
| DeiT | ||
| CLIP | ||
| SigLIP | ||
| SigLIP2 |
As shown in Table 3, RANKALIGN achieves stronger overall matching performance than BLIND-MATCH() across the evaluated visual backbones. The results indicate that rank-based relational alignment is generally more robust in this noisy pseudo-class setting, where class definitions are derived from weakly supervised image-text signals rather than manually curated labels. The consistent gains across different backbone families further suggest that the benefit of RankAlign is not tied to a specific visual encoder.
3.5 Medical Domain Evaluation
We also evaluate RankAlign on CheXpert, which introduces a substantial domain gap between medical images and language descriptions, together with subtle inter-class differences and class imbalance. Compared with natural-image benchmarks, CheXpert presents a more challenging cross-modal matching setting because different pathological categories may exhibit highly similar visual patterns, while the corresponding language descriptions encode fine-grained clinical distinctions. Moreover, the uneven class distribution further perturbs class-level prototype estimation, making reliable correspondence recovery more difficult. Table 4 reports matching accuracy across different visual backbones. We compare RANKALIGN against BLINDMATCH(GW) under the same evaluation setting. Across all evaluated backbones, RANKALIGN achieves substantially higher matching accuracy, indicating that the rank-based relational representation remains effective under pronounced domain shift and challenging medical-image semantics.
Table 4: Matching performance on the CheXpert subset. We report matching accuracy across different vision backbones for BLINDMATCH(GW) and RANKALIGN.
| Vision model | BLINDMATCH | RANKALIGN |
|---|---|---|
| DeiT | 0.08 ± 0.01 | 0.65 ± 0.01 |
| DINOv2 | 0.06 ± 0.01 | 0.62 ± 0.30 |
| CLIP | 0.08 ± 0.01 | 0.63 ± 0.26 |
| SigLIP | 0.10 ± 0.02 | 0.45 ± 0.22 |
| SigLIP2 | 0.08 ± 0.00 | 0.23 ± 0.04 |
4 Conclusions
This work revisits class-level unpaired vision-language matching from an ordinal perspective and introduces RankAlign, a rank-based normalization strategy for relational correspondence. Rather than modifying the underlying permutation-matching framework, RankAlign changes the relational representation supplied to the matching objective. By emphasizing relational order over absolute similarity magnitudes, it provides a monotone-invariant signal for recovering cross-modal correspondences without cross-modal supervision. Beyond its empirical effectiveness, these findings offer strong support for the Platonic Representation Hypothesis, demonstrating that cross-modal convergence does not require rigid metric equivalence, but rather emerges naturally through shared relational topologies across independently trained representations. A fundamental property of rank-based normalization lies in its complete invariance to strictly increasing reparameterizations, providing provable guarantees against modality-specific scale distortions, domain shifts, and monotonic noise. These theoretical properties translate directly into empirical robustness: across diverse frozen encoders and matching settings, RankAlign delivers stable class-level correspondence recovery even under severe corruption conditions. By formulating cross-modal correspondence in terms of relational order rather than absolute similarity magnitudes, the approach ensures invariant alignment without relying on cross-modal anchors or paired supervision.
Limitations RankAlign relies on informative class-level prototypes in both modalities. When visual groups are estimated from noisy clustering rather than reliable class labels, prototype errors can distort the induced relational structure and reduce ordinal agreement, and our experiments suggest that prototype quality is a major source of degradation, although larger and more fine-grained matching problems may introduce additional difficulty. The permutation-based matching stage can also become computationally expensive as the number of classes grows. Moreover, RankAlign focuses on class-level zero-anchor correspondence and intentionally discards absolute similarity magnitudes, so instance-level, open-vocabulary, and hybrid ordinal–magnitude alignment remain directions for future work.
Broader Impact RankAlign may reduce the need for manually verified cross-modal correspondences in settings where paired multimodal supervision is limited or expensive. Potential applications include representation analysis, class-level retrieval, and domain-specific multimodal matching. As with other alignment methods, unreliable prototypes or biases in pretrained models may lead to incorrect correspondences, so applications in sensitive domains should include appropriate validation.
Acknowledgments
We are grateful to Francis Engelmann for carefully reviewing the manuscript and providing valuable suggestions that helped improve the clarity of the paper.
References
[1] Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. Emerging properties in self-supervised vision transformers. In Proc. of the IEEE/CVF International Conference on Computer Vision (ICCV), 2021. 1, 6
[2] Nello Cristianini, John Shawe-Taylor, André Elisseeff, and Jaz Kandola. On kernel-target alignment. In Proc. of Advances in Neural Information Processing Systems (NeurIPS), 2001. 2
[3] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proc. of the Conference of the North American Chapter of the Association for Computational Linguistics (NAACL), 2019. 1
[4] Fabian Gröger, Shuo Wen, and Maria Brbic. Revisiting the platonic representation hypothesis: An aristotelian view. In Proc. of the International Conference on Machine Learning (ICML), 2026. 2
[5] Harold Hotelling. Relations between two sets of variates. Biometrika, 28(3-4):321–377, 1936. 1
[6] Minyoung Huh, Brian Cheung, Tongzhou Wang, and Phillip Isola. Position: The platonic representation hypothesis. In Proc. of the International Conference on Machine Learning (ICML), 2024. 1
[7] Jeremy Irvin, Pranav Rajpurkar, Michael Ko, Yifan Yu, Silviana Ciurea-Ilcus, Chris Chute, Henrik Marklund, Behzad Haghgoo, Robyn Ball, Katie Shpanskaya, et al. CheXpert: A Large Chest Radiograph Dataset with Uncertainty Labels and Expert Comparison. In Proc. of the AAAI Conference on Artificial Intelligence, 2019. 7, 17
[8] Simon Kornblith, Mohammad Norouzi, Honglak Lee, and Geoffrey Hinton. Similarity of neural network representations revisited. In Proc. of the International Conference on Machine Learning (ICML), 2019. 2
[9] Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009. 7, 17
[10] Mayug Maniparambil, Raiymbek Akshulakov, Yasser Abdelaziz Dahou Djilali, Mohamed El Amine Seddik, Sanath Narayan, Karttikeya Mangalam, and Noel E. O'Connor. Do vision and language encoders represent the world similarly? In Proc. of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2024. 1
[11] Luca Moschella, Valentino Maiorca, Marco Fumero, Antonio Norelli, Francesco Locatello, and Emanuele Rodolà. Relative representations enable zero-shot latent space communication. In Proc. of the International Conference on Learning Representations (ICLR), 2023. 2
[12] Antonio Norelli, Marco Fumero, Valentino Maiorca, Luca Moschella, Emanuele Rodolà, and Francesco Locatello. ASIF: Coupled data turns unimodal models to multimodal without training. In Proc. of Advances in Neural Information Processing Systems (NeurIPS), 2024. 2
[13] Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, et al. DINov2: Learning Robust Visual Features without Supervision. Transaction of Machine Learning Research (TMLR), 2024. 6
[14] Gabriel Peyré, Marco Cuturi, and Justin Solomon. Gromov-wasserstein averaging of kernel and distance matrices. In Proc. of the International Conference on Machine Learning (ICML), 2016. 2
[15] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In Proc. of the International Conference on Machine Learning (ICML), 2021. 1, 6
[16] Maithra Raghu, Justin Gilmer, Jason Yosinski, and Jascha Sohl-Dickstein. SVCCA: Singular vector canonical correlation analysis for deep learning dynamics and interpretability. In Proc. of Advances in Neural Information Processing Systems (NeurIPS), 2017. 2
[17] Nils Reimers and Iryna Gurevych. Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks. In Proc. of the International Conference on Empirical Methods in Natural Language Processing (EMNLP), 2019. 1, 6
[18] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision, 115(3):211–252, 2015. 7, 17
[19] Dominik Schnaus, Nikita Araslanov, and Daniel Cremers. It’s a (blind) match! towards vision-language correspondence without parallel data. In Proc. of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2025. 1, 2, 3, 6, 7, 8
[20] Christoph Schuhmann, Romain Beaumont, Richard Vencu, Cade Gordon, Ross Wightman, Mehdi Cherti, Theo Coombes, Aarush Katta, Clayton Mullis, Mitchell Wortsman, Patrick Schramowski, Srivatsa Kundurthy, Katherine Crowson, Ludwig Schmidt, Robert Kaczmarczyk, and Jenia Jitsev. LAION-5B: an open large-scale dataset for training next generation image-text models. In Proc. of Advances in Neural Information Processing Systems (NeurIPS), 2022. 7, 17
[21] Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Hervé Jégou. Training data-efficient image transformers & distillation through attention. In Proc. of the International Conference on Machine Learning (ICML), 2021. 6
[22] Michael Tschannen, Alexey Gritsenko, Xiao Wang, Muhammad Ferjad Naeem, Ibrahim Alabdulmohsin, Nikhil Parthasarathy, Talfan Evans, Lucas Beyer, Ye Xia, Basil Mustafa, Olivier Henaff, Jeremiah Harmsen, Andreas Steiner, and Xiaohua Zhai. SigLIP 2: Multilingual Vision-Language Encoders with Improved Semantic Understanding, Localization, and Dense Features. arXiv preprint arXiv:2502.14786, 2025. 1, 6
[23] Joshua T. Vogelstein, John M. Conroy, Vince Lyzinski, Louis J. Podrazik, Steven G. Kratzer, Eric T. Harley, Donniell E. Fishkind, R. Jacob Vogelstein, and Carey E. Priebe. Fast approximate quadratic programming for graph matching. PLOS One, 10(4), 2015. 2
[24] Hongteng Xu, Dixin Luo, Hongyuan Zha, and Lawrence Carin. Gromov-Wasserstein Learning for Graph Matching and Node Embedding. In Proc. of the International Conference on Machine Learning (ICML), 2019. 2
[25] Xiaohua Zhai, Basil Mustafa, Alexander Kolesnikov, and Lucas Beyer. Sigmoid loss for language image pre-training. In Proc. of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2023. 6
A Technical appendices and supplementary material
In this appendix, we provide further theoretical results and detailed proofs in §A. Additionally, we report supplementary empirical results and analyses in §B.
This appendix provides proofs and additional details for the theoretical results in the main text. We first establish the relation between relational distortion and agreement and prove the invariance properties of the rank representation. We then describe the full ordinal refinement used in the experiments. Next, we prove the exact-recovery and stability results and connect them to this refined representation and approximate solver outputs. Finally, we provide additional computational complexity details.
A.1 Properties of the ordinal representation
We first prove the relation between the distortion formulation and the agreement score introduced in Section 2.1.
Proof of Lemma 1. For ,
Hence minimizing is equivalent to maximizing .
For ,
Because is a bijection over the ordered off-diagonal pairs,
The first two terms are therefore independent of , which proves the equivalence.
When the off-diagonal entries of both kernels have zero mean and unit variance, define
Then
and
Thus maximizing the agreement score is equivalent to maximizing the correlation between the two relational structures.
Proof of Lemma 2. Let be strictly increasing. For any observed kernel entries,
if and only if
Therefore
which implies
Now let . Relabeling the classes induces a bijection on the unordered-pair set and therefore leaves the multiset of off-diagonal kernel values unchanged. Hence
and therefore
The rank transformation also preserves strict pairwise order. For ,
If all unordered off-diagonal values are distinct, the rank values are . If ties occur, equal values remain tied. Rank transformation therefore preserves the ordinal information already present in the kernel rather than creating additional relational distinctions.
The theoretical analysis in the main text is stated for the basic rank representation . In the experiments, we use a fixed ordinal refinement , which combines kernel-level ranks with anchor-wise neighbor order. For ranks computed over m candidate relations, we use the monotone reweighting
Because is strictly increasing, it changes the relative weighting of rank positions without changing their ordering. For each anchor i, define the within-row rank
with zero diagonal. Then let denote standardization over the off-diagonal entries of a symmetric matrix A,
with zero diagonal, where and are the mean and standard deviation of the off-diagonal entries. We define
and
where .
The RankAlign representation is then .
The two components are standardized before aggregation so that their relative contribution is not determined solely by numerical scale. Importantly, all operations in this refinement depend only on ordinal information. Consequently, for every strictly increasing , and for every permutation . Thus, the refined representation inherits the monotone invariance and permutation equivariance of the basic rank representation without reintroducing the original similarity magnitudes.
A.2 Recovery guarantees and approximate optimization
We first prove the exact-recovery result for the basic rank objective in Section 2.4.
Proof of Proposition 1. Let , Under Assumption 1, the two kernels induce the same strict ordering under . Hence
For an arbitrary candidate permutation , define
Then
Therefore,
The right-hand side is non-negative for every , so is a maximizer.
We next show uniqueness and the explicit margin. The permutation induces a permutation of the unordered-pair set . If every unordered pair were fixed, then for any and any two distinct ,
so . Thus every non-identity class permutation with changes at least one non-trivial cycle of unordered pairs.
Under Assumption 1, the unordered rank values are and are pairwise distinct. A non-trivial cycle contains at least two unordered pairs, and each changed rank differs by at least . Since every unordered pair contributes twice to the ordered off-diagonal objective,
Hence
Therefore is the unique maximizer. If the objective is instead written over unordered pairs only, each relation appears once, giving the corresponding margin .
The exact-recovery result above is stated for the basic rank representation. Under Assumption 1, the two modalities differ only by a strictly increasing reparameterization under the ground-truth correspondence. Since the refined representation is monotone invariant and permutation equivariant,
Hence also maximizes the practical RankAlign objective. It is unique whenever the transformed representation has no non-trivial permutation symmetry. We now prove the stability result in the representation-independent form used in the main text. Let
and define . For , let .
Proof of Proposition 2. Since , we have . Therefore,
The first two terms satisfy
By Cauchy–Schwarz,
Hence
If maximizes , then we have
and
The stability result also yields a bound on the number of mismatched classes. Define
and
Then
which gives
For the standardized representation T, define
Because the off-diagonal entries are standardized to zero mean and unit variance,
Substituting this expression into Eq. 35 gives
This separates cross-modal ordinal disagreement, measured by , from the intrinsic distinguishability of the relational profiles, measured by .
Finally, the previous result extends to an approximate QAP solver. Let denote an arbitrary solver output and define its objective deficit relative to the ground truth as
From the stability inequality,
Solving the resulting quadratic inequality gives
Hence,
The analysis therefore separates three sources of difficulty. Cross-modal disagreement is captured by , structural ambiguity by , and optimization error by .
A.3 Computational complexity
We finally provide a detailed accounting of the computational cost of RankAlign. Let N denote the number of classes and d the embedding dimension. The number of unordered class pairs is
Prototype centering and normalization require time. Constructing each dense similarity kernel requires time and memory. The kernel-level rank transformation sorts values and requires time.
The anchor-wise transformation ranks N rows of length and also requires time. The score transformation, symmetrization, and standardization each operate over at most entries and therefore require time. Consequently, the complete practical RankAlign representation can be constructed in time and memory, excluding feature extraction.
The kernel construction is already required by conventional value-based relational matching. The additional asymptotic preprocessing overhead introduced by RankAlign is time and memory. Let denote the running time of a chosen QAP solver . The complete pipeline requires time.
The transformed representation remains an matrix. RankAlign therefore leaves the input structure of the QAP unchanged and can be combined with the same solver used by value-based relational matching. Evaluating the complete matching objective for one permutation requires operations. If a local-search solver swaps two assignments, only terms involving the affected classes change, so the corresponding objective update involves pairwise terms. We use an iterated local search (ILS) procedure to obtain a strong initial solution before applying the selected QAP solver. The ILS optimizes the rank-based objective and its solution is used to initialize FAQ, entropic OT, or FHG. The same initialization procedure is applied to BlindMatch for a fair comparison.
B Additional experiments
In this section, we provide supplementary experimental results supporting the main paper.
B.1 Datasets
We evaluate RankAlign on diverse benchmarks spanning web-scale pseudo-label data, object recognition datasets at different semantic granularities, and a domain-specific medical imaging dataset.
CIFAR-100 and ImageNet-100. To study scalability, we evaluated the matching accuracy as a function of the number of classes N using subsets of CIFAR-100 [9] and ImageNet-100 [18]. We varied N across matching instances to assess performance under increasing task difficulty.
LAION pseudo-class dataset. We evaluated RankAlign on a pseudo-class dataset derived from the LAION-Aesthetic subset [20]. Since LAION lacks predefined class labels, we defined visual categories and assign pseudo-labels via caption matching. To ensure label quality, we classified each image using both its original caption (TEXT) and a Moondream-generated auxiliary caption, retaining only samples with a unique, consistent top-scoring assignment. The dataset contains approximately 7,000 samples, with 200–500 images per class. Visual and language prototypes are constructed by averaging embeddings within each pseudo-class and its associated captions, respectively.
Medical imaging dataset. We evaluated RankAlign on CheXpert [7], a large-scale chest X-ray benchmark with 220,000 radiographs. We extracted a 12-class single-label subset by retaining samples with one positive finding, totaling about 62,000 images. This setting is challenging due to subtle inter-class differences, class imbalance, and the medical image-text domain gap.
B.2 Kernel Transformation Ablation
To determine whether the gains of RankAlign can be explained by generic normalization or by a single form of ranking, we conduct a controlled ablation on CIFAR-100. All variants use identical visual and language prototypes, class subsets, similarity kernels, encoders, and permutation solvers. Only the relational representation supplied to the solver is changed.
We compare the raw kernel without transformation (none), z-score normalization, row-wise ranking, quantile normalization, and the full RankAlign representation. Z-score normalization removes global mean and scale differences while preserving the relative spacing of kernel values. Row-wise ranking preserves local neighbor order but does not define a single kernel-level ordinal ordering. Quantile normalization aligns marginal value distributions.
Table 5 shows that the improvement cannot be explained by normalization alone. Z-score normalization provides almost no gain over the raw value-based kernel, consistent with the fact that affine normalization does not alter the optimizer of the inner-product matching objective. Quantile normalization also yields limited improvements. Row-wise ranking performs substantially better than value-based normalization, confirming that local ordinal information is useful. However, its advantage decreases as the problem size grows. RankAlign consistently achieves the highest matching accuracy.
Table 5: Kernel transformation ablation on CIFAR-100. All variants use the same prototypes, class subsets, encoders, kernels, and permutation solver, only the kernel transformation differs.
| Transformation | N = 30 | N = 50 | N = 70 | N = 100 |
|---|---|---|---|---|
| None | 0.03 | 0.01 | 0.00 | 0.00 |
| Z-score | 0.03 | 0.02 | 0.01 | 0.00 |
| Row-wise ranking | 0.32 | 0.14 | 0.09 | 0.06 |
| Quantile normalization | 0.06 | 0.07 | 0.04 | 0.00 |
| RankAlign | 1.00 | 0.98 | 0.91 | 0.79 |
across all problem sizes, indicating that the combination of kernel-level ordinal normalization and anchor-wise neighborhood order is more effective than generic normalization or local ranking alone.
B.3 Comparison with Classical Structural Alignment Methods
To examine whether simpler classical alignment methods can recover the same cross-modal correspondence without RankAlign's ordinal formulation, we compare against unsupervised Orthogonal Procrustes and standard entropic Gromov–Wasserstein optimal transport. All methods use the same class-level visual and language representations and are evaluated on the same CIFAR-100 matching instances, so the comparison isolates differences in the alignment objective rather than differences in the underlying encoders or prototypes.
Table 6: Comparison with classical structural alignment methods on CIFAR-100. All methods use the same class-level representations and matching instances. We report matching accuracy across problem sizes.
| Model | Method | N = 30 | N = 50 | N = 70 | N = 100 |
|---|---|---|---|---|---|
| CLIP | Procrustes | 0.01 ± 0.02 | 0.03 ± 0.01 | 0.02 ± 0.02 | 0.00 ± 0.00 |
| Vanilla GW-OT | 0.03 ± 0.03 | 0.03 ± 0.02 | 0.03 ± 0.03 | 0.03 ± 0.00 | |
| RankAlign | 1.00 ± 0.00 | 0.98 ± 0.02 | 0.91 ± 0.04 | 0.79 ± 0.02 | |
| DeiT | Procrustes | 0.04 ± 0.04 | 0.02 ± 0.01 | 0.02 ± 0.01 | 0.01 ± 0.00 |
| Vanilla GW-OT | 0.07 ± 0.04 | 0.05 ± 0.03 | 0.07 ± 0.05 | 0.05 ± 0.00 | |
| RankAlign | 0.93 ± 0.01 | 0.95 ± 0.05 | 0.72 ± 0.05 | 0.36 ± 0.16 | |
| DINOv2 | Procrustes | 0.05 ± 0.04 | 0.02 ± 0.02 | 0.01 ± 0.01 | 0.04 ± 0.00 |
| Vanilla GW-OT | 0.01 ± 0.02 | 0.01 ± 0.01 | 0.01 ± 0.01 | 0.00 ± 0.00 | |
| RankAlign | 0.95 ± 0.06 | 0.90 ± 0.02 | 0.90 ± 0.04 | 0.68 ± 0.15 |
Table 6 shows that neither classical baseline approaches the performance of RankAlign across the evaluated backbones and problem sizes. Both Orthogonal Procrustes and vanilla GW-OT remain close to chance as increases, whereas RankAlign retains substantially higher matching accuracy. Because all methods operate on the same class-level representations, this difference cannot be attributed to stronger encoders or higher-quality prototypes. These results indicate that a global linear alignment or direct matching of the original metric structures is insufficient to recover the cross-modal correspondence in these experiments, and RankAlign is not replacing a comparably accurate simpler baseline.
B.4 Full larger-scale matching results
In the main paper, we report representative larger-scale matching results for a subset of vision backbones to improve readability. We provide the full results across all evaluated backbones, including CLIP, DINOv2, DeiT, SigLIP, and SigLIP2.
Figure 3 shows matching accuracy as a function of the problem size on CIFAR-100 and ImageNet-100. The overall trend is consistent with the representative results in the main text, RANKALIGN consistently outperforms BLINDMATCH with the objective across different backbone families, and its performance degrades more gradually as the number of matched classes increases. These results indicate that the improvement is not tied to a particular visual encoder, but holds across both vision-language and visual representation models.


Figure 3: Full larger-scale matching results on CIFAR-100 and ImageNet-100 across all evaluated vision backbones. Each color corresponds to a vision backbone. The darker solid line denotes RANKALIGN, while the lighter dashed line denotes BLINDMATCH with the GW.
B.5 Existing Assets and Licenses
This work uses existing public datasets and pretrained models, including LAION-Aesthetic, CIFAR-100, ImageNet-100, CheXpert, DINO/DINOv2, DeiT, CLIP, SigLIP/SigLIP2, and SentenceTransformers. We cite the original sources for these assets and use them only for research evaluation. We will follow the corresponding licenses and terms of use for each dataset and pretrained model, and will include detailed license information in the released code and supplemental documentation.