1. On-device model
Initialise paraphrase-multilingual-mpnet-base-v2 above to run the bitext & context labs.
2. Cross-Lingual Parallel Bitext Alignment (Recall@1)
Embeds every source sentence alongside its parallel translations in different languages. Because multilingual knowledge distillation aligns meaning across scripts, true translation pairs on the diagonal should outscore every off-diagonal distractor.
| Pair / Lang | Source sentence | Parallel translation | True pair cos | Best distractor | Hit |
|---|---|---|---|---|---|
| Run bitext alignment above to inspect pair scores. | |||||
3. Trained max_seq_length: 128 vs XLM-R 512 Budget
sentence_bert_config.json specifies max_seq_length: 128, while
config.json gives XLM-RoBERTa max_position_embeddings: 514
(model_max_length: 512). Run the exact same long document and query at both
limits to observe whether a late-occurring clause past token 128 gets truncated or retrieved.