PoTAS: Post-hoc Tail Alignment of Similarity Scores for Embedding Compatibility with Mixed Databases

Jaeseok Byun, Joonyoung Chang, Taesup MoonarXiv 2026

TL;DR

Upgrading the embedding model in a billion-scale search system usually triggers a painful transition period where old and new embeddings live side-by-side in a "mixed database." Because different models grade similarity on wildly different scales, merging search results from both halves often causes retrieval accuracy to plummet below the old model's baseline. PoTAS solves this without touching either model's weights by calibrating only the top-scoring "tails" of the similarity distributions on the fly, ensuring your upgrade actually improves search from day one.

What Problem Does This Paper Address?

Imagine you run a massive search engine or RAG pipeline powered by an older model like CLIP, and you want to upgrade to a shiny new multimodal LLM embedder. New models speak a different mathematical language, meaning you have to re-embed your entire database—a slow, expensive process called backfilling.

To avoid downtime, engineers migrate data gradually while using lightweight "backward adapters" that translate new queries into the old embedding space. During this migration, your database is split: part old embeddings, part new. When a query comes in, both partitions return ranked lists of candidates that must be merged.

Prior work assumed you could essentially interleave these lists by raw cosine similarity, or use joint contrastive training to nudge scores together. The authors show that in realistic cross-modal, cross-architecture upgrades, this fails dramatically: retrieval accuracy drops sharply below the old model as soon as migration starts and stays worse until the database is ~70% migrated.

Figure 1. Rank merging and MCL on MCL’s benchmarks versus realistic upgrades. Recall@1 over the backfill (dashed: old and new model alone; box: AUC). (a) Image-to-image retrieval with class labels, mean of seven setups of MCL [32] on ImageNet-1K [4], CIFAR-100 [15] and Places-365 [42], reproduced as described in the appendix: on average, both rise steadily as migration proceeds. (b) Cross-modal retrieval with few answers per query, four-upgrade mean on COCO [18], Flickr30K [29] and Urban1k [40]: both drop sharply at the start and recover slowly.

Why? Because heterogeneous models have completely disjoint similarity score distributions—for example, the new model might routinely output top cosine scores around 0.8 while the old system peaks at 0.3. Merging raw scores means the new partition wins 100% of the time, even when the true answer is sitting in the unmigrated old partition.

Top-1 cosine score distributions are completely separated in realistic cross-modal upgrades.

Methods

Because each database item only exists in either the old or new partition, you never have paired scores at inference time to fit a simple regression map. Instead, the authors keep both embedding backbones frozen and introduce PoTAS (Post-hoc Tail Alignment of Similarity Scores), built on two ideas:

  1. Tail-Matched Calibration (TMC): A training-free, inference-time calibration step. When merging lists to find the top match, the bulk of the score distribution is irrelevant—only the extreme upper tails matter. TMC maintains lightweight running statistics (counts, sums, squared sums) from served queries to match the mean and standard deviation of the two systems' top-$k$ scores, plus a query-specific offset. Crucially, it uses partition-aware quantile matching: because a larger partition naturally yields higher maximum scores just by chance, TMC scales the sampling depth $k$ proportionally to each partition's current size ($t$ and $1-t$).
  2. Tail-Focused Hard-Negative Refinement (THN): While standard adapters train on all negatives via log-sum-exp contrastive losses, THN fine-tunes an existing backward adapter (alongside an identity-anchored residual linear map $\rho$ for the new space) by simulating mixed databases and optimizing only the margin between the true positive and the single hardest negative across both partitions.

Datasets

No new benchmarks are introduced, though the authors re-evaluate existing ones under realistic migration conditions:

  • Image–Text Retrieval: Adapters are trained on pre-extracted embeddings from LLaVA-LCS-558K and evaluated in both directions on COCO, Flickr30K, and Urban1k.
  • Visual Document Retrieval: Trained on the ColPali training set (118K query–page pairs) and evaluated on ViDoRe-V1 (10 sets) and ViDoRe-V2 (4 English sets).
  • Motivational Analysis: Reproduces prior unimodal setups using ImageNet-1K, CIFAR-100, and Places-365.

Key Insights and Ideas

  • Why prior benchmarks hid the problem: Earlier mixed-database methods looked great because they tested mild upgrades (e.g., ResNet-18 to ResNet-50) with class-level labels where every query had 50–100 valid answers scattered across both partitions. Favoring the wrong model carried almost zero penalty! When the authors migrated whole classes at once—forcing all answers into a single partition, just like instance-level search—those prior methods immediately broke down.
  • Standard per-list normalizations blind you to partition size: Classic fusion tricks like Reciprocal Rank Fusion (RRF) or min-max normalization treat both lists equally, assigning identical top values to a tiny 10%-migrated partition and a massive 90%-unmigrated partition. Scaling tail depths by partition size aligns score scales while preserving the natural statistical advantage of the larger pool.
  • Aligning the bulk misses the tail: Ablations show that matching whole score distributions (like standard z-score normalization) drops performance significantly compared to matching just the upper tails where top-1 rank decisions actually happen.

Key Results

Evaluated across four diverse upgrades (including CLIP-L$\rightarrow$UniME-7B, CLIP-L$\rightarrow$GME-7B, E5-V$\rightarrow$UniME-7B, and CLIP-B/16$\rightarrow$CLIP-L) and three existing adapter architectures (RQT, Drift-Adapter, MKP-Adapter):

  • No migration dip: PoTAS is the only method that consistently outperforms the old model on average from the very onset of backfilling.
  • Substantial AUC gains: On image–text retrieval (Recall@1 Area Under the Curve across migration), PoTAS boosts RQT from 0.564 to 0.719 (+0.154), Drift-Adapter from 0.566 to 0.716 (+0.150), and MKP-Adapter from 0.618 to 0.727 (+0.109), handily beating z-score normalization (0.636–0.676) and MCL (0.595).
  • Visual Document Retrieval: On ViDoRe (nDCG@5 AUC for CLIP-L$\rightarrow$GME), PoTAS improves Drift-Adapter by +0.115 (0.420 to 0.535) and RQT by +0.081 (0.477 to 0.558).
  • Minimal overhead: TMC alone (zero training, zero reference data, gallery-size-independent cost) delivers the majority of the gains (0.685 mean AUC vs. 0.721 with THN). Adding THN takes just 6–42 minutes of one-time training on pre-extracted embeddings on a single RTX A5000 GPU.

Limitations and Future Work

Not discussed in the paper. (Note: Pages 10+ containing the appendix were not included in the provided text, and the main manuscript concludes without a dedicated limitations or future work section.)

Summary updated

BibTeX
@misc{byun2026potas,
  author = {Jaeseok Byun and Joonyoung Chang and Taesup Moon},
  title = {{PoTAS: Post-hoc Tail Alignment of Similarity Scores for Embedding Compatibility with Mixed Databases}},
  year = {2026},
  eprint = {2611.39198},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.39198},
}
Figure