Elamur Research

BitextEdit: Automatic Bitext Editing for Improved Low-Resource Machine Translation

Paper · 2022 · Eleftheria Briakou, Sida Wang, Luke Zettlemoyer et al.

Summary

A sentence found on the web can look like a translation of another sentence because the two share a topic, an expression, or a name. The match can still be wrong in a way that matters. One sentence might add a detail, describe a different event, or contain only part of the other sentence’s meaning. For machine translation in low-resource languages, such pairs pose a dilemma. Keeping them can teach a translation system the wrong associations. Discarding them can remove useful bilingual evidence from an already small collection.

BitextEdit turns this decision into an editing task. It reads the two sentences, chooses which language to write in, and produces a sentence to pair with the input in the other language. The output can reproduce an adequate translation, make a local correction, or replace a badly matched sentence. To teach these behaviors without hand-written corrections, the authors begin with relatively high-scoring bilingual pairs and search for alternative matches in monolingual sentence collections. They train the editor to recover the original sentence when given one of these retrieved alternatives. They also train it to translate when the input on the output side is masked.

The authors test whether these revisions help by training separate translation systems on different versions of CCMatrix. The main experiments cover 5 language pairs and 10 translation directions. Editing the lower-scoring portion while preserving the higher-scoring portion improves results over using the original data throughout those experiments. The largest reported gain is +8.4 points on the BLEU score for Italian to Occitan. Editing the lower-scoring portion also scores above a back-translation alternative in 7/10 directions. The differences are smaller for English and Swahili, whose original data already support comparatively high scores in these experiments.

A separate English–Greek study tests how the result changes as the supply of higher-scoring data grows. Lower-scoring data can help in scarce conditions even before editing, while a large share of unedited, lower-scoring pairs can hurt when more higher-scoring data are available. In a manual assessment of 200 English–Greek pairs, the estimated share judged fully equivalent rises from about 38% to about 70% after editing. That assessment measures agreement in meaning within the training pairs. The translation experiments measure a separate outcome, whether training on those pairs improves performance on held-out sentences.

Deep dive: BitextEdit: Automatic Bitext Editing for Improved Low-Resource Machine Translation

BitextEdit repairs imperfect bilingual sentence pairs and tests whether the revised data improves translation where parallel text is scarce. · about 35 minutes to read

The problem and its context

How a promising match becomes an unreliable example

A bitext is a collection of passages in two languages linked as translations. In this paper, the unit of interest is the sentence pair. When a translation system trains on such a pair, the sentence on the output side serves as an example of what the sentence on the input side means and how that meaning can be expressed. If the two sides disagree, the system still receives the designated output as the answer to learn. A fluent sentence can therefore be a poor training answer.

The clearest defects include an empty side, text in the wrong language, or material that is mostly nonlinguistic. Other cases are harder to assess from surface properties. A usable sentence may have been grouped with its neighbor in one language, adding information that does not appear across the pair. Two sentences may share the same participants and topic while disagreeing over what happened. In still other cases, a single expression changes the meaning of otherwise matching sentences. These differences matter because the paired words and phrases that do agree can still carry genuine bilingual evidence.

This mixture gives filtering an awkward role. A filter can remove a pair with evidence of mismatch, but the removal also takes away every correct correspondence inside that pair. The cost depends on what else is available. If comparable expressions occur throughout a large corpus, a discarded example may be easy to replace. When comparable data are scarce, the same removal can leave the training collection with less coverage. The difficulty is especially acute for a method that uses one score to make a decision about an entire sentence pair.

The paper’s starting point is that the useful unit for a decision can be smaller than the sentence pair. A pair can be worth keeping if one side needs only a repair. A more severe mismatch can still leave one good sentence worth using as a basis for translation. A reliable match can provide its original wording in both languages. These are different uses of the same two inputs, and the proposed editor is trained to handle them through a shared output procedure.

How web mining supplies the pairs

Web mining attempts to locate translations among texts that already exist. The paper places this approach in a line of work that uses the web as a source of bilingual material and, more recently, represents whole sentences in a shared multilingual space. In that space, a sentence is represented by a vector, a list of values that the mining system can compare with representations from another language. A search can then return a shortlist of neighboring sentences that are plausible matches.

The paper describes LASER as the multilingual sentence encoder used in both Wikipedia mining and mining from Common Crawl. A search across Wikipedia produced WikiMatrix. CCMatrix applied sentence mining to Common Crawl text. The paper also discusses earlier work that extended multilingual retrieval through iterative self-supervision. This matters for BitextEdit because the authors need to retrieve bilingual neighbors during editor training as well as to obtain the sentence pairs they intend to revise. Massively Multilingual Sentence Embeddings

A multilingual search can find related content across languages and still return a neighbor with a different meaning. The very properties that make it a good candidate, such as a shared topic or similar sentence structure, can survive a translation error. Neighbor retrieval is thus useful to the editor in a particular way. It produces realistic examples of how an automatic mining system can get close to a translation and still miss it. The method relies on that property when building its training tasks.

The authors cite an audit of web-crawled multilingual datasets covering 205 language-specific corpora. In the paper’s account of the audit, the vast majority of low-resource pairs contained less than 50% valid translations. The authors also cite an analysis in which 40% of English–French WikiMatrix pairs exhibited small differences in meaning. The examples come from different settings, and they illustrate different risks. A corpus can have a high proportion of unusable pairs. Even in a better-resourced setting, superficially good pairs can contain smaller departures from equivalence.

The paper also connects these audit findings with earlier experiments on translation training. One study introduced several familiar kinds of defects into a clean English–German corpus to examine their effects. Another linked uncertainty from noisy references with how well the confidence of a translation system reflects its reliability. Earlier work on small semantic divergences found that training with synthetic mismatches could lead to degenerate output more frequently and lower confidence in predictions. Those studies motivate the focus on meaning as well as basic sentence validity. On the Impact of Various Types of Noise on Neural Machine Translation

The alternatives available to the authors

The paper describes parallel-corpus filtering as an established response to unreliable mining. Some approaches use preliminary rules, such as checking the apparent language or basic sentence characteristics. Others combine evidence from translation probabilities, sentence embeddings, or scores produced by looking at both translation directions. These methods differ in how they estimate quality. They share the decision to retain or remove a pair. That decision can be appropriate for severe noise, but it offers no way to retain the aligned portion of a partly correct pair.

Synthetic translation offers another way to use the underlying text. In back-translation, a system translates a sentence from the intended output language into the intended input language. The generated sentence becomes the input in a new training pair, and the existing sentence remains the desired output. Forward translation starts from text on the input side and generates its target. The paper also describes prior work that creates multiple synthetic versions of existing bitext, revisits examples that contribute little during training, or uses a stronger system to supply training sequences for a smaller one. Improving Neural Machine Translation Models with Monolingual Data

Generating a new translation gives questionable bilingual material another use. It also changes the evidence available when the revised pair is created. A translation system working from one sentence may produce a suitable partner if it already translates well. If the other sentence in the mined pair happens to contain a useful phrase or a correct rendering of a name, regenerating from one side gives up that cue. This is the comparison that motivates the paper’s back-translation baseline. Both strategies create a new side for a pair, and they differ in whether generation can consult the original wording on that side.

Automatic post-editing is related because it also generates corrections. In the prior work described in the paper, the object being corrected is the output of a translation system. Some approaches use human post-edits alongside examples produced by other translation systems. BitextEdit deals with another source of error. Both sentences can be human-written and perfectly readable, with the mismatch introduced when mining links them. The editor is trained from existing bitext and retrieved alternatives, with the original pair supplying a reconstruction target in place of a human correction.

The authors also situate their work alongside a closely related effort to replace selected imperfect references with synthetic translations. Their own emphasis is on retaining access to both inputs during revision and learning how to exploit a possibly useful sentence that would otherwise be dropped or replaced wholesale. Retrieve-and-edit work in translation, post-editing and dialogue provides a precedent for using retrieved text in generation. Here, the purpose of generation is to revise the training corpus before a separate translation system is trained.

The method, step by step

What the editor receives and produces

The editor reads a pair of sentences and returns a single sentence. Its output begins with a language marker that identifies the side to replace. If it writes in the first language, the original sentence in the second language stays in the pair. If it writes in the second language, the first sentence stays. The retained side acts as the reference for interpreting the revised side. Each input pair therefore still contributes a pair after editing.

There are several ways this can work. For a satisfactory pair, reproducing the existing wording on the chosen side preserves the pair as it stands. For a close match, the editor can keep much of that sentence and adjust a word or phrase. For a poor match, it can rely more heavily on the side it retains and generate a translation using little of the sentence it replaces. In implementation, these behaviors use the same decoder. The output is a sentence, and copying or substitution describes its relationship to the input. The decoder does not have to return a list of explicit edit operations.

A training procedure needs to give the editor practice with all of these possibilities. Simply training on observed sentence pairs would teach ordinary translation. It would give no direct example of recovering a translation when a second, misleading sentence is also supplied. The authors construct that situation by starting from a pair that already exists, retrieving an alternative for one side, and asking the editor to recover the original wording on that side. During training, the known original provides the answer. At application time, the editor has to infer an appropriate answer from the pair in front of it.

How BitextEdit learns and revises sentence pairs

The steps in order.

How BitextEdit learns and revises sentence pairsStep 1: Select higher-scoring bilingual pairs as training seeds1. Select higher-scoring bilingual pairs as training seedsStep 2: Retrieve alternative sentences for each side2. Retrieve alternative sentences for each sideStep 3: Learn to reconstruct the original sentences3. Learn to reconstruct the original sentencesStep 4: Learn to translate with the output side masked4. Learn to translate with the output side maskedStep 5: Read a mined pair with both sides present5. Read a mined pair with both sides presentStep 6: Generate a language marker and a revised sentence6. Generate a language marker and a revised sentenceStep 7: Keep the original sentence in the other language7. Keep the original sentence in the other language

Building a reconstruction example

The authors divide available CCMatrix data into pools according to the mining score. Pool A contains pairs above 1.06. Pool B consists of pairs below 1.06 and above 1.05. The former cutoff is the global threshold used in the CCMatrix work, and the latter reflects how far down the available data go. Pool A supplies the starting pairs for learning the editor. The experiments then ask what happens when the editor is applied to Pool B or to the combined collection.

The pool labels describe the scores of the mined pairs. A higher score is a reason to prefer a pair as a reconstruction target, although its correctness remains uncertain. The method uses these pairs because it needs a large supply of targets and consequently treats stronger mined matches as its working supervision. For each original pair, it searches for another sentence in one language using the original sentence in the other language as the query.

Suppose the editor is learning to reconstruct a sentence in the first language. The mining stage starts with the original sentence in the second language and asks which monolingual sentences in the first language are closest to it. That cross-language search matters. A random replacement would give the editor examples of obvious mismatches. A nearby sentence is more likely to look plausible alongside the query and can include the kind of partial agreement that made the original mining problem difficult. The same operation is repeated in the other direction.

The rules below use primes for the retrieved alternatives. The first rule selects an alternative on the side in language f.

x′f = argmax[z ∈ F] cos(LASER(z), LASER(xₑ))

Here x′f is the retrieved sentence in language f, and xₑ is the original sentence in language e used to make the query. F is the monolingual candidate pool for language f, z is a candidate and ∈ means that z belongs to that pool. LASER maps a sentence to a multilingual vector. The function cos compares the vectors by cosine similarity, and the argmax selects the candidate z with the highest similarity. The equals sign assigns that candidate to x′f.

The matching rule for an alternative in language e reverses the roles of the languages.

x′e = argmax[z ∈ E] cos(LASER(xᶠ), LASER(z))

Here x′e is the retrieved sentence in language e, xᶠ is the original sentence in language f, and E is the monolingual pool for language e. The symbol z now ranges over E, with ∈ again denoting membership. LASER gives the vector for each sentence, cos compares the two vectors, and argmax returns the candidate with the greatest similarity. The equality sets x′e to that result.

The formulas describe retrieval of the closest candidate. The training procedure extends them to the top k neighbors, where k is the number of candidates the search seeks per query and is set to 4. The authors allow the existing CCMatrix translation to be retrieved as well. If retrieval returns that sentence, it gives the editor a case in which the desired wording is already present. Correct behavior in that case amounts to copying it. Other neighbors give the editor opportunities to learn how much of the supplied wording to keep.

These searches differ from the procedure with which CCMatrix was originally constructed. As the paper describes it, CCMatrix uses a margin score, brings together candidates found in the forward and backward directions, and accepts pairs above a threshold. To obtain alternative inputs for reconstruction, BitextEdit uses direct cosine similarity. The authors choose that simpler search to reduce computation and encourage a wider range of imperfect alternatives. The threshold used to separate the corpus into pools and the similarity used to retrieve a training alternative therefore serve different purposes.

The noise in these examples is synthetic in a specific sense. The mining step changes which sentences are put together for training. The alternative sentence is retrieved from a sentence pool, so it can be fluent and can have a coherent meaning of its own. Its defect is that it may not express the meaning of the sentence next to it. That property makes the training input resemble the mined pairs the editor will encounter later. It also means that a high similarity does not define the exact correction that is needed. The editor has to produce the answer by using both the retained sentence and the reliable parts of the alternative.

Learning when the supplied wording is useful

The reconstruction task teaches the editor to map a modified pair back to one of its original sentences. For output in language e, the input has the original sentence in f and a retrieved alternative in e. The desired output is the original e sentence. For output in f, the alternative is on the f side and the original e sentence supplies the cross-language evidence. Training includes both directions so that either language can be the output during editing.

A second task teaches translation within the same input format. The side corresponding to the desired output is represented by a mask. When the e side is masked, the editor generates the original e sentence using the f sentence. When the f side is masked, it generates the original f sentence using the e sentence. This gives the same architecture direct practice at generation when the other input position supplies no candidate wording. The application setup keeps both sentences visible. The translation task is intended to give the resulting editor a way to handle a case where the sentence it could edit offers very little help.

The paper writes the objective as a sum of conditional log probabilities. In the notation below, xᶠ and xₑ denote the original sentences consistently with the retrieval rules. The first line inside the brackets gives the reconstruction terms, and the next line gives the translation terms.

L = ∑[(xᶠ, xₑ)] [
      log p([⟨e⟩ xₑ] | (xᶠ, x′e)) + log p([⟨f⟩ xᶠ] | (x′f, xₑ))
    + log p([⟨e⟩ xₑ] | (xᶠ, ⟨MASK⟩)) + log p([⟨f⟩ xᶠ] | (⟨MASK⟩, xₑ))
    ]

L is the combined training objective. The symbol ∑ means that the bracketed terms are summed over the original pairs (xᶠ, xₑ), and the plus signs combine the contributions from the tasks and directions. The symbols f and e designate the languages. Their original sentences are xᶠ and xₑ, and their retrieved alternatives are x′f and x′e. The function p assigns a probability to the sequence in square brackets given the pair to the right of the vertical bar. The function log takes the logarithm of that probability. The tokens ⟨e⟩ and ⟨f⟩ identify the output language and precede the sentence in the desired sequence. The symbol ⟨MASK⟩ occupies a position whose original sentence is withheld.

The authors call the parts of the objective L EDIT and L MT. L EDIT is the reconstruction contribution from the two inputs containing retrieved alternatives. L MT is the contribution from the two masked-input translation cases. As written, higher log probability means the system assigns greater probability to the desired outputs. The training details give label-smoothed cross-entropy as the implemented criterion. The paper also describes upweighting the translation examples to match the mined reconstruction examples so that the tasks make equal contributions in the training data.

The objective gives the editor supervision about the output language in both tasks. In a reconstruction example, the language marker identifies which side was supplied with a retrieved alternative. In the translation task, it identifies the side whose text is missing. At application time neither side is masked. The editor has to supply the marker itself, so the language decision and sentence generation are parts of the same prediction. The final translation direction used to evaluate a corpus is a separate decision made when training the downstream system.

How the architecture handles a pair

The editor uses a sequence-to-sequence Transformer. Its encoder reads the paired sentences, and its decoder generates the output one token at a time, taking the tokens already produced into account. Two language embeddings tell the encoder which language each input belongs to. These embeddings start from random values. Position embeddings begin afresh with each sentence. That lets a position near the beginning of either sentence be represented as such even though the editor receives the pair together.

The first generated token has an operational consequence. Once it specifies a language, the remaining sequence is taken as the revised sentence in that language. That sequence is joined to the original input in the other language. If the generated wording matches what was there, the resulting pair is unchanged. If it differs only locally, the retained words on that side effectively carry through into the revised training corpus. If the output is a substantial rewrite, the other input sentence supplies the only untouched text in that pair.

The paper reports using fairseq for both the editor and the downstream translation systems. The architecture uses an embedding size of 512, a Transformer hidden size of 4,096, 8 attention heads and 6 layers on each side of the encoder–decoder architecture. Training uses dropout of 0.4 and label smoothing of 0.2. Dropout makes parts of the network temporarily unavailable during training, and label smoothing distributes some probability away from treating the target token as completely certain. With Adam as their optimizer, the authors set each GPU’s batch size to 4,000 tokens. Training runs for 100 epochs, with the checkpoint chosen by validation perplexity, a measure of how well the system predicts the held-out text. fairseq

The authors use Moses scripts for tokenization in English, Occitan, Italian, Belarusian and Swahili. They use the Indic NLP library for Marathi. For each pair, they learn 60K byte-pair encoding units with subword-nmt. This form of subword tokenization breaks text into reusable units that can be smaller than complete words, so generation can work with pieces of a form as well as with forms represented as a single unit. The editor and translation experiments use these pair-specific text preparations.

The appendix reports a total of 165M parameters for the architecture. Each experiment uses one machine with 8 GPUs. The reported time to train a downstream translation system is below 3.5 hours, with approximately 20 minutes for English–Occitan using the combined original pools. The editor takes below 13.5 hours to train in the reported experiments, with approximately 5 hours for English–Occitan. These figures describe the paper’s training setup. They make the extra stage visible in a comparison whose central measurements concern data quality and translation scores.

Experiments and results

Corpus conditions and the comparison they make possible

The main experiment uses English–Occitan, Italian–Occitan, English–Belarusian, English–Marathi and English–Swahili. The pairs differ in the amount of data and in the relationship between the languages. English–Belarusian pairs Latin and Cyrillic script, and English–Marathi pairs Latin and Devanagari. The other pairs in the main set use Latin script on both sides. A method that can carry over words from an imperfect input may face different opportunities in these settings. Including translation in both directions also lets the same bilingual collection be assessed with either language as the output.

The paper’s main corpus overview gives the following sizes for the score-defined pools. These are the figures in that overview.

Language pairPool APool B
English–Occitan0.2M0.1M
Italian–Occitan0.3M0.1M
English–Belarusian0.7M1.1M
English–Marathi1.5M2.1M
English–Swahili1.7M0.9M

The authors compare a filtered corpus containing only A with the unedited union A ∪ B. Here the union symbol means that both pools are used together. This is the comparison a corpus builder faces when setting a threshold. The stricter choice changes the volume of training data and its distribution of mining scores at the same time. An improvement for the larger corpus can show that keeping those additional pairs is beneficial in practice even though the pairs are individually more doubtful.

Two other comparisons use the same corpus boundaries while changing how one side of a pair is generated. The authors use b to denote back-translation and r to denote BitextEdit. In A ∪ b(B), the higher-scoring pool is preserved, and the target-language side of each pair in B is back-translated to replace the source side for that direction. In A ∪ r(B), A is again preserved, and the editor can revise either side of each pair in B. The number of B pairs is preserved in both procedures. This makes the comparison closer to a test of two ways of preparing the same material than a comparison with filtering alone.

The authors also back-translate or edit the whole combined corpus. Those versions are denoted b(A ∪ B) and r(A ∪ B). Full-corpus processing tests whether each procedure can handle higher-scoring pairs alongside lower-scoring ones. For back-translation, it means regenerating the source side throughout. For the editor, it means giving even a good match an opportunity to be rewritten while retaining the possibility of copying it. The scope of editing is a substantive experimental choice because Pool A gives the downstream system comparatively strong examples and also supplies the editor’s reconstruction targets.

The back-translation system is trained on original CCMatrix data. It provides a baseline that can turn the lower-scoring collection into useful training material without depending on its existing source sentences. It is therefore stronger evidence for the practical value of editing than a comparison with dropping B alone. The two approaches still differ in both the information available during generation and which side can be revised. The experiment measures the combined effect of those choices.

The test set and the scores

The authors evaluate on the FLORES devtest split. The data appendix lists 997 development examples and 1,012 test examples for each language pair in the main translation comparison. The development data support decisions during training, and the test data provide the scores used to compare the different training corpora. The paper reports single runs. In particular, small differences between alternative preparations of the same corpus are observations from those runs. FLORES Evaluation Datasets

The primary measure is spm-BLEU, computed on detokenized outputs. BLEU rewards overlap between a system’s output and reference translations. The paper also reports chrF, which measures overlap using character sequences. In both cases a higher score is better under the metric. The downstream scores answer whether a translation system trained on the prepared data better matches the evaluation references. The later manual study answers whether the training pairs themselves agree more closely in meaning.

The direction matters when reading the numbers. An Italian-to-Occitan score is for generation in Occitan with Italian input. The reverse score is for generation in Italian under the opposite task. Comparing processing strategies within a direction holds the test task fixed. Comparing the raw values across directions involves different output languages and can obscure the effect the paper is trying to measure.

The largest gains are in the Occitan pairs

Italian to Occitan gives the strongest example of editing lower-scoring data. On FLORES devtest, training on the original combined pools produces 11.5 spm-BLEU, and filtering to Pool A gives 11.7. Back-translating Pool B raises the score to 17.0. Editing Pool B yields 19.9, the paper’s reported +8.4 gain over unedited A ∪ B in that direction. The full-corpus edit reaches 19.8. The comparison with back-translation shows that the lower-scoring material can be made much more useful by generation, and that the version produced with both original sentences available gives the highest score in this direction.

Italian to Occitan on FLORES devtest by CCMatrix training condition

Editing the lower-scoring pool gives the highest score among the tested preparations.

Italian to Occitan on FLORES devtest by CCMatrix training conditionOriginal combined pools: 11.5Original combined pools11.5Higher-scoring pool only: 11.7Higher-scoring pool only11.7Back-translate both pools: 17.0Back-translate both pools17.0Edit both pools: 19.8Edit both pools19.8Back-translate lower-scoring pool: 17.0Back-translate lower-scoring pool17.0Edit lower-scoring pool (this paper): 19.9Edit lower-scoring pool (this paper)19.9
The numbers
System or settingspm-BLEU
Original combined pools11.5
Higher-scoring pool only11.7
Back-translate both pools17.0
Edit both pools19.8
Back-translate lower-scoring pool17.0
Edit lower-scoring pool (this paper)19.9

For Occitan to Italian, the original combined training data produce 11.6 spm-BLEU. Editing B produces 18.3, which the authors report as an increase of +6.7. Back-translating B reaches 15.6. Editing both pools reaches 18.5, the highest score among the compared corpus preparations for this direction. The ordering of the two editing scopes therefore changes between directions, with both edited versions performing well. The Italian–Occitan result concerns a pair for which the original corpus supplies a relatively weak downstream training signal in either direction.

Occitan to Italian on FLORES devtest by CCMatrix training condition

Both editing conditions lead the comparison, with full-corpus editing scoring highest.

Occitan to Italian on FLORES devtest by CCMatrix training conditionOriginal combined pools: 11.6Original combined pools11.6Higher-scoring pool only: 11.1Higher-scoring pool only11.1Back-translate both pools: 17.3Back-translate both pools17.3Edit both pools (this paper): 18.5Edit both pools (this paper)18.5Back-translate lower-scoring pool: 15.6Back-translate lower-scoring pool15.6Edit lower-scoring pool: 18.3Edit lower-scoring pool18.3
The numbers
System or settingspm-BLEU
Original combined pools11.6
Higher-scoring pool only11.1
Back-translate both pools17.3
Edit both pools (this paper)18.5
Back-translate lower-scoring pool15.6
Edit lower-scoring pool18.3

For English to Occitan, editing Pool B moves the FLORES devtest spm-BLEU score from 20.5 on the unedited union to 26.0. The paper reports a gain of +5.5. Back-translating B gives 23.0, and editing the full corpus gives 25.4. In the reverse direction, the original union gives 24.3, the back-translated B condition gives 27.7, and editing B gives 28.7. The authors report a gain of +4.4 for the last comparison with the original union. In both directions, strict filtering gives a lower score than retaining even the unedited B data.

The authors suggest that relatedness may help explain the especially large gains involving Occitan, since some revisions can reuse text and may require relatively simple operations. The Italian–Occitan outcomes are consistent with that possibility. They also come from settings with little training data, and the experiments vary available quantity, starting quality and language relationship together. The score comparisons establish where the gains were observed. They leave the size of each possible contribution open.

The other language pairs distinguish gains from consistent wins

For English to Belarusian, the spm-BLEU score rises from 11.0 for the unedited combined pools to 13.0 when Pool B is edited. In the reverse direction, it goes from 9.8 to 10.8. The authors report gains of +2.0 and +1.0, respectively. The comparable scores with back-translated B are 12.1 and 9.6. These improvements occur in a pair written in different scripts. Local reuse within the rewritten language remains possible in that setting, but copying shared surface text across the two languages cannot by itself explain the viability of the method.

English to Marathi reaches 15.3 spm-BLEU with edited B, with the paper reporting +3.1 against the original combined corpus. Back-translation of B gives 15.4, and editing the entire corpus gives 15.8. For Marathi to English, editing B gives 16.7 and back-translating B gives 15.1. The paper reports a gain of +3.7 for editing B over use of the original union in this direction. These results illustrate why the comparison includes the back-translation baseline. A substantial gain over the unedited corpus can coexist with close performance between the two ways of revising it.

For English to Swahili, the table gives 38.1 spm-BLEU for the original union, 38.3 for editing B and 38.8 for back-translating B. In the reverse direction, both the original union and Pool A alone give 34.8. Editing B gives 36.2, and back-translating B gives 36.8. These are already comparatively strong baselines within the paper’s set of experiments. The edited corpus improves on the original union in both directions, while the partial back-translation condition gives the highest BLEU score in each. The absolute scores are useful here because the paper’s prose and table do not consistently agree on the reported gains for English–Swahili.

Across the main comparisons, editing B improves on the original union in all 10 directions. Against back-translating B, editing scores higher in 7/10 directions. The authors describe the remaining 3 as comparable. The clearest gaps in favor of editing occur in the Occitan results. Several other differences are small enough that a reader should distinguish the observed ordering from a demonstrated advantage across repeat runs.

The chrF results provide a check under another measure. For Italian to Occitan, the original union gives 30.92 chrF on FLORES devtest, back-translating B gives 39.01, and editing B gives 43.03. For Occitan to Italian, those conditions give 32.90, 38.99 and 44.05. The strong result for editing the lower-scoring Occitan data therefore appears in both metrics. There are also changes in ordering elsewhere. For English to Belarusian, editing B produces 31.08 chrF and editing the full corpus produces 31.21, even though editing B gives the higher spm-BLEU score in that direction.

In English to Marathi, back-translating B reaches 35.20 chrF and editing B reaches 34.65. In Swahili to English, the same conditions reach 58.74 and 58.29. Those cases make the limits of a single headline ranking visible. The broad finding is that revised data typically make stronger training material than the original pool combination in these experiments. Which preparation scores highest can depend on the direction, the scope of the revision, and the metric.

What the ablations show

Filtering and the choice of what to edit

The paper varies the composition and preparation of the training corpus and complements those comparisons with an English–Greek scaling study and inspections of the edited text. It does not report an ablation that trains the editor with the reconstruction and translation contributions removed in turn. The strongest controlled evidence is consequently about what happens when particular data are retained, regenerated or edited.

Comparing the original union with Pool A alone tests the decision to exclude B. In almost all the main translation tasks, the filtered corpus gives a lower BLEU score. The Italian-to-Occitan result gives a small improvement from filtering, and there are ties in some other directions. In English to Occitan, the filtered score is 18.1, compared with 20.5 for the original union. In Occitan to English, the corresponding scores are 17.8 and 24.3. The relatively low mining score of B therefore cannot be read directly as evidence that B will hurt a translation system trained with A. The comparison changes both the amount of available text and the expected quality of an individual training pair.

Holding A fixed and revising B asks a narrower question. Both the raw and revised versions contribute the same set of pair positions to the training corpus, but the sentences attached to those positions can change. Better downstream scores in that comparison support the claim that the editing procedure improves the usefulness of the available data. The comparison does not identify whether individual gains came from fixing a small discrepancy, preserving an overlooked correct phrase, or replacing the original sentence completely. All of those behaviors can contribute to the same downstream score.

Editing both pools tests the cost of exposing higher-scoring pairs to revision. For several directions, the results are close to the approach that protects Pool A. Occitan to Italian has a higher score with full-corpus editing, and English to Occitan has a higher score when only B is revised. English to Swahili is the principal exception to the improvement over the original union when the full corpus is edited. These comparisons show that broad application can work even when it includes good pairs. Individual changes still need separate scrutiny, since a similar final score could include a mixture of useful and unnecessary edits.

The full-corpus comparison with back-translation also makes the value of conservative behavior more plausible. Back-translation regenerates the source sentence even where the mined pair was already adequate. Editing has a way to preserve that sentence or change relatively little. Across the paper’s full-corpus comparisons, editing gives stronger results than wholesale back-translation. This comparison supports the overall design choice to keep the original pair available during revision. It does not isolate whether the gain comes from copying, seeing the alternative wording, or being allowed to replace either side.

The amount and mix of English–Greek training data

The English–Greek study separates some of the questions that are entangled in the main language-pair comparison. By taking different amounts from one corpus and keeping the translation direction English to Greek, the authors can study scarcity without also switching to a different language pair. The first comparison trains with different quantities of Pool A alone. It establishes how rapidly the translation score changes as relatively high-scoring training data become more plentiful.

The reported increase from 100K to 500K Pool A training pairs is approximately 10 BLEU points. Moving from 1M to 5M yields +2 BLEU. At the larger end, moving from 10M to 15M gives approximately +0.2. These observations describe the English-to-Greek experiment. They show how the value of additional higher-scoring pairs changes across the tested sizes. In the smaller conditions, removing a source of additional examples can carry a substantial cost. In the largest conditions, the gain from adding still more relatively strong pairs is small.

A second experiment varies Pool B relative to Pool A. In one condition, B contains half as many pairs as A. In another, they are equally represented. In the last, B contains twice as many pairs as A. Within each mixture, the authors compare using the higher-scoring pool alone, adding B in its original form, and adding B after editing. The comparison makes it possible to see whether the effects of weaker pairs depend on how much of the eventual corpus they occupy.

At low and medium resource levels, adding unedited B generally improves on training with A alone across the tested mixtures. This extends the filtering result from the main experiments into a setting where quantity is explicitly varied. At high resource levels, the effect of unedited B is small when the lower-scoring pool is the smaller contribution. When lower-scoring pairs are equally represented or more numerous, the original B data can depress translation quality. The score assigned to an individual pair is only part of the decision about using it. The result also depends on what else the downstream system sees.

The authors train separate editors using the different quantities of higher-scoring English–Greek pairs and apply them to the corresponding B samples. The revised condition performs better than or comparably to keeping the raw union or filtering to A. Under low and medium resource conditions the authors describe gains of around +2 BLEU. At the high end, editing can mitigate the harm caused when lower-scoring data represent a large share of the corpus, yielding performance comparable to filtering. The result is about preserving useful additional signal under scarcity and controlling the effect of weaker signal when a strong core is already available.

This study changes the amount of good data available to the editor as well as the amount used to train the downstream translation system. It therefore describes how the complete procedure behaves across the settings. It leaves a more specific question unresolved: how much of the difference across those settings follows from better editor training, and how much follows from the downstream system’s different sensitivity to adding revised pairs.

What changes in the individual pairs

For a direct assessment of meaning, one author manually inspects 200 randomly sampled English–Greek CCMatrix pairs, comparing the original and revised versions. The editor used for the reported ratings was trained with 0.5M Pool A examples. The evaluation separates full equivalence, a partial mismatch and an unrelated pair. A partial mismatch can involve a local mistranslation or added content in sentences with an important common meaning. The unrelated category includes cases that may look similar at the level of topic or structure while failing as translations.

About 38% of the original pairs are judged fully equivalent. For the revised pairs, the figure is about 70%. This is evidence about meaning in the training corpus itself, alongside the held-out translation comparison. The authors also assess the revised sentence by itself for fluency. They report 84.5% as flawless and 15.5% as good. A sentence can receive a high fluency judgment in isolation while being paired with the wrong meaning. The separate fluency and equivalence judgments capture those different properties.

The examples show how the editor can use overlap without being bound by it. In one given pair, the English sentence refers to a group talking, while the Greek sentence describes a study group asking people to meditate. The timing and group setting give the sentences some resemblance. The editor rewrites the English around the meditation request, treating the Greek sentence as the anchor. The resulting pair is useful because the action now agrees, even though that action was absent from the original English.

Another example starts from a pair whose English side attributes western influence to film and television. The Greek side concerns intensifying censorship in the same media. The editor keeps the English and replaces the Greek with a sentence expressing the account of western influence. Shared vocabulary about media could have made the original sentences look like neighbors. The aligned sentence needs the claim about media to agree as well. In another pair, the Greek text about working as a research assistant is rewritten to match an English sentence about clinical assistant work with a hospital specialist. An overlap around assistant work had concealed a difference in roles and circumstances.

These examples illustrate why the paper evaluates equivalence between the members of the resulting pair. Repair may follow either original sentence. Different anchors can lead to different content in the corpus, even when each revised pair is better aligned. The manual ratings show that, on the sampled English–Greek data, the process frequently produces a more coherent bilingual pair. The examples show how that improvement can require replacing the central claim of a sentence rather than correcting a single word.

How often the editor rewrites text

The authors also count how often an edited sentence differs from its original. In the analysis that includes revisions to either side, the Italian–Occitan edit rate is 75.78%, while the English–Swahili rate is 35.57%. The direction of this contrast matches the relative scale of the downstream improvements. The Italian–Occitan corpus has many more changed pairs and stronger gains. English–Swahili has fewer changes and smaller gains. These measures describe an association across the studied pairs. An edit count cannot tell whether a change removed an error, introduced one, or merely altered spelling.

The English–Greek analysis across corpora adds a measure of edit intensity. The authors draw random samples of about 100K pairs from corpora distributed through OPUS. These include human translations from Tatoeba, sentence-aligned OpenSubtitles material, and automatically collected ParaCrawl data. The authors use Translation Error Rate labels to count tokens that stay correct under the edit alignment and tokens involved in substitutions, deletions or insertions. In this use, those labels describe differences between the original and revised texts. They are measures of how the wording changes.

The editor changes 29.80% of the Tatoeba pairs, 65.63% of the OpenSubtitles pairs and 88.11% of the ParaCrawl pairs. Those percentages answer how frequently the editor makes any change. The token alignment within the set of changed pairs gives a different view. In OpenSubtitles, 74.51% of tokens are marked correct among changed pairs, compared with 85.42% in ParaCrawl. ParaCrawl is thus changed more often, while the subtitle pairs that change are rewritten more heavily by this measure.

Among changed OpenSubtitles pairs, deletions account for 3.39% of tokens and insertions for 7.29%. In changed ParaCrawl pairs, the corresponding figures are 1.55% and 4.12%. The paper connects the subtitle pattern with earlier reports of segmentation errors that can leave extra words at one edge of a sentence. This is a plausible explanation for why the changed subtitle examples require more insertion and deletion. The operation counts alone leave the cause of each particular edit unresolved.

Manual inspection of Tatoeba changes finds that many substitutions involve small Greek spelling differences. Together with its lower edit frequency, this suggests a more conservative response to those human translations. Some changes can preserve meaning perfectly well while modifying an already acceptable form. That distinction matters when choosing what an edit rate should demonstrate. Conservative behavior is visible in how much original text survives. Whether the rewrite was justified requires comparing meanings, or judging a more specific objective such as orthographic consistency.

Limitations

Limits and risks the authors identify

The authors explicitly leave more severely degraded mining scores for future work. Pool B extends below the original CCMatrix threshold, but only as far as the available lower bound of 1.05. The successful revisions concern pairs drawn from this range or from the higher-scoring pool. A corpus with many wrong-language sentences, empty sequences or nonlinguistic fragments could pose a different problem. Such cases motivated the broader discussion of mining noise, while the application experiments focus on the data the authors could obtain.

The method also presupposes enough data to begin mining and enough usable pairs to supply reconstruction targets. The authors frame their approach as applicable where bitext mining is supported. Its synthetic supervision makes a separately annotated correction corpus unnecessary. The initial mined pairs, the multilingual encoder and the sentence pools still supply essential information. The paper consequently addresses how to use available bilingual material more effectively in scarce conditions.

The authors investigate whether introducing generated text into the training corpus might encourage hallucinations in downstream translation. In this context, a hallucination is fluent output that is poorly grounded in the source. One author examines a small sample of 20 outputs in an English-to-Greek comparison. The conditions use 1M Pool A pairs alone, 1M from A plus 2M unedited pairs from B, and 1M from A plus 2M edited pairs from B. All the annotated instances are judged faithful. The small inspection supplies examples under each training condition. It leaves the frequency of infrequent failures, and the difference in that frequency across preparations, uncertain.

The authors also raise lexical richness as a concern when generated text replaces human-written material. They compare vocabulary types, token counts and type–token ratios between original and revised versions. The ratio describes how many distinct forms a text contains relative to the number of running tokens. The paper reports a decrease in the edited text. This gives evidence of a tradeoff that a downstream translation score can miss. Aligning meanings more successfully can still change which word forms, spellings and expressions survive in the revised corpus. The paper does not connect the reported lexical change to the quality of particular downstream translations.

Limits visible in the experimental design

Pool A is stronger by a mining score, and the reconstruction task treats its original sentences as targets. The paper itself discusses variation in the signal Pool A provides across pairs. If a training seed already contains a meaning mismatch, reconstructing its original wording can reproduce the discrepancy. Allowing the original match to appear in the retrieved alternatives can encourage useful preservation where the match is correct. Its usefulness depends on how frequently the original supervision is dependable. The downstream comparison and the manual English–Greek assessment give evidence that the procedure helps overall; they do not measure the rate at which flawed seeds shape the editor’s decisions.

The architectural explanation identifies intended roles for editing and translation, but the paper’s controlled comparisons concern the training corpus prepared by the complete editor. Separate training runs removing one objective at a time would be needed to measure how much each contributes. The same applies to the use of raw cosine retrieval, the inclusion of original translations among the candidates, and the resetting of input positions. The reported evidence shows what the full procedure achieves with those choices together.

Comparing BitextEdit with back-translation answers a practical question about alternative preparations of available text. It is less precise as a test of why one preparation works better. The baseline always replaces the source side for the chosen downstream direction, while the editor predicts which language to generate. The baseline also generates with one sentence as evidence, while the editor sees both. A gain can therefore arise from retaining candidate wording, using a better anchor, choosing a different side to revise, or combining these decisions. The experiments do not allocate the gains among those mechanisms.

The main translation results are single-run scores. The large changes in the Occitan tasks and the smaller changes in some other tasks have different evidential weight. The paper gives no run-to-run spread for the comparison. That matters particularly for choosing between editing only B and editing the full corpus, since those variants can have nearly the same scores. The second metric helps show whether some patterns persist when overlap is measured differently. It does not estimate training variability.

The test coverage also differs between the main and supplementary experiments. The main results concern the 5 selected CCMatrix pairs on FLORES devtest. The controlled scaling experiment uses English to Greek, with scarcity simulated by sampling from a larger collection. This lets the authors vary training sizes in one pair, but a downsampled higher-resource corpus may differ from a genuinely scarce corpus in the reliability, diversity or availability of its candidate sentences. The scaling result shows the response within the selected collection and mixture settings. Its breakpoints cannot be assumed to carry over to other pairs.

One detail in the scaling appendix complicates exact reconstruction of that experiment. The scenario described as having twice as much B as A has tabulated edited and unedited training sizes that differ in several rows, in spite of the stated comparison of original and revised versions of the same material. The plotted comparison and accompanying discussion give the intended conditions and their trends. The appendix does not give a consistent account of all the corresponding corpus sizes.

Finally, the direct assessment of meaning is concentrated on one English–Greek sample and one reported assessor. The paper gives a clear separation between full equivalence, partial mismatch and unrelated meaning, but it reports no agreement measurement among independent assessors. The OPUS analysis reaches additional corpora, yet its operation counts measure how much text changes rather than how often the new version is a better translation. For the main low-resource language pairs, the broadest evidence is the downstream translation comparison. Direct judgments of the edited pairs in those languages remain an open part of the evaluation.

What came after

Subsequent adoption or extension of BitextEdit is undocumented in the available research record. The paper itself leaves a concrete empirical question for follow-up: how far below the tested CCMatrix score range can an editor still recover useful bilingual material? Its results establish a case for revision within the mined collections it studies, with the strongest downstream gains where parallel training text is especially scarce.

Cite

Cite as Eleftheria Briakou, Sida Wang, Luke Zettlemoyer and Marjan Ghazvininejad. 2022. BitextEdit: Automatic Bitext Editing for Improved Low-Resource Machine Translation. Findings of the Association for Computational Linguistics: NAACL 2022.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2022.findings-naacl.110

@inproceedings{briakou2022bitextedit,
  title = {{BitextEdit: Automatic Bitext Editing for Improved Low-Resource Machine Translation}},
  author = {Eleftheria Briakou, Sida Wang, Luke Zettlemoyer and Marjan Ghazvininejad},
  booktitle = {Findings of the Association for Computational Linguistics: NAACL 2022},
  year = {2022},
  doi = {10.18653/v1/2022.findings-naacl.110},
  url = {https://doi.org/10.18653/v1/2022.findings-naacl.110}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/briakou-2022-bitextedit-automatic-bitext-editing-improved/