MEXMA: Token-level objectives improve sentence representations
João Maria Janeiro, Benjamin Piwowarski, Patrick Gallinari, Loïc Barrault
TL;DR
MEXMA tackles the limitation of cross-lingual sentence encoders trained solely with sentence-level objectives by integrating token-level objectives through cross-unmasking. The method updates both token representations and the sentence embedding via a symmetrical, multilingual architecture and a KoLeo-driven entropy regularization, with a cross-language unmasking objective and an alignment loss enforcing cross-lingual sentence proximity. Empirical results on xsim, xsim++, BUCC, SentEval, and MTEB show state-of-the-art or competitive performance, including strong token alignment across languages and improved downstream task accuracy with smaller models. The work demonstrates that explicit token-level gradients and cross-lingual masking significantly enhance sentence representations, offering practical benefits for multilingual retrieval and understanding, with promising scalability to more languages and modalities.
Abstract
Current pre-trained cross-lingual sentence encoders approaches use sentence-level objectives only. This can lead to loss of information, especially for tokens, which then degrades the sentence representation. We propose MEXMA, a novel approach that integrates both sentence-level and token-level objectives. The sentence representation in one language is used to predict masked tokens in another language, with both the sentence representation and all tokens directly updating the encoder. We show that adding token-level objectives greatly improves the sentence representation quality across several tasks. Our approach outperforms current pre-trained cross-lingual sentence encoders on bi-text mining as well as several downstream tasks. We also analyse the information encoded in our tokens, and how the sentence representation is built from them.
