Abdul Hameed AzeemiBlog

Watching a Speech Model Learn a Low-Resource Language

We fine-tuned a 3-billion-parameter speech model on Pashto and it got better. This post looks at what actually changed inside it, layer by layer and neuron by neuron.

The same model, fine-tuned on Sindhi. Most of the improvement came from the model picking the right alphabet. It could already hear Sindhi fairly well.

One test clip, layer by layer

Layers from the zero-shot model at the bottom, the fine-tune's on top. As the swap point moves down, fine-tuned layers take over.

reference

مچمچۍ خپل لار نه هېروی

zero-shot model

layer 059

character errors

12

zero-shot: 12 · fine-tuned: 0

zero-shot layersfine-tuned layers
A 3.7-second Common Voice test clip, مچمچۍ خپل لار نه هېروی ("a mosquito does not forget its path"). Each step is a hybrid model: layers 0 to L from the zero-shot model, the rest from the fine-tune. Highlighted letters differ from the reference. What to notice: the fine-tune's layers 42 to 55 do almost all of the correcting. Taking only its layers from 56 up still leaves 11 errors; taking its layers from 42 up leaves just one, a missing space, which is fixed only once its layers from 10 up are included. The zero-shot model spells several sounds with Sorani Kurdish letters (ە ڵ ێ).

At Interspeech 2026, we presented our paper on dissecting automatic speech recognition (ASR) failures in low-resource South Asian languages. One of its clearest patterns was that a language's resource level changes the kind of errors a model makes, not just how many. The gap is still large. The best FLEURS word error rates in the paper ranged from 16% for Urdu to 44% for Pashto, while well-resourced languages are below 5%. Reflecting on this, we realized how little we know about the interplay between data and learning in ASR models. Then I read the recent essay Neural Networks Are Already Clean, which argues that the neurons of trained vision and language models are mostly interpretable on their own, and follows how they form during training. It inspired me to look at speech models the same way, and at how learning actually happens inside them. Understanding this would help in a few ways:

  • The science of how much data we need to train an ASR model that is good enough to deploy is still murky. Scaling laws for speech recognition exist, but they are fitted largely across languages in aggregate, while the data diversity a model needs likely varies from language to language, with different phoneme sets, scripts, dialects and morphology.
  • We don't yet have convincing explanations of why some subsets of data drive learning faster than others in ASR models. I spent a large part of my PhD developing algorithms for data-efficient learning in speech and language models, on tasks like audio anti-spoofing, speech recognition and neural machine translation. Why some data pruning and subset selection algorithms work better than others still needs much deeper exploration.
  • For low-resource languages such as Balochi, especially those spoken in remote areas, data collection is expensive to scale. It often takes months-to-years to recruit native speakers, record audio, validate it and prepare it as a high-quality dataset for training or fine-tuning. Knowing which properties of data make learning efficient would help direct these efforts, and could get us much further with smaller, better datasets. That would speed up how quickly we can lower word error rates for the long tail of languages and bring them into production-ready voice interfaces sooner rather than later.

Before asking which data drives learning, we wanted to see what fine-tuning changes inside a model when it adapts to a low-resource language. To get started, we fine-tuned Meta's OmniASR CTC 3B model. OmniASR was already trained on some Pashto, so we start from a model that can transcribe the language and watch it adapt. Throughout, "base" and "zero-shot" mean this off-the-shelf checkpoint before our Pashto fine-tuning. Pashto is spoken by tens of millions of people in Afghanistan, where it is an official language, and in Pakistan, mainly in Khyber Pakhtunkhwa (KPK) and parts of Balochistan, but it is still low-resource for speech technology. The findings were interesting:

  • Most of the improvement sits in the upper middle of the network. In hybrid models, putting base weights back into layers 0 to 27, or into the last four layers, costs little; the fine-tune's layers ~30 to 55 carry the gain.
  • Fine-tuning sharpened three Pashto contrasts that the base model held only weakly: ښ/خ, ځ/ز and ی/ې. The base model already separated them to some degree (83% separation for ښ/خ at its last layer), but almost none of its neurons passed our selectivity threshold, and the fine-tune has dozens. In northern dialects ښ and ځ are pronounced like خ and ز, so for these pairs the model is learning which words take which letter as much as how they sound.
  • Other contrasts were already strongly represented. The base model had sharp detector neurons for ټ/ت, ډ/د and even څ/س. Fine-tuning changed the strongest of them little, though more neurons passed the threshold in the last layers (for څ/س, 122 to 342 at layer 55).
  • The gain is concentrated in words the training transcripts contain. Words that appear there 10 to 999 times gained about 10 points of word accuracy, and words that never appear gained 2.4. That fits the model learning spellings, but we haven't separated spelling from better recognition of familiar words.
  • The fine-tune improved more on its own training clips than on new speakers (CER down 48% against 22%), and the gap is widest on clips the base model found very hard. That fits overfitting to those clips, but we haven't tested whether they help or hurt training.
  • Fine-tuning hurt on audio unlike its training data. On FLEURS, with its long read-aloud sentences, WER rose from 36% to 61% and the model stopped writing digits, which never appear in its training transcripts. Named-entity accuracy fell from 54% to 31%, and most of that comes back when the audio is cut into 10-second chunks.
  • We trained and scored on text with ي folded into ی, and on that text Common Voice WER falls from 29.0% to 23.4%. Standard Pashto spelling uses the two letters for different sounds, so the folded score measures an easier task.
  • Most of the gain is about script and spelling. About a third comes from clips the base model transcribed in Devanagari, and most of the rest from Urdu letters used in place of Sindhi ones.
  • The base model can already hear Sindhi. Hundreds of neurons in its middle layers separate implosives, retroflexes and aspirates, but its last layers lose that information before the output.
  • Fine-tuning mainly changed the top of the network. The gain is in layers ~45 to 59 and the output head, later than for Pashto. This is also where the model decides which script to write in.

The setup

The model is Meta's OmniASR CTC 3B v2. It is a wav2vec 2.0 encoder with 60 transformer layers (2,048 wide, with 8,192 feed-forward neurons each) that reads speech in 20 ms frames and outputs characters.CTC models output one character, or a blank, for every 20 ms frame and then collapse repeats. That means every letter in the output can be traced back to specific frames of audio. Since fine-tuning starts from the base weights and keeps the architecture, a given neuron in the fine-tuned model is the same unit as in the base model. This means we can compare the two models neuron by neuron, much like the Goodfire essay Neural Networks Are Already Clean follows neurons as they change during training.

We fully fine-tuned it on Common Voice Pashto (270 h from 1,738 speakers) using the low-resource recipe from the OmniASR paper. On the 15,507-clip test set, character error rate (CER) dropped from 11.15% to 8.37%, which works out to 15,302 fewer wrong characters.

For Sindhi, we fully fine-tuned it on 26.5 h of audio: our own 4-speaker read-speech set, plus FLEURS and Common Voice Sindhi.The same four speakers are in both our training and test sets, so some of the late-layer changes might be the model adapting to those specific voices. On our test and private sets (877 clips), CER dropped from 13.18% to 1.81%. On FLEURS it hardly changed (6.47% to 6.21%), because the base model was already writing proper Sindhi for that audio.

One caution about the numbers. We trained on text with ي folded into ی (along with a few Kaf, Heh and Alef variants), so the Pashto fine-tune only ever writes ی, while Common Voice references use both. We score against references folded the same way, which the paper's Table 4 calls Unicode normalization. On the 2,343 Common Voice clips our test set shares with the paper's, WER falls from 29.0% to 23.4%.

That folding changes the task. It isn't one of Unicode's normalization forms, all four of which keep the two letters apart, and in standard Pashto spelling ي is /i/ while ی can be /aj/ or /j/. We haven't audited how consistently Common Voice uses the two. The rest of this post scores folded text, so read its gains as gains on that easier task.

Which characters got better

To see which characters improved, we aligned each reference transcript with the outputs of both models and counted errors per character. Spaces make up 16% of the gain. The remaining characters fall into three groups, and each group behaves differently.

To see which characters improved, we aligned each reference transcript with the outputs of both models and counted errors per character. The base model transcribed 69 of the 877 clips at least partly in Devanagari, the script used for Sindhi in India. These clips alone account for about a third of the gain.On FLEURS, the base model used Devanagari for only 2 of 980 clips. Something about our recordings (the speakers, the microphone or the read-speech style) seems to have pushed it toward Hindi and Urdu conventions. For the rest, the largest drops are in letters that exist in Sindhi but are written differently in Urdu.

Base modelFine-tuned
Each row is a letter, and the line runs from the base model's error rate to the fine-tuned model's. Vowel letters improved the most in absolute terms, and Pashto-specific consonants lost between a third and half of their errors. Arabic loan letters improved a lot too. Most Pashto speakers pronounce them like native letters (ا ک س ت ه), so much of that gain is likely spelling, though some speakers keep sounds like /q/ for ق.Each row is a letter, and the line runs from the base model's error rate to the fine-tuned model's. Every group drops to roughly 1 to 4%. The base model wrote ڪ as Urdu ک 304 times (the fine-tuned model did it once), ي as ے 211 times and ٽ as ٹ 86 times. Those are the same sounds written in a different alphabet.

The letter swaps point the same way. The most common single confusion is between ی (which in our folded text covers both Yeh letters) and ې /e/, and the Pashto fricatives and affricates (ښ ځ څ) were often written as the closest Persian or Urdu letter.

For Sindhi, then, the useful question is where the model decides which alphabet to write in. The layer-swapping experiment below gets at that.

Where in the network the gain lives

To find out which layers matter, we built hybrid models that take the first L layers from one model and the rest from the other, by swapping the residual stream after layer L. If the gain comes from layers above L, a hybrid with base-model layers at the bottom and fine-tuned layers on top keeps it.

How a hybrid is built. The line is the residual stream, the representation each layer reads from and writes to. It goes through the first model's frontend and layers 0 to L, switches over, and finishes in the other model's remaining layers and output head. The numbers are the hybrid's measured CER and the share of the gain it keeps.
base below L, fine-tuned abovefine-tuned below L, base above
Share of the fine-tuning gain kept by each hybrid. Gain kept is the share of the CER drop () that a hybrid holds on to. The blue line stays close to 1 until layer 27, so at inference the fine-tune's lower layers can be swapped back to base weights at little cost. The orange line stays near 0 until layer 39 and reaches 0.91 by layer 55, which means the base model's last four layers and output head work fine on top of fine-tuned features. Each hybrid swaps a contiguous block, so this locates the gain in ranges of layers rather than single layers.The blue line holds until about layer 36 and then falls steadily to 0.24 at layer 59. The gain is in layers ~45 to 59, and the output head alone accounts for about a quarter of it. The orange line drops well below zero in layers 15 to 42: when fine-tuned middle layers feed the base model's top layers, the hybrid does worse than the base model (CER up to 21%) and writes more than twice as many clips in Devanagari. Hover over the chart for the counts.

That dip is the best evidence for where the script choice happens. The base model's top layers seem to read the fine-tuned middle-layer features as Sindhi in Hindi script, and Devanagari only disappears once the fine-tuned layers from about 45 upward are in place.

What fine-tuning broke

The paper's taxonomy also shows what got worse. We ran its analysis code on the model before and after fine-tuning, on the same test clips as the paper.FLEURS: all 512 ps_af test clips, with the paper's named-entity labels. Common Voice: our test set comes from a newer release than the paper's CV 22.0, so models are scored on the 2,343 clips both share. WER and CER use the paper's text normalization plus folding of Yeh, Kaf, Heh and Alef variants.

On FLEURS, which has long read-aloud sentences that Common Voice lacks, the Pashto fine-tune ends up worse than where it started: WER rises from 36% to 61%. Deletions go from 10% of errors to 51%, five clips come out empty, and utterances of 21 or more words go from 36% to 61% WER. The model was trained on short clips, mostly 4 to 5 seconds, and stops emitting characters on long inputs. Splitting the audio into 10-second chunks brings deletions back to 20% (WER 51%).

Digits stay lost even with chunking. The fine-tune never writes one (9 of 107 numerals right before, 0 after), and none of the 227,754 transcripts in our training set contains a digit. With chunking, 85 of the 107 numbers line up with a word in the output rather than a gap; we haven't checked how many of those are the right number written out in words. Named-entity accuracy on FLEURS drops from 54% to 31%, but chunking brings it back to 49%, so much of that loss goes with the long-input failure. We haven't checked how many of the names appear in the training text. Short Common Voice clips went the other way, with one-to-five-word WER falling from 48.9% to 38.3%, which shrinks the paper's finding that short clips are harder than long ones.

For Sindhi the same check comes back clean. On FLEURS, WER went from 19.7% to 19.0%, deletions stayed at 14% of errors, and numerals improved (74 of 269 right before, 88 after). The Sindhi training mix included FLEURS training data, with its long sentences and digits, so the fine-tune saw the kind of audio FLEURS tests. On the paper's 40 Common Voice Sindhi clips, WER fell from 23.0% to 13.0%, mostly on short clips (one to five words: 57.3% to 14.6%).

The paper's error taxonomy on the same Pashto test clips. Columns are the model before and after fine-tuning, plus the fine-tune run on 10-second chunks, and rows are the paper's measures. The best value in each row is in bold. The error mix bar splits errors into substitutions, deletions and insertions. Rows that don't apply to a test set are left out.

How readable each character is, layer by layer

Next we used CTC forced alignment to tag 40,000 frames with the reference character aligned to them, and at every fourth layer trained a linear probe to name that character from each model's representation, testing on held-out clips.We also tried the cluster version of the codebook and phoneme co-occurrence analysis in Appendix D of wav2vec 2.0, a count of character-selective neurons, and CKA similarity to the base model. The selective-neuron count follows the probe closely. The cluster score mostly does too, except at layers 44 and 48, where the fine-tune scores slightly below the base model. CKA mostly falls with depth, with a small rise from layer 20 to 24, and a change in a lower layer also shows up in every layer above it, which is why the layer swap is the better guide to where change happens. All of these are in the data appendix.

How well a linear probe names the character, by layer.

Up to layer 24 the two models give similar probe accuracy. After that, characters get harder to read out of the base model linearly (0.825 at layer 40, 0.805 at layer 59), while the fine-tune rises to about 0.87. A linear probe only finds what a linear readout can reach, so the base model may still hold that information in a form the probe misses. At the top layer a probe confuses ښ with خ on 14% of frames for the base model and 4% for the fine-tune, and ځ with ز on 16% versus 7%.

Sindhi follows the Pashto pattern, more strongly. The base model's probe accuracy peaks at layer 40 (0.909) and drops to 0.894 at the top, while the fine-tune keeps rising to 0.959. The base model could already read Sindhi-specific consonants: by layer 32, a probe gets implosives and retroflexes from it with 0.89 to 0.99 accuracy.

Two letters at a time

We can also look at the representations directly. For each letter in the contrast pairs we took 150 frames, one per aligned occurrence, and projected each layer's 2,048-dimensional representation down to two dimensions. Pick a pair and drag the layer slider to see whether the two letters come apart.The projections use UMAP on the top 50 principal components, rotated to line up from one layer to the next. UMAP distorts distances, so treat the map as an illustration. The separation score is the measurement: the share of frames whose 10 nearest neighbours from other clips mostly have the same letter.

Base model
Fine-tuned
Two letters, layer by layer. Coloured points are the two letters of the selected pair and grey points are all the other letters. The line chart shows the separation score at each layer, with the current layer marked. In the base model ښ/خ stays around 83%, and it reaches 96% only in the fine-tune's top layers. ی/ې goes from 64% to 87%. ټ/ت, by comparison, sits around 95% in both models from layer 24 on.Most Sindhi pairs are almost perfectly separated by layer 24 in both models. Near the top, the base model loses a few points on the weakest pairs (ڳ/گ drops from 93% to 88% and ڀ/ب from 92% to 86%), while the fine-tune ends at 98 to 99%.

Neurons that separate letter pairs

For each contrast pair we scored every feed-forward neuron in the relevant layers by d′, which measures how far apart a neuron's average input is for the two letters relative to their spread.We use each neuron's pre-activation (its summed input before the nonlinearity), so negative responses count too. Neurons are selected on half the clips and scored on the other half, so a high score can't come from the selection itself. The panels count neurons with |d′| above 1 at each layer. That is a narrow measure: a model can separate two letters through many weakly selective neurons, none of which passes the threshold.

Base modelFine-tuned
Each panel has its own vertical scale. Three pairs (marked sharpened in fine-tuning) had almost no neurons above the threshold in the base model and gained dozens. Their best base-model neurons were already somewhat selective (|d′| up to 1.26 for ښ/خ), so fine-tuning strengthened a distinction that was weakly there. They are the same confusions that fell most in the error counts. The other five pairs were already separated by hundreds of neurons. څ/س is an odd case: its output errors fell from 152 to 45 while its strongest neurons changed little, though in the last layers more neurons passed the threshold (122 to 342 at layer 55). ټ/ت (259 to 394) and ډ/د (443 to 603) show the same late increase.Each panel has its own vertical scale. Every Sindhi contrast is well separated at layer 44, often by more than a thousand neurons. In the base model those neurons thin out toward layer 59 (ڻ/ن goes from 801 to 155), while the fine-tune keeps them and adds more at the top (1,562 at layer 59). Only ڳ/گ and ڀ/ب were weak in the base model from the start.

Where the new neurons came from

The neurons that separate the sharpened contrasts after fine-tuning were already in the base model, doing a weaker version of the job: for that contrast they ranked anywhere from 11th to about 3,000th. Most of them changed by extending to nearby sounds, which fits the essay's observation that neurons grow into related territory. One neuron went the other way: an ښ detector in layer 40 now fires mostly on ې, which may be a context effect, since ښ is often followed by ې.

Most of the top-layer neurons that carry Sindhi contrasts after fine-tuning existed in the base model as broader units. A velar neuron turned into a ڳ detector, and an implosive neuron learned to respond negatively to plain ب. Detectors in the middle of the network, like the ٽ neuron in layer 44, barely changed.

Select a neuron to see what pushes it most positive and most negative before and after fine-tuning, and listen to the half-second of audio around its strongest frames.

Neuron explorer. Poles show the character mix of the 200 frames that drive each neuron most positive and most negative. Dark bars are the two letters of the pair.

The three sharpened contrasts are dialect-sensitive. In many northern Pashto dialects ښ is pronounced close to [x], like خ, and ځ close to [z], so the model may be learning dialect and word context as much as sound. The clips in the explorer are the quickest way to check.

What the training data tells us

Back to the question from the introduction: which data drove the learning? Retraining is expensive, but we can look at the data the model was trained on and at how the model behaves on it. Common Voice Pashto turns out to be broad and shallow: 227,754 clips of 226,767 different sentences, so almost every sentence is read once, by 1,738 speakers who contributed a median of 44 clips each.None of the test speakers appear in training, and only 1% of test sentences do. The ten most prolific speakers account for 6% of the clips.

First, we counted how often each word in the test set appears in the 270 hours of training text, and compared word accuracy before and after fine-tuning.

Zero-shotFine-tuned
Word accuracy by how often the word appears in the training text. All 126,391 words of the Common Voice test set, grouped by their count in the training transcripts.

The gain is concentrated in words the training transcripts contain: about 10 points of word accuracy for words that appear there 10 to 999 times, against 2.4 points for words that never appear. That fits the model learning how these words are spelled. It also fits better recognition of frequent words and familiar sound sequences, and the groups start from different accuracies, so separating spelling from sound would need matched word groups or minimal pairs. "Never appear" means absent from our fine-tuning text; the base model may have seen those words in its own training.

Letters behave differently. Rarer letters improved more: ښ, ځ, څ, ط and ض lost 38% to 58% of their errors with only 12,000 to 53,000 training occurrences each, against about 700,000 for و. So frequency in the training text didn't predict which letters improved, although only a learning curve would show how many examples a letter needs. The two exceptions, ۍ and ئ (16% and 9% fewer errors), are grammatical endings, where the error is a spelling choice that more audio doesn't settle.

Second, we scored 5,000 training clips and 2,000 held-out test clips with both models. On training clips the fine-tune cut CER by 48%; on new speakers, by 22%. The gap depends on how hard a clip was to begin with.

Training clipsHeld-out test clips
How much fine-tuning reduced CER, by how hard the clip was for the zero-shot model. 5,000 training clips sampled from four of the 46 training shards, and 2,000 held-out test clips with one clip per speaker. Clips the zero-shot model already transcribed perfectly are left out.

The hardest clips show the biggest gap. Training clips that the zero-shot model got mostly wrong (CER above 50%, 4% of the sample) were roughly halved, from 87% to 43%, while hard test clips improved less, from 97% to 83%. That gap fits overfitting to those training clips, but the comparison has confounds: the training sample comes from four shards, the test sample has one clip per speaker, and the two hard groups start at different error rates. Many of the hard clips may be noisy recordings or transcripts that don't match the audio. Whether they hurt training needs a retraining experiment that drops them and compares against dropping the same number of random clips. Speakers who contributed many clips were not fit more than others: clips from speakers with over 1,000 clips improved by the same relative amount as clips from speakers with 10 to 49.

What this suggests for training

These are predictions from the analysis above, not yet tested.

  • Train less of the network. In the hybrids, the fine-tune's layers 0 to 27 can be replaced with base weights at little cost. Freezing them during training might keep most of the gain while updating far fewer weights. They would still run on every forward pass, and their updates may have shaped how training reached its solution, so this needs measuring. It is a cheap experiment to run.
  • Cover what you will be tested on. The training transcripts contain no digits, and the clips are short. Concatenating clips into longer examples and adding FLEURS-style data would test whether missing coverage explains the FLEURS losses.
  • Test the hardest clips as a pruning target. About 4% of training clips start with CER above 50%, and the fine-tune improves on them much more than on similar clips from new speakers. Dropping them and retraining, against a baseline that drops the same number of random clips, is the obvious first subset-selection experiment, and the data-pruning methods from earlier work could rank the rest.
  • Be careful with character folding. Folding the Yeh letters removed a letter the base model wrote about 15,000 times on the test set, and standard Pashto spelling needs it.

The Yeh letters are also the question we want to answer next. The paper treats the two Pashto Yeh letters, ي and ی, as an encoding artifact, but standard Pashto spelling uses them for different sounds. We want to audit how consistently Common Voice uses them, and check whether the base model's representations separate frames aligned to ي from frames aligned to ی. If they do, folding the two throws real information away.

Caveats

  • Labels are characters, not phonemes. Short vowels are unwritten in Pashto script, so most vowel information is out of reach.
  • Frame labels come from CTC forced alignment with the fine-tuned model. CTC emission peaks are not reliable phonetic boundaries, so a frame is aligned to a reference character rather than verified as that sound, and aligning with the fine-tune may favour it. We haven't rechecked the results with an independent aligner, shifted frame offsets or a hand-checked subset.
  • A transformer's representation of a frame also carries surrounding letters and words, so the probes and neurons may pick up context as well as the aligned sound.
  • Probes are tested on held-out clips, but not on held-out speakers.
  • Rare letters have a few hundred to a few thousand frames each, and frames from the same clip and speaker are correlated. We haven't computed confidence intervals, so treat small per-letter differences as noise.
  • We haven't tested causation. Ablating these neurons would show whether the model actually depends on them.

Method and sources

Common Voice Pashto test and dev subsets, 500 to 3,000 clips per analysis, plus the FLEURS ps_af test set. Code is in asr/analysis/modal_ctc_interpret.py, asr/analysis/char_confusions.py and asr/analysis/finetune_taxonomy.py, asr/analysis/data_experiments/, and results in asr/results/interpretability/.

Abdul Hameed Azeemi, Ihsan Ayyub Qazi, Maryam Mustafa and Agha Ali Raza, Dissecting ASR Failures in Low-Resource South Asian Languages, Interspeech 2026.

Nick Cammarata, Neural Networks Are Already Clean, Goodfire.

Baevski, Zhou, Mohamed and Auli, wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representations, Appendix D.

Omnilingual ASR Team, Omnilingual ASR: Open-Source Multilingual Speech Recognition for 1600+ Languages.

Data

Error rate per letter
Character information by layer (probe, cluster score, selective neurons, CKA)
Neurons separating each letter pair, by layer