← PROVA‑MG overview
PROVA‑MG  /  Chapter III of IV

Chapter III: The PROVA‑MG Methodology

PROVA‑MG — Probabilistic Routing Of Variational Alignments for Malagasy — is formulated as a latent‑variable probabilistic system that aggregates heterogeneous evidence under explicit calibration and explicit constraints. The present chapter derives the framework, specifies its five components and their algorithmic implementation, analyses their complexity, and describes their integration with the license‑first data pipeline.

Chapter Introduction

A latent-variable reading of low-resource ASR

Low‑resource ASR is treated, in the present work, not as a single model trained on a single objective with a single source of supervision, but as a probabilistic system that aggregates heterogeneous evidence. The substrate of that system is a graphical model in which the transcript y is jointly generated with several latent variables — dialect d, register r, code‑switching identity c — conditioning the acoustic emission and the language‑model prior. The estimation procedure is a constrained variational EM whose constraints are derived from the agreement of heterogeneous teachers, from a calibrated confidence head, and from a typological prior trained on the Austronesian family.

The chapter is organized in three parts. Part III.1 derives the theoretical formulation of the system: graphical structure, likelihood, prior, posterior approximation, and learning objective. Part III.2 specifies the five interlocking components in algorithmic form, with derivations, pseudocode, and complexity analysis. Part III.3 describes the training protocol, the optimization schedule, and the integration with the data pipeline of Chapter II.

Part Three — A

III.1 Theoretical formulation

III.1.1 The generative model

Let x denote the acoustic signal and y the transcript. The latent variables of the system are d (dialect, categorical with K_d levels), r (register, categorical with K_r levels, distinguishing read, broadcast, conversational, and ceremonial speech), and c (per‑segment code‑switching identity, taking values in {MG, FR, mixed}). The generative model factorizes as

$$p(x, y, d, r, c) = p(d)\,p(r)\,p(c \mid r, d)\,p(y \mid d, r, c)\,p(x \mid y, d, r)$$

which encodes three modelling decisions. The dialect and register are marginally independent, reflecting the empirical observation that a Merina speaker can be recorded in either a read or a conversational register. The code‑switching identity is conditioned on register and dialect because code‑switching is itself sociolinguistically structured. The acoustic emission depends on the transcript, the dialect, and the register, but not on the code‑switching identity beyond what is already encoded in the transcript and the dialect.

III.1.2 The variational posterior

Exact inference under the model above is intractable. A mean‑field variational posterior is therefore introduced:

$$q(y, d, r, c \mid x) = q_y(y \mid x)\, q_d(d \mid x)\, q_r(r \mid x)\, q_c(c \mid x, y)$$

Each factor of q is parameterized by a neural network. The factor \(q_y\) is the transcript posterior of an ASR head; the factors \(q_d\) and \(q_r\) are classification heads predicting dialect and register from the acoustic input; the factor \(q_c\) is a sequence labeller predicting code‑switching identity per segment of the transcript. The mean‑field factorization is admissible because the model decouples d, r, and c at the prior level; residual dependence is captured by the conditioning of every factor on x.

III.1.3 The evidence lower bound

The learning objective is the standard evidence lower bound (ELBO) on the marginal log‑likelihood of the observed data:

$$\begin{aligned} \log p(x, y) \;\ge\; \mathcal{L}_{\mathrm{ELBO}}(\theta, \phi) &= \mathbb{E}_q\big[ \log p_\theta(x, y, d, r, c) \big] - \mathbb{E}_q\big[ \log q_\phi(y, d, r, c \mid x) \big] \\ &= \mathbb{E}_q\big[ \log p_\theta(x \mid y, d, r)\, p_\theta(y \mid d, r, c) \big] - \mathrm{KL}\big( q_\phi \,\|\, p \big) \end{aligned}$$

where \(\theta\) parameterizes the generative model and \(\phi\) the variational posterior. On the supervised subset of the data the transcript y is observed and the corresponding factor of q is replaced by a delta on the gold transcript; on the unsupervised subset y is latent and the variational posterior is unrolled jointly with the other latent factors.

III.1.4 The constrained variational EM

On the union of the supervised and unsupervised subsets the parameters \(\theta\) and the variational posterior q are estimated jointly by an EM procedure. The E‑step minimizes the Kullback‑Leibler divergence between q and \(p_\theta(\,\cdot \mid x)\) subject to a constraint set C; the M‑step maximizes the expected complete‑data log‑likelihood plus a parameter regularizer:

$$\begin{aligned} \textbf{E-step:}\quad & q^* = \operatorname*{argmin}_{q \,\in\, C}\ \mathrm{KL}\big( q \,\|\, p_\theta(\,\cdot \mid x) \big) \\ \textbf{M-step:}\quad & \theta \leftarrow \operatorname*{argmax}_{\theta}\ \mathbb{E}_{q^*}\big[ \log p_\theta(x, y, d, r, c) \big] + \lambda\, R(\theta) \end{aligned}$$

The constraint set C is the locus of the methodological contribution. It comprises four constraints, each derived from one of the open problems identified in Chapter II.

III.1.5 The four constraints

$$\text{KL drift bound (C2):}\qquad \mathbb{E}_x\big[\, \mathrm{KL}\big( q^{(n+1)}(\,\cdot \mid x) \,\|\, q^{(n)}(\,\cdot \mid x) \big) \,\big] \le \epsilon$$

Under the four constraints, the E‑step is a constrained optimization that admits, in the discrete‑support case, a projected‑gradient or barrier‑method implementation; the M‑step retains its standard gradient form on \(\theta\). A short convergence argument (Section III.3) shows that under C1‑C4 the iteration cannot exhibit the runaway collapse characteristic of unconstrained pseudo‑labeling.

Part Three — B

III.2 The five components

The theoretical formulation of Part III.1 is instantiated by five interlocking components. Each is specified below with its derivation, its pseudocode, and a complexity analysis.

Component 3.1

Heterogeneous foundation-model co-inference

Whisper‑large‑v3, MMS, and Wav2Vec2‑BERT are treated as three approximate posteriors over the transcript rather than as competing baselines. Each model encodes a different inductive bias (weak supervision, religious‑text alignment, self‑supervision); their disagreement on a given Malagasy segment is therefore informative. For each unlabeled segment x, the approximate posteriors \(q_W(y \mid x)\), \(q_M(y \mid x)\), \(q_B(y \mid x)\) are computed in n‑best form and a learned routing function is defined:

$$r : \big( q_W(y \mid x),\, q_M(y \mid x),\, q_B(y \mid x) \big) \;\to\; \{\, \text{train\_high\_confidence},\ \text{route\_to\_human},\ \text{hold\_in\_reserve},\ \text{discard} \,\}$$

The features consumed by r include: per‑teacher top‑1 confidence (calibrated), n‑best overlap between teachers, pairwise edit distance between top‑1 transcripts, posterior entropy of each teacher, length agreement, and the Jensen‑Shannon divergence between teacher posterior distributions over a shared lattice. The routing function is trained as a gradient‑boosted classifier on the supervised set, with the four routing outcomes as targets supplied by the agreement of each teacher's top‑1 with the gold transcript.

Algorithm 3.1 — Co-inference routing for each unlabeled segment x: q_W ← whisper_large_v3.posterior(x) q_M ← mms.posterior(x) q_B ← wav2vec2_bert.posterior(x) f ← features(q_W, q_M, q_B) decision ← r(f) if decision == train_high_confidence: yhat ← consensus_decode(q_W, q_M, q_B) emit (x, yhat, conf_cal) elif decision == route_to_human: queue.enqueue(x, q_W, q_M, q_B) elif decision == hold_in_reserve: reserve.put(x, features=f) else: discard(x)

Complexity. The dominant cost is the three forward passes through the foundation models. Let n denote the number of segments and T the mean segment length in frames. Inference is O(n T (d_W + d_M + d_B)), where d_* is the model dimension. Feature extraction and routing add O(n B^2) where B is the n‑best width. The routing classifier itself is sub‑linear in n. The dominant memory cost is the storage of the three posteriors, mitigated by retaining only the top‑B paths.

Component 3.2

Typologically informed Bayesian priors

Malagasy belongs to the Malayo‑Polynesian subgroup. Its phonotactics and morphology overlap measurably with Indonesian, Malay, Cebuano, and Tagalog, all of which have substantially larger text corpora. A phonotactic and morphotactic prior \(P_{\mathrm{typ}}\) is trained on Austronesian text and incorporated into decoding through a calibrated log‑linear mixture:

$$\log P(y \mid x) \propto \log P_{\mathrm{acoustic}}(x \mid y) + \alpha \log P_{\mathrm{LM\text{-}MG}}(y) + \beta \log P_{\mathrm{typ}}(y)$$

The hyperparameters \(\alpha\) and \(\beta\) are tuned on the development set by grid search subject to the constraint that the mixture remains a valid log‑posterior (positive weights summing to a fixed total). \(P_{\mathrm{typ}}\) is implemented as a sub‑word language model over a shared phonotactic vocabulary; transfer to Malagasy proceeds through a morphological mapping that aligns Austronesian affixes to their Malagasy cognates.

Algorithm 3.2 — Typological prior integration # Training of P_typ corpus ← Indonesian + Malay + Cebuano + Tagalog + Malagasy (text) vocab ← shared_BPE(corpus, size=8000) P_typ ← train_LM(vocab, corpus) # Decoding for each beam hypothesis y in beam_search: s_acoustic ← log P_acoustic(x | y) s_LM ← alpha * log P_LM_MG(y) s_typ ← beta * log P_typ(y) score(y) ← s_acoustic + s_LM + s_typ

Complexity. The prior is evaluated during beam search, adding O(B T |V|) to the decoding cost, where |V| is the vocabulary size and B the beam width. The cost is amortized by caching the language‑model state across beam expansions.

Component 3.3

Constrained variational EM for iterative pseudo-labeling

On the extended dataset \(D = D_{\mathrm{sup}} \cup D_{\mathrm{unsup}}\), parameters \(\theta\) and latent transcripts are inferred jointly through the constrained EM derived in Part III.1. The four constraints C1–C4 act on the E‑step support.

$$\begin{aligned} \textbf{E-step:}\quad & q^*(y \mid x) = \operatorname*{argmin}_{q \,\in\, C}\ \mathrm{KL}\big( q \,\|\, p_\theta(y \mid x) \big) \\ \textbf{M-step:}\quad & \theta \leftarrow \operatorname*{argmax}_{\theta}\ \mathbb{E}_{q^*}\big[ \log p_\theta(y_{\mathrm{sup}}, y_{\mathrm{unsup}}, x) \big] + \lambda\, R(\theta) \end{aligned}$$
Algorithm 3.3 — Constrained variational EM theta ← init_from_supervised(D_sup) for iteration n = 1, ..., N: # E-step (per segment) for each x in D_unsup: n_best ← decode_top_B(theta, x) n_best ← filter_by_confidence(n_best, tau) # C1 n_best ← intersect_with_teachers(n_best, q_W, q_M, q_B) # C3 n_best ← filter_by_typology(n_best, P_typ, eta) # C4 q_star(. | x) ← renormalize(n_best) assert KL(q_star || q_prev[x]) ≤ epsilon # C2 # M-step theta ← sgd_step(D_sup ∪ {(x, q_star) : x in D_unsup}) q_prev ← q_star if held_out_loss(theta) - prev_loss > delta: break

Non‑collapse argument. Without constraints, iterative pseudo‑labeling can exhibit confidence inflation accompanied by accuracy degradation — the canonical collapse mode. Under C1 (confidence floor on calibrated confidence) the support of \(q^*\) cannot expand into low‑confidence regions; under C2 (KL drift bound) the variational posterior cannot move arbitrarily fast across iterations; under C3 (teacher agreement) the support is intersected with the union of teacher n‑best lists, which by construction reflects independent inductive biases; under C4 (typological consistency) the support is pruned of transcripts that violate Austronesian phonotactics. The intersection of these four constraints bounds the iterative drift in both confidence space and hypothesis space.

Complexity. Each EM iteration is \(O(|D_{\mathrm{unsup}}| \,(\text{decoding} + \text{feature extraction}))\) in the E‑step and O(|D| epochs) in the M‑step. The total cost is N times that of a single fine‑tuning run, with N typically between three and six.

Component 3.4

Latent-variable decomposition: dialect, register, code-switching

The graphical model of Part III.1 makes dialect, register, and code‑switching latent variables jointly inferred with the transcript. The acoustic model factorizes as p(x | y, d, r) and the language model as p(y | d, c, r). Dialect‑specific adapters condition on d, register‑specific parameters on r, and code‑switched segments are routed through a French acoustic model.

$$\begin{aligned} x &\to ( d,\, r,\, c,\, y ) \\ d &= \text{dialect (Merina, Betsimisaraka, Sakalava, Antandroy, \ldots)} \\ r &= \text{register (read, broadcast, conversational, ceremonial)} \\ c &= \text{per-segment code-switching identity (MG, FR, mixed)} \end{aligned}$$

Approximate inference proceeds by mean‑field updates: each factor \(q_d\), \(q_r\), \(q_c\) is updated holding the others fixed, and the transcript factor \(q_y\) is updated by decoding with the current expected dialect and register adapters.

Algorithm 3.4 — Joint mean-field inference init q_d, q_r, q_c, q_y from heads repeat until convergence: q_d ← softmax( log p(d) + E_{q_r,q_c,q_y}[ log p(x,y,d,r,c) ] ) q_r ← softmax( log p(r) + E_{q_d,q_c,q_y}[ log p(x,y,d,r,c) ] ) q_c ← softmax( log p(c|r,d) + E_{q_d,q_r,q_y}[ log p(y,c) ] ) q_y ← decode_with_adapters( E_{q_d}[adapter_d], E_{q_r}[adapter_r], x )

Complexity. The dominant cost is the repeated decoding inside the loop. In practice, two to three coordinate‑ascent passes suffice for convergence; total cost is O(I T (encoder + decoder)) where I is the number of passes.

Component 3.5

Linguistically informed confidence calibration

ASR models are typically over‑confident, and miscalibrated confidences would compromise both the routing of Component 3.1 and the constraints of Component 3.3. A post‑hoc calibration model is therefore trained on the supervised set.

$$\text{Calibrated probability:}\qquad p_{\mathrm{cal}}(\text{correct} \mid \text{features}) = g_\phi(\text{features})$$

where \(g_\phi\) is implemented either as temperature scaling (single parameter) or as isotonic regression (non‑parametric) or as a small gradient‑boosted classifier on the feature set. The features are: per‑teacher posterior entropy, three‑way teacher agreement, typological log‑likelihood, segment duration, voice‑activity confidence, dialect‑posterior entropy, and the rank of the top‑1 hypothesis in the consensus lattice. The calibration objective is the negative log‑likelihood on the supervised set plus a smoothness penalty:

$$\mathcal{L}_{\mathrm{cal}}(\phi) = -\!\!\sum_{(x,y) \in D_{\mathrm{sup}}}\!\! \log g_\phi\big( \operatorname{features}(x),\, \mathbb{1}[\, \hat{y}(x) = y \,] \big) + \mu \, \| g_\phi \|^2$$

The calibration quality is measured by the Expected Calibration Error with n bins:

$$\mathrm{ECE}_n = \sum_b \frac{|B_b|}{N} \, \big|\, \operatorname{acc}(B_b) - \operatorname{conf}(B_b) \,\big|$$
Algorithm 3.5 — Calibration training and use # Training features ← extract(D_sup, teachers, P_typ) targets ← 1[ yhat == y ] for (x, y) in D_sup phi ← fit_calibrator(features, targets) # Use conf_cal ← g_phi( extract(x, teachers, P_typ) )

Complexity. Calibration training is linear in \(|D_{\mathrm{sup}}|\). Use at inference is O(1) per segment after feature extraction.

Unifying claim The calibrated confidence (Component 3.5) feeds the routing of 3.1 and the constraints of 3.3; the typological prior (3.2) feeds the constraint C4; the teacher agreement of 3.1 feeds the constraint C3; the latent decomposition of 3.4 feeds the conditional adapters consumed by every other component. The framework is therefore not a list of independent techniques but a system whose components reinforce one another.
Part Three — C

III.3 Training protocol and integration with the data pipeline

III.3.1 Stage 1 — Initialization from supervised set

The acoustic head is initialized by fine‑tuning Wav2Vec2‑BERT on the Tier‑A supervised set with a CTC objective and LoRA adapters of rank 16. The dialect, register, and code‑switching heads are trained jointly on the same supervised set, supervised by the available metadata labels.

III.3.2 Stage 2 — Teacher inference on unlabeled pool

The three teachers are run on Tier‑C unlabeled data. The output is stored as compressed n‑best lattices with per‑path posterior scores. This stage is embarrassingly parallel and dominates the compute budget; on the target hardware it requires of the order of one GPU‑week per 10 000 hours of audio.

III.3.3 Stage 3 — Routing and calibration

The routing function and the calibration head are trained on the supervised set with features extracted from the Stage‑2 teacher outputs. The calibrator is then evaluated for distribution shift between the supervised and the unlabeled pool by a held‑out reliability diagram.

III.3.4 Stage 4 — Constrained EM loop

The constrained EM loop of Component 3.3 is executed for between three and six iterations, with each iteration consuming the Stage‑2 teacher outputs and producing an updated \(\theta\). The loop terminates either when held‑out loss stops improving or when the KL drift bound saturates.

III.3.5 Stage 5 — Joint latent inference and final evaluation

The final model performs joint mean‑field inference over dialect, register, code‑switching, and transcript on the frozen test sets. Stratified evaluation is then conducted across all three test sets and all four dialect strata.

III.3.6 Optimization details

Optimization uses AdamW with a cosine schedule, peak learning rate 3e‑5 for the LoRA adapters and 1e‑4 for the heads, batch size 16 with gradient accumulation to an effective 64, dropout 0.1 in the adapters and 0.0 in the frozen backbone, label smoothing 0.1 for attention‑based decoders, mixed‑precision (bf16) on the target hardware, gradient clipping at 1.0, and a small auxiliary CTC loss in joint CTC‑attention runs with weight 0.3.

Chapter Conclusion

Conclusion of Chapter III

The present chapter has formulated PROVA‑MG as a latent‑variable probabilistic system; specified its five components — co‑inference, typological prior, constrained variational EM, latent decomposition, calibration — in algorithmic form with derivations and complexity analyses; and described a five‑stage training protocol that integrates the framework with the license‑first data pipeline of Chapter II. The next chapter presents the prototype implementation, the experimental matrix, the expected results, the discussion of limitations, and the perspectives of further work.

Transition Methodology is no contribution without empirical confrontation. Chapter IV constructs that confrontation as an ordered sequence of phases with measurable gates.