Papers › BGE M3-Embedding: Multi-Lingual, Multi-Functionality, Multi-Granularity Text...

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

5 Feb 2024arXiv:2402.03216archive 2025-07-28

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

In this paper, we present a new embedding model, called M3-Embedding, which is distinguished for its versatility in Multi-Linguality, Multi-Functionality, and Multi-Granularity. It can support more than 100 working languages, leading to new state-of-the-art performances on multi-lingual and cross-lingual retrieval tasks. It can simultaneously perform the three common retrieval functionalities of embedding model: dense retrieval, multi-vector retrieval, and sparse retrieval, which provides a unified model foundation for real-world IR applications. It is able to process inputs of different granularities, spanning from short sentences to long documents of up to 8192 tokens. The effective training of M3-Embedding involves the following technical contributions. 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, enabling a large batch size and high training throughput to ensure the discriminativeness of embeddings. To the best of our knowledge, M3-Embedding is the first embedding model which realizes such a strong versatility. The model and code will be publicly available at https://github.com/FlagOpen/FlagEmbedding.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2402.03216")

Code

Syntology Ran 3 of 14 code samples harvested from 2 repositories linked to this paper; 11 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · our draft was wrong; 1 ran with no contract checked.

By repository: community (archive-listed): 14 samples from 2 repositories, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

flagopen/flagembedding officialmentioned in papermentioned on GitHubpytorch report
allen-li1231/treehop-rag mentioned on GitHubpytorchMIT report
terrierteam/pyterrier_dr mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 3 ran; 1 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · our draft was wrong
1ran
11unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

gather_nograd allen-li1231/treehop-rag/src/dist_utils.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · 01971cc37e6fe583 · report
metric_max_over_ground_truths allen-li1231/treehop-rag/metrics.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 6829ceb72569fa12 · report
url_to_filename terrierteam/pyterrier_dr/pyterrier_dr/_star_tokenizer.py community (archive-listed) ran fingerprinted MIT (permissive) · e827d94caab33f59 · report
accuracy allen-li1231/treehop-rag/metrics.py community (archive-listed) unverified MIT (permissive) · e76cf27d36723be3 · report
bounded_process_pool_map allen-li1231/treehop-rag/src/concurrency.py community (archive-listed) unverified MIT (permissive) · 46c70937101d407b · report
bounded_thread_pool_map allen-li1231/treehop-rag/src/concurrency.py community (archive-listed) unverified MIT (permissive) · be452e3c3f240a7c · report
calculate_matches allen-li1231/treehop-rag/src/evaluation.py community (archive-listed) unverified MIT (permissive) · ab39d4a37bfc2be6 · report
check_answer allen-li1231/treehop-rag/src/evaluation.py community (archive-listed) unverified MIT (permissive) · 9691cc44ab024ac1 · report
gather allen-li1231/treehop-rag/src/dist_utils.py community (archive-listed) unverified MIT (permissive) · 9fb6e57668661c38 · report
has_answer allen-li1231/treehop-rag/src/evaluation.py community (archive-listed) unverified MIT (permissive) · 88720c6e874a2b03 · report
hf_bucket_url terrierteam/pyterrier_dr/pyterrier_dr/_star_tokenizer.py community (archive-listed) unverified MIT (permissive) · b2be6c932ce41084 · report
is_remote_url terrierteam/pyterrier_dr/pyterrier_dr/_star_tokenizer.py community (archive-listed) unverified MIT (permissive) · 4381d1f588a7f42a · report
randomcrop allen-li1231/treehop-rag/src/data.py community (archive-listed) unverified MIT (permissive) · e037474365501512 · report
varsize_gather_nograd allen-li1231/treehop-rag/src/dist_utils.py community (archive-listed) unverified MIT (permissive) · b1ad8cd3a7168b7f · report

Tasks

Knowledge DistillationRetrievalSelf-Knowledge Distillation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections