Modeling Sequential Sentence Relation to Improve Cross-lingual Dense Retrieval

Shunyu Zhang, Yaobo Liang, Ming Gong, Daxin Jiang, Nan Duan

Introduction

The Masked Sentence Model (MSM) improves cross-lingual dense retrieval by leveraging a simple but powerful observation: while words change across languages, the sequential order of sentences in a document remains largely the same. By training a hierarchical model to predict masked sentence vectors within a document context, MSM creates a more "language-agnostic" semantic space, significantly outperforming general-purpose models like XLM-R on multilingual retrieval benchmarks.

The Challenge of Cross-Lingual Dense Retrieval

In dense retrieval, queries and documents are encoded into high-dimensional vectors. If the vectors are close together in the embedding space, the documents are considered relevant. For cross-lingual retrieval—such as asking a question in Swahili to find an answer in an English document—this alignment is incredibly difficult.

Current approaches usually rely on general-purpose multilingual models like mBERT or XLM-R. However, these models are trained on word-level tasks (like masked language modeling) and aren't optimized for representing entire sentences or passages for retrieval. Previous retrieval-specific pre-training methods (like ICT or CROP) were mostly designed for English and used "coarse" views of a document. The authors argue that existing methods miss a "universal bridge" between languages: the sequential flow of information at the sentence level.

The Masked Sentence Model (MSM)

To capture this universal sequential structure, the authors introduce a hierarchical architecture called the Masked Sentence Model (MSM).

MSM Architecture
  1. Hierarchical Architecture:
  2. Sentence Encoder: A standard Transformer (initialized from XLM-R) that turns individual sentences into dense vectors.
  3. Document Encoder: A shallow Transformer that takes a sequence of these sentence vectors as input. Crucially, this encoder is shared across all languages to model universal sequential relations.
  4. Masked Sentence Prediction (MSP): Instead of masking individual words, the model masks an entire sentence vector. The Document Encoder must then use the surrounding sentence vectors to "predict" the missing one.

  5. Hierarchical Contrastive Loss: To train the model without a fixed vocabulary of sentences, the authors employ contrastive learning. The model tries to make the predicted vector similar to the "true" masked sentence vector while pushing it away from two types of negatives:

  6. Cross-Doc Negatives: Sentences from entirely different documents.

  7. Intra-Doc Negatives: Other sentences from the same document.
  8. Dynamic Bias: To prevent the model from being penalized too harshly for Intra-Doc Negatives (which might be semantically related to the target sentence), they introduce a mathematical "bias" term that adjusts the loss based on how similar these sentences naturally are.

Key Insights

  • Sentence Order as a Universal Language: The core insight is that sentence-level structure is more stable across translations than word-level structure. By forcing the model to learn this sequential relation, the document encoder acts as a bottleneck that pushes the sentence encoder to produce more meaningful, language-invariant representations.
  • The Power of Intra-Doc Negatives: Most models just use random sentences as negatives. By using other sentences from the same document as negatives, MSM forces the model to learn fine-grained semantic distinctions, not just broad "topic" matching.
  • Shared Document Logic: Sharing the document encoder across languages acts as a universal "logic layer" that helps align the vector spaces of different languages without needing explicit translation pairs.

Datasets and Results

The model was pre-trained on a cleaned version of Common Crawl (CC-108), covering 108 languages in an unsupervised fashion (no parallel translations needed). It was evaluated on four major cross-lingual benchmarks: Mr. TyDi, XOR Retrieve, Mewsli-X, and LAReQA.

Main Results Table

MSM achieved state-of-the-art (SOTA) results across the board:

  • Zero-Shot Superiority: In the zero-shot setting (fine-tuned only on English but tested on other languages), MSM outperformed XLM-R by 7% MRR on Mr. TyDi and 4.3% Recall on XOR Retrieve.
  • Low-Resource Wins: The gains were most dramatic in low-resource languages. For example, on the Bengali (BN) and Swahili (SW) portions of Mr. TyDi, MSM improved performance by over 8-11 points compared to XLM-R.
  • Monolingual Strength: Even when tested only on English (Natural Questions dataset), MSM outperformed specialized models like ERNIE 2.0, proving that modeling sentence relations helps retrieval in any language.

Limitations and Future Work

To keep memory usage manageable, the authors truncated sentences to 64 words, which might lose nuance in documents with very long, complex sentences. Additionally, the document encoder is relatively shallow (2 layers). Future work could explore if deeper document modeling or handling much longer sequences (beyond 32 sentences) provides further gains. Finally, while MSM is unsupervised, it could potentially be continually trained with bilingual parallel data to push performance even further.

Summary updated

BibTeX
@inproceedings{zhang2023modeling,
  author = {Shunyu Zhang and Yaobo Liang and MING GONG and Daxin Jiang and Nan Duan},
  title = {{Modeling Sequential Sentence Relation to Improve Cross-lingual Dense Retrieval}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=-bVsNeR56KS},
}
Figure