Skip to main content
QUICK REVIEW

[Paper Review] Margin-based Parallel Corpus Mining with Multilingual Sentence Embeddings

Mikel Artetxe, Holger Schwenk|arXiv (Cornell University)|Nov 3, 2018
Natural Language Processing TechniquesComputer Science16 references156 citations
TL;DR

This paper proposes a margin-based parallel corpus mining method using multilingual sentence embeddings that improves upon cosine similarity thresholding by measuring the margin between a sentence pair's similarity and that of its k nearest neighbors. The approach achieves state-of-the-art results on BUCC (over 10 F1 points higher than prior work), 85% precision on UN reconstruction, and boosts English-German NMT BLEU by over 1 point (31.2) on newstest2014 using filtered ParaCrawl data.

ABSTRACT

Machine translation is highly sensitive to the size and quality of the training data, which has led to an increasing interest in collecting and filtering large parallel corpora. In this paper, we propose a new method for this task based on multilingual sentence embeddings. In contrast to previous approaches, which rely on nearest neighbor retrieval with a hard threshold over cosine similarity, our proposed method accounts for the scale inconsistencies of this measure, considering the margin between a given sentence pair and its closest candidates instead. Our experiments show large improvements over existing methods. We outperform the best published results on the BUCC mining task and the UN reconstruction task by more than 10 F1 and 30 precision points, respectively. Filtering the English-German ParaCrawl corpus with our approach, we obtain 31.2 BLEU points on newstest2014, an improvement of more than one point over the best official filtered version.

Motivation & Objective

  • To address the limitation of cosine similarity in parallel corpus mining, which suffers from scale inconsistency across sentence pairs.
  • To improve the reliability of nearest neighbor retrieval by replacing fixed similarity thresholds with a margin-based scoring mechanism.
  • To enhance the quality of mined parallel corpora for downstream neural machine translation tasks.
  • To demonstrate consistent performance gains across diverse language pairs, including low-resource and distant language pairs.

Proposed method

  • Uses a shared multilingual encoder-decoder architecture with a bidirectional LSTM encoder and LSTM decoder, trained on multilingual parallel data using cross-entropy loss.
  • Generates fixed-length sentence embeddings via max-pooling over the encoder’s hidden states, discarding the decoder after training.
  • Applies a margin-based scoring function that computes the difference between a sentence pair’s cosine similarity and the average similarity to its k nearest neighbors in both languages.
  • Employs a ratio margin function with maximum score retrieval and optimizes filtering thresholds on training data to maximize F1.
  • Processes large-scale corpora like ParaCrawl in batches, filtering based on top-scoring pairs using the margin score.
  • Uses the LASER toolkit to deploy the model and supports 93 languages with a single multilingual encoder.

Experimental results

Research questions

  • RQ1Can margin-based scoring improve the reliability of parallel sentence retrieval compared to fixed cosine similarity thresholds?
  • RQ2Does accounting for scale inconsistencies in cosine similarity lead to better mining performance across diverse language pairs?
  • RQ3To what extent does the proposed method improve downstream NMT performance when applied to large-scale parallel corpora like ParaCrawl?
  • RQ4How does the method compare to state-of-the-art systems on standard benchmarks like BUCC and UN reconstruction?
  • RQ5Can the method generalize effectively to distant language pairs such as English-Romanian or English-Chinese?

Key findings

  • The proposed method achieves 95.6 F1 on the BUCC English-German test set, outperforming the previous best result by over 10 F1 points.
  • On the UN reconstruction task, the method reaches 85.78% precision at P@1 for English-Spanish, a 30-point improvement over the prior state-of-the-art.
  • Filtering the ParaCrawl English-German corpus with the proposed method yields 31.2 detokenized BLEU on newstest2014, a gain of over one point compared to the best official filtered version.
  • The method improves performance on all four BUCC language pairs, with F1 scores exceeding 92 for English-French and English-Romanian.
  • The system achieves consistent gains across diverse settings, including low-resource and distant language pairs, demonstrating robustness and generalization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.