Diffusion-Pretrained Dense and Contextual Embeddings

Sedigheh Eslami, Maksim Gaiduk, Markus Krimmel, Louis Mark Milliken, Bo Wang, Denis Bykov

TL;DR

Perplexity AI has introduced pplx-embed, a new family of multilingual text embedding models that swap traditional autoregressive LLM backbones for a bidirectional encoder trained via a diffusion objective. By natively integrating quantization-aware training, these models deliver state-of-the-art contextual retrieval performance while outputting highly efficient INT8 and binary embeddings that drastically reduce web-scale storage footprints.

What Problem Does This Paper Address?

Most modern text embedding models are built by repurposing decoder-only Large Language Models (LLMs). While powerful, these architectures rely on causal masking, meaning tokens can only attend to preceding text. This unidirectional constraint is fundamentally mismatched with retrieval tasks, where capturing the full, bidirectional global context of a document or passage is critical.

Furthermore, deploying embedding models at a web-scale production level introduces massive storage and computational bottlenecks. Standard models often require full-precision representations and complex instruction prefixes, making them inefficient to scale across billions of documents.

Methods

The authors address these challenges by transforming causally masked LLMs (specifically Qwen3-0.6B and 4B) into bidirectional encoders using Continued Diffusion Pretraining. They remove the causal mask and train the transformer to reverse a corruption process where tokens are randomly replaced by a [MASK] token.

Following pretraining, the models undergo a branched, multi-stage contrastive learning curriculum:

  1. Pair Training: Establishes foundational semantic alignment between queries and documents using an InfoNCE loss equipped with a custom masking function to filter out false negatives.
  2. Contextual Training: Optimizes chunk-level embeddings for long documents using a dual-objective loss that balances local chunk semantics with global document representations.
  3. Triplet Training: Refines decision boundaries using explicit hard negative examples.

Finally, the authors use Spherical Linear Interpolation (SLERP) to merge the contextual and triplet checkpoints into the final standard retrieval model (pplx-embed-v1), while releasing the standalone contextual model as pplx-embed-context-v1. Natively embedded into this pipeline is quantization-aware training, which uses straight-through gradient estimation to optimize the model directly for INT8 and binary outputs.

Training pipeline of pplx-embed-v1 and pplx-embed-context-v1.

Datasets

  • Pretraining: 250 billion tokens sourced from FineWeb-Edu (English) and FineWeb2/FineWeb2-HQ (covering 29 other languages).
  • Contrastive Training: A curated mix of public, multilingual, and synthetic datasets generated via a two-stage persona-based pipeline using Qwen3-30B.
  • Public Evaluation Benchmarks: MTEB (Multilingual v2 & Code), MIRACL, ConTEB, ToolRet, and BERGEN.
  • New Internal Benchmarks: The authors introduce PPLXQuery2Query (PPLXQ2Q) and PPLXQuery2Doc (PPLXQ2D), large-scale benchmarks built from real production search logs and a pool of over 1 billion web pages to evaluate real-world, scale-dependent retrieval performance.

Key Insights and Ideas

  • Bidirectional Attention is Crucial for Retrieval: By replacing causal masking with a diffusion-based bidirectional objective, the architecture naturally supports mean pooling and late chunking strategies. This allows the model to preserve long-range document context far better than decoder-only alternatives.
  • Native Quantization Eliminates Post-Hoc Loss: Instead of quantizing embeddings after training, integrating INT8 and binary quantization directly into the contrastive learning loop allows the model to adapt its representation space, minimizing the typical performance degradation associated with compressed embeddings.
  • Instruction-Free Deployment: Unlike many top-tier MTEB models, pplx-embed does not require instruction prefixes, simplifying production pipelines and reducing prompt token overhead.

Key Results

  • Contextual Retrieval Records: On the ConTEB benchmark, pplx-embed-context-v1-4B (INT8) set a new state-of-the-art record with an average nDCG@10 of 81.96%, outperforming prominent commercial alternatives like Voyage-Context-3 (79.45%) and Anthropic Contextual (72.4%).
Comparison of performance on ConTEB.
  • Efficiency Gains on MTEB: On MTEB (Multilingual, v2), pplx-embed-v1-4B (INT8) achieved an nDCG@10 of 69.66%, matching or exceeding Qwen3-Embedding-4B (69.60%) and Gemini-embedding-001 (67.71%) while offering a 4x to 5x improvement in storage efficiency (390 docs/MB vs. 97 and 81 docs/MB respectively).
Storage efficiency and average performance on MTEB benchmarks.
  • Tool Retrieval: On the ToolRet benchmark, the 4B model achieved 44.45% nDCG@10, surpassing much larger 7B models such as NV-Embed-v1 and GritLM-7B.

Limitations and Future Work

The primary limitation highlighted in the paper relates to binary quantization scaling. While the 4B model proved highly resilient to binarization (losing only ~1.6 percentage points), the smaller 0.6B model suffered a much steeper performance drop of up to 5 percentage points. The authors attribute this to the lower embedding dimensionality of the 0.6B model (1024 vs. 2560), suggesting that higher dimensionality is structurally necessary to preserve information under extreme binary compression. Future work will likely target closing this gap for sub-1B parameter models.

Summary updated

BibTeX
@inproceedings{eslami2026diffusion,
  author = {Sedigheh Eslami and Maksim Gaiduk and Markus Krimmel and Louis Mark Milliken and Bo Wang and Denis Bykov},
  title = {{Diffusion-Pretrained Dense and Contextual Embeddings}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-industry.69},
}
Figure