Elamur Research

Geographical Distance Is The New Hyperparameter: A Case Study Of Finding The Optimal Pre-trained Language For English-isiZulu Machine Translation.

Paper · 2022 · Muhammad Umair Nasir and Innocent Mchechesi

Summary

A team building an English-to-isiZulu translator has few collections of sentences paired with human translations. It can make more of those examples by starting with a system that has already learned to translate between English and another language. Muhammad Umair Nasir and Innocent Mchechesi ask which previous task best prepares a system to translate into isiZulu. A large corpus offers more practice at translation, while a closely related language may offer more useful practice at forming the kinds of words the system will need. This is a choice about where to begin training for machine translation.

The authors take 8 existing MarianMT checkpoints, each containing the learned settings from a previous training run, and adapt them on the same English–isiZulu corpus, Umsuka. Prior training on English–isiXhosa gives the highest score on each of the corpus’s evaluation splits. It reaches 10.20 on validation and 8.56 on test. The multilingual Romance checkpoint, which draws on the largest pretraining corpus in the study, finishes next with 7.76 on validation and 5.83 on test. These are scores for overlap between generated translations and human renderings, measured with BLEU.

The paper also introduces Nasir’s Geographical Distance Coefficient, or NGDC, as a way to screen checkpoints before adapting them. The rule favors shorter distances from the target language and gives larger corpora credit for their size. In its simplest form, it favors the Romance collection. A version that assigns the maximum penalty at or beyond a geographic cutoff puts isiXhosa first, in agreement with the translation scores. After choosing the English–isiXhosa checkpoint, the authors fine-tune it on Umsuka for 75 epochs and obtain 17.61 BLEU on the training split and 13.73 on the test split.

The study establishes a choice among the checkpoints the authors tried. Prior training with a language from the same branch of Bantu as isiZulu was more useful on Umsuka than prior training with any of the larger collections in the comparison. The experiment leaves the source of that advantage open. Corpus contents and size, linguistic relationship, and the distance assigned to each language all vary together. The result supports taking the choice of pretraining language seriously, while the coefficient shows how a geographic preference can be turned into a practical rule for deciding which checkpoint to try first.

Deep dive: Geographical Distance Is The New Hyperparameter: A Case Study Of Finding The Optimal Pre-trained Language For English-isiZulu Machine Translation.

A study of English-to-isiZulu translation compares pretrained systems and tests whether geographic distance and corpus size can guide the choice. · about 34 minutes to read

The problem and its context

What counts as a resource for translation?

The system in this study receives English text and produces isiZulu text. To train it directly on that task, a researcher needs examples that show how content expressed in English can be rendered in isiZulu. A parallel corpus supplies such examples by pairing sentences across languages. The pairing matters because it connects the input the system will receive to output a human translator considered appropriate. A body of isiZulu writing supplies evidence about the language, but creating aligned examples from it requires obtaining corresponding English sentences.

The paper traces the shortage of these resources to several parts of the process. Languages with less representation online offer fewer readily available texts to collect. Preparing a collection for translation research also depends on access to translators, language specialists and people who can curate the data. These constraints affect communities with widely spoken languages as well. The resource in question is material and expertise available for building and assessing translation systems, a distinction that matters when discussing low-resource languages.

The authors describe a field whose development has concentrated on dominant languages such as English. For a language with abundant paired examples, researchers have more material on which to train a system directly. For isiZulu, a new collection of carefully translated sentences therefore changes what researchers can investigate. It gives them an opportunity to examine an adaptation strategy on common material, with human translations available for judging the output. The question is how to use those examples when the team can also draw on training that has already happened elsewhere.

Why the form of an isiZulu word matters

The authors identify the structure of isiZulu words as a second difficulty. They describe the language as agglutinative. A written form can combine parts that express different pieces of lexical or grammatical information. A change in one of those parts is then a change within a word the translation system has to produce. How those parts combine, and which forms recur across different sentences, are questions of morphology.

A translation system encounters text in units determined by its segmentation procedure. If several forms share a recurring piece, the way they are divided affects whether that piece appears as a common unit in the training examples. The issue becomes especially relevant when examples are scarce, since a useful pattern may occur across several forms that each appear infrequently. The paper points to research by Moeng and colleagues that trained systems to segment text in Nguni languages, including isiZulu and isiXhosa. The authors cite that work as evidence of progress on a related problem in tokenization.

The paper also refers to an earlier benchmark by Martinus and Abbott in which isiZulu fared poorly relative to the other African languages evaluated. The authors recount its suggestion that better isiZulu data could improve the situation. That observation and the segmentation work give two reasons to examine the new corpus carefully. It supplies human translations of the language the system needs to produce, and it provides a setting in which to test whether prior experience with a language that forms words in similar ways helps a system use those translations.

How earlier studies made use of other data

One response to scarce parallel data is to give the translator experience on a different task before continuing on the desired one. A researcher loads a checkpoint, the saved state of a previously trained system, and updates it using the examples for the new task. The broad strategy is transfer learning. The stage in which the researcher continues training for the new task is fine-tuning.

The paper describes earlier work by Neubig and Hu in which initial training covered multiple languages. A checkpoint from that training served as the starting point for additional work on a low-resource language. This approach makes the contents of the initial multilingual training a consequential choice. The previous task can provide experience translating from or into several languages, which can then be carried into a task with fewer examples of its own. The paper cites this work as a precedent for rapid adaptation of neural machine translation.

Another approach expands the supply of paired material. With back-translation, a researcher can start from existing writing in the desired output language and use automatic translation to create matching sentences in the input language. Applied to the direction studied here, the idea would be to pair isiZulu writing with automatically generated English. The resulting examples would still have human-authored isiZulu on the output side. The paper describes this approach in its discussion of prior work using monolingual data for neural translation.

The authors also mention efforts to train with a small set of annotated sentences and dictionary entries, and to improve decoding, the step that produces a translation from the trained system. Each line of work addresses a different decision. Back-translation changes the paired examples available to learn from. Dictionaries supply another kind of training material. Decoding changes how predictions are used to form the output. Nasir and Mchechesi investigate the decision to use one already trained checkpoint over another when the target training corpus is given.

Why the particular language pair deserves attention

Nguyen and Chiang provide a direct precedent for considering related languages. Their work concerns the possibility that a low-resource language can benefit from transfer from another low-resource language with a linguistic relationship to it. This gives a reason to inspect the content of the previous task before treating the amount of previous training text as decisive. A checkpoint can carry experience that is unusually relevant to a new task even if the original corpus is relatively small. The authors situate their study alongside transfer learning across related low-resource languages.

Nasir and Mchechesi also discuss work by Nyoni and Bassett on isiZulu, isiXhosa and chiShona. The earlier study considered zero-shot translation, transfer and multilingual training. Its strongest setup on its own dataset trained across English and isiZulu, English and isiXhosa, and isiXhosa and isiZulu. In its transfer experiments, an English-to-isiXhosa starting point yielded a statistically significant benefit when applied to isiZulu. The earlier result for transfer from English to Shona fell short of statistical significance. The distinction gave Nasir and Mchechesi grounds to investigate relationships within the Bantu family more closely.

The multilingual alternative in the new investigation serves a different purpose from the multilingual system that Nyoni and Bassett evaluated. It offers prior experience with a large collection of Romance languages. The earlier multilingual setup drew on the particular languages central to the southern African translation task. Both are examples of training with several languages, but the content of that training makes them different candidates for transfer. The new study sets a checkpoint from a large multilingual collection beside an isiXhosa checkpoint and several other bilingual choices on Umsuka.

The common English side gives the comparison an intuitive starting point. All the prior tasks have involved English, and the new task takes English input. The varying side is the language, or group of languages, paired with it. The authors are especially interested in the experience carried over from having trained to generate a language related to isiZulu. They ask whether that experience can be more valuable than opportunities to learn from a larger number of pairs in a different language.

From language relatedness to a geographic input

A researcher who knows the languages can look at their family relationships and ask where useful structural similarities are likely. The authors also want a selection procedure that uses quantities a researcher can obtain before the translation trials. They consider the approximate distance between places where the languages are spoken. Their rationale draws on earlier research about geography and structural diversity, and on the possibility that languages associated with nearby places may have useful similarities. They also cite work on the broader problem of choosing transfer languages.

The relevant measurements describe separate properties. A family classification places languages in relation to one another. A geographic distance concerns the places chosen to represent them. A sentence count describes the size of the text collection used in prior training. A checkpoint can have a favorable value on one property while another checkpoint has a favorable value on a different one. The paper therefore gives distance a role in screening candidates and asks how to combine it with the amount of prior data.

The practical question arises before fine-tuning, when the adapted systems’ scores are still unknown. Trying every available checkpoint entails repeated training. A screening rule might narrow that work by identifying a promising candidate from information the researcher already has. For this to help, the screening rule has to preserve candidates that can translate well after adaptation. The paper uses the Umsuka experiment to examine that connection between a choice made before training and the output assessed afterwards.

The method, step by step

The training comparison and the screening rule

The experiment and the coefficient answer related questions. The experiment takes existing checkpoints, adapts each to the English-to-isiZulu task, and compares the translations they generate. The coefficient takes each checkpoint’s pretraining corpus size and geographic distance and gives it a priority score. The authors compare that ordering with the observed translation results. After the checkpoint comparison, they also report a longer run for the choice that performed best.

How the study evaluates candidates for English-to-isiZulu transfer

The steps in order.

How the study evaluates candidates for English-to-isiZulu transferStep 1: Choose checkpoints trained with different language pairings1. Choose checkpoints trained with different language pairingsStep 2: Fine-tune each candidate using Umsuka2. Fine-tune each candidate using UmsukaStep 3: Evaluate translations against human renderings3. Evaluate translations against human renderingsStep 4: Calculate each candidate’s geographic coefficient4. Calculate each candidate’s geographic coefficientStep 5: Compare rankings before and after applying the cutoff5. Compare rankings before and after applying the cutoffStep 6: Train the leading checkpoint for longer6. Train the leading checkpoint for longer

The flow describes the study as conducted. In the intended use of the coefficient, the scoring stage can happen before any candidate is adapted. The translation trials supply the outcome against which to judge the recommendation in this case. Thus validation and test results can show whether the rule favored a strong candidate, while the quantities fed into the rule come from the candidate and its pretraining corpus.

Assemble comparable English-to-isiZulu examples

Umsuka contains matched sentences whose original text can be in English or in isiZulu. English material came from News Crawl collections and was translated by people into isiZulu. For sentences originally written in isiZulu, the corpus builders used the NCHLT monolingual collection and the UKZN isiZulu National monolingual collection. Human translators rendered that material in English. The authors identify Umsuka as a publicly available resource distributed through Zenodo.

The two routes into the corpus end with the same languages on the two sides of a pair. In an example originating in English, the task input is the English original and the isiZulu side comes from a translator. In an example originating in isiZulu, the English input derives from a translation and the isiZulu side can come from the original writing. In both cases the direction the system learns is English to isiZulu. The direction in which the original human translation was produced is a separate property of the example.

The corpus builders commissioned separate renditions from two translators for each translation. The authors connect that decision to the complexity of isiZulu and to the possibility of assigning different roles to human versions. A target is an output example the system can learn to produce. A reference is an example against which the output is judged. Separate human translations can express the same source sentence with different wording, which gives the corpus a way to represent variation. The paper describes this feature of the material without giving a detailed assignment of all alternate renditions to training and scoring roles.

The reported experiment uses training, validation and test splits of Umsuka. The training portion supplies examples for updating each checkpoint. Validation and test scores describe performance on their respective portions of the corpus. Their labels are important because a result measured on training examples describes behavior on material the system has used to learn. The comparison between starting points has separate validation and test results, while the longer run reports training and test results.

Start with checkpoints that share a design

The authors select 8 pretrained MarianMT checkpoints. They describe the prior training through the Helsinki collections and OPUS sentence pairs, and identify the Hugging Face hub as the place where MarianMT checkpoints were available. Marian is a toolkit for training neural translators and running them on text. The shared toolkit and architecture give the authors a way to compare checkpoints that have learned from different language pairs while keeping the broad design of the translator fixed. The paper credits the toolkit to the work on Marian.

The translator has an encoder and a decoder. The encoder converts the English input into an internal representation. The decoder uses the encoded input to generate output, building the translation as it proceeds. The paper describes MarianMT here as having 6 layers in each of those components. An encoder or decoder layer is a stage of processing inside the network. The common structure means that the comparison does not switch from one kind of network to another when it switches the prior language pair. The architecture is an encoder–decoder Transformer.

A checkpoint contributes learned settings for that architecture. Those settings reflect what was available in the previous task. For instance, an English–isiXhosa checkpoint has learned from paired text involving isiXhosa, while an English–French checkpoint has learned from a different collection and output language. Starting from the same architecture still allows the learned settings to differ substantially. That difference is what makes the checkpoint choice meaningful.

Represent several kinds of relationship to isiZulu

IsiXhosa represents the choice most closely related to isiZulu in the authors’ account. Both languages belong to the Nguni branch of Bantu. Prior English–isiXhosa training therefore supplies the most direct test in the study of whether experience with a close linguistic relative helps a system learn to translate into isiZulu. The authors expect the relationship to matter particularly for forming words. They include a smaller pretraining corpus for this candidate than for their high-resource alternatives, making its usefulness an empirical question.

ChiShona gives the study another case from Southern Bantu. Kiswahili gives it a candidate from a different part of the Bantu family. The authors describe Kiswahili in terms of Northeast Bantu and the Sabaki group. These choices allow a finer comparison than grouping all related languages together. The candidates share a broad family affiliation with isiZulu, but each comes with its own prior corpus and its own geographic distance. Their place in the experiment is to show how the available checkpoints fare under those particular combinations.

Twi and Luganda broaden the set of African starting points. Twi appears as a form of Akan spoken in Ghana and serves as the study’s West African choice. The authors include Luganda, spoken in Uganda, as another way to explore transfer within the broader frame of Niger–Congo languages. The inclusion of these checkpoints gives the comparison cases with different amounts of prior data and different locations. It also lets the authors look at cases where a checkpoint trained on an African language has little parallel material behind it.

Arabic and French are the authors’ high-resource bilingual comparisons. In this part of the design, the appeal of each candidate is the opportunity to start with a checkpoint trained on a substantial corpus, despite the morphological differences the authors emphasize. A system accustomed to translating from English may carry useful experience from either collection. Their presence allows the authors to compare the closely related starting point with larger bilingual sources as well as with a multilingual one.

The largest choice is a multilingual Romance checkpoint. According to the paper, its pretraining corpus brings together 48 Romance languages. The authors name languages including Spanish, Catalan and French to illustrate the collection’s scope. It combines a high volume of material with experience across multiple output languages. The test is whether this breadth and volume make the checkpoint a better starting point on Umsuka than prior training centered on a particular language with a closer relationship to isiZulu.

Continue training for the new task

For each candidate, the authors start from the checkpoint’s learned settings and update the translator using Umsuka’s English–isiZulu pairs. The English sentence supplies the input available during the task. The paired isiZulu text provides the example of what the system should learn to generate. In the resulting comparison, the target language, the direction of translation and the adaptation corpus are common. The starting state changes with the checkpoint.

This arrangement gives both sides of the prior translation task potential relevance. Earlier training with English provides experience processing that language. Prior output in a different language may also leave patterns the system can use as it learns to generate isiZulu. The authors put particular weight on that possibility for isiXhosa. The experiment operates on the checkpoint as a whole, so it can reveal the utility of starting there without identifying which learned settings were helpful.

The longer run belongs to a subsequent stage of the experiment. The authors select the strongest initial checkpoint and continue fine-tuning on Umsuka for 75 epochs. An epoch is a pass through the training set. That schedule describes the extended training of the English–isiXhosa choice. It supplies the result of developing that choice further after the initial comparison. The paper reports making the experimental code and the resulting English-to-isiZulu checkpoint public, and collecting the cards that describe the checkpoints used in the study.

Assess the translations through matching sequences

To obtain a BLEU score, generated translations are compared with human references. The metric relies on matches in contiguous sequences of tokens, called n-grams. A sequence can capture a recurring piece of wording in the output and the reference. Higher BLEU indicates closer overlap under the metric. A score for a collection of translations puts systems on a shared scale for the experiment, even though individual sentences may differ considerably in how they can be expressed. The basic unit of overlap is the n-gram.

This form of evaluation suits a comparison where every candidate translates the same held-out material. An overlap metric can give consistent credit when generated wording resembles the references. In a corpus designed with independent human renderings, it also matters that a valid translation can use forms a particular reference lacks. The paper uses BLEU throughout, and attributes the metric to Papineni and colleagues’ work on automatic translation evaluation.

Give each candidate a distance and a size

The geographic input is an approximate distance, expressed in kilometers, between a place associated with the candidate’s language and a place associated with isiZulu. For the multilingual checkpoint the authors report a single distance for the Romance collection. This measurement is external to the trained system. The translation process does not need a distance to generate a sentence. The number helps decide which starting point is worth adapting in the first place.

The other input is the amount of text in the candidate’s previous training collection. The paper reports that quantity in millions of sentences. It is the size of the prior corpus for the checkpoint, separate from the data used during training on Umsuka. A large number here means the checkpoint came from a large collection. It does not imply that this candidate receives more examples of English–isiZulu during the comparison.

The coefficient uses a ratio that grows with distance and shrinks with corpus size. A researcher can think of this ratio as asking how much distance the candidate brings for the amount of data available in its pretraining collection. The expression also includes a weight, which is the same across the candidates in the experiment.

z = cD / ((1 − c)S)

Here z is the intermediate ratio. D represents geographic distance for the candidate relative to the target language, and S represents the size of the candidate’s pretraining corpus. The symbol c is the weight coefficient, set by the authors to 0.4. The term 1 − c is its complement, where 1 is the total from which the distance weight is subtracted. The adjacent terms cD and (1 − c)S represent multiplication. The slash divides the weighted distance by the weighted size, with the parentheses grouping the factors in the denominator. For a fixed corpus size, increasing distance makes the ratio larger. For a fixed distance, increasing corpus size makes it smaller.

Translate the ratio into a shortlist

The authors turn the ratio into a score by applying an increasing exponential expression. They also provide a version with a maximum allowed distance for a candidate to receive that smoothly varying score. At the cutoff, the rule skips the smooth calculation and assigns the largest possible value. The expressions therefore define a single coefficient with two cases.

δ = ⎧ 1                      if D ≥ Dₘₐₓ
    ⎩ exp(z) / (1 + exp(z))  otherwise

The symbol δ represents NGDC. The brace groups the alternative cases. D is the candidate’s distance and Dₘₐₓ is the cutoff for that distance. The sign ≥ means that a candidate exactly at the cutoff receives the same treatment as one beyond it. The first 1 is the penalty value assigned to those candidates. In the other case, exp(z) is the exponential of the intermediate ratio, and the slash divides that quantity by itself plus 1. The plus sign indicates that addition. The paper minimizes δ, so smaller values correspond to higher priority. The version without the cutoff uses the exponential expression for every candidate.

The rule lets size compensate for distance among entries that receive the smooth score. A distant candidate with sufficiently extensive prior data can receive a lower score than a nearer candidate with less data. The hard cutoff gives distance another function. Once an entry crosses the threshold, its corpus size can no longer improve its priority. A cutoff thus controls which candidates can benefit from the size term.

There is a distinction between adjusting the coefficient’s values and adjusting its order. With the same interior weight for every candidate, the weight multiplies every distance-to-size ratio by a common positive factor. The exponential expression preserves the ordering of those ratios. Consequently, changing that shared weight can change the displayed scores while leaving the ordering of candidates on the smooth branch intact. Applying the cutoff is a way to change the ordering, because it moves the affected candidates to the penalty value. This follows from the formula, independently of what BLEU the candidates achieve.

The paper describes the calculation across a candidate set as linear in the number of entries. Given the size and distance for each checkpoint, the rule can evaluate its expression once per entry. This claim concerns scoring candidates. Collecting comparable sentence counts, deciding which places should represent the languages, and obtaining their distances are separate parts of putting those inputs together. The distances themselves are approximate, and the authors treat the choice of cutoff as something that can vary by target and region.

Experiments and results

Which starting point transfers best on Umsuka?

The comparisons in the main results all involve adaptation to English-to-isiZulu. For a baseline against isiXhosa, the paper uses the other available MarianMT starting points in the experiment. Romance tests the choice of large multilingual prior training. French and Arabic test larger bilingual resources. The African candidates provide comparisons at different levels of relatedness and with different kinds of prior corpora. The reported translation scores are BLEU on the relevant Umsuka split.

Test BLEU on Umsuka by MarianMT pretraining language

Prior training with isiXhosa gives the strongest test result, followed by multilingual Romance training.

Test BLEU on Umsuka by MarianMT pretraining languageisiXhosa (this paper): 8.56isiXhosa (this paper)8.56Romance: 5.83Romance5.83Kiswahili: 3.97Kiswahili3.97French: 3.91French3.91Arabic: 3.07Arabic3.07chiShona: 2.83chiShona2.83Twi: 1.34Twi1.34Luganda: 0.55Luganda0.55
The numbers
System or settingBLEU
isiXhosa (this paper)8.56
Romance5.83
Kiswahili3.97
French3.91
Arabic3.07
chiShona2.83
Twi1.34
Luganda0.55

The English–isiXhosa choice leads on the test set at 8.56 BLEU. The multilingual Romance choice scores 5.83, and the paper reports isiXhosa’s lead over it as 2.73 BLEU. Those are results of fine-tuning the checkpoints on the target task. The 8.56 measures English-to-isiZulu output on Umsuka, even though isiXhosa identifies the checkpoint’s previous task.

Kiswahili and French occupy neighboring ranks on test. The checkpoint with Kiswahili prior training produces 3.97 BLEU, while the French one produces 3.91. The Arabic and chiShona starting points yield 3.07 and 2.83 respectively. Twi and Luganda finish at the bottom, with 1.34 and 0.55 on the same split. The alternatives therefore offer a range of results even among checkpoints that share the same broad architecture and learn their new task from the same corpus.

Validation BLEU on Umsuka by MarianMT pretraining language

IsiXhosa and Romance retain the leading places, while Arabic rises above French and Kiswahili.

Validation BLEU on Umsuka by MarianMT pretraining languageisiXhosa (this paper): 10.20isiXhosa (this paper)10.20Romance: 7.76Romance7.76Arabic: 5.76Arabic5.76French: 5.42French5.42Kiswahili: 5.28Kiswahili5.28chiShona: 4.32chiShona4.32Twi: 1.91Twi1.91Luganda: 0.94Luganda0.94
The numbers
System or settingBLEU
isiXhosa (this paper)10.20
Romance7.76
Arabic5.76
French5.42
Kiswahili5.28
chiShona4.32
Twi1.91
Luganda0.94

On validation, isiXhosa achieves 10.20 BLEU and Romance reaches 7.76. Their repeated placement at the top is the most stable part of the ranking, together with the position of the smallest-scoring entries at the bottom. In the middle, Arabic records 5.76, French records 5.42, and Kiswahili records 5.28. Thus Arabic leads that group on validation, while Kiswahili leads it on test. The comparisons in that part of the ranking depend on which portion of Umsuka supplies the examples.

The remaining validation results are 4.32 for chiShona, 1.91 for Twi and 0.94 for Luganda. Along with the test results, they show the range of outcomes inside the African part of the comparison. The paper also presents curves of BLEU across training epochs for the candidates. These plots give a view of their behavior during adaptation, which the authors use to illustrate the advantage of the isiXhosa starting point. The numerical comparisons between splits come from the tabulated results.

How much previous training material did the candidates have?

The authors list 20.7 million sentences in the isiXhosa pretraining corpus and 1232.7 million in the Romance corpus. The size difference is central to the case the study was designed to examine. The largest corpus belongs to a checkpoint that performs well relative to most candidates. Its closest rival in the results, and the eventual winner, comes from the much smaller corpus. If a researcher used sentence count alone as the selection criterion here, the Romance checkpoint would come first.

The bilingual comparisons provide another view of the pattern. The Arabic corpus contains 102.8 million sentences and the French corpus contains 479.1 million. Following adaptation to Umsuka, both checkpoints finish below isiXhosa on validation and test. The Kiswahili corpus, with 9.1 million sentences, is smaller than either and produces a test score slightly above French. This is an observed comparison among the checkpoint packages, with their different languages and different training data.

For chiShona the paper reports 0.1 million sentences. That corpus is smaller than Kiswahili’s, and chiShona’s checkpoint places below Kiswahili on both evaluations. Twi has 0.047 million sentences and Luganda has 0.039 million. Those entries combine small prior corpora with the lowest validation and test scores. The study thus includes cases where very little prior material accompanies weak transfer, alongside cases where a smaller collection outperforms a far larger one. Sentence count offers relevant context for the ranking and still leaves much of the variation to explain.

How the assigned distances line up with BLEU

The distance reported for isiXhosa is 1000 kilometers, and chiShona is listed at 1584 kilometers. The corresponding figure for Kiswahili is 3783.1 kilometers, while Luganda is listed at 4883.7 kilometers. These values locate each candidate relative to the place associated with isiZulu in the experiment. The figure for chiShona is smaller than the figure for Kiswahili, even though Kiswahili scores higher on both splits. That pair illustrates how the order by distance alone can diverge from the order by translation performance.

Arabic is listed at 5205 kilometers and Twi at 7962 kilometers. French is listed at 13,094 kilometers, and the value for the Romance collection is 13094.4 kilometers. The largest two distances thus accompany the large French and Romance corpora. Romance has the strongest observed result after isiXhosa, despite the distance assigned to it. The authors plot BLEU beside the geographic measurements to examine the overall pattern, and use the departures from a simple ordering as a reason to include corpus size in the proposed coefficient.

The values measure distance between locations. The authors separately use language relationships to explain why they expect transfer to be particularly effective from isiXhosa. The isiXhosa checkpoint occupies a favorable position on both accounts. Its associated location is the nearest in the paper’s comparison, and the paper places isiXhosa in the same branch of the language family as isiZulu. That combination helps explain its initial appeal as a candidate while leaving the two accounts difficult to distinguish in the results.

The coefficient’s recommendation with and without the cutoff

In the table comparing forms of NGDC, the BLEU column corresponds to the validation split of Umsuka. NGDC has no translation split of its own. It comes from the corpus and geographic inputs, and its score can be calculated without running translation on Umsuka. A low NGDC means the rule gives the candidate priority. A high BLEU means the candidate’s generated output has greater overlap with the evaluation references.

Without the penalty, the Romance entry scores 0.5007 and French scores 0.5045. IsiXhosa follows at 0.5080, just ahead of Arabic at 0.5084. The remaining candidates receive higher values, starting with Kiswahili at 0.5688. This version of the rule would point first to the Romance checkpoint. It would also place French ahead of isiXhosa. The large collections are competitive under a rule that allows size to compensate for distance throughout the candidate set.

NGDC after applying the cutoff to candidates for Umsuka transfer

The cutoff leaves isiXhosa with the lowest coefficient and places Kiswahili next.

NGDC after applying the cutoff to candidates for Umsuka transferisiXhosa (this paper): 0.5080isiXhosa (this paper)0.5080Kiswahili: 0.5688Kiswahili0.5688chiShona: 0.9999chiShona0.9999Arabic: 1.0000Arabic1.0000Romance: 1.0000Romance1.0000French: 1.0000French1.0000Luganda: 1.0000Luganda1.0000Twi: 1.0000Twi1.0000
The numbers
System or settingNGDC
isiXhosa (this paper)0.5080
Kiswahili0.5688
chiShona0.9999
Arabic1.0000
Romance1.0000
French1.0000
Luganda1.0000
Twi1.0000

The most visible changes in the penalty column occur for Romance, French and Arabic. Each appears at 1.0000. The printed values for isiXhosa and Kiswahili stay the same, so those candidates improve in rank through the changed treatment of other entries. ChiShona is listed at 0.9999 in each version. Twi and Luganda are printed at 1.0000 in both columns. In their cases, the equal displayed values provide no way to tell from the table alone whether the rule used the penalty branch.

With the cutoff active, the recommendation agrees with both BLEU splits on the first candidate. Below that position, the ranking serves a different purpose from the translation comparison. Kiswahili is the next priority by the penalized coefficient. Romance occupies that position by BLEU. A researcher following the penalized rule in this case would try the eventual winner early, while passing over the checkpoint that turned out to be the strongest alternative.

The result after extending the chosen run

The authors go back to the English–isiXhosa initialization and report the result of fine-tuning it on Umsuka for 75 epochs. BLEU reaches 17.61 on the training set and 13.73 on the test set. The training figure measures translations on material used to update the system. The test figure measures the result of the longer run on held-out material. This is the checkpoint the authors report releasing for English-to-isiZulu translation.

The 13.73 result has a different comparison context from the earlier test score of 8.56. The earlier result is part of the experiment that ranks the starting points. The later result shows what the authors obtained by pursuing their preferred one. There are no matching extended-run figures for its competitors, so the longer run establishes an outcome for the chosen checkpoint without extending the head-to-head ranking to that duration.

What the ablations show

The paper reports no ablation of the translator’s architecture or training data. It offers a shared-architecture comparison across checkpoints, an analysis of how corpus sizes and geographic distances accompany the BLEU results, and a direct comparison of the selection rule with and without its cutoff.

The unit of comparison is a complete checkpoint

The experimental control is easiest to understand by looking at what the authors replace. They keep the architecture and target corpus common, and bring in a different saved state for each candidate. That makes the saved state, as a product of its earlier training, the relevant unit of comparison. The observed lead tells a researcher that the isiXhosa checkpoint was the best starting point of those tried for this task. There is no need to appeal to a deeper encoder or a different type of decoder to explain the ranking.

Changing the saved state also changes several properties of the preceding task. With isiXhosa, for instance, the researchers change the non-English language and the text associated with it. Comparing isiXhosa with French changes the corpus size as well as the linguistic relationship and the geographic measurement. The common network design makes the comparison more informative about available checkpoints, while those joint changes limit any interpretation in terms of a single cause.

The relationship between isiXhosa and isiZulu supplies a plausible explanation for the outcome. A checkpoint trained to generate isiXhosa may bring experience with structure that can be reused when learning to generate isiZulu. The study also includes Bantu candidates farther from isiZulu in the authors’ linguistic account. Those are weaker starting points than isiXhosa on Umsuka. Because they have different amounts of pretraining data and different corpus contents, the comparison supports interest in the specific relationship without measuring the independent benefit of belonging to the same branch.

The corpus and distance contrasts put simple rankings under pressure

The Romance comparison is the clearest illustration of why starting from the largest source of text is an incomplete selection strategy. It has the largest corpus and the broadest multilingual setup in the experiment. It does well on both evaluation splits, yet isiXhosa consistently leads it. The strong Romance result relative to most other candidates also matters. The evidence shows that the biggest source loses to the closest relevant candidate in this setup, while remaining a useful starting point by the standard of the rest of the field tested.

The French and Arabic cases help establish that the isiXhosa lead extends beyond the choice between a bilingual checkpoint and a multilingual one. Both bilingual alternatives have more prior data and lower BLEU. Their scores make a purely size-based explanation of the full ranking difficult. At the same time, their relative order changes across validation and test. The observations support a firm empirical preference for isiXhosa in this comparison, with less precision about which of the middle-ranked bilingual options a researcher should favor.

Distance likewise fails to order all the outcomes on its own. ChiShona sits closer to isiZulu than Kiswahili in the geographic inputs, while the Kiswahili checkpoint yields better translations by BLEU on each split. ChiShona’s prior corpus is also much smaller. Taken together, those observations are consistent with a small corpus limiting the utility of a nearby language. They leave open what would happen if the corpora were matched for size. Twi and Luganda illustrate another combination, in which small corpora and greater distances than isiXhosa accompany very low scores.

These contrasts explain the appeal of considering both inputs without establishing how much either one contributes. Corpus size and distance can help a reader identify where a ranking by one variable would go astray. The point of the exercise is clearest when framed as a decision about available checkpoints. Each alternative comes with a particular combination of characteristics, and the task is to find the combination that yields the strongest result after adaptation.

The cutoff changes the recommendation through the penalty

The direct controlled comparison applies two versions of NGDC to the same candidates. Their distances and corpus sizes stay fixed. Their translations and BLEU scores are also fixed. The change is whether the rule assigns a maximum score when a candidate reaches the distance threshold. This isolates the effect of that design choice on the recommendation.

In the smooth version, the Romance corpus is large enough to draw the first recommendation. The cutoff sets aside that size advantage and places Romance among the candidates with the maximum coefficient. IsiXhosa’s own score remains the same. Its position changes because Romance and French lose their lower values. Arabic is also shifted to the penalty value. This trace of what happens to individual entries makes clear how the rule comes to select the observed winner.

The same comparison shows what the cutoff sacrifices. Romance scores well after adaptation but receives the same maximum penalty as several much weaker choices. Kiswahili remains eligible for a favorable score and therefore becomes the next suggestion. The rule is a screen for deciding what to try, with a deliberately coarse treatment of candidates beyond the threshold. Its match to the best BLEU result demonstrates success at the top of this particular ranking, while the other positions reveal how the screen changes the shortlist.

The extended run answers a separate experimental question

Once the initial comparison identifies isiXhosa, the authors devote a longer run to that choice. The resulting test score shows what the selected checkpoint can achieve under the reported longer schedule. Since only the winner gets a result at that training duration, the experiment gives no comparison for how the other checkpoints would respond to the same extension. The original validation and test tables remain the direct evidence for selecting the starting point.

The learning curves and the extended run also relate to different senses of training efficiency. A selection rule could save effort by reducing the number of checkpoints a researcher adapts. A promising initialization could also reach a desired translation score within less training. The study illustrates the first possibility through the ordering of candidates and follows the selected checkpoint through an additional training run. It does not measure adaptation time or compute use for reaching a common target score.

Limitations

Limits the authors identify

The paper identifies its use of BLEU alone as an evaluation limitation. BLEU credits recurring text sequences shared by the output and the reference. Meaning can be preserved with different wording, and high overlap leaves room for a meaning-changing error. The authors suggest involving a linguistic specialist to judge the validity of translations. That kind of assessment would speak directly to what the text says, alongside the paper’s evidence about how often the wording matches.

The authors also emphasize the scope of the experiment. It includes 8 pretraining choices and evaluates transfer on Umsuka. They propose adding more candidate corpora and repeating the work on other benchmarks. They also propose applying the approach to other low-resource languages in different parts of the world. These extensions would test whether the observed success of the cutoff and the advantages of a close relative recur when the target language, available checkpoints and evaluation material change.

A multilingual Bantu corpus is another extension the paper proposes. The existing multilingual comparison is drawn from Romance languages. It thus represents breadth and corpus volume in a collection whose relationship to isiZulu differs from that of the Bantu candidates. The suggested Bantu collection would let researchers see how multilingual breadth interacts with closer relationships to the target. Its performance remains a question for another experiment.

The authors describe geographic distance as an approximation and suggest more precise ways of determining it, mentioning formulas associated with Lambert and Vincenty. They also propose incorporating morphology or phonology into a future selection score. The latter would introduce linguistic information about word structure or the organization of sounds. More accurate geography would refine a measure between chosen places. The proposed linguistic inputs would supply a different kind of evidence about the languages themselves.

Limits of what the translation comparison can establish

The main result ranks pretrained starting points. There is no reported baseline that trains the same architecture on Umsuka from a fresh initialization. Such a baseline would be necessary to estimate the gain attributable to transfer over learning solely from the target corpus. As a result, the reported gap between isiXhosa and the other candidates measures preference among those transfer choices. It does not quantify the improvement that any of them provides over training from scratch.

The size of a corpus is only one of its properties. A sentence count gives no direct evidence about the nature of its parallel examples, how they are distributed across topics, or how useful their language patterns will be on Umsuka. For the multilingual collection, the count also pools material from its constituent languages. The study reports the performance of the collection as a whole and gives no breakdown by the contribution of individual languages to transfer. Such differences in composition can accompany a large difference in size.

The authors’ morphological interpretation is plausible given their account of the languages. Establishing it more specifically would require observations about the generated forms. The paper provides no breakdown showing whether the isiXhosa choice makes fewer errors in parts of words, in agreement, or in some other aspect of translation. It also reports no controlled change to the segmentation of the target text. The BLEU lead gives evidence that prior training with isiXhosa helps at the level of the full output. The mechanism within that output remains unmeasured.

The corpus construction raises a further question about the aggregate scores. Some evaluated pairs can originate in English, while others originate in isiZulu. The reported results combine examples at the split level and provide no separate estimates by original language. The paper also describes the independently produced translations without specifying for every evaluation how alternate versions are used as references. It is therefore difficult to tell how strongly any given score depends on the mix of original and translated text, or on the availability of different acceptable renditions.

The validation and test tables provide point estimates. They give no uncertainty intervals or significance tests for the checkpoint comparison. The evidence for the top choice includes its lead on both splits, whereas the middle positions change with the evaluated examples. The statistical significance described in the paper’s background belongs to the earlier experiment by Nyoni and Bassett. That evidence helps motivate the study, while the precision of the present results depends on the analyses reported for Umsuka.

Limits of the geographic ranking

The coefficient is demonstrated using the same candidate set and target task that motivated its design. In that setting the cutoff puts the eventual winner first. The paper gives no separate target task on which to assess a fixed version of the rule. Its reliability as a selection procedure for a new language therefore remains open, particularly if the available choices differ in how they combine distance, size and linguistic relationship.

The paper gives the value used for the weight and treats the maximum distance as a tunable setting, but supplies no numerical cutoff for the reported comparison. The two columns show which visible changes result from applying a penalty, which is enough to understand why the recommendation changes. Repeating the procedure as a general method would also require a way to set the threshold before knowing which checkpoint wins. The discussion leaves that aspect of the decision to future applications.

The approximate distances depend on which places stand for a language. The Romance entry makes the issue especially apparent because a single distance represents an entire multilingual collection. The paper does not detail how the chosen point represents that mixture. A similar decision can arise for a language associated with many locations. Greater precision in measuring between selected points addresses the calculation of distance, while the interpretation of the resulting number depends on why those points were chosen.

There is also a numerical convention to document. The ratio takes a distance and a corpus count, and its value depends on the scales used for both. The paper labels the observations in kilometers and millions of sentences but leaves the scaling behind the reported NGDC values unclear. A common positive change of scale can preserve the ordering of candidates on the smooth branch while changing the coefficient values themselves. A faithful numerical reconstruction would need the convention used to put the measurements into the expression, alongside the cutoff expressed on the corresponding distance scale.

The hard threshold produces a sharp distinction between candidates near its boundary. A large corpus just within the permitted distance can use its size to improve its score. A corpus at the boundary receives the maximum penalty. This can be useful for imposing a preference to try closer languages first. The Romance result shows the accompanying risk for the choice of a backup checkpoint. A candidate that the screen deprioritizes can still produce strong translations relative to most candidates in the set.

Limits of the wider practical implications

The authors link better checkpoint selection to the cost of training and suggest that reuse could reduce computational and environmental expense. The proposed calculation is small compared with an adaptation run, given the inputs. The experiments report translation scores and corpus characteristics. They supply no measurements of energy use, elapsed training time or emissions, so the amount of any saving remains unquantified.

Similarly, the paper discusses better information access as a reason to develop translation for under-represented languages. The study measures reference overlap on Umsuka. It gives no evaluations in the educational or healthcare applications that the authors mention to illustrate the broader stakes. The evidence of usefulness is specific to choosing a starting point for the experimental task, and questions about preserving meaning in individual translations remain important for extending that result to applications.

What came after

No subsequent study is identified that evaluates or extends the coefficient. The paper leaves open whether a cutoff chosen before testing can identify strong checkpoints for other target languages, and whether adding a direct measure of linguistic similarity would improve the choice. These are the authors’ directions for further study.

Cite

Cite as Muhammad Umair Nasir and Innocent Mchechesi. 2022. Geographical Distance Is The New Hyperparameter: A Case Study Of Finding The Optimal Pre-trained Language For English-isiZulu Machine Translation. Proceedings of the Workshop on Multilingual Information Access (MIA).

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

@inproceedings{nasir2022geographical,
  title = {{Geographical Distance Is The New Hyperparameter: A Case Study Of Finding The Optimal Pre-trained Language For English-isiZulu Machine Translation.}},
  author = {Muhammad Umair Nasir and Innocent Mchechesi},
  booktitle = {Proceedings of the Workshop on Multilingual Information Access (MIA)},
  year = {2022},
  doi = {10.18653/v1/2022.mia-1.1},
  url = {https://doi.org/10.18653/v1/2022.mia-1.1}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/nasir-2022-geographical-distance-is-new-hyperparameter/