SAVRN
Search Contact SAVRN

Research paper · 2025-06-26

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

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

3 open models in the SAVRN Model Hub cite KaLM-Embedding-V2: Superior Training Techniques and Data Inspire A Versatile Embedding Model (2025). Together they draw 81 downloads a month. The most downloaded is KaLM-Reranker-V1-Nano-R2 by KaLM-Embedding (text ranking, 786M parameters).

Published2025-06-26
Authors17
Citing Models3
arXiv2506.20923

Abstract

In this paper, we propose KaLM-Embedding-V2, a versatile and compact embedding model, which achieves impressive performance in general-purpose text embedding tasks by leveraging superior training techniques and data. Our key innovations include: (1) To better align the architecture with representation learning, we remove the causal attention mask and adopt a fully bidirectional transformer with simple yet effective mean-pooling to produce fixed-length embeddings; (2) We employ a multi-stage training pipeline: (i) pre-training on large-scale weakly supervised open-source corpora; (ii) fine-tuning on high-quality retrieval and non-retrieval datasets; and (iii) model-soup parameter averaging for robust generalization. Besides, we introduce a focal-style reweighting mechanism that concentrates learning on difficult samples and an online hard-negative mixing strategy to continuously enrich hard negatives without expensive offline mining; (3) We collect over 20 categories of data for pre-training and 100 categories of data for fine-tuning, to boost both the performance and generalization of the embedding model. Extensive evaluations on the Massive Text Embedding Benchmark (MTEB) Chinese and English show that our model significantly outperforms others of comparable size, and competes with 3x, 14x, 18x, and 26x larger embedding models, setting a new standard for a versatile and compact embedding model with less than 1B parameters.

Full paper on arXiv

Details

arXiv identifier
2506.20923
Published
2025-06-26
Authors
Xinping Zhao, Xinshuo Hu, Zifei Shan, Shouzheng Huang, Yao Zhou, Zetian Sun, Zhenyu Liu, Dongfang Li, Xinyuan Wei, Qian Chen, Youcheng Pan, Yang Xiang, Meishan Zhang, Haofen Wang, Jun Yu, Baotian Hu, Min Zhang

Open Models Built on This Paper

Every model in the SAVRN Model Hub whose card cites this paper, most downloaded first, with what it takes to run each one.

ModelTaskSizeLicenseMonthly downloadsCheapest setup at 16-bit
KaLM-Reranker-V1-Nano-R2
KaLM-Embedding
Text ranking 786M apache-2.0 43 1x MI300X $1.85/hr
KaLM-Reranker-V1-Small-R2
KaLM-Embedding
Text ranking 2.1B apache-2.0 22 1x MI300X $1.85/hr
KaLM-Reranker-V1-Large-R2
KaLM-Embedding
Text ranking 7.5B apache-2.0 16 1x MI300X $1.85/hr