mGTE: Generalized Long-Context Text Representation and Reranking Models for Multilingual Text Retrieval
Xin Zhang, Yanzhao Zhang, Dingkun Long, Wen Xie, Ziqi Dai, Jialong Tang, Huan Lin, Baosong Yang, Pengjun Xie, Fei Huang, Meishan Zhang, Wenjie Li, Min Zhang
TL;DR
To address long-context multilingual text retrieval, the authors train a native 8k-context encoder from scratch with RoPE and unpadding, and build a hybrid text representation model (TRM) plus a cross-encoder reranker using contrastive learning. They introduce Matryoshka embeddings and a sparse representation, enabling elastic dense and sparse indexing, and optimize with a multi-task contrastive fine-tuning regime. Empirically, the TRM and reranker achieve competitive results with smaller models, particularly excelling on long-context benchmarks, while offering notable efficiency improvements for industrial deployment. The work is complemented by extensive evaluations on NLU and multilingual retrieval tasks and is released openly to foster further research and practical adoption.
Abstract
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.
