Reference z-score fusion keeps embedding migration quality within 7.1% where RRF drops 40%
Weaviate Head of Applied Research John Trengrove benchmarks a technique called reference z-score fusion for combining search results from two incompatible embedding models during an in-place migration. Across four datasets, the method limits quality loss to 2.0–7.1% of ideal, compared to RRF's 36-40% drops, by calibrating each model's scores against a small reference set embedded with both models.
Upgrading an embedding model in a production vector database normally means building a second index and re-embedding everything. That works, but doubles storage for the transition period. At scale, or on resource-constrained deployments, teams instead migrate vectors in-place: some documents get new embeddings while others still carry old ones, and queries must draw results from both sets.
The problem is that two embedding models produce completely incompatible vector spaces, often with different dimensions. Raw distances cannot be merged because one model will systematically return tighter scores for any given query. Reciprocal rank fusion, the standard technique for combining result lists, assumes the same documents appear in both sets of queries. During a partial migration, that assumption fails: old-model results and new-model results rarely overlap, so RRF cannot properly interleave them. Trengrove's benchmarks show RRF losing 36-40% of NDCG@10 relative to the ideal (fully migrated) model, with quality dipping below the original model for the entire migration period.
His proposed fix, reference z-score fusion, works by calibrating each model's scores against a shared reference. Take a sample of documents (5,000 in the experiments, or 10% of the corpus if smaller than 50,000) and embed them with both models. At query time, encode the query with both models, search the old vectors with the old query vector and the new vectors with the new query vector, then score the query against the reference set with each model. For each model, compute the mean and standard deviation of the top reference results, rescale every search hit by subtracting the mean and dividing by the standard deviation, and merge the two lists on the resulting z-scores. The z-score expresses how many standard deviations a hit sits above a strong reference match, putting both models on a comparable scale.