Low-Resource and Endangered Languages
Learn how to build NLP for low-resource and endangered languages: resource audits, transfer learning, transliteration, active learning, and data sovereignty.
Language AI HandbookAll chapters Low-Resource and Endangered Languages
UNESCO’s 2025 language-count estimate puts spoken and signed languages still in use at around 7,000. A speech project may have recordings and few aligned transcripts. Start with a resource inventory to decide whether the project needs a model, more annotation, or a different task. UNESCO.
András Kornai's 2013 study of digital language death estimated that only a small share of the world's languages had, or were likely to acquire, sustained digital use under the study's indicators. This was an estimate of digital vitality, which can differ from how actively a language is spoken and taught. A model that accepts a language code may still fail to provide usable translation, search, or dictation for its speakers. Kornai (2013).
A (language, task, domain) triple is low-resource when the available supervised data is too small to train a system to the required quality without borrowing signal from somewhere else: other languages, other tasks, unlabeled text, or human expertise.
The definition describes the data available for a task. An oral archive can preserve a rich literature while supplying few examples for a particular supervised task. A documented constructed language could supply many examples for a different task. Use the task and its evidence requirements to choose a remedy.
Blasi, Anastasopoulos, and Neubig studied which languages benefited from NLP advances across six tasks. They found that progress was concentrated in a small set of languages and that the pattern varied across technologies. Coverage and quality both need to be measured for the task a community wants. Blasi et al..
A language with a large speaker population can lack sentiment labels, while a primarily oral language can have speech recordings and nearly no training text. A project may need annotation in the first case and permission to work with recordings, followed by transcription, in the second. Throughout this chapter, low-resource means low-resource for a specific task and domain. Hedderich et al. (2021).
This chapter covers five interlocking problems:
- How to measure scarcity so you can choose a technique rather than guess. Scarcity is not one number, and misdiagnosing which resource is missing sends you down the wrong path.
- How to adapt a pretrained model with hundreds of target examples. Start by measuring transfer, then use that baseline to evaluate additional target data and adaptation methods.
- Transliteration and script normalisation. Check which distinctions survive conversion and test whether the converted inputs support the downstream task.
- Active learning, the discipline of spending an annotation budget where it buys the most. When labels are the constraint, the question of which labels to collect becomes the central engineering decision.
- Community participation and responsible evaluation, which are not add-ons but constraints that reshape everything above. A technically excellent system that the community never asked for is not a success.
This chapter builds on the discussions of transfer and vocabulary allocation in Part XXVI. Start with a multilingual model and measure its transfer on the target variety. Compare coverage, tokenizer behavior, and target performance before deciding which technique to try.
What "Low-Resource" Measures
Imagine two projects with different training stocks: 400 million forum tokens for a clinical task, and 50,000 transcribed oral-history tokens for a speech task. Check which forms and labels the examples supply. For recognition, verify whether the text is aligned with the recordings before counting it as speech supervision.
The useful picture is a matrix. Each cell is a resource type, each row a language, and the relevant question is which cells are empty for the language you are working on. Looking at the matrix rather than a scalar changes the conversation. Instead of asking "how low-resource is this language," you ask "which resource is missing, and what can I build that does not need it." That second question almost always has a productive answer.
A Resource Matrix, Not a Label
The dimensions that most often decide what is feasible:
- Raw unlabeled text. Track both volume and domain coverage. A large news corpus may offer little evidence about the language used in song lyrics or medical intake forms. Compare corpora with different coverage on the target task before deciding whether to collect a larger sample of the same text or add another register.
- Labeled task data. Sentences with POS tags, spans with entity labels, documents with topics, audio with transcripts. When labels are scarce, collecting them may be the most useful next step. Budget for people who know the language, the variety, and the task.
- Parallel data. Sentence-aligned bitext for translation, or word-aligned lexicons for projection and augmentation. Parallel data does double duty: it supports translation directly and serves as the bridge for projecting annotations from a high-resource language.
- Speech. Count recordings and aligned transcript hours separately. If speakers want a recognizer and approve reuse, transcription can supply recognition targets and a text corpus.
- Lexical and morphological resources. Inventory dictionaries, inflection tables, and analyzers. Test whether an analyzer can map unseen forms to useful recurring pieces on your task.
- Tooling support. Tokenizer coverage, spell checkers, normalization tables, keyboards, fonts. A script can be encoded in Unicode and still be hard to type or display if suitable keyboards, fonts, or rendering support are scarce. This is the invisible layer that well-resourced languages take for granted and that low-resource languages often lack entirely.
- Evaluation resources. Held-out test sets with documented provenance. Without these you cannot tell whether your system improved. A benchmark is a coordination mechanism as well as a measurement device, and it lets many teams compare their work on common ground.
Before training, verify that contributors can type and display the intended writing system and that you have a held-out set for the intended evaluation.
The matrix below makes the diagnostic concrete. Scores are illustrative rather than measured from real corpora; the point is the pattern of empty cells, not any particular value.
PythonIn [2]Expand
import numpy as np
RESOURCE_TYPES = [
"Raw text",
"Labels",
"Parallel",
"Speech",
"Lexicon",
"Tooling",
"Eval",
]
LANGUAGES = [
"English",
"Kazakh",
"Inuktitut",
"Ainu",
"Yoruba",
"Wolof",
"Nahuatl",
]
resource_matrix = np.array(
[
[2, 2, 2, 2, 2, 2, 2],
[2, 1, 1, 1, 2, 2, 1],
[1, 1, 1, 2, 1, 1, 1],
[1, 0, 0, 1, 1, 0, 0],
[1, 1, 1, 1, 1, 1, 1],
[1, 0, 1, 2, 1, 1, 0],
[1, 0, 1, 1, 1, 0, 0],
]
)VisualizationOut [3]Expand

Why the Gap Persists
It is worth asking why scaling has not closed this gap, since scaling has closed so many others. Three reasons recur.
Check where the web collection can reach. Inspect the seed sites, language coverage, and filtering yield. Separate missing material from boilerplate, duplicates, and text assigned the wrong language. A targeted collection may need local publishers, permission, and manual verification. See Deduplication.
Budget people as well as compute. Count the hours of trained annotators needed for the task. A larger compute allocation leaves that requirement in place when the workflow calls for human judgments.
Make comparisons possible. If teams use different test sets, record the samples, domains, and scoring rules. A shared benchmark can establish one common comparison, while corpus and annotation work need their own documented outputs.
In 2020, Joshi and colleagues grouped 2,485 languages into six resource classes using proxies for labeled and unlabeled data. They placed 2,191 languages in their least-resourced class and seven in their best-resourced class. This is a snapshot of their inventory and criteria. A project still has to check the resources available for its own language, variety, and task. Joshi et al. (2020), Table 1.
Why Scarcity Compounds
Several constraints can affect the same pipeline. Fixing a tokenizer’s script coverage can leave a word-form sparsity problem, and additional text may leave a task without labels. Check each stage before assuming that the same reduction in data has the same effect across tasks.
Script and Encoding
Compare the exact code-point sequences before counting distinct forms. Canonically equivalent strings can differ in representation. Compatibility mappings have a different scope, and some marks and joiners can carry distinctions you want to keep. Test the chosen normalization with target speakers and on your tokenizer. Unicode Standard Annex #15.
Measure tokenization length on the tokenizer and text you plan to use. In multilingual tokenizer comparisons, parallel translations of the same content can occupy very different numbers of tokens. Check whether changing the vocabulary or normalization helps for the target writing system. At a fixed 512-token context budget, three times as many tokens per word leaves room for about one third as many words, assuming the same overhead. Petrov et al. (2023).
Morphology and Tokenization
With productive morphology, a learner may see familiar parts in an unseen surface form. A vocabulary that assigns each whole form a separate token cannot reuse those parts directly. Compare how whole-word and subword tokenization treat the same unseen inflected form. See Morphology and Word Formation.
An analyzer that identifies pieces observed in training gives the model a way to reuse their evidence. Compare analyzer-based and generic tokenization on the same examples before choosing a method. Check whether gains extend to whole forms absent from training.
Orthographic Variation and Dialect Continua
Writing conventions can vary within a language. Inuit Tapiriit Kanatami documents Canadian regional syllabics and Roman orthographies. The National Institute for Japanese Language and Linguistics publishes its Ainu folklore corpus with Latin and katakana transcriptions. When two writings encode the same form, preserve which convention each sample uses. ITK and NINJAL.
Suppose one training corpus records Kazakh in Cyrillic and an evaluation represents the same material in Latin. Compare normalization and unconverted input on matched examples to see how much of the measured difference the conversion explains.
A language identifier does not specify the speakers, variety, and usage covered by an experiment. Record the variety when choosing test data and annotators. Use the resulting sample description to state where the performance claim applies.
Label Scarcity Is Not Text Scarcity
Annotation requires people who know the target variety and can apply the task instructions. In a small speaker community, the pool may be limited. If a benchmark reflects the judgments of just a few annotators, their preferences may carry more weight than they would in a broader sample. Record who contributed and which judgments the evaluation represents.
With 200 training examples, one well-chosen label can have a visible effect on the fitted boundary. Its value depends on what the example adds to the existing labels. Compare active selection with random selection at the same budgets to see whether it helps on your task.
Evaluation Scarcity
A small held-out set can give a useful first estimate, but its domain and who wrote or labeled it matter. At 80% observed accuracy on 200 independent items, a 95% Wilson interval has a full width of about 11 percentage points. Comparing two systems on the same 200 items requires accounting for which items they disagree on. Suppose the better system is correct on eight items the other misses, and the other system never wins on a discordant item. The gap is four points and the two-sided exact McNemar -value is about . If the discordances instead split 12 to 4, the gap is still four points, but is about . The two cases give different conclusions at a 5% threshold.
How Much Data Do You Need?
The honest answer is: it depends on the task, the language, and what you are transferring from. But there are useful anchors, and knowing them keeps you from either giving up too early or wasting a budget on the wrong intervention.
Two Regimes
Separate two very different data requirements.
Pretraining estimates model parameters from a new corpus. The BabyLM Challenge includes a 10-million-word text track and a 100-million-word text track. Those budgets illustrate small-scale research, and its benchmarks and models determine what the results establish. For a project with five million target tokens, compare a from-scratch baseline with adaptation on the target task before choosing a training plan.
Adaptation starts from a pretrained checkpoint. Its representations provide a starting point and the target labels provide supervision for the task. Treat the size of the label budget as an experimental choice and measure how your baseline changes when you add labels.
Use a learning curve to compare early and later labels on your own task. A change in slope can motivate a follow-up comparison with better transfer, different sampling, or additional labels.
The Transfer-First Recipe
When someone hands you a low-resource problem, the order of operations should be roughly:
- Check script coverage. Can your tokenizer represent the text at all? What is the fertility on a sample? Compare the result with plausible alternative tokenizers on the same text. If fragmentation is severe, measure whether adaptation of the vocabulary improves the task.
- Check pretraining coverage and establish a zero-shot baseline. Was this language in the multilingual model's corpus? Fine-tune the original checkpoint on English (or another well-resourced related language) and evaluate on the target before using target-language training labels.
- Test continued pretraining where appropriate. If coverage is weak or the target domain differs from the pretraining corpus, try continued pretraining and compare it with the original-checkpoint baseline on the same evaluation.
- Add target-language labels in small increments. Start with budgets such as 50, 200, and 1,000. If the curve flattens, test alternative data or transfer methods at the same budget.
- Only then consider augmentation and active learning, with a baseline to beat. Augmentation without a baseline is just a way to generate activity that looks like progress.
Cross-lingual transfer can be especially competitive when target-language labels are scarce. As you add target labels, a target-specific model may improve at a different rate. The ranking depends on task, available corpora, the models you compare, and whether each model suits the target script and domain. That is why step 4 measures a curve on the actual task.
Adapting With What You Have
Given a pretrained multilingual model and a small target corpus, the available moves form a short taxonomy. Each has a mechanism, a cost, and a characteristic failure. Knowing the failure mode matters as much as knowing the mechanism, because the failure is what you will see in your results and need to diagnose.
Cross-Lingual Transfer
A zero-shot baseline trains on source-language labels and uses the multilingual model's shared representations to predict on the target language. The previous chapter on Cross-Lingual Transfer and Alignment covers the mechanism. Here the concern is what the labels measure. An English-trained sentiment classifier applied to Yoruba may reproduce the source task's judgments, even where Yoruba speakers would interpret the same interaction differently. Better prediction of the inherited labels leaves that measurement question open. Check the label definitions and examples with speakers of the target variety.
Continued Pretraining and Vocabulary Extension
If target-language coverage is weak and you have suitable unlabeled text, try continued pretraining on that text. For a masked language model, this can use its existing masked-token objective and requires no task labels for the pretraining step. Compare against the original checkpoint on the same target evaluation at more than one text budget if feasible. Gains and costs depend on the checkpoint, corpus, and task.
If the tokenizer fragments the target script, try adding subword units learned from target text and then continue pretraining (see Tokenizer Training). Initializing new embeddings from the existing embedding mean is one baseline. Compare against continued pretraining with the original vocabulary at the same budget before attributing a gain to the new pieces.
Data Augmentation
Augmentation means manufacturing training signal from what you already have. Four variants dominate.
Back-Translation
Train or borrow a reverse translation model from the target language to a pivot. Translate monolingual target text into the pivot, then use the translated side as synthetic input paired with the original target. Sennrich, Haddow, and Birch evaluated this for neural machine translation in 2016. New human translations are outside this generation loop. Sennrich et al..
Keep synthetic and genuine pairs separately identified. Inspect translated inputs for errors and source patterns that are rare in real usage, then compare the forward model on genuine held-out data. Compare different synthetic proportions before deciding how much to include.
Self-Training and Pseudo-Labelling
Predict labels on unlabeled target data, keep a chosen subset, and retrain. Check the accepted examples per class and inspect persistent mistakes before each iteration. Use confidence thresholds or per-class quotas when they improve the selected data, and keep an untouched labeled evaluation set. Confirmation bias in pseudo-labeling concerns the reuse of mistaken task labels, while the chapter on recursive training discusses other regimes for repeated model-generated data.
Cross-Lingual Word Substitution
Replace selected source words with target-language candidates from a bilingual lexicon or learned alignment. Check in context whether the replacement preserves the label, especially when a lexicon lists multiple senses. Compare the augmented model with the same model trained on the unmodified examples.
Transliteration as Augmentation
Try alternate spellings or scripts as a controlled augmentation. For the Kazakh example, compare training on Cyrillic only with training that also contains authorized Latin renderings. Measure accuracy for each writing convention and inspect which distinctions the conversion preserves.
Annotation Projection
When source and target examples are aligned, project labels through their correspondences. Inspect a sample and correct labels or alignments before mixing projected and manually annotated records. Report the manual time and the performance of a baseline using the same budget.
Few-Shot Prompting
A few in-context examples can make a decoder model useful for prototyping when target-language labels are scarce. Example choice and ordering can change measured accuracy, and the magnitude varies by model and task. Test several prompt orders on the same items, state the model and decoding settings, and include a target-variety evaluation before treating a model's coverage list as evidence of quality. Lu et al. (2022).
Speech
For primarily oral languages, recordings may be the most practical starting point when the community wants a speech tool. XLS-R, a wav2vec 2.0–based model pretrained on speech from 128 languages, reported gains on multiple speech recognition benchmarks, including low-resource settings. The transcription budget required for a new language depends on the target variety, recording conditions, baseline, and acceptable error rate. Each authorized, checked transcript can support later speech or text work. Babu et al. (2022).
Transliteration and Script Normalisation
Transliteration is the conversion of text from one writing system to another. It sounds like a preprocessing detail. In practice it is one of the highest-leverage interventions available, and one of the easiest to get subtly wrong. The subtlety is what makes it dangerous. A botched transliteration does not crash; it quietly destroys information that the rest of the pipeline needed.
Three Terms That Get Confused
- Transliteration maps graphemes to graphemes. A scheme can round-trip when it preserves source distinctions and its segmentation rules identify a unique inverse.
- Transcription maps sounds to symbols. It aims to record pronunciation, which may not be recoverable from spelling.
- Romanization specifies that the output is in Latin script. Choose a named scheme and version for the particular language. Evaluate which distinctions it preserves before designing an inverse.
The distinction matters when the output must round-trip. A transliteration scheme can preserve all source distinctions, while transcription can merge spellings that share a pronunciation. Romanization describes the output script and can follow either approach. Calling a transcription scheme a transliteration scheme can give downstream users the false expectation that they can recover the original spelling from its output.
Conversion of text from one writing system to another at the level of characters or character sequences, ideally preserving enough information to invert the mapping.
Why It Matters More Than It Sounds
Four situations recur.
Script mismatch between pretraining data and target text. A model with little exposure to Ethiopic-script text may handle romanized Amharic differently. Compare both forms on the same examples. A romanization can make familiar character sequences available to the tokenizer while collapsing distinctions present in the original, so check whether those distinctions matter for the task.
Multiple orthographies for one language. Kazakh appears in Cyrillic and Latin conventions. Inuktitut appears in syllabics and Latin, and Ainu in katakana and Latin. A model trained on one convention can underperform on another. Where a checked mapping preserves the distinctions the task needs, map both versions to the same writing convention and check whether the gap shrinks.
User-generated romanization. A Tunisian Arabizi corpus documents forms using 3 for ع, 7 for ح, and 9 for ق. Inspect examples from the population your application serves before carrying any of those mappings into its input policy. TArC corpus study.
Retrieval and matching. Literal token matching compares the indexed and query forms, so equivalent words written in different scripts can miss each other. You can expand a query with alternate spellings, index a converted form alongside the original, or use a representation shared across scripts. Test the approach on equivalent forms and on ambiguous forms that should return different results.
Methods
Rule-based tables are deterministic, fast, auditable, and require linguistic expertise to construct. For scripts with regular phonology they work extremely well. A table for a specific syllabics convention can handle the glyphs covered by that convention. The advantage of a table is that you can read it and see exactly what it does; the disadvantage is that it only covers what you thought to put in it.
Statistical grapheme-to-phoneme models. Train on aligned spellings and pronunciations. Evaluate unseen and rare patterns separately so frequent forms do not dominate the score.
Neural sequence-to-sequence conversion. A variable-length output model can condition its choices on the surrounding input. For name conversion, compare exact spellings and equivalent renderings under the chosen convention.
Unsupervised and zero-shot approaches. If the target conversion has no aligned training pairs, test whether a multilingual model can produce usable forms. Reserve a small manually checked set for that evaluation.
Choose a tool by the mapping you need. uroman maps text in many scripts into Latin letters. ICU Transforms provides configurable script-to-script transformations, including several Indic scripts. Epitran maps graphemes to phonemes for supported languages. Check the tool's language and script pair on your own examples before relying on it.
Ambiguity Is the Whole Problem
A table can give a deterministic mapping from a known syllabics convention to Latin. A raw reverse lookup can admit several segmentations when a consonant-vowel glyph and separate consonant and vowel symbols produce the same letters. Orthographic rules often rule out these alternatives. Use context when valid readings still compete, and keep enough information to recover the original string where that is a requirement.
Arabic and Hebrew often omit short-vowel marks in ordinary writing. The same unmarked spelling can then admit several readings. Check which information the original writing records before trying to recover it, and keep the original input alongside a proposed reading. Unicode Standard, Chapter 9.
This is not a preprocessing nuisance. It is a linguistic disambiguation problem, and solving it well requires the same machinery as language modeling: a distribution over candidate readings conditioned on context. Where the mapping is many-to-one, a table alone cannot recover which source form occurred. A converter can preserve ambiguity, use context, or ask the user to choose.
Worked Example: One Skeleton, Three Readings
Consider the Arabic root k-t-b, written with the consonants ك ت ب. Without vowel diacritics, the same three-letter skeleton carries several distinct words.
| Vocalised | Romanisation | Gloss | Skeleton |
|---|---|---|---|
| كَتَبَ | kataba | he wrote | كتب |
| كُتِبَ | kutiba | it was written | كتب |
| كُتُب | kutub | books | كتب |
The three example words share one written form. Surrounding syntax can indicate whether كتب is a verb or a noun, and sentence context can favor a reading such as 'he wrote', 'it was written', or 'books'. The reader's knowledge of Arabic supplies the prior that the skeleton alone does not carry.
Stripping vowel marks is a normalization step within the Arabic script. Applied to these examples, it merges three written forms into one. The stripped string alone cannot identify which marked form was present. If the task needs that distinction, test whether keeping the marks or using context helps. If the task treats the three forms alike, it can use the shared spelling.
Take a string with exactly character positions. Give each position independent binary choices for omitted distinctions. The number of raw assignments in this toy model is:
where:
- : the modelled number of independent binary choices per character, for example whether a hypothetical mark is present
- : the length of the string in characters
- : the number of raw assignments before spelling or context rules out candidates in the toy model
In practice strong priors shrink this dramatically, but the point stands: the candidate lattice is large, and choosing among candidates is a modeling problem, not a table lookup.
The growth is easier to see than to state. The heatmap below plots the log of the upper bound from the formula for modest values of and .
PythonIn [4]Expand
import numpy as np
omitted_distinctions = np.arange(1, 5)
word_lengths = np.arange(2, 10)
candidate_log10 = (
omitted_distinctions[:, None] * word_lengths[None, :] * np.log10(2.0)
)VisualizationOut [5]Expand

Two practical consequences follow:
- Check whether your chosen mapping preserves the distinctions that matter for the task. A deterministic forward conversion can still lose information. An inverse can use spelling rules to narrow the candidates, and context can help where multiple legal forms remain.
- Evaluate transliteration with multiple references. Character error rate against a single reference punishes a system for choosing a different, equally valid reading. Where ambiguity is real, report the fraction of outputs matching any acceptable reference, and sample a few hundred outputs for human review. A system that gets the "right" reading 70% of the time and a valid reading 95% of the time is better than its single-reference score suggests.
The code section implements a deterministic syllabics-to-Latin table and an Arabic diacritic stripper. The first demonstrates a rule-governed conversion. The second demonstrates a collision that no inverse can undo from the stripped word alone.
Active Learning
When annotation limits the project, active learning can help decide which examples to annotate next. It can improve performance at a fixed budget when the available pool contains examples that add information. Compare against random selection at matched budgets on the same evaluation set.
The Setup
You have a pool of unlabeled examples , a small labeled set , a labeling budget , a batch size , and a model trained on . The loop is:
- Train a model on .
- Score every with an acquisition function .
- Select the top (with diversity constraints) and send them to annotators.
- Add the returned labels to , remove those items from , repeat.
Choose a budget unit before comparing strategies. For a team with limited annotator time, measure in hours. Ten one-hour examples and ten one-minute examples take different amounts of time. The synthetic example uses a count of labels and makes no estimate of annotation time.
Acquisition Functions
Least confidence picks items where the model's top prediction is weakest:
Here is the unlabeled pool, is the selected example, is the most probable class for candidate , and is the model's predicted class probability. The policy can favor ambiguous or noisy items if they receive low confidence. Each selected item leaves the pool.
Margin sampling uses the gap between the top two classes:
Here and are the two highest-probability classes for candidate . The selected item has the smallest probability gap in . A uniform distribution over 20 classes and a 50/50 split between two classes both give margin zero. Their natural-log entropies differ, at about and nats. Margin measures the gap between the top two. Entropy uses all the predicted probabilities.
Entropy measures uncertainty over the whole distribution:
where:
- : the entropy of the model's predicted class distribution for input
- : the model's predicted probability for class given input
- : an index over all classes
The log is natural, so the score is in nats, and zero-probability terms contribute zero. For a fixed class count the maximum occurs at the uniform distribution. Binary entropy and least confidence rank outcomes in the same order, up to ties. Multiclass entropy can rank items differently because it accounts for the allocation among all classes.
Query by committee compares predictions from several models and can choose the points where they disagree. Budget the cost of fitting and evaluating the committee. Test whether disagreement identifies useful labels on your task.
BALD (Bayesian Active Learning by Disagreement) ranks points by how much observing their labels would tell you about model parameters under a Bayesian model. Monte Carlo dropout is one way to approximate the posterior expectation. Houlsby et al. and Gal et al..
where:
- : mutual information between the label and parameters for a fixed candidate , given labeled data
- : entropy of the predictive label distribution after averaging over the posterior given
- : mean entropy of the conditional prediction for candidate over parameter draws from the posterior given
The first term is the entropy after averaging each model's predicted distribution over the parameter posterior. The second is the mean entropy within individual parameter samples supported by the labeled data. If all samples predict the same uncertain label distribution, the terms cancel. A positive score arises from disagreement among their predictions. Least confidence and predictive entropy have no within-model subtraction, so they can rank items highly even when parameter samples agree.
Core-set selection can prioritize coverage of the input space. The following objective uses a k-center problem in an embedding space:
where:
- : the selected batch, a subset of the unlabeled pool with size
- : an unlabeled example in the pool
- : an already selected example in
- : an embedding function mapping a sentence to a vector
- : the distance between the embeddings of and
Sener and Savarese studied a core-set approach for active learning. The objective measures coverage in the chosen embedding, so its usefulness depends on whether that distance reflects variation in the task. Sener and Savarese.
Expected model change or expected error reduction considers possible labels and their effect on the model. Estimating those effects can require refits or an approximation. Compare the acquisition cost with a simpler policy.
Batch Selection and Diversity
Selecting the top scores can produce batches of near-duplicates. If each of items costs the same to label and the labels are fully redundant for the task, the batch pays for labels and gains information equivalent to one. Near-duplicates can still be worth labeling if they test distinct readings or improve reliability.
Two fixes are common:
- Cluster first, then rank. Partition the pool into nonempty groups and take the highest-scoring item from each. This covers the chosen groups. Test whether the distance used for grouping captures variation that matters to your task.
- Greedy diversity-constrained selection. Add items one at a time, penalizing similarity to already-selected items. BADGE, for instance, combines gradient embeddings with k-means++ seeding. Its gradient embeddings combine the current model's uncertainty and representation before the diversity step.
Cold Start
Inspect early acquisition scores when the initial supervised set is small. If the scores tie, the tie-breaking policy determines the order. Compare an initial random or diversity-based round with uncertainty selection at matched budgets. A flat early curve alone cannot establish which effect limited the policy.
What Active Learning Cannot Fix
Active learning selects which examples to label. It cannot:
- Manufacture examples of a class that does not appear in the pool. If no example of a rare construction exists in , no acquisition function will find one.
- Add dialogue to an all-news pool. Evaluate on dialogue before drawing a transfer conclusion from labels collected from the news pool alone.
- Overcome annotation cost heterogeneity. If 10% of items take an hour each, the right objective is utility per annotator-hour, and the standard algorithms do not know about cost.
- Substitute for a competent annotator. An uncertainty policy can surface ambiguous items or expose gaps in annotation instructions. Compare agreement on actively selected and randomly sampled items before deciding whether the policy makes adjudication harder.
How to Evaluate Your Active Learning
Three rules.
Always compare to random selection at matched budgets. Reporting only the active learning curve tells you nothing about whether the selection strategy did any work.
Run multiple seeds. Compare the observed spread across runs with the acquisition gain at each budget. The example below uses five paired starting sets.
Report area under the learning curve. If is test accuracy after labels, the summary statistic is
where:
- : the test accuracy of the model after being trained with labeled examples
- and : the initial and final observed budgets, with , measured in labels
- : the normalized area, interpreted as average accuracy across the shared budget range
Approximate the integral with trapezoids between measured rounds. Compare strategies over the same budget range and report the variation across seeds. Also report the horizontally-read version, which is what practitioners care about: how many labels does random selection need to reach the accuracy active learning reaches with ?
Report the result for the task, model, and pool you tested. If a strong baseline and the acquisition policy produce the same accuracy within the resolution of that experiment, report the result with the budgets and uncertainty.
Community Participation and Data Sovereignty
The technical sections above assume the data collection is unproblematic. For endangered and Indigenous languages, it is the most contested part of the work. The data is not just data; it is the record of a community's language, and the community has interests in how it is used that are not captured by a license choice.
The Extractive Default
A project can collect text or recordings, train a model, and publish results without involving the people whose language it uses. That workflow leaves important decisions about access, use, and benefit unresolved.
A team may lack a community’s approval to use some records or follow particular publication terms. Ask whether access rules differ across materials and how an agreement handles a withdrawal request after publication or model training. Removing the project’s own copy leaves any third-party copies and trained artifacts outside that file operation.
Bird's 2020 COLING paper examines research practices that concentrate authority with outside researchers. Schwartz's 2022 paper calls for researchers working with Indigenous language data to adopt ethical obligations drawn from Indigenous studies.
Principles: OCAP and CARE
Two frameworks come up repeatedly.
The First Nations principles of OCAP® describe First Nations information governance. FNIGC explains Ownership as a collective relationship to First Nations information, Control as authority over research and information processes, Access as access to data about First Nations and decisions about others’ access, and Possession as custody or physical control. A Nation expresses and asserts these principles through its own protocols. Ask the relevant Nation who can authorize the work and which terms apply.
The CARE Principles, described by Carroll and colleagues, complement FAIR (Findable, Accessible, Interoperable, Reusable). CARE stands for Collective Benefit, Authority to Control, Responsibility, and Ethics. A dataset can meet FAIR's technical criteria while leaving consent and community benefit unresolved. CARE brings those questions into decisions about using Indigenous data.
Governance of data about a people or community, including decisions about access and permissible use. Record the applicable community protocols and agreements, including who can request withdrawal, what it covers, and how the project will handle material already copied or used for training.
What It Looks Like in Practice
Concrete mechanisms that show up in well-run projects:
- Community research agreements negotiated before data collection, specifying ownership, permitted uses, publication review, and what happens if the relationship ends. Negotiating before collection is the point; retrofitting an agreement onto data already collected is a much weaker position for the community.
- Data-use agreements and licences that are enforceable and specific. Te Hiku Media applies its Kaitiakitanga License to data collected through Kaituhi, its transcription service. Te Hiku Media describes the license as grounded in guardianship and requires permission to use or adapt the license itself. Kaituhi privacy policy and Kaitiakitanga License project.
- Community review before publication. Set the scope of pre-release review and record who can prohibit the publication of particular material under the agreement.
- Compensation at professional rates for annotation, translation, and advisory work. Not gift cards. The labor is skilled and the budget should reflect that.
- Co-authorship for community members who shaped the research question, including those whose contribution went beyond data collection.
- Capacity building, meaning community members can run and maintain the resulting models rather than depending on the original team. A model that only the original team can operate is a dependency, not a contribution.
- Archiving with community governance, with item-specific permissions where the community chooses to deposit material. PARADISEC's access conditions allow item-specific restrictions and account for depositor permission.
Masakhane's participatory machine-translation case study describes collaboration with African language speakers, translators, and researchers in developing benchmarks and models. Its authors discuss both the outputs and the constraints of the participatory approach. Nekoto et al. (2020).
Technical Consequences
These constraints are not paperwork. They change the engineering.
For offline operation, measure memory and latency on the hardware people will use. Distillation or quantization (Part XLI) may help if the model exceeds those limits. If the agreement calls for withdrawal, track the provenance of training data and decide whether you can retrain without the withdrawn material or use an appropriate unlearning method (Part XLV). Some restrictions may require separating or gating access to material or systems. These choices are easier to make before data collection and training.
The most important technical consequence is often the simplest. The task might not be the one you assumed. A community may want a searchable archive of oral histories with time-aligned transcripts, a spell-checker for a newly standardized orthography, or a language-learning app for children. None of those are benchmark tasks. All of them are more useful than another F1 score.
The Model as Teacher
One specific and underappreciated risk is that, in revitalization settings, a language model may be used by learners as a reference. If it produces a fluent-sounding but ungrammatical sentence, the learner may internalize it. Fluency is not correctness, and an aggregate benchmark score can hide much lower accuracy on the particular constructions a learner asks about. Test the intended teaching uses directly.
Mitigations include abstention (the model should decline when uncertain), provenance display where the system can cite an attested passage, explicit marking of generated versus attested text, and human review for any material that will be used in teaching. Treating a language model as an authority on a language it has 50,000 tokens of is a category error. The model is a tool for navigating data, not a speaker, and the difference matters most to the people who have the least ability to check it.
Responsible Evaluation
Evaluation is where low-resource work most often overclaims. The reason is arithmetic as much as ethics. A small test set can leave substantial uncertainty around an accuracy score. When models answer the same questions, the precision of their difference depends on the pattern of paired errors.
The Arithmetic of Small Test Sets
Under a binomial model for independent test items, the plug-in standard error for accuracy on examples is
where:
- : the observed accuracy on the test set, the estimated proportion of correct predictions
- : the number of test examples
- : the estimated standard error of
At and , , giving a 95% interval of roughly ±8 points. At , it is roughly ±16 points. The Wilson score interval is better behaved near 0 and 1:
where:
- : the observed accuracy on the test set
- : the number of test examples
- : the standard normal quantile for the desired confidence level, for example for a 95% interval
The Wilson interval describes one system under the binomial assumptions. Use a paired comparison when both systems answer the same items. If the samples cluster by speaker or document, use a resampling unit that reflects those dependencies. Report training-seed variation separately from test-sample uncertainty.
Construct Validity of Translated Benchmarks
Multilingual benchmarks sometimes reuse tasks by translating items from English or another source language. Check how the translation affects the items, the labels, and the setting the benchmark represents.
Translationese. Translated text can differ systematically from text originally written in the target language. In natural language inference, Artetxe et al. (2020) found that translating premises and hypotheses independently changed lexical overlap and affected model performance. The effect depends on how the benchmark and training data were made.
Cultural mismatch. An entailment item can rely on assumptions shared by the source audience. If target-language readers interpret the situation differently, ask whether the intended answer is still supported.
Label transfer errors. A translation can change the wording or pragmatic cues while keeping the original gold label. Check whether the retained label still applies to the translated item.
Domain shift. The source benchmark's domain (Wikipedia, news, web forum) may be a poor match for the target language's actual text.
A translated benchmark may still measure the intended capability if the items and labels hold up in the target setting. Document the source and translation process, and state which conclusions the target evaluation supports.
Contamination
A public test set can overlap with a model's pretraining data, as discussed in Deduplication. Report provenance and overlap checks when you have access to the relevant training data. Review the task definition and human reference if a score is unexpectedly high.
Who Is in the Test Set
A test set is a sample of speakers as much as of sentences. Report, where you can:
- Which variety or dialect is represented, and which is not.
- The demographics of annotators: age, region, whether they are native speakers, whether they were paid.
- Inter-annotator agreement in the target language, computed per task and reported. Report who annotated the sample and whether disagreements were adjudicated.
- Per-group and per-class breakdowns in addition to the aggregate. An 82% average that hides 60% on one dialect is a misleading number.
The "worst-group" accuracy is often the more useful headline for low-resource systems, because aggregate accuracy is dominated by the largest or easiest subgroup. A system that is excellent on the majority variety and useless on a minority one is not 82% good; it is excellent for some speakers and absent for others, and the headline should reflect that.
A Reporting Checklist
For any low-resource result, report at minimum:
- The exact model and checkpoint, with its pretraining language coverage.
- The tokenizer and the measured fertility on your target text.
- Training set size and composition, including how it was collected and who annotated it.
- Test set size, provenance, domain, and variety.
- Accuracy with an interval that states which variation it captures. Report seed-to-seed variation separately when it matters.
- Per-class and per-group breakdowns.
- Contamination checks, or an explicit statement that you did not run them.
- A data statement and, for released models, a model card.
That list is not bureaucracy. Each item corresponds to a way a low-resource claim can be wrong.
Code Implementation
We now build the three pieces that are most useful to have working code for: a script converter, an active learning loop, and a confidence interval calculation. The examples use real scripts and a synthetic language, because the point is the machinery rather than the specific number.
Setup
Transliteration: Syllabics to Latin
Qaniujaaqpait is a syllabics convention used in Nunavut. The example uses a subset of its glyphs, including independent vowels, consonant-vowel syllables, and final consonant signs. Each listed glyph has a single Latin mapping in this table. The fixture uses the eastern s readings and Roman double vowels where the table lists long vowels. The full regional conventions require coverage beyond this subset. Inuit Tapiriit Kanatami, Inuit Cultural Institute chart.
PythonIn [7]Expand
SYLLABICS = {
# independent vowels
"ᐃ": "i",
"ᐅ": "u",
"ᐊ": "a",
"ᐄ": "ii",
"ᐆ": "uu",
"ᐋ": "aa",
# p, t, k series
"ᐱ": "pi",
"ᐳ": "pu",
"ᐸ": "pa",
"ᑎ": "ti",
"ᑐ": "tu",
"ᑕ": "ta",
"ᑭ": "ki",
"ᑯ": "ku",
"ᑲ": "ka",
# m, n, s series
"ᒥ": "mi",
"ᒧ": "mu",
"ᒪ": "ma",
"ᓂ": "ni",
"ᓄ": "nu",
"ᓇ": "na",
"ᓯ": "si",
"ᓱ": "su",
"ᓴ": "sa",
# l, v series
"ᓕ": "li",
"ᓗ": "lu",
"ᓚ": "la",
"ᕕ": "vi",
"ᕗ": "vu",
"ᕙ": "va",
# final consonants
"ᑦ": "t",
"ᒃ": "k",
"ᓐ": "n",
"ᒻ": "m",
"ᔅ": "s",
"ᓪ": "l",
}The converter walks the string one character at a time and appends the mapped value. Unknown characters are passed through unchanged so that punctuation and whitespace survive.
PythonIn [8]Expand
def to_latin(text, table=SYLLABICS):
"""Greedy left-to-right transliteration from syllabics to Latin."""
out = []
for ch in text:
out.append(table.get(ch, ch))
return "".join(out)We can check it against three words whose Latin forms are well established.
PythonIn [9]Expand
sample_words = ["ᓄᓇᕗᑦ", "ᐃᓄᒃᑎᑐᑦ", "ᑲᓇᑕ"]
transliterated = [(w, to_latin(w)) for w in sample_words]ConsoleOut [10]Expand
ᓄᓇᕗᑦ -> nunavut ᐃᓄᒃᑎᑐᑦ -> inuktitut ᑲᓇᑕ -> kanata
For the covered glyphs, the forward mapping assigns one Latin string to each glyph. A mechanical inverse can segment kanata as three consonant-vowel syllables or split one or more of those syllables into separate consonant and vowel signs. Under the example constraint that a consonant followed by its syllable vowel uses a consonant-vowel glyph, only ka-na-ta remains. An inverse converter should encode the target orthography's rules before treating multiple raw segmentations as equally likely.
Regional conventions differ across the syllabics block, so a real system must select the table for the variety it is reading rather than assuming one mapping.
Normalisation: Diacritics and Lost Information
Arabic generally writes consonants and long vowels. Short-vowel marks occur in sources such as dictionaries and learner texts and are often omitted in everyday text. This example removes a defined subset of Arabic marks and shows which readings collapse.
PythonIn [11]Expand
import re
ARABIC_DIACRITICS = re.compile(r"[\u064B-\u0652\u0670]")
def strip_diacritics(text):
return ARABIC_DIACRITICS.sub("", text)
vocalised = {
"كَتَبَ": ("kataba", "he wrote"),
"كُتِبَ": ("kutiba", "it was written"),
"كُتُب": ("kutub", "books"),
}
rows = [
(ar, strip_diacritics(ar), rom, gloss)
for ar, (rom, gloss) in vocalised.items()
]ConsoleOut [12]Expand
كَتَبَ skeleton=كتب romanisation=kataba (he wrote) كُتِبَ skeleton=كتب romanisation=kutiba (it was written) كُتُب skeleton=كتب romanisation=kutub (books) Distinct written forms after stripping: 1 (from 3 words)
Three words collapse into one written form. To recover a vocalised reading from the skeleton, a system needs information beyond a plain lookup. It can rank candidates using context or return multiple readings when context is insufficient. In this within-script normalization, removing marks gives one predictable skeleton. Recovery is ambiguous because the operation merges distinct inputs. A transliteration scheme that merges distinct inputs can have the same problem.
A Synthetic Low-Resource Classification Task
The active-learning example generates a synthetic corpus with three topics. The labels and generation settings are known, so the example can compare multiple seeds over the same data split without using community records.
PythonIn [13]Expand
TOPICS = ["fishing", "weather", "kinship"]
TOPIC_WORDS = {
"fishing": [
"zabu",
"kivo",
"druma",
"pelto",
"nagri",
"sumbo",
"tarik",
"vela",
"qosha",
"miren",
"baktu",
"lomi",
"feru",
"gantu",
"shavi",
"ondre",
],
"weather": [
"plumo",
"kesta",
"varun",
"dolzi",
"hepra",
"nisko",
"tulga",
"bresh",
"yonda",
"krimu",
"salvo",
"pentu",
"mokra",
"zefir",
"gusta",
"lanka",
],
"kinship": [
"nembo",
"sardi",
"kundo",
"talvi",
"oshka",
"virem",
"dunai",
"pasho",
"grela",
"mintu",
"korsa",
"zenda",
"tupai",
"vesna",
"hurda",
"amlen",
],
}
SHARED_WORDS = [
"pa",
"te",
"no",
"ki",
"sa",
"mu",
"lo",
"ro",
"hi",
"wa",
"ze",
"di",
"ka",
"po",
"ni",
"su",
"ma",
"ta",
"ke",
"vo",
"li",
"nu",
"se",
"to",
]Each sentence draws a mix of topic-specific and shared words. The shared words carry no signal, so the classifier has to find the topic words, which requires seeing enough examples to encounter them.
PythonIn [14]Expand
def make_sentence(topic, rng, min_len=4, max_len=7, topic_prob=0.4):
n = int(rng.integers(min_len, max_len + 1))
words = []
for _ in range(n):
if rng.random() < topic_prob:
pool = TOPIC_WORDS[topic]
else:
pool = SHARED_WORDS
words.append(pool[int(rng.integers(0, len(pool)))])
return " ".join(words)We generate 900 sentences and hold out the first 300 as a fixed test set. The remaining 600 form the unlabeled pool from which active learning draws.
PythonIn [15]Expand
label_encoder = {t: i for i, t in enumerate(TOPICS)}
gen = np.random.default_rng(7)
TEXTS, LABELS = [], []
for _ in range(900):
t = TOPICS[int(gen.integers(0, len(TOPICS)))]
TEXTS.append(make_sentence(t, gen))
LABELS.append(t)
TEST_IDX = list(range(300))
POOL_IDX = list(range(300, 900))PythonIn [16]Expand
from collections import Counter
counts = Counter(LABELS[i] for i in TEST_IDX)ConsoleOut [17]Expand
Example sentence: po tupai oshka vesna ki vo
Test set composition: {'kinship': 122, 'weather': 96, 'fishing': 82}Word-level TF-IDF with logistic regression is a lightweight baseline that lets us rerun the experiment across seeds. The uncertainty functions use its predicted probabilities. This example does not measure their calibration.
PythonIn [18]Expand
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.linear_model import LogisticRegression
from sklearn.pipeline import make_pipeline
def train_model(texts, labels):
"""Word-level TF-IDF followed by a linear classifier."""
model = make_pipeline(
TfidfVectorizer(
token_pattern=r"\S+", lowercase=False, sublinear_tf=True
),
LogisticRegression(max_iter=1000),
)
model.fit(texts, labels)
return modelThe tokenizer uses token_pattern=r"\S+" to keep each whitespace-delimited token. The scikit-learn default already keeps all 24 shared tokens here because each has two letters. The default can discard single-character words and split at punctuation, which is worth testing when you replace the synthetic corpus.
Acquisition Functions
Two scoring functions are enough to see the difference between strategies. The least-confidence score and the entropy score correspond directly to the formulas given in the Acquisition Functions section above.
PythonIn [19]Expand
def least_confidence(model, texts):
"""1 minus the probability of the most likely class."""
proba = model.predict_proba(texts)
return 1.0 - proba.max(axis=1)
def entropy(model, texts):
"""Shannon entropy of the predicted class distribution."""
proba = model.predict_proba(texts)
log_proba = np.log(proba, out=np.zeros_like(proba), where=proba > 0)
return -(proba * log_proba).sum(axis=1)
SCORERS = {"least_confidence": least_confidence, "entropy": entropy}The Active Learning Loop
The loop trains, scores the pool, selects a batch, and repeats. Note the removal step: we sort selected indices in descending order before popping so that earlier removals do not shift later indices.
PythonIn [20]Expand
def run_active_learning(seed, strategy, rounds=10, batch=12, n_seed=24):
rng = np.random.default_rng(seed)
order = rng.permutation(len(POOL_IDX))
labeled = [POOL_IDX[i] for i in order[:n_seed]]
unlabeled = [POOL_IDX[i] for i in order[n_seed:]]
history = []
model = None
for r in range(rounds + 1):
model = train_model(
[TEXTS[i] for i in labeled], [LABELS[i] for i in labeled]
)
acc = model.score(
[TEXTS[i] for i in TEST_IDX], [LABELS[i] for i in TEST_IDX]
)
history.append((len(labeled), acc))
if r == rounds or not unlabeled:
break
batch_size = min(batch, len(unlabeled))
if strategy == "random":
chosen = rng.choice(len(unlabeled), size=batch_size, replace=False)
else:
scores = SCORERS[strategy](model, [TEXTS[i] for i in unlabeled])
chosen = np.argsort(-scores, kind="stable")[:batch_size]
for c in sorted(chosen.tolist(), reverse=True):
labeled.append(unlabeled.pop(c))
return history, modelWe run three strategies over five seeds. The same seed produces the same initial labeled set and the same pool ordering across strategies, so the comparison is paired.
PythonIn [21]Expand
STRATEGIES = ["random", "least_confidence", "entropy"]
SEEDS = [0, 1, 2, 3, 4]
results = {s: [] for s in STRATEGIES}
final_predictions = {}
for s in STRATEGIES:
for seed in SEEDS:
hist, mdl = run_active_learning(seed, s)
results[s].append(hist)
if seed == 0:
final_predictions[s] = mdl.predict([TEXTS[i] for i in TEST_IDX])
curve_stats = {}
areas_by_seed = {}
for strategy, histories in results.items():
runs = np.asarray(histories, dtype=float)
budgets = runs[0, :, 0]
accuracies = runs[:, :, 1]
curve_stats[strategy] = (
budgets,
accuracies.mean(axis=0),
accuracies.std(axis=0),
)
areas_by_seed[strategy] = np.trapezoid(accuracies, x=budgets, axis=1) / (
budgets[-1] - budgets[0]
)Learning Curves
First compare the average accuracy over the common observed budget range of 24 to 144 labels. The trapezoids are computed per seed before averaging.
ConsoleOut [22]Expand
random mean normalised area: 0.863
least_confidence mean normalised area: 0.892
entropy mean normalised area: 0.883Each number summarizes the shared budget range. The curves show where the strategies differ.
VisualizationOut [23]Expand

At a fixed budget, compare accuracies. For a budget comparison, choose an accuracy all the curves attain and find each strategy’s first measured round at or above that level. Here the final random mean, about 93.3%, gives one target. Random reaches it at 132 labels, while both active strategies reach it at 96. That is a difference of 36 labels at the measured rounds. Converting label savings to hours requires measuring annotation time.
These differences belong to the simulated data, fitted models and sampling procedures used here. A new task needs its own random baseline at matched budgets and an evaluation set that represents its intended use.
The shaded bands show how the scores vary across seeds. The paired comparison at the last budget estimates the entropy-versus-random difference on the same test items.
Evaluation With Uncertainty
Use a Wilson score interval for a binomial proportion and read it with its sample size and independence assumption. For example, small per-class denominators may produce proportions close to zero or one.
PythonIn [24]Expand
def wilson_interval(successes, n, z=1.96):
"""95% Wilson score interval for a binomial proportion."""
p = successes / n
denom = 1 + z**2 / n
centre = (p + z**2 / (2 * n)) / denom
half = z * np.sqrt(p * (1 - p) / n + z**2 / (4 * n**2)) / denom
return centre - half, centre + half
test_sizes = np.array([25, 50, 100, 200, 400, 800, 1600])
ci_widths = []
for n in test_sizes:
lo, hi = wilson_interval(int(round(0.8 * n)), int(n))
ci_widths.append(hi - lo)
width_table = list(zip(test_sizes.tolist(), np.round(ci_widths, 3).tolist()))PythonIn [25]Expand
width_text = f"{'n':>6} {'95% CI width':>13}\n" + "\n".join(
f"{n:>6} {w:>13.3f}" for n, w in width_table
)ConsoleOut [26]Expand
n 95% CI width
25 0.303
50 0.218
100 0.155
200 0.110
400 0.078
800 0.055
1600 0.039At 80% observed accuracy and 100 independent items, the Wilson interval spans about 15.5 percentage points. The width approaches inverse-square-root scaling as the sample grows. Quadrupling the sample approximately halves the width. For a comparison on shared items, examine the paired differences instead of using this single-model width as a minimum effect size.
VisualizationOut [27]Expand

Finally, we can put this to work on the actual classifiers. The question "is entropy sampling better than random here?" is a question about a difference between two systems evaluated on the same 300 items, so the right tool is a paired bootstrap over test items rather than two independent intervals.
PythonIn [28]Expand
def paired_bootstrap(y_true, pred_a, pred_b, n_boot=2000, seed=0):
"""Resample accuracy_b - accuracy_a for nonempty item-aligned vectors."""
y_true, pred_a, pred_b = map(np.asarray, (y_true, pred_a, pred_b))
if (
y_true.ndim != 1
or not y_true.size
or pred_a.shape != y_true.shape
or pred_b.shape != y_true.shape
):
raise ValueError(
"Provide nonempty one-dimensional arrays for the same test items."
)
rng = np.random.default_rng(seed)
correct_a = (pred_a == y_true).astype(float)
correct_b = (pred_b == y_true).astype(float)
n = len(y_true)
diffs = np.empty(n_boot)
for i in range(n_boot):
idx = rng.integers(0, n, n)
diffs[i] = correct_b[idx].mean() - correct_a[idx].mean()
return diffs
y_test = [LABELS[i] for i in TEST_IDX]
diff_dist = paired_bootstrap(
y_test, final_predictions["random"], final_predictions["entropy"]
)
acc_random = float(
np.mean(np.asarray(final_predictions["random"]) == np.asarray(y_test))
)
acc_entropy = float(
np.mean(np.asarray(final_predictions["entropy"]) == np.asarray(y_test))
)
lo, hi = np.percentile(diff_dist, [2.5, 97.5])ConsoleOut [29]Expand
Random selection accuracy: 0.923 Entropy selection accuracy: 0.947 Paired difference: +0.023 95% bootstrap interval: [-0.010, +0.053] Interval excludes zero: False
The printed interval resamples 300 test items for the two models trained from seed 0. It includes zero in this run. It describes test-item uncertainty conditional on those trained models. The learning curves describe how accuracy varies across five starting sets on the same test set.
ConsoleOut [30]Expand
precision recall f1-score support
fishing 0.950 0.927 0.938 82
kinship 0.967 0.967 0.967 122
weather 0.918 0.938 0.928 96
accuracy 0.947 300
macro avg 0.945 0.944 0.944 300
weighted avg 0.947 0.947 0.947 300Each class has its own denominator. Suppose 40 test items truly belong to a class and the model correctly assigns 28 of them to that class. Its observed recall is 0.70, and a 95% Wilson interval is about 55% to 82%. Its full width is about 27 percentage points and its half-width about 14 points. Precision divides by the number of items the model predicts as that class.
Limitations and Impact
Every technique in this chapter has a ceiling, and it is worth being explicit about where the ceilings are.
Cross-lingual transfer can help when the source and target share relevant patterns. The source training data, task, and target variety all affect the result. A sentiment classifier can reproduce judgments implicit in its source labels. A model that lists a language as supported can also produce fluent-looking answers with errors that a coverage list cannot reveal. Check both the model's outputs and the labels against the intended use.
A 200-item test set drawn from one newspaper represents a limited domain. Ask which varieties and annotators it represents before generalizing from the score. Use paired outcomes when two systems answer the same items, and examine provenance and pretraining overlap where possible. A community-governed evaluation can make the task and the groups it represents explicit.
Different projects face different constraints. The Masakhane case study describes participants voting on meeting agendas and publishing translation datasets, benchmarks, and models. Most of its reported benchmarks used the existing JW300 corpus. Te Hiku Media sets terms for reuse in its Māori speech work through the Kaitiakitanga License. Read these as two concrete project choices: who helps decide what to build, and who sets the terms for using the data.
Technical work can support tasks that communities identify. In the examples above, one project built and evaluated translation models and another built a transcription service. For a new project, assess the intended use along with the people, permissions, and data required to support it.
Start with a task the community wants, a model that covers the target language, and an evaluation that represents the intended use. Check whether normalization and additional labels improve that baseline before paying for a bigger model.
Summary
- Low-resource is a property of a
(language, task, domain)triple, not of a language. Use the operational definition and check the specific resource matrix cell that is empty. - Check constraints at each stage. Measure script coverage and tokenizer fertility, then test how spelling, morphology, variety, and the supply of text and labels affect the task.
- Adapt before training from scratch. Check script and pretraining coverage and measure a zero-shot baseline. Where coverage or domain fit is weak, compare continued pretraining against a baseline on the same target evaluation. Add target labels in increments and measure each gain.
- Transliteration is cheap and high-leverage, but asymmetric. Check the reversibility of the specific mapping. Use spelling conventions to constrain an inverse and context where the source is still ambiguous.
- Active learning can improve label efficiency. Compare against random at matched budgets over multiple seeds, summarize the shared budget range, and measure agreement if the acquisition policy changes what annotators see.
- Make governance part of the design. OCAP® addresses First Nations data governance. CARE asks who benefits, who can set terms, and what responsibilities apply. Agree on permitted uses and how the community will review the project.
- Report what the evaluation represents. Include intervals, seeds, per-class and per-group results, provenance, and overlap checks. Check that translated items preserve the construct and labels for the target speakers.
- Budget for people and permissions. Record the available annotator hours, required approvals, and governance commitments alongside compute and data.
We turn next to code-switching and mixed-language text, where the assumption that a document has one language breaks down entirely, and the techniques in this chapter meet a problem they were not designed for.
Quiz
Ready to test your understanding? Take this quick quiz to reinforce what you've learned about low-resource and endangered languages.
Low-Resource and Endangered Languages
Join the discussionAsk a question or share what you learned.
Keep exploring
Reference
Citation details
Cite or share this article.


Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!