NLLB-Maloba-h1: French → Lingala translation
The French → Lingala translation model of the MALOBA project (digitisation and acceleration of Lingala), led by Congo Digital Services (CDS SARL) in partnership with UNDP Republic of Congo and the Ministry of Posts, Telecommunications and the Digital Economy.
Summary
| Task | Machine translation, French (fra_Latn) → Lingala (lin_Latn) |
| Base model | facebook/nllb-200-distilled-1.3B, revision 7be3e24664b38ce1cac29b8aeed6911aa0cf0576 |
| Method | Full fine-tuning (all weights). There are no adapters and nothing to merge: this repository is the complete model |
| Data | 288 human-translated sentence pairs (TRAD category of the MALOBA corpus), orthographically harmonised Lingala |
| Status | Retained translation model of the project (CDS decision, 25 Sept 2026) |
| Licence | CC-BY-NC 4.0, inherited from the base model: no commercial use |
| Developed by | Congo Digital Services (CDS SARL), Brazzaville |
Against the base model, with beam-4 decoding:
- +8.63 BLEU on the in-house test set (79 sentences), p ≤ 0.001;
- +0.91 BLEU and +1.78 chrF on FLORES+ devtest (1,012 sentences), both p ≤ 0.001;
- human evaluation: 66 % of translations judged correct, 97 % recoverable (indicative, see Human evaluation).
Intended use
In scope: translating short to medium-length sentences from French into Lingala, for the project's use cases (health, education, agriculture, public administration). The model is accessed through the MALOBA inference gateway (alias maloba-traduction) or loaded directly.
Out of scope:
- any commercial use, which the CC-BY-NC 4.0 licence prohibits;
- Lingala → French translation, since the model is not fine-tuned in that direction;
- critical uses without human review (medical, legal);
- long documents, since each input is limited to 256 tokens.
How to use
import torch
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
repo = "Congo-digital-service/nllb-200-lingala-maloba-h1"
tokenizer = AutoTokenizer.from_pretrained(repo, src_lang="fra_Latn")
model = AutoModelForSeq2SeqLM.from_pretrained(repo, torch_dtype=torch.bfloat16).eval()
text = "Lavez-vous les mains avant de manger."
inputs = tokenizer(text, return_tensors="pt")
with torch.no_grad():
output = model.generate(
**inputs,
forced_bos_token_id=tokenizer.convert_tokens_to_ids("lin_Latn"),
num_beams=4,
no_repeat_ngram_size=4,
do_sample=False,
max_new_tokens=256,
)
print(tokenizer.batch_decode(output, skip_special_tokens=True)[0])
These are the decoding parameters used for every score reported here. Scores obtained with other decoding settings are not comparable.
Training data
-
Source:
Congo-digital-service/maloba-llm-alpaca-harmonise, configtrd, revisionc43dc00e0a2d8708fc185483e840829c16dfe695: the translation pairs of the TRAD category, annotated in Label Studio. -
Counts: 400 tasks, 1 excluded (its Lingala was an uncorrected pre-annotation): 399 unique pairs, 0 duplicates.
-
Split: 288 train, 32 validation, 79 test (
dans_test_v1flag). Leak-free: no source sentence is shared between test and train. The split is provided indecoupage.json. -
Lingala orthography: harmonised before training, with no human editing of the text:
- Unicode look-alikes corrected (ε → ɛ, ↄ → ɔ, …);
- tone marks removed;
- rules from the annotation guide applied;
- for each word, the majority ɔ/ɛ spelling in the corpus kept (frozen lexicon v1).
The model therefore writes Lingala following this convention. The original text is kept in the dataset's
output_brutcolumn.
Training procedure
| Setting | Value |
|---|---|
| Method | Full fine-tuning, Seq2SeqTrainer (transformers) |
| Epochs | 5 (45 steps) |
| Effective batch size | 32 (8 × 4 gradient accumulation) |
| Learning rate | 2e-5 |
| Label smoothing / weight decay | 0.1 / 0.01 |
| Maximum length | 256 tokens (longer lines dropped, never truncated) |
| Precision | bf16 |
| Seed | 42 |
| Model selection | best validation chrF → epoch 4 (checkpoint-36) |
| Hardware | 1 × NVIDIA A40 (48 GB), 27.4 GB peak memory, about 16 min for the full pipeline |
The weights at the repository root are those of the retained checkpoint (epoch 4). The checkpoint-36 folder keeps the original copy.
Validation curve (32 sentences, greedy decoding during training):
| Epoch | Step | Validation loss | Validation chrF |
|---|---|---|---|
| 1 | 9 | 2.7517 | 45.51 |
| 2 | 18 | 2.6551 | 56.23 |
| 3 | 27 | 2.6225 | 60.13 |
| 4 | 36 | 2.6085 | 62.40 (retained) |
| 5 | 45 | 2.6060 | 61.68 |
Validation loss keeps decreasing until the end: no overfitting. The 0.7 chrF drop at epoch 5 is within noise on 32 sentences.
Evaluation
Protocol: beam-4 decoding (parameters above), same test sets for the base model and the fine-tuned model. Two forms are reported:
- raw: outputs and references as they are;
- norm.: both sides passed through the MALOBA measurement normalisation (details in
mesures_avant_apres.json).
Harmonised in-house test set (79 sentences, project domain)
| Metric | Base | NLLB-Maloba-h1 | Delta |
|---|---|---|---|
| BLEU norm. | 23.37 | 32.00 | +8.63 |
| BLEU raw | 22.96 | 31.84 | +8.88 |
| chrF norm. | 54.38 | 61.74 | +7.36 |
| chrF raw | 53.34 | 60.82 | +7.48 |
FLORES+ devtest (1,012 sentences, external benchmark)
| Metric | Base | NLLB-Maloba-h1 | Delta |
|---|---|---|---|
| BLEU norm. | 15.49 | 16.39 | +0.91 |
| BLEU raw | 16.97 | 17.81 | +0.84 |
| chrF norm. | 50.31 | 52.09 | +1.78 |
| chrF raw | 49.42 | 51.21 | +1.79 |
Statistical significance
Paired bootstrap (sacrebleu, 1,000 resamples, seed 12345), Holm correction over the tests performed. With 1,000 resamples the smallest attainable p-value is 0.001.
| Test set | Metric | Base | h1 | Delta | p | Significant after Holm |
|---|---|---|---|---|---|---|
| In-house | BLEU | 23.37 | 32.00 | +8.63 | ≤ 0.001 | yes |
| In-house | chrF | 54.38 | 61.74 | +7.36 | ≤ 0.001 | yes |
| FLORES+ | BLEU | 15.49 | 16.39 | +0.91 | ≤ 0.001 | yes |
| FLORES+ | chrF | 50.31 | 52.09 | +1.78 | ≤ 0.001 | yes |
The gain is significant on both test sets, FLORES+ included. CDS had set, before training, an internal decision threshold of +1.0 BLEU on FLORES+; the +0.91 falls just short of that stricter rule, but the gain is statistically established.
Comparison with the value published by Meta
Meta publishes chrF++ scores for NLLB-200 on FLORES-200 devtest. Measured with the same metric (raw text, tokenize="flores200", word_order=2):
| Model | Source | spBLEU | chrF++ |
|---|---|---|---|
| NLLB-200 distilled 1.3B | published by Meta | not published | 46.2 |
| NLLB-200 distilled 1.3B | measured by CDS | 19.74 | 46.44 |
| NLLB-Maloba-h1 | measured by CDS | 20.66 | 48.31 |
Our measurement of the base model reproduces Meta's value within 0.24 point, which validates the protocol. FLORES+ and FLORES-200 have identical lin_Latn references (0 differences on 1,012 sentences).
The gain does not come only from the spelling convention. FLORES+ lin_Latn contains no ɔ or ɛ, whereas the training data does. A model that had only learned the MALOBA convention would have regressed on FLORES. It improves instead, under both our metrics and Meta's.
Human evaluation
Three Lingala-speaking validators judged, independently, the translations of 38 sentences drawn at random from the 79 test sentences (114 judgements out of 114, Argilla, 24–29 September 2026).
| Majority verdict | Sentences | Share | 95 % CI (Wilson) |
|---|---|---|---|
| Correct | 25 | 66 % | 50–79 % |
| Partially correct | 12 | 32 % | 19–48 % |
| Incorrect | 1 | 3 % | 0.5–14 % |
| Correct or partially correct | 37 | 97 % | 87–99.5 % |
- Short sentences fare better: 74 % correct among the 34 sentences of 25 words or fewer; the 4 longer paragraphs are all "partially correct".
- Human verdicts agree with the automatic score (mean chrF++ 70.3 for correct sentences, 57.0 for partially correct; Spearman ρ = 0.42, p = 0.008).
- Three outputs match the reference word for word; none of these sentences appears in the training or validation data.
- Indicative result: agreement between the three validators (Krippendorff's α = 0.19) is below the 0.60 threshold set before the campaign. Two of the three agree above it (α = 0.73); the third often ticked an ambiguously worded "register or tone" option.
- The judged translations were produced with greedy decoding (24 September), before beam-4 decoding became the protocol. On the 79 test sentences, the two decodings give 31.87 and 32.00 BLEU.
Checks
| Check | Result |
|---|---|
| Test set leakage | 0 source sentences shared with training |
| Output language | 0 outputs in French out of 79 |
| Brevity penalty (in-house test) | 0.872 (base) → 1.000 |
Limitations and biases
- Little data: 288 pairs and a single seed. The gain is significant, but its stability across seeds is not measured.
- Small evaluation sets: 79 test sentences and 32 validation sentences. The validation set proved too small to separate close models.
- Out of domain: the gain on FLORES+ is significant but small (+0.91 BLEU). The length ratio rises from 1.00 to 1.04.
- Spelling convention: the model writes without tone marks, with the majority ɔ/ɛ spelling of the MALOBA corpus. Consistent, but not validated word by word by linguists.
- Human evaluation indicative only (see above).
- One direction only: French → Lingala.
History and later iterations
Two further iterations were trained after h1, from the same base model and on the same test sets. Both were rejected; h1 remains the retained model.
| Iteration | Data added to the 288 TRAD pairs | In-house BLEU | FLORES+ BLEU | Decision |
|---|---|---|---|---|
| h1 | — | 32.00 | 16.39 | retained |
| h2 | 4,475 questions pre-filled by a model, then corrected by annotators | 32.41 | 15.93 | rejected (significant drop on FLORES chrF, p ≤ 0.001) |
| h3 | 4,693 answers back-translated with the base NLLB model | 31.28 | 16.36 | rejected (no gain) |
Adding machine-generated or machine-pre-filled data did not improve the model: human-translated pairs are what makes the difference.
Protocol concordance (correction of 25 Sept 2026)
The configuration specified beam search with four beams, but the parameter was not applied: the key was read under a different name. All scores published on 24 Sept 2026 were therefore produced with greedy decoding. The figure published at the time for the fine-tuned model (32.12 BLEU) also came from the model held in memory after training, which the saved artefact does not reproduce.
The defect is fixed, and every report now records the parameters actually passed to generate. Both protocols, on the same artefacts:
| Model | Test set | BLEU greedy | BLEU beam 4 | chrF greedy | chrF beam 4 |
|---|---|---|---|---|---|
| base | in-house test | 22.65 | 23.37 | 51.90 | 54.38 |
| base | FLORES+ devtest | 14.64 | 15.49 | 49.03 | 50.31 |
| h1 | in-house test | 31.87 | 32.00 | 61.48 | 61.74 |
| h1 | FLORES+ devtest | 16.02 | 16.39 | 51.63 | 52.09 |
Beam search helps the base model most: the h1 gain announced on 24 Sept (+9.47 BLEU) becomes +8.63 once both sides are measured correctly. The version published on 24 Sept remains available under the h1-v1-glouton-24sept tag.
Repository files
| File | Content |
|---|---|
model-0000*-of-00002.safetensors, config.json, generation_config.json | Weights and configuration of the retained model |
tokenizer*, special_tokens_map.json | NLLB-200 tokenizer, unchanged (no tokens added) |
checkpoint-36/ | Retained checkpoint (epoch 4), original copy |
decoupage.json | IDs of the train, validation and test splits |
mesures_avant_apres.json | All scores (raw, normalised, greedy, beam 4) |
RAPPORT.md | Run report (in French) |
training_args.bin | Training arguments |
Licence
CC-BY-NC 4.0, inherited from facebook/nllb-200-distilled-1.3B. Attribution to Meta (NLLB Team) and to the MALOBA project is required. Commercial use is prohibited. The training data (maloba-llm-alpaca-harmonise) is published under NOODL-1.0; the model keeps the licence of its base model.
- Base model: facebook/nllb-200-distilled-1.3B, by Meta AI (NLLB Team), licensed under CC BY-NC 4.0.
- Changes made: fine-tuned by Congo Digital & Service (CDS) on 288 French–Lingala human translations (configuration
trdofmaloba-llm-alpaca-harmonise). - Licence of this model: CC BY-NC 4.0, the same as the base model. Non-commercial use only; commercial use requires permission from Meta. CDS cannot grant commercial rights on these weights.
Citation
@misc{cds2026nllbmaloba,
title = {NLLB-Maloba-h1: Fine-tuning NLLB-200 for French-Lingala translation},
author = {{Congo Digital Services}},
year = {2026},
note = {MALOBA project, UNDP Republic of Congo}
}
@article{nllb2022,
title = {No Language Left Behind: Scaling Human-Centered Machine Translation},
author = {{NLLB Team} and Costa-juss{\`a}, Marta R. and others},
journal = {arXiv preprint arXiv:2207.04672},
year = {2022}
}
Contact
Congo Digital Services (CDS SARL), Brazzaville, for the MALOBA project: contact@congo-digital.com. Card updated on 30 September 2026.