Embedding-Converter: A Unified Framework for Cross-Model Embedding Transformation

Jinsung Yoon, Sercan Ö. Arik

Abstract

In modern AI architectures, embeddings serve as the foundational representation for search, recommendation, and Retrieval-Augmented Generation (RAG). However, the rapid evolution of embedding models creates a significant "re-embedding tax": the prohibitive cost and time required to re-process massive datasets whenever a superior model is released. We introduce Embedding-Converter, a framework that translates vectors between disparate embedding spaces without re-processing raw data. By training a lightweight, unsupervised multi-layer perceptron (MLP) to map source embeddings to a target space, we achieve 100x reductions in migration costs while maintaining near-target model accuracy.

1. Introduction: The Re-embedding Tax

The field of representation learning moves at a breakneck pace. When practitioners wish to upgrade from an older model (e.g., OpenAI's text-embedding-ada-002) to a newer state-of-the-art (e.g., Google's gecko004), they are typically forced to re-calculate embeddings for their entire corpus. For databases containing billions of documents, this migration is often financially and operationally impossible. This incompatibility creates a "vendor lock-in" where systems remain tethered to sub-optimal models because the cost of transition is too high.

2. The Embedding-Converter Framework

Embedding-Converter addresses this by acting as a "universal translator" for vector spaces. Instead of passing raw text through a heavy target model, the framework uses a lightweight converter to transform existing source vectors directly into the target space.

Comparison of the traditional re-embedding workflow (left) versus the proposed Embedding-Converter approach (right).

This approach is entirely unsupervised; it requires only a corpus of unlabeled text to observe how both models represent the same strings. Because the converter only needs the output vectors, it works even with "black-box" proprietary APIs where model weights are inaccessible.

3. Methodology and Training Objectives

The core of the framework is a 4-layer MLP trained using a tripartite loss function designed to preserve the geometric manifold of the data:

  • Regression Loss ($L_{reg}$): Minimizes the absolute distance between converted and true target vectors.
  • Global Similarity Loss ($L_{global}$): Preserves the overall structure of the vector space by maintaining relative distances between random pairs.
  • Local Similarity Loss ($L_{local}$): Ensures that local neighborhoods remain intact, preserving the "intelligence" and retrieval properties of the target model.

4. Experimental Results

The framework was evaluated across the BEIR, CQADupStack, and MIRACL benchmarks. Key findings include:

  • Efficiency: Migration is 100x faster and cheaper. A 50-million document corpus can be converted in under two hours, compared to hundreds of hours for traditional re-embedding.
  • Performance: Converted embeddings consistently achieve over 95% of the target model's nDCG@10 retrieval accuracy.
  • Cross-Family Compatibility: The system successfully maps between different model families and varying dimensionalities (e.g., mapping 1536-dimensional OpenAI vectors to 768-dimensional Google Gecko vectors).
Visualizing the alignment process: (a) clusters across 9 BEIR datasets, (b) the significant gap between native model spaces, and (c) the near-perfect alignment achieved by the converter.

5. Discussion and Future Work

Embedding-Converter enables novel applications, such as Decoupled Corpus and Query processing. Systems can use high-performance models for offline document embedding while using tiny, low-latency models for real-time user queries, with the converter bridging the gap. While a small performance gap remains compared to native re-embedding, the framework offers a pragmatic solution for rapid model iteration. Future work will explore expanding these transformations to multimodal spaces, such as image-to-text embedding conversion.

Summary updated

BibTeX
@inproceedings{yoon2025embedding,
  author = {Jinsung Yoon and Sercan Ö. Arik},
  title = {{Embedding-Converter: A Unified Framework for Cross-Model Embedding Transformation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure