Systems that identify a speaker's dialect from audio do very well on familiar recordings and then break on new ones. A fine-tuned Whisper encoder reaches 95.66% weighted F1 on the ADI-17 Arabic benchmark but drops to 62.74% F1 on unseen TV drama. A self-supervised wav2vec2 model loses about a third of its accuracy on new broadcast genres. The likely cause has been documented directly. In dialect corpora every speaker belongs to exactly one dialect, so a network can score well by recognizing voices instead of dialects. When that shortcut is made deliberately available, cross-domain accuracy falls to near chance Voice Conversion Improves Cross-Domain Robustness for Spoken Arabic Dialect Identification.
This proposal tests a structural answer to that failure. We decompose the dialect decision into a tree of binary choices, such as "Maghrebi or not" near the top and "Jordanian or Palestinian" near the leaves. At each branch point the model may use only a subset of acoustic cues, drawn from a bank of 2D spectro-temporal filters. These filters respond to joint patterns in time and frequency rather than to single spectral frames. The bank splits sound into interpretable bands: slow syllable-rate rhythm, formant (vowel-quality) structure, and fine pitch-harmonic structure. The harmonic structure is known to carry much of a speaker's identity. The bet is that different branch points need different bands. If each branch point is allowed to pick its bands, it can leave out the speaker-revealing ones where they are not needed, and the system should generalize better on exactly the closely related dialect pairs where flat models fail.
Core Claim
The proposal makes three claims, each checked against a matched control. First, among the cues chosen per branch point, the pitch-harmonic band will be chosen at fewer fine-grained nodes than at coarse ones. Second, the per-node choice will improve cross-domain accuracy on confusable dialect pairs over the same tree given all cues at every node. Third, it will degrade less than a flat classifier under a deliberately voice-biased training set.
The claim is about cue selection per branch point, not about hierarchy alone or spectro-temporal features alone. Hierarchy alone has a weak record in dialect identification: a text-based hierarchy gained only two F1 points over a flat network and lost to a shallow ensemble Hierarchical Deep Learning for Arabic Dialect Identification. The design therefore stands or falls on the uniform-cue tree ablation.
Relation to Prior Work
Three papers motivate the gap.
The Staircase Network Staircase Network: structural language identification via hierarchical attentive units uses a language-family prediction to softly reweight dialect scores. It cut North Sami dialect error from 17.79% to 6.81%. Every level of its hierarchy sees the same single acoustic stream, and that is the constraint we remove.
The eating-condition hierarchical SVM Automatic classification of eating conditions from speech using acoustic feature selection and a set of hierarchical support vector machine classifiers is the clearest evidence that binary nodes benefit from different features: it gained 12.8 points UAR in cross-validation. It is also the main cautionary result, because only 1.4 points survived on test data and per-node feature selection added nothing there. We take that as a warning that selection fitted to in-domain cross-validation overfits. Our selection is therefore tuned on speaker-held-out and domain-held-out development data.
Murphy et al. Towards spoken dialect identification of Irish show that persistent Connacht–Munster confusion survives a flat ECAPA-TDNN at 73% and acoustic-plus-text fusion at 76%.
Several papers supply the method.
- The 2D Gabor analysis in Spectro-temporal analysis of speech using 2-d Gabor filters provides patch mean removal. It also shows that harmonics, formants and onsets occupy separate regions of modulation space, which is what makes band-level cue choice physically meaningful.
- Comparing time-frequency representations for directional derivative features shows that the choice of amplitude compression matters for oriented filters, so we treat it as a tuned hyperparameter.
- Multi-stream spectro-temporal features for robust speech recognition groups Gabor filters into parallel streams and finds all streams complementary when fused with MFCCs, cutting word error by about 31% relative. We reuse its grouping but route streams per decision rather than concatenating everything.
- Language identification using spectro-temporal patch features pools filter responses into mean, variance and exceedance-rate statistics for language identification, reaching 13.1% EER on four distant languages. We adopt that pooling, and our target is far harder: neighboring dialects.
Two papers constrain the fusion design.
- Attention Is Not Always the Answer: Optimizing Voice Activity Detection with Simple Feature Fusion found that adding or concatenating MFCCs with frozen pretrained-model features beat cross-attention, so we fuse by projection and addition.
- Hierarchical Aggregation of Dialectal Data for Arabic Dialect Identification found that stacking all city, country and region language-model features hurt accuracy. That is direct evidence that dumping every cue into every decision is harmful, and it is the behavior our uniform-cue ablation reproduces.
Research Program
The front end applies a fixed bank of 2D Gabor filters to compressed log-mel patches with mean removal. Filters are grouped into roughly six streams by spectral scale and temporal rate:
- low-rate rhythm and prosody
- low-scale formant envelope
- mid-scale formant transitions, including diagonal orientations that track moving formants
- high-scale pitch harmonics
- fast onsets
- a residual band
Each stream is pooled per utterance into the mean, variance and exceedance statistics described above.
A frozen pretrained encoder supplies a shared base embedding $e$. We use Whisper-small or MMS, chosen by development performance. Keeping $e$ shared and frozen avoids the leaf overfitting that Ali reported for separately trained leaf networks.
Each internal node $n$ of the dialect tree is a binary logistic classifier on $e$ plus a gated sum of linearly projected streams. Its probability of taking the left branch is $p_n(x)=\sigma\big(w_n^\top(e+\sum_k g_{n,k}P_k s_k)\big)$, where $s_k$ is pooled stream $k$, $P_k$ a projection shared across nodes, and $g_{n,k}\in[0,1]$ a per-node gate with a sparsity penalty. To avoid the irrecoverable routing errors of hard cascades, the leaf probability is the product along the path:
$$P(d\mid x)=\prod_{n\in \text{path}(d)} p_n(x)^{[\text{left}]}\,(1-p_n(x))^{[\text{right}]}.$$
The whole tree is trained jointly with cross-entropy on $P(d\mid x)$. The gate penalty is tuned on a development set built from held-out speakers and, where available, held-out genres.
We compare two tree structures. One is geographic (region, then country). The other is learned by agglomerating classes using the flat baseline's confusion on the held-out development set. Comparing them tells us whether the structure itself matters.
Speaker leakage is measured directly. We train a linear probe to predict speaker-embedding clusters from each node's fused input, using clusters from a pretrained ECAPA speaker model because the corpora lack clean speaker labels. We compare this probe accuracy across nodes and across the gated and ungated variants.
Baselines
The naive reference is a flat linear classifier on the frozen encoder's pooled embedding, with no added cues and no tree. Every other system must beat it to justify any added machinery. Alongside it we report a per-domain majority-class rate.
The strongest existing method on in-domain ADI-17 is the Whisper-large encoder with attention pooling from ADI-20: Arabic Dialect Identification dataset and models. It reports 95.66% weighted F1 on ADI-17 and 62.74% F1 on zero-shot Casablanca. The strongest method on cross-domain robustness is k-NN voice-conversion augmentation with a fine-tuned MMS model from Voice Conversion Improves Cross-Domain Robustness for Spoken Arabic Dialect Identification. It reports 85.32% accuracy on MGB-3 ADI-5 and 80.73% average accuracy on MADIS-5, against 60.22% for the plain fine-tuned MMS. It is the strongest competitor because it attacks the same speaker shortcut by a different route.
We will rerun both on our splits with the same training data, the same encoder size and the same hyperparameter search budget. Our method uses that same encoder, frozen. For Irish, the reference is the fine-tuned pretrained ECAPA-TDNN from Murphy et al. at 73% accuracy, with 76% after fusing a text model. Our system is acoustic-only, so 73% is the fair target.
Beating the voice-conversion baseline means matching its in-domain accuracy within one point while exceeding it on MADIS-5 and on Casablanca. Alternatively, it means a statistically reliable gain when our tree is trained on top of voice-converted data, which would show the two approaches are complementary.
Three ablations isolate the key ingredient. The uniform-cue tree forces all gates to one; it is our approximation of a Staircase-style hierarchy with richer input. The flat fused model uses the same streams and the same additive fusion but a single multi-class head. The MFCC-stream tree replaces the Gabor streams with equally sized MFCC and delta statistics, which tests whether modulation bands matter or merely extra low-level features. If the uniform-cue tree matches the gated tree, the core claim is false.
Why not just…?
Why not just fine-tune Whisper or MMS flat with voice-conversion augmentation? This is the real threat. It already recovers MADIS-5 accuracy from 60.22% to 80.73%, and it may close most of the gap our method targets. We do not argue it away. We run it as a baseline, and we also run our tree on voice-converted training data. Our method's value then rests on two possible outcomes. One is gains on fine-grained ADI-17/20 pairs, where voice conversion has never been tested, since it was evaluated only on five coarse regions. The other is gains from stacking our method on top of voice conversion. If voice conversion plus a flat head matches our system on confusable pairs and on the biased-voice stress test, we will report that the cheaper generative fix suffices.
Why not just concatenate the spectro-temporal streams into a flat model? Zhao and Morgan found every stream complementary under flat fusion. That suggests concatenation may already capture most of the gain. On the other side, El Mekki et al. found that indiscriminate stacking of overlapping features hurts fine-grained dialect accuracy. The flat fused ablation settles the question directly. If it ties the gated tree on Casablanca and MADIS-5, the tree is unjustified.
Why not just trust the pretrained encoder, which may already encode these modulations? Large encoders plausibly represent formant motion and rhythm internally. If they do, the added streams are redundant. We test this with a linear probe that predicts each pooled Gabor stream from the frozen embedding. Streams that are almost perfectly predictable carry no new information, and if every stream is, the front end should be dropped. The MFCC-stream ablation separately checks whether any gain comes specifically from modulation structure.
Why not use soft hierarchical gating as in the Staircase Network? Its soft family-to-dialect weighting already avoids hard routing errors, and so does our path-product formulation. The difference is only in what each node sees. The uniform-cue tree is that comparison held at equal capacity.
Proposed Experiments
Training uses ADI-17, with ADI-20 for the added dialects. Splits are speaker-disjoint wherever speaker clustering allows. Evaluation covers four settings, each reporting weighted F1 and macro F1 over the known confusable groups (Levantine, Gulf, North African, and Modern Standard Arabic versus North African):
- in-domain ADI-17/20 test
- zero-shot Casablanca
- the MGB-3 ADI-5 to MADIS-5 transfer setting, after collapsing our leaves to the five regions so results are comparable with Abdullah et al.
- the Irish three-dialect corpus, reporting per-dialect accuracy with Connacht–Munster as the key pair
There are four decisive checks.
The first is the biased-voice stress test from Abdullah et al. We train with each target voice tied to one dialect, then measure how much each system's cross-domain accuracy collapses. The prediction is that the gated tree degrades far less than both the flat baseline and the uniform-cue tree.
The second is the gate pattern. The pitch-harmonic gate should fall toward zero at fine-grained nodes and stay open more often near the root. This prediction is falsifiable and interpretable, and the speaker probe should drop correspondingly at those nodes.
The third is whether the gated tree beats the uniform-cue tree on Casablanca and MADIS-5 confusable-pair macro F1 over at least three seeds, with bootstrap confidence intervals.
The fourth is whether the advantage persists when both systems are trained on voice-converted data.
If the gates do not differ across nodes, or the uniform tree ties, we conclude that per-node cue selection buys nothing for spoken dialects. Given the conflicting eating-condition evidence, that would itself be a useful negative result.
References
- Voice Conversion Improves Cross-Domain Robustness for Spoken Arabic Dialect Identification
- Hierarchical Deep Learning for Arabic Dialect Identification
- Staircase Network: structural language identification via hierarchical attentive units
- Automatic classification of eating conditions from speech using acoustic feature selection and a set of hierarchical support vector machine classifiers
- Towards spoken dialect identification of Irish
- Spectro-temporal analysis of speech using 2-d Gabor filters
- Comparing time-frequency representations for directional derivative features
- Multi-stream spectro-temporal features for robust speech recognition
- Language identification using spectro-temporal patch features
- Attention Is Not Always the Answer: Optimizing Voice Activity Detection with Simple Feature Fusion
- Hierarchical Aggregation of Dialectal Data for Arabic Dialect Identification
- ADI-20: Arabic Dialect Identification dataset and models