Elamur Research

LIMIT: Language Identification, Misidentification, and Translation using Hierarchical Models in 350+ Languages

Paper · 2023 · Milind Agarwal, Md Mahfuz Ibn Alam and Antonios Anastasopoulos

Summary

Before a system can translate a sentence or use it as training data, it frequently needs to know which language the sentence is written in. That can be difficult when the text is short and the language has little digitized material. A recurring mistake creates a particular problem for data collection. If an identifier routinely assigns text from a less documented language to another language, a web crawl can miss the material it set out to find and mix that material into the wrong collection. The authors address this problem for low-resource languages.

The paper introduces MCS-350, a collection of 50K+ children’s stories in 350+ languages, drawn from the African Storybooks Initiative and Pratham Books’ Storyweaver. Human translations give the collection a parallel structure. A story page in one language can be paired with its counterpart in another, providing examples for both language identification and machine translation. The collection opens more than 1400 new translation directions for evaluation relative to existing benchmarks. In the authors’ experiments on 176 directions involving African languages, a system that shares small trainable components among related languages achieves an average spBLEU of 24.93 on held-out stories, compared with 11.87 for the baseline without those components. The baseline leads on average on FLORES-200, although some individual directions benefit from the story-based training.

LIMIT is the paper’s method for improving language identification. It starts with Franc, an existing general-purpose identifier, and examines its predictions on sentences whose languages are already known. When errors repeatedly lead to the same label, the authors train a small classifier to distinguish the languages involved. For instance, if text in Kutchi frequently receives a Gujarati label, Gujarati and Kutchi become candidates for a specialist to distinguish. This lets the system add some labels that Franc cannot produce by itself while retaining Franc as the first stage.

Across the languages selected for this error analysis, LIMIT raises average F₁ from 0.29 to 0.68 on MCS-350. On the subset of those languages that can be evaluated on FLORES-200, the average rises from 0.77 to 0.86. The authors report error reductions of 55% and 40%, respectively. The gains show that some recurring errors persist across domains and can be corrected with a small amount of training data. The coverage of the story collection, the translation benchmark it enables, and the languages reached by the tested specialists are distinct parts of the result.

Deep dive: LIMIT: Language Identification, Misidentification, and Translation using Hierarchical Models in 350+ Languages

LIMIT improves language identification by learning from recurring errors, and MCS-350 provides parallel children’s stories for translation tests. · about 33 minutes to read

The problem and its context

A language label shapes the data that come next

Language identification is a form of text classification. The task in this paper is to assign a language label to a piece of writing, often a sentence. An identifier might use the writing system, recurrent sequences of characters, or other patterns learned from examples. A language label can then determine what happens to that text. A collection pipeline can put it into a language-specific corpus, while an application can use the label to select the appropriate tools for translation, parsing, or part-of-speech tagging.

The authors focus on a dependence that makes improving the first stage difficult. To train an identifier for a language, researchers need labeled text in that language. To find more of that text at scale, they frequently need an identifier already capable of recognizing it. The authors place this problem within a broader imbalance in natural language processing. They cite studies of linguistic diversity in NLP and inequalities in language technology performance to explain why acquiring labeled material and building reliable tools are harder for much of the world’s linguistic diversity.

The consequences of a wrong label depend on how the data are used. Consider a collector looking for text in Kutchi. When the identifier calls a Kutchi sentence Gujarati, the pipeline loses a candidate for the Kutchi collection. If it stores the sentence under Gujarati, the same decision also introduces incorrectly labeled material into that collection. The concern is especially acute when the error recurs. A prominent language label can absorb examples of a language that the identifier has never been trained to output. An apparently well-populated collection can then obscure the lack of useful material for the language the collector wanted.

Collecting parallel text requires another judgment. A pipeline must first recognize the languages of the candidate passages and then determine whether the passages convey corresponding content. Even a reliable label on each passage leaves the correspondence question open. The authors discuss large web collection projects such as ParaCrawl and CCMatrix in this context. For some languages, the shortage of parallel material makes it difficult to train a translator that can help find more of it. Identification and translation are therefore separate technical problems that can constrain the same effort to gather data.

Why earlier resources offered only part of what the authors needed

The paper describes several sources used in language identification research. The Universal Declaration of Human Rights supplies text in many languages and was used to build Franc. Other examples come from social media and web crawls. JW300 contributes multilingual articles drawn from the website of Jehovah’s Witnesses. The variety of sources matters because a benchmark measures performance on the type of text it contains. A label a system can assign to a passage from a formal document can be much harder to infer from a brief line of dialogue in a story.

The authors also discuss benchmarks already used for translation. NTREX-128 offers news test references, and FLORES-200 supplies parallel material across many languages. Such benchmarks give researchers shared texts for comparing systems. The problem for the authors is the set of language directions available for testing. When both sides of a translation direction have little representation in existing resources, a broad benchmark can still leave that direction untested. The availability of human translations between editions of children’s stories gives the authors a way to assemble some of the missing comparisons.

The closest precedent in subject matter is BLOOM, a collection that draws on children’s stories from sources including African Storybooks. The paper describes BLOOM’s text and audio in connection with image captioning and speech recognition. The alignment needed for the translation experiments is different. For MCS-350, keeping track of which editions are translations of the same book gives researchers a way to compare corresponding pages. In turn, the short stretches of text in those editions provide material for asking how well available identifiers handle sentences from this domain.

One complicating factor is the difference between a language name in a tool’s documentation and a language that the tool recognizes accurately in a new collection. The paper refers to work on language identification in the wild when discussing the risk that a resource can appear more inclusive than its usable content warrants. An unfinished translation can still carry the intended language’s label. A correctly labeled story can also contain several languages on a page. The authors’ interest in coverage thus extends to what the corpus contains and how the examples were checked.

How earlier systems divided the task

Training a classifier to recognize many languages at once gives it a broad set of possible outputs. The paper cites earlier evaluations in which average accuracy tended to fall as that set grew. The problem is particularly relevant when some labels have many more examples available for training than others. The authors give AfroLID as an example of the data requirements that can accompany broad coverage. It trained on over 4000 sentences per language, while the authors note that even 1000 sentences can be hard to collect initially for some languages they sought to include.

Earlier hierarchical identification systems divided the task into stages. As described in the paper and in the cited survey of automatic language identification, a typical first stage predicts a family or other language group. A subsequent classifier chooses among the languages assigned to that group. The arrangement gives each specialist a smaller set of decisions to make. It also ties the choice of specialist to the group inventory fixed when the system is designed.

The paper connects this approach with research on distinguishing similar languages, varieties, and dialects. It discusses work on Romance, Nordic, Uralic, German, and Slavic language distinctions at VarDial. The authors describe seeing comparatively little work there on Indian languages and give examples from Indo-Aryan and Dravidian languages. They also point to AfroLID and IndicTrans2 as substantial efforts outside that venue. The background makes room for a different organizing question. If a working identifier already exists, which distinctions does that particular system repeatedly get wrong?

The question matters because a genealogical relationship and a history of misclassification supply different information. Genealogy describes how languages are related. A confusion pattern describes what a classifier does when it encounters particular labeled examples. Languages can share a script, and a classifier can depend heavily on script when other signals are weak. A fixed language inventory can also force a classifier to return an available label for an input in a language outside that inventory. Performance on the labeled examples helps determine which labels should compete at the next decision.

The translation literature motivates a different use of hierarchy. The authors describe efforts in massively multilingual translation as ways to share the expense of supporting many directions. They also discuss earlier uses of small trainable adapters for parameter-efficient transfer and translation adaptation. These components let researchers start from a previously trained system and adjust part of it for a new job. In the translation experiment, the paper uses language relationships to decide where sharing takes place. In identification, it uses the first-stage classifier’s errors to decide which languages a specialist should handle.

The method, step by step

Collecting stories and retaining the relationships between editions

The authors begin with the African Storybooks Initiative and Storyweaver. The African Storybooks Initiative has parallel, human-verified story material in over 200 African languages. Storyweaver, run by Pratham Books, publishes parallel stories in 300+ languages. Its collection includes Indian languages as well as African, European, and Indigenous languages of the Americas. Together the repositories supply short written passages, language labels, and links between editions that can be retained during collection.

The researchers gather the stories using web scraping and public APIs. They preserve information about the books, including authorship, translation, illustration, reading level, related editions, and copyright. Each piece of metadata has a different use. Edition relationships let researchers identify candidate parallel pages. Reading levels describe part of the variation within the collection. Attribution and copyright information preserve the connection between the released material and the people and organizations responsible for it. Storing language labels alongside those other fields keeps the language experiments connected to the source books.

The authors then clean the collection. They remove empty stories and apply a rule aimed at apparent translations that remain largely in English. For a story labeled as another language, the rule removes it if over 50% of its pages contain mostly English text according to langdetect at 90% confidence. The collection after this step contains ∼52K stories. The intended targets are unfinished translations and completed editions that have yet to be checked. Both publishers already do human verification, so the rule serves as a supplement for the part of the collection where an advertised translation may still need review.

That screen checks a particular kind of mismatch. It uses a readily recognizable language to flag books whose content appears inconsistent with the intended edition. The resulting decision applies at story level, even though the evidence comes from pages. The threshold leaves room for some English in a book, which matters in a collection that includes multilingual editions. The process also depends on an automated language judgment at the point where the paper is investigating unreliable language judgments. The authors preserve the pre-merge collection with metadata, giving researchers access to material from before the final combination and filtering.

The two tasks use the resulting data at different levels. For identification, the authors extract text associated with a language label and use sentences as examples. For translation, a page from one edition is paired with the corresponding page from another. The story ties these units together. In the translation split, it also determines which material is held out, so pages belonging to the same story do not appear on both sides of the training and test division. That arrangement asks whether a system can handle a new story, including its situations and phrasing.

Recovering text from pages that contain several languages

Some editions are labeled as multilingual because a page can contain passages in both languages. The passages may be presented one after the other, or material from the languages can occur together. When the aim is to produce a usable text segment with a single language label, assigning the whole page to whichever edition name comes first would preserve the ambiguity. The researchers instead attempt to separate the text on the page.

They compare strings to locate the part corresponding to the higher-resource language in a pair. The available parallel material gives them text to match against the mixed-language page. Identifying that part helps recover a segment in the other language and yields candidate parallel material. The authors then manually verify the monolingual text recovered by this procedure. Their description specifies the use of string similarity and manual checking. It leaves the detailed string-scoring rule and operating threshold unspecified.

This stage covers 10K pages across 52 languages. The example the paper emphasizes is Kui. Before this extraction, the collection contained 0 sentences of Kui in the material the authors count for this step. The procedure yields 1000+ sentences. The example shows where translation editions can provide useful training material even when the collection initially has little text already separated and labeled for a language. The auxiliary text in the higher-resource language helps locate the material of interest.

Deciding which varieties receive their own labels

The authors also make a decision about the resolution of the identification task. A corpus can put varieties under one broad language label, or it can supply more specific labels when there is enough material to distinguish them. The paper sets a threshold of ≥ 1000 sentences for treating a variety, or lect, as a separate prediction class. This is a decision about how the experiment represents the text. It lets the authors test a distinction when they can assemble enough examples under a separate name.

When the variety lacks its own ISO code, the researchers form a label by combining the language code with a subdivision. South Bastar Gondi, which has 4000+ sentences in the collection, receives the label GON_BASTAR. The generic Gondi label remains GON. For an example of consolidation, the paper describes placing “Bangla (Bangladesh)” under Bengali when the material available for the more specific label is too sparse. The resulting inventory therefore reflects both linguistic distinctions recognized in the sources and the amount of text available to represent those distinctions.

A comparison with existing identifiers also needs a common interpretation of label names. An output from one tool can use a different identifier for a class represented in MCS-350. The authors supply manual mappings for nonstandard identifiers so that equivalent names are scored together. A mapping resolves differences in labeling conventions. A specialist classifier can go further by producing a distinction that the first-stage system’s output inventory never contained.

Finding the errors that a specialist can learn to resolve

LIMIT begins with an existing identifier, called the root. The authors compare available identifiers using macro F₁ over MCS-350’s language inventory and choose Franc. Macro averaging means that each language contributes a score to the aggregate with equal weight. That makes the choice sensitive to performance across languages, including those that appear less often. Franc uses writing-system information and character trigrams, which are sequences of adjacent characters, a particular kind of n-gram.

Next the authors run Franc on a sample of the MCS-350 training set and organize the outputs in a confusion matrix. For each example, they know the reference language and record the language Franc predicts. A diagonal entry collects cases where those labels agree. An off-diagonal entry describes a particular error, such as Kutchi text receiving the Gujarati label. The raw count tells how often the error occurred in the sample. Normalizing by the number of examples in the reference language tells how much of that language’s sample followed the same route.

The paper describes this normalization in words. Written as a formula, the hit ratio is

H(p, t) = C(p, t) ÷ N(t)

Here, t is the true language of a sentence, and p is the language Franc predicts. C(p, t) counts the sampled sentences in language t that receive prediction p. N(t) is the number of sampled sentences in t on which the root was run. The division sign ÷ gives the fraction of the reference-language sample routed to that prediction. H(p, t) names the resulting hit ratio, and = expresses the equality between that ratio and the count divided by the sample size.

The order of the arguments matters. H(p, t) asks what happens to text known to be in t. Reversing the order uses a different reference-language sample as the denominator and asks a different question. Kutchi can be predicted as Gujarati often even if Gujarati text rarely receives a Kutchi label. Indeed, a root can be unable to output the label for one of the languages involved. A high hit ratio for a wrong label is still informative in that case because it identifies a route by which those sentences can reach a specialist.

The authors inspect the matrix for high confusion ratios and select 9 clusters using a threshold of > 0.7. They train a lightweight fastText classifier for each cluster. Each specialist distinguishes 2-3 languages. The first cluster connects Gujarati with Kutchi and Bhilori. Another brings Amharic together with Tigrinya and Silt’e. A third covers Koda along with Bengali and Assamese. Among the smaller clusters are Mandarin with Yue Chinese, and Konda with Telugu. Kodava and Kannada form another pair. The remaining pairs are Tsonga with Tswa, Dagaare with Mumuye, and Bats with Georgian.

These choices turn a set of observed errors into candidate lists for future predictions. A Gujarati prediction from Franc can be treated as an invitation to distinguish among the relevant labels. The specialist must have examples of Gujarati as well as of the languages that Franc tends to call Gujarati. That gives it a way to retain the initial label when it is appropriate. The whole arrangement relies on the root prediction to choose which local decision is relevant. The paper’s terms prior and posterior refer to the initial and revised labels in that sequence.

How LIMIT learns and applies language corrections

The steps in order.

How LIMIT learns and applies language correctionsStep 1: Compare existing identifiers on the story collection1. Compare existing identifiers on the story collectionStep 2: Select Franc as the root identifier2. Select Franc as the root identifierStep 3: Run Franc on labeled training sentences3. Run Franc on labeled training sentencesStep 4: Count predictions by true and assigned language4. Count predictions by true and assigned languageStep 5: Inspect recurring confusions and group affected languages5. Inspect recurring confusions and group affected languagesStep 6: Train a fastText specialist for each cluster6. Train a fastText specialist for each clusterStep 7: Route relevant predictions to their specialists7. Route relevant predictions to their specialistsStep 8: Return the resulting language label8. Return the resulting language label

Training the language specialists

For identification, the authors use up to 1000 training sentences per language and reserve 100 randomly selected sentences across stories as the final test set. The training examples used for inspecting Franc’s behavior and learning the specialist distinctions are kept separate from the sentences that supply the reported test outcomes. The paper gives a story-level split explicitly for translation. Its identification procedure is described in terms of sampled sentences across stories, so the reader should understand the split units differently for the two tasks.

Each fastText specialist learns its own embeddings, numerical representations used during classification. The authors explain that available multilingual representations do not cover enough of their low-resource training languages, citing BERT in this discussion. The fastText classifiers use an embedding dimension of 100, the default for supervised training. The dimension is the number of components in the learned representation. The authors do not tune that setting. They try several starting learning rates, which govern the size of parameter updates during training, and settle on 0.5 based on a small development sample. FastText’s default rate schedule gradually reduces the rate during training. They specify negative sampling as the loss setting.

The training setup gives the hierarchy two kinds of reuse. Franc retains the capabilities it already has, including whatever distinctions it handles adequately on its own. The fastText classifiers learn the distinctions selected from the observed failures using local sets of examples. Adding a candidate language therefore requires labeled text for the relevant specialist and a recognizable route from the root. It does not require access to Franc’s internal parameters. The authors release the collected data, code, and trained classifiers, including materials for the intermediate collection stages and the scripts used for identification and translation experiments.

Adapting the translation system to story pages

The translation experiments start with a system based on DeltaLM that had already undergone fine-tuning in 26 languages for a shared task on African-language translation. Fine-tuning starts from existing trained parameters and adjusts them with data for a particular language or task. The authors describe this shared-task entry as the strongest publicly available one. They compare a version without adapters with versions that use lightweight trainable layers. Here, an adapter gives the system a small set of adjustable parameters within a larger translation network.

The language-specific setting is called L-Fine. Each language has its own adapter. Fine-tuning the adapter gives the translation system a way to respond to training examples in that language while reusing the earlier translation network. In F-Fine, the family-based setting, related languages can also use shared adapters at the family and genus levels. A genus is an intermediate grouping in the authors’ language tree. The paper situates these components in earlier work on modular multilingual pretraining.

The documented tree has three tiers, with language below family and genus. For example, the paper puts English and Afrikaans in the Germanic grouping and French in a Romance grouping, all under Indo-European. The Bantu branch includes a Sotho-Tswana grouping and a grouping with Zulu and Xhosa. This arrangement determines where parameters can be shared during training. A language-specific component can still account for features peculiar to its language. The higher levels let training signal from related languages reach parameters they use in common.

For the story translation benchmark, the authors reserve test stories yielding 1,000 pages. For languages with < 1,000 pages across stories, the benchmark uses a 500-page test set. The training material comes from separate stories. At evaluation, a source page supplies the input and the corresponding target-language page supplies the reference. Expanding the number of directions available for that procedure is a contribution of the corpus; fitting and testing the adapter systems on selected directions is a separate experiment.

Experiments and results

What the story collection makes available

The collection is concentrated in the Indian subcontinent and sub-Saharan Africa. Many of its European-language editions supply translations for stories available in a lower-resource language. The paper gives the distribution by family in both languages and sentences. Niger-Congo contributes 129 languages and 142,605 sentences. Indo-European contributes 84 languages and 169,823 sentences. Dravidian contributes 13 languages and 35,638 sentences. Counts of represented languages describe breadth, while sentence counts describe the amount of material grouped under each family. Neither count specifies how much text is available for every individual language.

About 70% of the collection’s languages use the Latin script or variants of it with diacritics. Among the non-Latin writing systems, the authors list 38 languages using Devanagari, 14 using Cyrillic, and 8 using Arabic script. Telugu and Odia also appear as scripts used by multiple languages in the collection. The distributions matter for the identification task because script information can reduce the set of plausible labels without resolving it completely. The benchmark contains examples where an identifier needs to distinguish between languages that use the same script.

For translation coverage, the authors compare MCS-350 with several existing resources. Relative to FLORES-200, they report 51 new languages and 1449 new language pairs. The comparison with OPUS lists 82 new languages and 2853 new pairs. These are counts of benchmark coverage. A pair can become available because related story editions provide human reference text, even if the paper has yet to report a translation system’s score on that pair. The experiments on 176 directions establish performance for a particular subset of what the data make possible.

Choosing the initial language identifier

The first identification experiment asks which existing classifier makes the best starting point. On the broad MCS-350 macro F₁ comparison, Franc scores 0.18. HeLI-OTS scores 0.13, CLD3 scores 0.11, and fastText scores 0.10. A further comparator, langid.py, scores 0.09. The scores all fall below 0.20, even though several of the identifiers advertise support for a substantial range of languages.

F₁ combines precision and recall. For a given language, precision asks how often a prediction of that language is correct. Recall asks how frequently examples truly belonging to that language receive its label. An identifier can predict a language too readily and lose precision, or it can miss most occurrences and lose recall. The paper uses macro F₁ for root selection so that a good result on a language with abundant text cannot swamp the contributions of languages with fewer examples. The ranking identifies Franc as the best root under that criterion on the story collection.

The paper also reports support counts. Its comparison table lists 369 supported languages for Franc and puts 116 in the column for languages common to the system and MCS-350. Its accompanying discussion describes Franc as covering 30% of MCS-350, with 105/356 languages. The paper gives these different overlap counts without reconciling them. Franc’s selection follows from the reported macro F₁ ranking, which is clear independently of the overlap count. Nominal coverage, overlap with the collection, and measured F₁ describe different aspects of the comparator.

Comparing ways to correct identification errors

In the next experiment, the authors compare LIMIT with the Franc root, an all-language fastText system called multi, and a hierarchy called group. The multilingual fastText comparator uses a single classifier covering all 350+ languages in the story collection. It gives the authors a way to test a broad system trained directly on the available labels. The group-first comparator follows a traditional hierarchy. Its first decision is a broader language group, which narrows the candidates for the subsequent decision. LIMIT reads the initial language label from Franc and uses a specialist when that label leads to one of its confusion clusters.

The averages in this comparison concern the languages involved in the selected confusions. This is a more targeted evaluation than the earlier ranking of off-the-shelf identifiers across MCS-350. A root score of 0.29 in this experiment and a macro F₁ of 0.18 in the earlier one refer to different sets of languages. In the targeted evaluation, every participating architecture is judged on the same subset within each benchmark.

Average F₁ on MCS-350 test sentences in the selected confusion clusters

LIMIT leads on the story sentences, followed by the single multilingual classifier.

Average F₁ on MCS-350 test sentences in the selected confusion clustersFranc root: 0.29Franc root0.29Multilingual fastText: 0.56Multilingual fastText0.56Group-first hierarchy: 0.47Group-first hierarchy0.47LIMIT (this paper): 0.68LIMIT (this paper)0.68
The numbers
System or settingF₁
Franc root0.29
Multilingual fastText0.56
Group-first hierarchy0.47
LIMIT (this paper)0.68

On MCS-350, the paper expresses the change from Franc to LIMIT as a 55% error reduction, with reported error values moving from 0.71 to 0.32. These are the paper’s error figures for the reported F₁ comparison. They should be read in the context of that metric and subset. The experiment establishes that the specialists improve the balance of precision and recall across the chosen languages on held-out sentences from the story collection.

FLORES-200 supplies a test outside the story domain. It contains 11/21 of the languages from the selected clusters. The authors evaluate on the available subset using specialists trained with MCS-350. The root starts at a higher average F₁ there, and LIMIT still achieves the highest average of the four systems. The paper reports a 40% error reduction from the root to LIMIT, with error values of 0.23 and 0.14.

Average F₁ on the FLORES-200 subset of the selected confusion languages

LIMIT has the highest average outside the story domain, where Franc is the strongest comparator.

Average F₁ on the FLORES-200 subset of the selected confusion languagesFranc root: 0.77Franc root0.77Multilingual fastText: 0.70Multilingual fastText0.70Group-first hierarchy: 0.73Group-first hierarchy0.73LIMIT (this paper): 0.86LIMIT (this paper)0.86
The numbers
System or settingF₁
Franc root0.77
Multilingual fastText0.70
Group-first hierarchy0.73
LIMIT (this paper)0.86

The per-language results show outcomes hidden by those averages. The paper specifically notes that Franc receives F₁ of 0 for Assamese and Yue Chinese on FLORES-200 even though both languages occur in the benchmark. In the results table, an empty entry marks a language the system does not support, while a zero is an evaluation outcome where a score can be reported. An evaluation can therefore contain both a question about what labels a system can produce and a question about whether it produces the right label on available examples.

The comparison also gives a concrete meaning to adding coverage economically. Where a language absent from the root’s outputs regularly reaches a useful branch, a specialist with that language among its candidates can recover it. The gain has to appear in the tests to count as an identification improvement. The experiments report language-level F₁ to capture whether this happens, including any precision cost when a specialist assigns its newly available label to text from another language.

Evaluating translation on held-out stories

The translation study compares DeltaLM without adapters, L-Fine with language-specific adapters, and F-Fine with family and genus sharing alongside language-specific components. The test covers 176 translation directions involving African languages. The authors report overall averages and give breakdowns for directions between African languages and for translation into and out of English and French. Grouping the scores by direction shows whether a high overall result comes from one kind of translation or appears across several kinds.

The study uses three reference-based metrics. The BLEU score measures overlap between candidate and reference translations in sequences of tokens, with an adjustment for short outputs. The chrF family evaluates overlap using character sequences, and the paper uses chrF++, which also incorporates word sequences. For spBLEU, the authors segment the output and reference into sub-words using the FLORES-200 SentencePiece setup before applying the BLEU comparison. The choice of segmentation determines what units count as matching. The original BLEU paper is the source cited for that metric.

Average spBLEU on MCS-350 held-out stories across the evaluated directions

Both adapter settings improve on the baseline, with family sharing giving the strongest average.

Average spBLEU on MCS-350 held-out stories across the evaluated directionsDeltaLM without adapters: 11.87DeltaLM without adapters11.87L-Fine: 19.52L-Fine19.52F-Fine (this paper): 24.93F-Fine (this paper)24.93
The numbers
System or settingspBLEU
DeltaLM without adapters11.87
L-Fine19.52
F-Fine (this paper)24.93

The same ordering appears in the other overall metrics on MCS-350. Average BLEU across the 176 test directions is 9.59 for the baseline, 16.57 for L-Fine, and 21.52 for F-Fine. Average chrF++ is 29.59, 37.04, and 41.33 in the same order. Agreement across these measures gives the family-based setting the strongest result whether the comparison uses BLEU’s tokens, its sub-word variant, or the character and word sequences in chrF++.

The spBLEU breakdown shows how the direction matters. Between African languages, the baseline scores 10.19 on average, L-Fine scores 18.21, and F-Fine scores 23.58. In the group translating into English, the respective means are 18.79, 30.38, and 35.66. For translation out of English they are 13.20, 17.46, and 25.26. The corresponding French groups also favor F-Fine. Its average is 27.06 when French is the target and 21.36 when French is the source. These comparisons describe the directions in the benchmark and the systems tested on them. Source language and target language both matter when interpreting a reported translation score.

The reported spread across directions is substantial even for the strongest system. For the overall MCS-350 spBLEU averages, the standard deviations are 6.31 for the baseline, 10.33 for L-Fine, and 11.74 for F-Fine. These values describe variation across translation directions. They help explain why the aggregate ranking can be clear while some directions remain difficult. A standard deviation in this comparison describes the dispersion of the scores being averaged. It is different from uncertainty estimated by rerunning the training.

Testing the translation systems in another domain

The authors repeat the translation comparison on the FLORES-200 devtest split across 176 directions. On that split, the baseline scores 18.23 average spBLEU. L-Fine scores 17.01, and F-Fine scores 16.15. The overall ordering on BLEU and chrF++ also favors the baseline. The story-adapted systems therefore have a clear in-domain advantage and lower aggregate scores on the comparison outside that domain. In identification, by contrast, the correction system leads on the selected FLORES-200 languages as well as on MCS-350.

The average for translation conceals a group that transfers more favorably. On FLORES-200 devtest, directions out of English give the baseline an average spBLEU of 17.22, compared with 18.91 for L-Fine and 18.69 for F-Fine. The averages into English follow a different pattern. There the baseline reaches 30.77, with L-Fine at 28.23 and F-Fine at 27.41. Translating out of English offers a concrete example of why the source and target should both be named when discussing transfer.

Some of the strongest gains occur where the baseline is weak. For English into Xhosa on FLORES-200 devtest, the baseline spBLEU is 3.5, L-Fine scores 22.5, and F-Fine scores 23.6. The paper reports a gain of 20.1 spBLEU points for F-Fine over the baseline in that direction. For English into Hausa, the baseline is 4.5, L-Fine reaches 24.2, and F-Fine reaches 23.3. The paper reports the F-Fine gain as 18.8 spBLEU points. This second direction also illustrates why the family-based system’s stronger average in stories should be kept distinct from the choice between adapters for a specific direction on FLORES-200.

Improvements also occur in directions where both languages are African. Among its examples, the paper reports a 2.9 spBLEU gain for Ganda into Kinyarwanda and a 3.0 gain for Northern Sotho into Ganda, comparing F-Fine with the baseline outside the story domain. These cases show that the translation transfer observed in the study extends beyond directions involving English or French. The aggregate FLORES-200 results put their scope in perspective. Improvements in particular directions coexist with lower overall averages after adaptation to the story data.

What the ablations show

Which comparisons isolate a design choice

The paper offers controlled system and setting comparisons. Its clearest comparison of components is in translation, where the authors move from a version without adapters to language-specific adapters and then to an arrangement with additional sharing. Its identification comparisons change the organization of the classifier, and its domain analysis compares performance on stories with performance on FLORES-200. These results answer different questions about the design. The adapter comparison probes the effect of changing where adaptation occurs. The identification comparisons test whether a hierarchy constructed around existing mistakes works better than the other ways of arranging the task that the authors evaluated.

In the story translation tests, L-Fine improves on the no-adapter baseline in each of the aggregate direction groups the paper reports. This supports the use of language-specific adaptation in the story setting. F-Fine then improves the group averages further. Since the family-based setting shares parameters at family and genus levels while retaining language-specific components, the comparison supports this particular form of sharing in the experiment. It is especially relevant to the African-to-African category, where the average gain accompanies gains in the English and French groups. Thus the family-based improvement is visible in the parts of the benchmark that most directly address translation between African languages.

The study uses the authors’ chosen language tree. The comparison does not separately remove only the genus adapters or only the family adapters. It also does not report a test using arbitrary groups with a matched arrangement of shared parameters. A careful interpretation is that the implemented combination of language-specific and phylogenetically organized sharing performs best on the stories. The reported setting comparisons leave open how much of its advantage comes from either level and how much depends on the exact tree.

FLORES-200 exposes a different property of those settings. Greater adaptation to the stories comes with lower average spBLEU there, and the baseline leads both adapter settings overall. The selected directions where either adapter helps explain why both the average and the individual outcomes matter. For English into Xhosa, both adapter arrangements substantially improve the reference-based score. For English into Hausa, the language-specific adapter variant achieves the higher score of the two. An architecture can serve a direction well even when averaging across many directions yields a different ranking.

What the identification baselines establish

The comparison of Franc with LIMIT tests the value of adding the trained specialists to the chosen root. Those specialists have access to labeled MCS-350 examples, which give them evidence about both the root’s usual label and alternatives that regularly reach it. The improvements establish that the extra decisions are useful together. The separate comparison with multi is important because the multilingual fastText classifier also learns from the language inventory the authors assembled. Its results provide a test of the strategy of predicting among all classes in one stage. LIMIT’s better average on both benchmarks supports dividing the selected distinctions into local decisions in this setup.

The comparison with group probes the choice of hierarchy. The conventional comparator first chooses a group, while LIMIT begins with Franc’s language prediction and uses observed confusion to organize the refinements. On MCS-350, group also trails multi. On FLORES-200, group has 0.73 average F₁ compared with 0.70 for multi, even though the table’s caption describes group as trailing multi on both datasets. Reading the plotted or tabulated values gives the more specific result. LIMIT leads both comparators on the out-of-domain subset, and the relative order of the comparators changes across domains.

These system comparisons change several things at once. LIMIT uses Franc’s pretrained behavior, routes among small candidate sets, and adds specialists trained on the chosen confusions. The group-first comparator organizes its first decision differently, and multi predicts directly across the full inventory. The results show the performance of those complete designs. The paper does not report a separate experiment that holds Franc and the specialist training constant while replacing only the confusion-derived cluster assignments. The added value of the exact clustering rule, separated from the other design changes, remains unmeasured.

What the mistakes reveal about the text

The authors observe that languages grouped by confusion share writing systems and are often related. This is compatible with the way Franc uses script and character trigrams. A writing system can provide an early clue while offering little help in a decision between languages that use it in common. Recurrent character sequences can supply evidence within a script, but a short input offers fewer such sequences. The clusters make the particular distinctions visible. Their membership shows which language choices the authors gave to specialists, while the test scores show how well the resulting system managed them.

The paper discusses Gujarati, Amharic, Bengali, and Mandarin as examples where identification F₁ is lower on the children’s stories than on FLORES-200. The authors connect the pattern with short text, which leaves fewer linguistic clues for the classifier. The observation is consistent with the proposed explanation. The datasets also differ in domain, and the FLORES-200 comparison covers only part of the language inventory selected for the story experiment. The study does not hold genre fixed while changing input length or match length while varying genre. The result is evidence about the difficulty of the tested story inputs, with sentence length a plausible contributor.

The translation comparison supplies a useful companion observation because the authors report more favorable adaptation in the story setting. Identification asks which language produced the short source text. Translation assumes a source and target direction and asks what the source conveys in the target language. Short texts can pose a problem for the first task because they contain little evidence for a language label. The in-domain translation results also benefit from training and testing in the same kind of material. The paper calls attention to the differing patterns across the tasks. The experiments do not isolate text length as an explanation for either pattern.

Limitations

Limits the authors state

The authors say explicitly that MCS-350 is a text collection. They contrast its coverage of 350+ languages with a world of around 7000 languages, including many used primarily in speech and poorly represented in written collections. Children’s stories can help where there are usable written editions. Languages with little material of that kind remain difficult to study under the same procedure. Extending the approach to speech is a direction the authors propose. Their evaluated inputs are written sentences.

The authors also flag the possibility of errors on material with different lengths, domains, or orthographies. The FLORES-200 experiment demonstrates transfer to one benchmark on the languages available for the comparison. It leaves open what happens on a web crawl, where the system could see a very different mix of writing conventions and text lengths. Applying LIMIT in a crawl to collect more low-resource data is future work in the paper. The reported tests measure identification and translation scores. They do not measure the amount or quality of additional material recovered from the web.

The paper acknowledges uncertainty about some of the data it assembles. The publishers verify many stories, but the repositories include unfinished or unverified translations. The authors use an automated screen to remove a recognizable kind of mismatch and note that preprocessing can itself introduce noise. Their release of earlier collection stages lets researchers inspect or apply different preprocessing to material that may require closer checking. The paper discusses an open dataset for language identification as an example in its discussion of stricter cleaning.

The ethics statement says that the authors did not explicitly screen the books for offensive content. They relied on the material being intended for children and on much of it having gone through publisher review. That account explains the scope of the checks undertaken. The paper also says its identification classifiers can be trained in minutes on standard laptop CPUs. It gives that description for the lightweight identification work. It does not present a comprehensive timing study of the translation training, data preparation, or performance on other hardware.

The authors call for testing the hierarchy on further datasets and exploring additional configurations. They name probabilistic branching and automated construction as directions for that work. The published experiments use inspection of a confusion matrix and a threshold for selecting clusters. They leave the performance of proposed automatic construction and alternative branching procedures for later investigation.

Limits of the experimental setup

The headline identification averages concern clusters chosen because Franc confused their languages on the training sample. This makes the experiment a direct test of the method’s intended use. It also means the averages describe a targeted intervention. They do not estimate the gain for every language represented in MCS-350. The separate root-selection experiment covers the broader language inventory, but its macro F₁ figures answer a different question. A broad estimate of the method’s effect would need results over the full inventory after routing, including languages outside the chosen clusters.

The choice of root also bounds what can be inferred. The paper compares multiple off-the-shelf systems when selecting one, then reports the main correction experiments with Franc. A root with a different inventory can distribute the same language’s sentences among different predicted labels. A classifier relying on different textual clues might also route errors less consistently. LIMIT depends on discovering routes that a specialist can act on, so the experiments demonstrate that this worked with Franc and the selected clusters. They leave the attainable gains with other roots and the best routing choices for those roots unmeasured.

The addition of a label is conditional on the first stage sending the input to the right specialist. Suppose a language is included in the Gujarati cluster because Franc frequently assigns it the Gujarati label on labeled story sentences. If text from that language frequently goes to an unrelated branch in another domain, the Gujarati specialist cannot correct those particular decisions. A root error that is concentrated in one label offers a clearer target than errors scattered across many labels. This dependence follows from the way the system routes predictions. The paper does not quantify how frequently changes in routing explain the errors that remain.

The test inventory itself reflects data availability. Varieties with enough examples can receive their own labels, while others appear under broader labels. Performance at the reported level of granularity thus cannot establish how well the system would distinguish all locally recognized varieties. A separate issue is language mixing. The corpus contains multilingual pages and the authors extract monolingual segments from them. The identification results use labeled sentences. They leave open how the system would handle a mixed page as a whole or mark the points within a passage where the language changes.

The cross-domain identification comparison also has a coverage restriction. FLORES-200 supplies 11/21 of the languages represented in the chosen confusions. The observed improvement belongs to that subset. Languages missing from it have no corresponding test result on FLORES-200, and the subset’s composition matters when comparing average scores across benchmarks. Differences between the MCS-350 and FLORES-200 averages therefore reflect differences in the texts and potentially in the languages being averaged. Results for individual languages represented in both datasets give a narrower basis for discussing the change in domain.

For translation, the collection opens more than 1400 directions relative to existing evaluation resources, while the experiments measure 176 directions involving African languages. The benchmark contribution is broader than the set of scores reported. The adapter results do not establish performance for all the new directions, including those involving languages outside the experiment. Where there are scores, they measure agreement with human reference translations through BLEU, chrF++, and spBLEU. These measures support comparison across settings in the study. They do not supply a separate human judgment of adequacy or fluency for each direction.

The holdout by story guards against an especially direct overlap between training and test pages. It also places the test within a recognizable genre and set of sources. Similar reading levels, repeated kinds of dialogue, or consistent translation conventions can all be features of that setting. The higher aggregate in-domain scores with adapters show the value of adaptation under the authors’ story split. The reversal on FLORES-200 shows why those scores alone cannot tell a reader what direction-by-direction performance to expect with other material.

What came after

A later citing study, AILLA-OCR, introduces a textual and structural post-OCR dataset for 8 Indigenous languages of Latin America. OCR is optical character recognition, the process of recovering text from images of writing. A post-OCR dataset concerns the material after that recognition step. The later study’s title identifies both the recovered text and its structure as parts of the resource. The language coverage and the kind of data preparation it addresses are the concrete points of comparison with LIMIT.

The citation connects work on distinct stages in making usable written data available for languages with limited resources. LIMIT’s identification experiment starts with labeled digital sentences, then asks whether a specialist can revise a recurrently wrong language label. Its translation experiment starts with parallel story pages whose editions are already associated. AILLA-OCR concerns documents after character recognition, where the immediate subject is text and structure. Both studies contribute datasets in settings where acquiring usable written material is part of the research problem.

The citation establishes that AILLA-OCR cites LIMIT. The available description gives its subject and scope, while leaving the role of LIMIT in its procedure unspecified. It therefore supports a connection in resource creation. Whether AILLA-OCR used MCS-350, implemented confusion-based language routing, or evaluated the translation adapters remains unestablished.

Cite

Cite as Milind Agarwal, Md Mahfuz Ibn Alam and Antonios Anastasopoulos. 2023. LIMIT: Language Identification, Misidentification, and Translation using Hierarchical Models in 350+ Languages. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2023.emnlp-main.895

@inproceedings{agarwal2023limit,
  title = {{LIMIT: Language Identification, Misidentification, and Translation using Hierarchical Models in 350+ Languages}},
  author = {Milind Agarwal, Md Mahfuz {Ibn Alam} and Antonios Anastasopoulos},
  booktitle = {Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.895},
  url = {https://doi.org/10.18653/v1/2023.emnlp-main.895}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/agarwal-2023-limit-language-identification-misidentification-translation/