M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation

Jianlv Chen, Shitao Xiao, Peitian Zhang, Kun Luo, Defu Lian, Zheng Liu

arXiv:2402.03216 · 2026-07-27 공개 · arXiv · PDF

long-document multi-granularity dense-retrieval self-knowledge-distillation sparse-retrieval embedding-model cross-lingual-retrieval multi-vector-retrieval

Abstract

In this paper, we introduce a new embedding model called M3-Embedding, which is distinguished for its versatility in \textit{Multi-Linguality}, \textit{Multi-Functionality}, and \textit{Multi-Granularity}. It provides a uniform support for the semantic retrieval of more than 100 working languages. It can simultaneously accomplish the three common retrieval functionalities: dense retrieval, multi-vector retrieval, and sparse retrieval. Besides, it is also capable of processing inputs of different granularities, spanning from short sentences to long documents of up to 8,192 tokens. The effective training of M3-Embedding presents a series of technical contributions. Notably, we propose a novel self-knowledge distillation approach, where the relevance scores from different retrieval functionalities can be integrated as the teacher signal to enhance the training quality. We also optimize the batching strategy, which enables a large batch size and high training throughput to improve the discriminativeness of embeddings. M3-Embedding exhibits a superior performance in our experiment, leading to new state-of-the-art results on multilingual, cross-lingual, and long-document retrieval benchmarks.

한국어 요약

한 줄 요약

M3-Embedding은 다국어, 다기능, 다단위를 지원하는 최초의 텍스트 임베딩 모델로, 자기 지식 증류와 최적화된 배치 전략을 통해 다양한 검색 성능을 달성한다.

핵심 기여도

핵심 아이디어

M3-Embedding은 기존 임베딩 모델들이 특정 언어, 특정 기능, 특정 입력 길이에 제한된 문제를 해결하기 위해 다중 차원의 유연성을 갖춘 모델로 설계되었다. 이 모델은 [CLS] 임베딩을 밀집 검색에, 다른 토큰 임베딩을 희소 및 다벡터 검색에 활용하며, 이들을 **자기 지식 증류(Self-Knowledge Distillation)**를 통해 통합적으로 학습한다. 이는 앙상블 학습 원리에 기반하여, 서로 다른 검색 기능의 관련 점수를 교사 신호로 사용함으로써 모델의 일관성과 구별력을 높인다. 또한, **RetroMAE** 기반 사전 훈련과 **다단계 훈련 전략**을 통해 훈련 효율성을 극대화하고, 최대 8,192 토큰 길이의 문서를 처리할 수 있도록 확장성을 확보했다.

기술적 접근법

주요 결과

의의 및 한계

M3-Embedding은 다국어, 다기능, 다단위를 모두 지원하는 최초의 임베딩 모델로, 정보 검색 분야에서 실용적이고 학술적으로 중요한 기여를 한다. 특히, 자기 지식 증류와 최적화된 배치 전략은 임베딩 훈련의 효율성과 일관성을 동시에 개선하며, 다양한 검색 기능을 통합적으로 학습할 수 있는 새로운 훈련 프레임워크를 제시한다. 그러나, 8,192 토큰 이상의 문서 처리는 아직 지원되지 않으며, 일부 언어나 특정 검색 기능에 대해서는 추가 연구가 필요할 수 있다.

실용적 활용

M3-Embedding은 다국어 지원이 필요한 글로벌 검색 엔진, 다양한 검색 기법을 결합한 정보 검색 시스템, 긴 문서를 처리해야 하는 법률 또는 의료 분야의 응용에 적합하다. 또한, 공개된 코드와 데이터는 향후 연구 및 산업적 활용에 기반 자료로 활용될 수 있다.