Skip to main content
QUICK REVIEW

[Paper Review] KaLM-Embedding: Superior Training Data Brings A Stronger Embedding Model

Xinshuo Hu, Zifei Shan|arXiv (Cornell University)|Jan 2, 2025
Topic ModelingComputer Science3 citations
TL;DR

KaLM-Embedding presents a multilingual embedding model trained with higher-quality data and techniques, achieving state-of-the-art performance for sub-1B models on multilingual benchmarks.

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. 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.

Motivation & Objective

  • Motivate improved embedding models through training data quality rather than solely model scale.
  • Develop a general multilingual embedding model adapted from a decoder-based LM (Qwen2-0.5B).
  • Incorporate data curation and training techniques to enhance embedding quality and robustness.
  • Demonstrate strong multilingual performance on MTEB with a compact model size.

Proposed method

  • Use Qwen2-0.5B as the pre-trained backbone with mean pooling for embeddings.
  • Pre-train with weakly-supervised contrastive learning on a large, diverse data mix (20 pre-training categories).
  • Fine-tune with 70 diverse supervised datasets, ensuring training data quality and domain coverage.
  • Apply Persona-based Synthetic Data to distill LLM knowledge into diverse embedding-focused data.
  • Employ Ranking Consistency Filtering to remove less informative samples and reduce noise during fine-tuning.
  • Utilize Matryoshka Representation Learning to enable flexible multi-dimensional embeddings and various vector sizes.

Experimental results

Research questions

  • RQ1How does training data quality affect multilingual embedding performance at sub-1B parameter scale?
  • RQ2Can a decoder-only architecture with carefully curated data compete with larger embedding models on multilingual benchmarks?
  • RQ3What impact do data filtering, structured task prompts, and batch strategies have on embedding quality across languages?
  • RQ4Is a mixture of instruction-based and instruction-free data beneficial for embedding tasks?

Key findings

  • KaLM-Embedding achieves state-of-the-art multilingual performance among models with fewer than 1B parameters on MTEB.
  • Task instructions and data curation strategies significantly influence performance, with data quality and instruction use being key factors.
  • Ranking consistency filtering and high-quality fine-tuning data improve generalization, especially in English versus Chinese datasets.
  • Matryoshka Representation Learning provides benefits for low-dimensional embeddings, though impact depends on weighting and architecture choices.
  • Semi-homogeneous task batching did not improve the final model in this work but offers insights for balancing hard negatives and false negatives.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.