KaLM-Embedding-V2: Superior Training Techniques and Data Inspire A Versatile Embedding Model

Xinping Zhao, Xinshuo Hu, Zifei Shan, Shouzheng Huang, Yao Zhou, Xin Zhang, Zetian Sun, Zhenyu Liu, Dongfang Li, Xinyuan Wei, Youcheng Pan, Yang Xiang, Meishan Zhang, Haofen Wang, Jun Yu, Baotian Hu, Min Zhang

TL;DR

KaLM-Embedding-V2 is a compact, 0.5B-parameter text embedding model that achieves state-of-the-art performance by prioritizing advanced training techniques and data quality over raw model scaling. By combining bidirectional attention, a multi-stage training pipeline, focal-style reweighting, and contrastive distillation, it outperforms similarly sized models and rivals giants up to 26 times its size.

What Problem Does This Paper Address?

Text embedding models are the unsung heroes of modern NLP, serving as the foundational infrastructure for search, classification, and Retrieval-Augmented Generation (RAG). While recent trends leverage massive Large Language Models (LLMs) to build these embeddings, development has largely focused on brute-force data scaling or synthetic data generation. This leaves advanced training recipes and data curation strategies under-explored.

Furthermore, top-performing embedding models are frequently proprietary, closed-source, or computationally expensive to deploy in real-world, latency-sensitive applications. The authors address this gap by introducing an open-source, highly efficient, compact (0.5B parameter) embedding model that maximizes performance through smart optimization rather than sheer size.

Methods

The authors introduce several architectural and algorithmic innovations to squeeze maximum performance out of a small model footprint:

  • Bidirectional Architecture: Starting with a Qwen2-0.5B backbone, they removed the causal attention mask typical of decoder-only LLMs. This enables fully bidirectional representation learning during both training and inference.
  • Progressive Multi-Stage Training: The model transitions from coarse-grained to fine-grained representation learning across three distinct stages:
  • Pre-training: Learning general-purpose representations on large-scale, weakly supervised data using standard contrastive loss.
  • Fine-tuning: Refining capabilities on high-quality supervised datasets.
  • Contrastive Distillation: Aligning the model's outputs with the fine-grained soft signals (normalized temperature-scaled cosine similarity scores) of a powerful teacher model (Qwen3-Embedding-8B) using Kullback–Leibler (KL) divergence.
  • Focal-Style Reweighting: To prevent the optimization process from being dominated by easy-to-learn samples, the authors introduced a focal loss mechanism that dynamically assigns higher weights to difficult training pairs.
  • Online Hard Negative Mixing: Instead of relying on computationally expensive offline mining to find challenging negative samples between epochs, the model synthesizes new hard negatives on-the-fly by blending the features of existing hard negatives in the embedding space.
  • Matryoshka Representation Learning (MRL): Integrated directly into the loss functions, MRL allows the model to output flexible embedding dimensions (from 896 down to 64) without severe performance degradation.

Datasets

The training data strategy was split to accommodate the multi-stage pipeline:

  • Pre-training Data: A massive corpus of ~470 million samples across 20 diverse categories (including Wikipedia, CC-News, Reddit, StackExchange, and xP3) to ensure robust out-of-domain generalization.
  • Fine-tuning & Distillation Data: A curated set of ~6 million high-quality supervised samples spanning 100 categories. This includes standard retrieval benchmarks (like MSMARCO and SQuAD) alongside non-retrieval tasks reformulated into retrieval-style formats.
  • Data Curation Enhancements: The authors used persona-based synthetic data generation (leveraging Qwen2-72B-Instruct and Persona Hub) to maximize domain diversity and applied example-based multi-class labeling to improve clustering tasks.

Key Insights and Ideas

  • Technique Over Scale: A well-optimized 0.5B model can beat or match 7B+ models, proving that embedding capabilities are often bottlenecked by training objectives and data quality rather than parameter counts.
  • The Power of Hard Samples: Ablation studies revealed that removing focal-style reweighting caused the largest performance drop. Treating all samples equally dilutes the learning signal, making hard-sample emphasis critical for fine-grained semantic understanding.
  • Feature-Space Mixing Saves Compute: Online hard negative mixing provides a continuous stream of informative negatives with negligible computational overhead, bypassing the traditional need to re-index and re-mine data offline.
  • Soft Signals Capture Nuance: Distilling continuous probability distributions (soft signals) from a teacher model helps a compact model capture subtle semantic differences that rigid, binary hard labels completely miss.

Key Results

  • MTEB Leaderboard SOTA: KaLM-Embedding-V2.5 sets a new standard for models under 1B parameters on the Massive Text Embedding Benchmark (MTEB) for both English and Chinese, achieving an average score of 70.13 (Mean Task) and 69.16 (Mean Type).
  • Rivaling Larger Models: It consistently outperforms competitive baselines of similar size (like Qwen3-Embedding-0.6B and jina-embeddings-v3) and directly competes with models 3x to 26x larger, such as bge-multilingual-gemma2 (9B).
Figure 1: (Left) Comparison between the KaLM-Embedding series and other models on MTEB. The red dashed line depicts the logarithmic trendline fitted to the performance data of all the baseline models. The colors represent models with comparable parameter scales, with each group of models sharing the same parameter scale assigned a consistent color. (Right) Radar charts show our models achieve SOTA performance in a wide array of tasks.
  • Matryoshka Efficiency: Thanks to MRL, compressing the embedding dimension from 896 down to 256 results in a performance drop of less than 1%, offering massive storage and speed savings for vector databases.
  • Visualized Compactness: UMAP projections demonstrate that KaLM-Embedding-V2.5 forms significantly tighter intra-class clusters and clearer inter-class boundaries than its predecessors and competitors.
UMAP embedding distribution comparisons showing superior cluster separation.

Limitations and Future Work

While the paper does not include a dedicated limitations section, a few constraints are apparent from the text:

  • Teacher Dependence: The final performance leap from the V2 model to the V2.5 variant relies heavily on contrastive distillation from a much larger, proprietary-grade teacher model (Qwen3-Embedding-8B).
  • Language Focus: Although the model demonstrates strong zero-shot generalization on multilingual benchmarks like AIR-Bench QA, its primary training data curation was heavily focused on English and Chinese. Native expansion into a broader set of languages remains an open direction for future iterations.

Summary updated

BibTeX
@inproceedings{zhao2026kalm,
  author = {Xinping Zhao and Xinshuo Hu and Zifei Shan and Shouzheng Huang and Yao Zhou and Xin Zhang and Zetian Sun and Zhenyu Liu and Dongfang Li and Xinyuan Wei and Youcheng Pan and Yang Xiang and Meishan Zhang and Haofen Wang and Jun Yu and Baotian Hu and Min Zhang},
  title = {{KaLM-Embedding-V2: Superior Training Techniques and Data Inspire A Versatile Embedding Model}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=Y7qzhvWhcz},
}
Figure