PromptEmbedder: Efficient and Transferable Text Embedding via Dual-LLM Soft Prompting

Yu-Che Tsai, Kuan-Yu Chen, Yuan-Hao Chen, Yu-Han Chang, Ching-Yu Tsai, Yu-Hsiang Chuang, Shou-De LinarXiv 2026

TL;DR

PromptEmbedder is a novel dual-LLM framework that decouples text embedding knowledge from specific model weights by using a small, trainable "Prompting LLM" to generate soft prompts for a large, frozen "Embedding LLM." When a new state-of-the-art LLM backbone is released, instead of retraining the entire embedding model from scratch via costly fine-tuning, you only need to train a lightweight linear alignment matrix. This architecture-agnostic approach matches LoRA fine-tuning performance while slashing GPU memory usage by up to 40% and accelerating training by 3.7×.

What Problem Does This Paper Address?

Adapting Large Language Models (LLMs) to generate high-quality text embeddings typically relies on Parameter-Efficient Fine-Tuning (PEFT) techniques like LoRA. While effective, this approach fundamentally couples the learned embedding knowledge to the specific weights of the target backbone.

Because major LLM families (like Qwen, Llama, or Mistral) update every six to nine months, practitioners are trapped in a costly cycle: every time a new backbone emerges, the entire embedding fine-tuning pipeline must be restarted from scratch. Training a state-of-the-art embedder can require hundreds of millions of samples and millions of dollars in compute.

Conversely, training-free methods (like direct prompting) are highly transferable but suffer from significantly lower embedding quality. PromptEmbedder aims to break this trade-off by achieving both high performance and low transfer cost.

Comparison of existing embedding approaches and PromptEmbedder

Methods

PromptEmbedder introduces a dual-LLM architecture consisting of a trainable Prompting LLM ($M_{\text{prompt}}$) and a frozen Pretrained LLM ($M_{\text{pretrained}}$).

  1. Differentiable Soft Prompt Generation: Given a task instruction, the Prompting LLM autoregressively generates $k$ soft prompt tokens. To allow gradients to flow from the final contrastive loss back to the Prompting LLM without getting blocked by discrete token sampling, the authors use a continuous relaxation over the vocabulary. At each step, the model computes a softmax distribution over the vocabulary and takes a convex combination of the token embeddings.
  2. Cross-LLM Prompt Alignment: Because the prompting model and the embedding model might have different hidden dimensions and embedding spaces, the generated soft prompts are mapped through a learnable linear projection matrix ($W_{\text{proj}}$).
  3. Embedding Extraction: These aligned soft prompts are prepended to the input text sequence and fed into the completely frozen Pretrained LLM. The final text embedding is extracted via last-token pooling.
  4. Lightweight Architecture Transfer: When transferring to an entirely new, unseen LLM backbone, the Prompting LLM and the original projection matrix remain completely frozen. The framework only trains a tiny, new adapter matrix ($W_{\text{adp}}$) to map the existing soft prompts into the new LLM's embedding space.
Figure 2: Overview of the PromptEmbedder framework. Top: During training, Mprompt generates k soft prompt vectors from a task instruction, which are projected and prepended to the input of the frozen pretrained LLM Mpretrained. Bottom-left: Each soft token et is generated differentiably as a weighted sum over the token embedding matrix Ep. Bottom-right: For lightweight transfer to an unseen backbone, only a small adapter is trained while Mprompt and Mpretrained are completely frozen.

Datasets

  • Training: The authors utilized a standard contrastive learning dataset containing supervised pairs and hard negatives, sampling 10% (0.2M triplets) of the dataset from Li et al. (2025) for computational efficiency.
  • Evaluation:
  • MTEB (Massive Text Embedding Benchmark) English v2: A comprehensive benchmark covering 41 datasets across 7 task categories (Retrieval, Reranking, Clustering, Pair Classification, Classification, STS, and Summarization).
  • Instruction Following Benchmark: Evaluated across Semantic Textual Similarity (STS), Triplet Alignment, and Clustering tasks to test robustness to complex instructions.

Key Insights and Ideas

  • Localization of Embedding Knowledge: Embedding-specific knowledge does not need to be baked into the massive backbone weights. It can be localized entirely within a lightweight auxiliary model that acts as a "steering wheel" for a frozen LLM.
  • Scale Asymmetry: A very small prompting model can successfully guide a much larger embedding model. The authors found that scaling the Prompting LLM from 0.6B to 8B parameters yielded only a marginal 0.49% improvement, meaning a 0.6B model is perfectly sufficient to drive a 7B or 8B parameter embedding backbone.
  • Efficiency via Freezing: Keeping the primary embedding backbone completely frozen eliminates the need to store and compute gradients for the largest parts of the network, leading to massive savings in both wall-clock time and VRAM.

Key Results

  • Comparable Performance to LoRA: Across MTEB, PromptEmbedder achieved 96.0%–99.8% of the performance of full LoRA fine-tuning while keeping the backbone frozen. On the Mistral-7B backbone, it scored an average of 65.2 compared to LoRA's 66.3.
  • 3.8× Faster Convergence on Transfer: When adapting to an unseen target backbone, PromptEmbedder reached an MTEB score of 63.81 in just 11 hours, whereas training a LoRA model from scratch to reach a similar level took 43 hours.
Training efficiency comparison: MTEB performance vs. wall-clock time
  • Reduced Resource Overhead: PromptEmbedder reduced peak GPU training memory usage by 36% to 40% across Mistral, Llama, and Qwen backbones, making it highly accessible for resource-constrained environments.
Figure 4: Comparison of peak GPU memory usage between LoRA and PromptEmbedder across three rep- resentative LLM backbones.

Limitations and Future Work

  • Residual Performance Gap: Although narrow, a small performance gap (up to 2.6 average points on MTEB) still remains between PromptEmbedder and full LoRA fine-tuning on certain backbones.
  • Dependency on Labeled Data for Transfer: While transferring to a new architecture is incredibly fast, it still requires a small amount of labeled data to train the linear alignment adapter ($W_{\text{adp}}$). The authors note that exploring completely unsupervised or zero-shot cross-architecture transfer is an important open direction for future work.

Summary updated

BibTeX
@misc{tsai2026promptembedder,
  author = {Yu-Che Tsai and Kuan-Yu Chen and Yuan-Hao Chen and Yu-Han Chang and Ching-Yu Tsai and Yu-Hsiang Chuang and Shou-De Lin},
  title = {{PromptEmbedder: Efficient and Transferable Text Embedding via Dual-LLM Soft Prompting}},
  year = {2026},
  eprint = {2605.28066},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.28066},
}
Figure