wav2vec2-large-xlsr-53-laos
Lao (ພາສາລາວ) speech recognition, fine-tuned from
facebook/wav2vec2-large-xlsr-53
with a CTC head on 101 hours of Lao speech.
Test CER 8.82% on 1,583 held-out clips.
Lao is not among the 53 languages XLSR-53 was pretrained on, and the script is unseen by the base model, so the entire character vocabulary and CTC head are learned from scratch here.
Results
| split | share of data | clips | hours | CER |
|---|---|---|---|---|
| validation | 5.1% | 1,619 | 5.7 | 11.00% |
| test | 4.9% | 1,583 | 5.5 | 8.82% |
The test split was never seen during training or validation.
CER, not WER. Lao is written without spaces between words; the spaces in these transcripts separate phrases, so word-level error rate largely measures where the model chose to break rather than whether it heard correctly. Only CER is reported here because it is the only one that means anything for this language.
Scoring normalises both sides with NFC, drops Unicode punctuation/symbol
categories and case, and keeps all combining marks. Do not score Lao with
whisper_normalizer.basic.BasicTextNormalizer: it maps every Unicode Mark to a
space, and 21.9% of Lao text is Mark-category (tone marks, vowel signs), so it
deletes them from reference and hypothesis alike and scores tone errors as
correct.
Compared with our other Lao fine-tunes

| model | params | CER |
|---|---|---|
| omniASR CTC v2 | 325M | 7.94% |
| Typhoon FastConformer-T | 114M | 8.44% |
| this model | 317M | 8.82% |
| Qwen3-ASR | 0.78B | 11.47% |
| Whistle | 29MB | 12.31% |
Every row is the same 1,583 held-out clips through the same scorer described above — which is what makes them comparable at all.
Usage
import torch, soundfile as sf
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
# REQUIRED on NVIDIA Blackwell (sm_120/sm_121). See "Hardware note" below.
torch.backends.cudnn.enabled = False
model_id = "Phonepadith/wav2vec2-large-xlsr-53-laos"
processor = Wav2Vec2Processor.from_pretrained(model_id)
model = Wav2Vec2ForCTC.from_pretrained(model_id).eval()
audio, sr = sf.read("clip.wav", dtype="float32") # 16 kHz mono
assert sr == 16000
inputs = processor(audio, sampling_rate=16000, return_tensors="pt", padding=True)
with torch.no_grad():
logits = model(inputs.input_values, attention_mask=inputs.attention_mask).logits
print(processor.batch_decode(logits.argmax(-1))[0])
Input must be 16 kHz mono. Resample before calling the model.
Fine-tuning technique
Base model and head
facebook/wav2vec2-large-xlsr-53 (317M parameters, 24 transformer layers,
hidden size 1024, do_stable_layer_norm=True). The pretraining heads
(quantizer, project_q, project_hid) are discarded and a fresh lm_head
is initialised for CTC over a 139-token vocabulary.
The convolutional feature encoder is frozen
(model.freeze_feature_encoder()): it is already a good general speech front
end, and fine-tuning it on one language mostly destabilises training.
Vocabulary
Character-level CTC vocabulary built from the training transcripts:
| group | count |
|---|---|
| Lao characters | 55 |
| Latin letters | 26 |
| digits | 10 |
| other (Thai characters appearing in the corpus) | 43 |
special ([PAD]=blank, [UNK], ` | `=word delimiter) |
| total | 137 (+2 unused <s>/</s> → vocab_size 139) |
Characters occurring fewer than 10 times across the corpus were dropped
(63 characters, 119 occurrences, 0.003% of all text). [PAD] is index 0 and
serves as the CTC blank.
Targets are normalised the same way as the scorer: NFC, punctuation and case
removed, all combining marks kept, spaces mapped to the | delimiter.
Punctuation is not modelled, since CTC would spend capacity on symbols the
metric discards anyway.
Hyperparameters
| epochs | 8 (7,200 optimizer steps) |
| batch size | 8 × 4 gradient accumulation = 32 effective |
| learning rate | 3e-4, linear schedule, 500 warmup steps |
| optimizer | AdamW, grad-norm clip 1.0 |
| precision | bf16 |
| gradient checkpointing | on |
SpecAugment (mask_time_prob) | 0.0 — see below |
| dropout (attention/hidden/feat_proj) | 0.0 — see below |
ctc_loss_reduction | mean |
ctc_zero_infinity | True |
| batching | length-grouped (clips of similar duration batched together) |
| checkpoint selection | best CER on validation, not final step |
Training took 5 h 07 m on a single NVIDIA GB10 (DGX Spark), peak 10.6 GB.
The best checkpoint was at step 4,500 of 7,200 — the run was carried to completion and the best weights restored, because CER dipped at step 4,000 and then improved again. Stopping at the first apparent plateau would have cost 0.21 CER points.
Why regularisation is turned off
This is the single most important detail for reproducing this model.
With mask_time_prob=0.05 and dropout 0.05 — the values standard wav2vec2
recipes use — stacked on top of bf16 and gradient checkpointing, CTC never
escapes the all-blank phase. The model predicted blank on 100% of frames with
CER pinned at 99.88% for more than 2,000 steps and did not recover.
Each setting is harmless alone. Measured on a 4-clip overfit test, loss at step ~250:
| configuration | loss | converges |
|---|---|---|
| bf16 only | 0.0097 | yes |
| SpecAugment only | 0.1618 | yes |
| gradient checkpointing only | 0.0082 | yes |
| dropout only | 0.0082 | yes |
| all four together | 3.34 | no — decodes nothing |
| bf16 + checkpointing, no regularisation | 0.0101 | yes ← used here |
Turning the two regularisers off took validation CER from 99.88% to 28.03% at the identical step 500.
The reasoning: standard recipes target ~8-hour corpora where overfitting is the binding risk. With 101 hours and a CTC head learning an unseen script from scratch, the binding risk is failing to learn alignment at all. Regularisation can be reintroduced once the model is transcribing.
If you adapt this recipe, run a 4-clip overfit test first. If the model cannot drive loss to ~0 on 4 examples in a few hundred steps, no learning rate will fix the full run — and the test answers that in two minutes instead of hours.
Hardware note: cuDNN on Blackwell
On NVIDIA Blackwell (sm_120/sm_121, e.g. GB10/DGX Spark) with cuDNN 9.25, wav2vec2 fails with:
RuntimeError: GET was unable to find an engine to execute this computation
The cause is wav2vec2's positional convolution — a grouped Conv1d with 1024
channels, kernel 128, groups 16. cuDNN has no engine for it on this
architecture in fp32, bf16 or fp16. The fix:
torch.backends.cudnn.enabled = False
PyTorch's native kernel handles it. This must be global: scoping it to the
module's forward with cudnn.flags(enabled=False) moves the identical error
into the backward pass, because autograd selects its kernel when backward runs,
after the context manager has exited. It affects inference as well as
training.
Training data
A Lao speech corpus of 31,996 clips totalling 112.4 hours, mean clip length 12.5 s, split as follows:
| split | share | clips | hours |
|---|---|---|---|
| train | 90.0% | 28,794 | 101.2 |
| validation | 5.1% | 1,619 | 5.7 |
| test | 4.9% | 1,583 | 5.5 |
Validation and test are disjoint and were separated on a hash of the clip name, so the assignment is stable and no clip appears in more than one split.
All audio was decoded, downmixed to mono and resampled to 16 kHz once before training.
Content is predominantly lectures, meetings, news and formal speech.
Limitations
- Domain. Trained on lecture/meeting/broadcast audio. Close-mic phone recordings in a room are out of domain and will score worse. Codec is not the issue — opus at 24 kbps costs only ~0.5 CER points; room acoustics and speaking style are what matter.
- Spontaneous and overlapping speech is markedly weaker than formal speech.
- Mixed Lao/English. The source transcripts are inconsistent — English is sometimes written in Latin script and sometimes transliterated into Lao script. The model inherits that inconsistency; clips where the two conventions disagree score roughly twice the average CER.
- No punctuation or casing. Removed from the targets by design.
- No language model. Greedy CTC decoding only. Adding an n-gram LM with
pyctcdecodewould likely reduce CER further. - Not for safety-critical use without independent evaluation on your own audio.
Paper
The benchmark behind the numbers above is written up in:
Phoummavong, P., Khieovongphachanh, V., Luangxaysana, K., and Bounnhavong, C. (2026). Benchmarking Fine-Tuned Speech-to-Text Models for Lao: CTC, Transducer, and Generative Architectures on a Common Test Set. Zenodo. doi:10.5281/zenodo.24391428
The PDF is mirrored in this repository as benchmarking-lao-stt-2026.pdf. The Zenodo DOI above remains the version of record.
It reports all four Lao fine-tunes trained on the same 112.4-hour corpus of 31,996 clips and scored on the same 1,583 held-out clips with a Lao-safe normalizer that preserves tone marks and vowel signs. It also documents four pitfalls specific to Lao: combining marks missing from a base vocabulary, NFKC decomposition of Lao characters by a subword tokenizer, a widely used normalizer that silently deletes tone marks during scoring, and an interaction of regularizers that stalls CTC training.
@misc{phoummavong2026lao,
title = {Benchmarking Fine-Tuned Speech-to-Text Models for Lao: CTC,
Transducer, and Generative Architectures on a Common Test Set},
author = {Phoummavong, Phonepadith and Khieovongphachanh, Vimontha and
Luangxaysana, Khanthanou and Bounnhavong, Chindavone},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.24391428},
url = {https://doi.org/10.5281/zenodo.24391428}
}
License
Released under the AIDCTECH license. See the LICENSE file in this
repository for the governing terms.
Note that the base model facebook/wav2vec2-large-xlsr-53 is Apache-2.0, and
the training data carries its own
licensing; both apply in addition to the terms here.
Citation
@misc{wav2vec2-large-xlsr-53-laos,
title = {wav2vec2-large-xlsr-53-laos: Lao speech recognition},
author = {Phonepadith},
year = {2026},
publisher = {AIDCTECH},
howpublished = {\url{https://huggingface.co/Phonepadith/wav2vec2-large-xlsr-53-laos}}
}