KaLM-Embedding: Superior Training Data Brings A Stronger Embedding Model

Xinshuo Hu, Zifei Shan, Xinping Zhao, Zetian Sun, Zhenyu Liu +8 more
1/2/2025
55 citations
cs.CL

Official code: HITsz-TMG/KaLM-Embedding (122 stars, Python, MIT, last commit 2025-06-30).

Abstract

As retrieval-augmented generation prevails in large language models, embedding models are becoming increasingly crucial. Despite the growing number of general embedding models, prior work often overlooks the critical role of training data quality.

Show full abstract

In this work, we introduce KaLM-Embedding, a general multilingual embedding model that leverages a large quantity of cleaner, more diverse, and domain-specific training data. Our model has been trained with key techniques proven to enhance performance: (1) persona-based synthetic data to create diversified examples distilled from LLMs, (2) ranking consistency filtering to remove less informative samples, and (3) semi-homogeneous task batch sampling to improve training efficacy. Departing from traditional BERT-like architectures, we adopt Qwen2-0.5B as the pre-trained model, facilitating the adaptation of auto-regressive language models for general embedding tasks. Extensive evaluations of the MTEB benchmark across multiple languages show that our model outperforms others of comparable size, setting a new standard for multilingual embedding models with <1B parameters.

View on arXivView PDF

Code Implementations(1)

MIT

Code for KaLM-Embedding models

1228Python, ShellDec 24, 20241 years agoMIT
embeddingembedding-modelsretrievalsentencesentence-embeddings

Similar Papers

Cite this paper

@article{hu2025kalmembedding,
  title  = {KaLM-Embedding: Superior Training Data Brings A Stronger Embedding Model},
  author = {Xinshuo Hu and Zifei Shan and Xinping Zhao and Zetian Sun and Zhenyu Liu and Dongfang Li and Shaolin Ye and Xinyuan Wei and Qian Chen and Baotian Hu and Haofen Wang and Jun Yu and Min Zhang},
  year   = {2025},
  eprint = {2501.01028},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.01028v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.01028.svg)](https://codeofpaper.com/paper/2501.01028)

Discussion