RankAlign: Vision-Language Representation Alignment via Rank Transformation

Enzhe Zhao, Marco Fiorucci, Lamberto BallanNeurIPS 2026

TL;DR

Vision and language models trained in total isolation still seem to develop remarkably similar internal maps of the world—a phenomenon known as the Platonic Representation Hypothesis. Yet, trying to match up visual categories with text categories without any paired examples often fails because the two models measure similarity on completely different numerical scales. RankAlign solves this by throwing away the raw similarity numbers and matching concepts based purely on their relative rankings, turning fragile cross-modal alignment into a surprisingly robust, plug-and-play process.

What Problem Does This Paper Address?

Imagine you have two folders: one containing 100 groups of images (dogs, cats, cars, etc.) processed by a vision model, and another containing 100 text descriptions processed by a language model. You have zero paired examples—no captions, no shared labels, no Rosetta Stone—and you want to figure out which image group corresponds to which text concept.

Recent research tries to solve this "blind matching" problem by looking at within-modality relationships. Even if we can't compare an image vector directly to a text vector, the vision model knows that "wolf" is closer to "dog" than to "toaster," and the language model knows this too. Standard methods build a similarity matrix (or kernel) for vision and another for language, then search for the permutation that best aligns the two matrices.

Here is the catch: raw similarity scores aren't calibrated across modalities. A vision encoder might score the dog–wolf similarity at 0.92 and dog–cat at 0.85, while a language encoder scores them at 0.60 and 0.30. Both models agree on the ordering of concepts, yet comparing their raw numbers directly confuses matching algorithms—especially as you add more classes and fine-grained distinctions.

Methods

Instead of inventing a new optimization solver, the authors keep the standard matching pipeline and slip a clever preprocessing step right into the middle.

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.
  1. Standard Prototype & Kernel Setup: Using frozen vision and language encoders, the method averages embeddings within each category to get $N$ visual prototypes and $N$ textual prototypes. After centering and normalizing them within their own modalities, it computes standard pairwise cosine similarity matrices ($K_x$ and $K_y$).
  2. The Novelty — Rank Transformation: Before trying to align the matrices, RankAlign strips away the raw values. It looks at all off-diagonal pairs in a matrix and replaces each similarity score with its normalized rank (via its empirical cumulative distribution function, further refined by local neighbor order).
  3. Standard Permutation Matching: These new "ordinal kernels" are handed off to existing Quadratic Assignment Problem (QAP) or Optimal Transport (OT) solvers to find the best 1-to-1 class permutation.

Because of this rank transformation, any modality-specific stretching, squashing, or nonlinear scaling of similarity scores vanishes—as long as the transformation is strictly increasing, the ranks remain identical. Furthermore, the preprocessing only adds $O(N^2 \log N)$ time overhead, which is negligible compared to the matching solver itself.

Datasets

Because the encoders are completely frozen, no training datasets are used. Evaluation spans four diverse benchmarks:

  • CIFAR-100 & ImageNet-100: Standard natural-image classification benchmarks used to test scalability (up to $N=100$ classes) and robustness to synthetic label corruption.
  • LAION-Aesthetic (Pseudo-Class Subset): A noisy, weakly supervised dataset where categories aren't clean human labels, but pseudo-classes derived from web image–text signals.
  • CheXpert: A chest X-ray medical dataset characterized by severe domain shift, class imbalance, and subtle visual differences between pathologies.

Key Insights and Ideas

  • Topology beats geometry: This work offers a nuanced take on the Platonic Representation Hypothesis. Independently trained models don't necessarily converge to the exact same metric distances, but they strongly converge on the same ordinal topology—who is closer to whom.
  • Exact recovery is provable: The authors prove mathematically that if vision and language models strictly agree on the ordering of pairwise similarities, RankAlign is guaranteed to uniquely recover the exact ground-truth matching, regardless of how distorted the raw similarity numbers are.
  • Graceful degradation: When real-world models inevitably disagree on a few rankings, recovery stability cleanly depends on a tug-of-war between cross-modal rank disagreement and how distinctive each class's relational profile is.

Key Results

Across diverse vision backbones (DINOv2, DeiT, CLIP, SigLIP/SigLIP2) paired with SentenceTransformers, RankAlign dramatically outperforms value-based baselines like BlindMatch:

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.
  • Scaling to 100 classes: As the number of classes $N$ grows to 100 on CIFAR-100 and ImageNet-100, standard BlindMatch collapses to near-chance accuracy (e.g., 0.01 to 0.15 on CIFAR-100 depending on the solver). RankAlign boosts accuracy by roughly 45%–70%, reaching 0.79 with the FHG solver and turning a fast Optimal Transport solver from useless (0.01) into highly competitive (0.69) in under 3 seconds.
  • Domain shift (Medical): On CheXpert, where BlindMatch gets stuck at 0.06–0.10 accuracy across all backbones, RankAlign jumps to 0.65 (DeiT), 0.63 (CLIP), and 0.62 (DINOv2).
  • Noisy settings: On LAION pseudo-classes with DINOv2, accuracy leaps from 0.59 to 0.96. Even when 40% of visual labels on CIFAR-100 are randomly corrupted, RankAlign only drops from 78.7% to 68.9% accuracy.

Limitations and Future Work

  • Garbage-in, garbage-out prototypes: RankAlign relies on averaging groups of items to build clean class-level prototypes. If visual groups come from messy, noisy clustering rather than coherent categories, the relational ranks warp and accuracy drops.
  • Solver bottlenecks: While RankAlign's preprocessing is fast, solving the permutation problem itself remains computationally heavy as $N$ grows very large.
  • Future directions: Because RankAlign intentionally throws away similarity magnitudes and focuses strictly on closed-set, class-level matching, extending this ordinal perspective to instance-level matching, open-vocabulary settings, and hybrid approaches (combining rank order with magnitude cues) remains wide open for future work.

Summary updated

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.
BibTeX
@inproceedings{zhao2026rankalign,
  author = {Enzhe Zhao and Marco Fiorucci and Lamberto Ballan},
  title = {{RankAlign: Vision-Language Representation Alignment via Rank Transformation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ngwv68jt7S},
}
Figure