[Paper Review] mGTE: Generalized Long-Context Text Representation and Reranking Models for Multilingual Text Retrieval
The paper introduces mGTE, a native 8k-context multilingual text encoder with RoPE and unpadding, plus a hybrid TRM and a cross-encoder reranker trained with contrastive learning for long-context multilingual retrieval; it achieves strong results with improved efficiency.
We present systematic efforts in building long-context multilingual text representation model (TRM) and reranker from scratch for text retrieval. We first introduce a text encoder (base size) enhanced with RoPE and unpadding, pre-trained in a native 8192-token context (longer than 512 of previous multilingual encoders). Then we construct a hybrid TRM and a cross-encoder reranker by contrastive learning. Evaluations show that our text encoder outperforms the same-sized previous state-of-the-art XLM-R. Meanwhile, our TRM and reranker match the performance of large-sized state-of-the-art BGE-M3 models and achieve better results on long-context retrieval benchmarks. Further analysis demonstrate that our proposed models exhibit higher efficiency during both training and inference. We believe their efficiency and effectiveness could benefit various researches and industrial applications.
Motivation & Objective
- Advance long-context multilingual text retrieval by building a native 8k-context multilingual encoder from scratch.
- Develop a hybrid text representation model (TRM) that supports elastic dense and sparse representations for efficient first-stage retrieval.
- Design a cross-encoder reranker trained in a contrastive framework to refine retrieved candidates.
- Improve training and inference efficiency for long-context multilingual retrieval systems.
Proposed method
- Pre-train an 8k-context multilingual text encoder from scratch using MLM with RoPE and unpadding, on a diverse multilingual corpus (75 languages).
- Replace absolute positional embeddings with RoPE, upgrade FFN to GLU, remove dropout on attention scores, pad embeddings to multiple of 64, and apply unpadding to reduce computation.
- Construct a TRM that yields both dense and sparse representations via contrastive learning; use InfoNCE objective with in-batch or hard negatives.
- Incorporate Matryoshka embedding (multi-dimension sub-vectors) and a sparse token-weight representation to enable efficient long-context retrieval; combine losses in a multi-task fine-tuning objective.
- Train a cross-encoder reranker using the same encoder with InfoNCE loss, focusing on query-document pairs to predict relevance.
Experimental results
Research questions
- RQ1How can a native 8k-context multilingual encoder be built from scratch to improve long-context retrieval across languages?
- RQ2Can a hybrid TRM (dense + sparse representations) provide efficient and accurate first-stage retrieval in multilingual settings?
- RQ3Does a cross-encoder reranker built on top of the long-context encoder improve final ranking of retrieved documents in multilingual retrieval tasks?
- RQ4What are the efficiency gains in training and inference when using long-context TRMs with unpadding and RoPE-based architectures?
- RQ5How do the proposed models perform on long-context multilingual benchmarks compared to state-of-the-art large models?
Key findings
- The 8k-context mGTE encoder (MLM-2048/8192 variants) outperforms XLM-R-base at the same size on XTREME-R and GLUE benchmarks.
- The TRM (Dense) achieves retrieval scores close to state-of-the-art large models on multilingual benchmarks and surpasses several baselines on long-context tasks.
- The TRM with both dense and sparse representations (and multi-task TRM loss) delivers improved long-context retrieval performance versus baselines.
- The mGTE-reranker outperforms a strong prior reranker (bge-reranker-v2-m3) at similar sizes, demonstrating effective reranking capability.
- Efficiency analyses show up to 14x faster encoding times versus a baseline and significant gains from end-to-end unpadding with xFormers, enhancing practical deployment for large corpora.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.