Skip to content
ExplanationUnreviewed

Experiment #5: Singing phone recognition, articulatory representations, and encoder comparison

Recorded 2026-10-22. Low-resource Mandarin singing phone recognition (under 5 min and 30 min annotation budgets) spans five experimental phases: calibrating articulatory feature projections (SPAM) across candidate SSL encoders, testing frozen multi-task temporal heads, distilling teacher pseudo-labels, adapting PhoneticXEUS, and comparing end-to-end encoders (Whisper, XEUS, and PhoneticXEUS) under a unified training recipe.

1. SPAM articulatory projections: formulations and encoders

Problem and hypothesis

Standard speech self-supervised models learn acoustic representations that entangle timbre, pitch, and phonetic content. SPAM (S3M-based Phonological Activation Mapping, where S3M refers to Self-Supervised Speech Models, paper: Phone Segmentation and Recognition through Phonological Activation Mapping, arXiv:2607.09020) maps each representation frame to a vector of phonological feature activations (such as voicing and nasality derived from PanPhon) via closed-form difference-of-means projections without gradient descent. We hypothesized that projecting frozen SSL representations into this phonological subspace would provide pitch-invariant features for singing phone recognition.

Ingestion and segmentation corrections

Earlier prototypes in research/phone-recognition/src/phone_recognition/phonemes.py partitioned Mandarin compound rimes into fixed-percentage sub-segments (e.g., iang into 20% [j], 50% [a], 30% [ŋ]) and sampled center frames for calibration. This approach was discarded:

  1. Synthetic sub-segment boundaries inject arbitrary acoustic noise into calibration frames because real singing vowel trajectories do not follow fixed temporal ratios.
  2. Calibration was restricted strictly to unambiguous single segments (the 21 Mandarin consonant initials and monophthongs), excluding compound rimes and breath (AP).

Calibration discriminant formulations

We evaluated three discriminant formulations in research/phone-recognition/src/phone_recognition/calibrate_worker.py:

  • whitened_lda (Regularized Fisher LDA): Whitens within-class covariance to penalize high-variance directions common across all vowels. This prevents loud, sustained vowels from dominating the projection matrix.
  • ridge_logistic: Fits an independent L2-regularized logistic regression for each articulatory feature dimension.
  • mean_diff: Unregularized difference between positive and neutral class means (original SPAM recipe).

Candidate encoders evaluated

Projection matrices were calibrated and compared across candidate audio encoders:

  • WavLM Large (microsoft/wavlm-large, layer 24): Trained on English speech. Articulatory projections fit well on spoken phonemes but suffered acoustic drift on high-pitched singing formants.
  • MMS 300M (facebook/mms-300m, layer -1): Multilingual speech foundation model.
  • Chinese HuBERT Large (TencentGameMate/chinese-hubert-large): Pretrained on 10,000 hours of Chinese speech (WenetSpeech).
  • XEUS (espnet/xeus, layer 19): Pretrained across 4,000+ languages and audio domains, matching the official extraction block before final layer normalization.

Key invariant: Projection matrices depend strictly on the specific encoder architecture, layer index, and geometric coordinate space. A projection fitted on WavLM or MMS cannot be transferred to XEUS, even when hidden dimensions match (e.g., 1024-d).

2. Multi-task classification heads and Model A vs. Model B ablation

Classification head architecture

To evaluate frozen representations without full fine-tuning, we constructed a dedicated temporal classification head:

  • Temporal network: A 2-layer temporal Transformer (d_model=256, 4 attention heads, dropout 0.1), comprising ~1.89 million trainable parameters.
  • Multi-task outputs:
    1. Sequence CTC head: Linear projection to phone tokens plus blank, supervised by sequence CTC loss.
    2. Segment-balanced frame classification CE head: Standard frame CE causes sustained vowels (e.g. 150 frames of iang) to overwhelm short consonants (e.g. 2 frames of b). We applied segment-balanced cross-entropy: ℒseg-frame=1S∑s=1S(1bs−as∑t=asbs−1CE(logitst,ys))\mathcal{L}_{\text{seg-frame}} = \frac{1}{S} \sum_{s=1}^{S} \left( \frac{1}{b_s - a_s} \sum_{t=a_s}^{b_s - 1} \text{CE}(\text{logits}_t, y_s) \right) normalizing frame losses within each segment before averaging across segments.
    3. Boundary detection head: Predicts phoneme transition boundaries. To counter extreme class imbalance (boundary frames < 5%), we applied ±1\pm 1 frame Gaussian soft labels (tb→1.0,tb±1→0.5t_b \to 1.0, t_b \pm 1 \to 0.5) and BCEWithLogitsLoss with positive weighting (pos_weight = 3.0 to 10.0).
  • Ablation variants:
    • layers = 0: Framewise linear head (~60,000 parameters) without temporal self-attention.
    • Single-objective CTC (research/phone-recognition/configs/ctc.toml): Omits frame CE and boundary heads.
    • Decoupled boundary model (research/phone-recognition/configs/boundary.toml): Freezes the phone classifier and trains only the contextual boundary detector.

Comparing Model A and Model B

  • Model A: Pure frozen SSL representation (hth_t).
  • Model B: Frozen SSL representation concatenated with 24-dimensional continuous SPAM feature curves ([ht,SPAMt][h_t, \text{SPAM}_t]).

Runs and observations

  • Initial 5 min budget (Local Run #14, 20 epochs): Trained on 85 Opencpop recordings (299.7 s) with batch size 8 (220 updates). Model B rapidly achieved 5.54% training PER, but validation PER stalled at 27.72% and test PER at 30.60% (onset MAE 61.12 ms) on the 316-recording test split. The 1.89M parameter head overfit the 85 training examples, frequently missing rare phonemes like er and uai.
  • Extended training horizon (Local Run #19, 785 epochs): Trained with batch size 128 (785 updates) to test whether underfitting was responsible. Severe overfitting emerged after epoch 200: validation loss diverged from 2.974 (epoch 130) to 4.764 (epoch 785), while validation PER reached its minimum of 25.10% at epoch 200 before degrading to 29.00%. Bug fixed: Initial checkpoint selection saved best.pt by minimum total validation loss (locking in epoch 130) rather than minimum validation content PER. Checkpoint selection was modified to track validation content PER.
  • Scaling to 30 min (Local Run #21): Expanding human annotations to 30 min reduced test PER from 30.60% to 24.20% (last.pt, step 200) and raised boundary F1@50 ms to 79.90%.

The table below summarizes test metrics for the frozen XEUS + SPAM classification head across the 5 min and 30 min annotation budgets.

Configuration Training budget Test content PER Test total PER Boundary F1@20 ms Boundary F1@50 ms Onset MAE
Local Run #14 (XEUS + SPAM, 20 ep) 5 min - 30.60% 41.12% 73.27% 61.12 ms
Local Run #21 (XEUS + SPAM, 200 ep) 30 min - 24.20% - 79.90% -

3. Teacher-student pseudo-label distillation and decoding strategy

Teacher-student distillation

To bypass manual annotation scaling bottlenecks, we evaluated training student models on a combination of 5 min of verified human labels and 25 min of unlabeled singing audio pseudo-labeled by a pretrained singing recognizer (Phonsa). Validation and test sets remained strictly human-annotated.

On the 316-recording held-out test split:

  • 5 min human + 25 min Phonsa pseudo-labels: 13.92% content PER, 43.45% boundary F1@20 ms, 50.56 ms onset MAE.
  • 30 min full human annotations (CTC baseline): 13.83% content PER.
  • Upstream Phonsa baseline (zero-shot transfer): 3.77% content PER, 63.17% boundary F1@20 ms, 22.50 ms onset MAE.

Takeaway: Distillation achieved equivalent accuracy to 30 min of human annotation while reducing manual labeling effort by 6x. However, the student remained bounded by the frozen XEUS representation.

Decoding strategy: CTC vs. joint frame-align

We tested joint frame-align decoding (searching complete phone paths via frame classification logits, boundary evidence, and phonotactic constraints, followed by boundary-guided realignment) against standard CTC Viterbi sequence decoding:

  • Validation split (79 recordings): Frame-align reduced content PER from 16.36% to 15.31%, lowering deletion rate (3.01% vs 4.32%) and improving onset MAE (30.8 ms vs 33.3 ms).
  • Test split (316 recordings): While frame-align reduced deletions (2.41% vs 4.95%) and onset MAE (34.9 ms vs 42.7 ms), it inflated false insertions from 1.58% to 4.97%, increasing overall content PER to 18.15% (vs. 17.19% for CTC). Boundary F1@20 ms was flat (44.8% vs 45.3%).

Decision: Frame-align over-inserts on unseen musical material. Standard CTC sequence decoding is retained as the default inference path.

4. PhoneticXEUS segmental adaptation and SPAM ablation

Hypothesis

PhoneticXEUS is pretrained with multi-lingual phone supervision. Adapting its continuous phonetic states directly to singing onset/rime units should outperform general XEUS, and testing with and without SPAM projections determines whether manual articulatory feature engineering adds value to an already phonologically aware encoder.

Results (held-out validation split)

  • 5 min budget:
    • Without SPAM: 20.25% validation content PER, 27.46% total PER, 51.94% boundary F1@20 ms, 22.10 ms onset MAE.
    • With SPAM: 20.56% validation content PER, 27.72% total PER, 51.39% boundary F1@20 ms, 22.21 ms onset MAE.
  • 30 min budget (without SPAM, apical vowel disambiguation):
    • Preserving Mandarin apical vowels (i0 after dental sibilants z, c, s and ir after retroflexes zh, ch, sh, r): validation content PER dropped to 16.23% (total PER 26.65%), and boundary F1@20 ms reached 58.13% (onset MAE 23.52 ms).

Conclusions:

  1. Adding SPAM projections produced identical metrics within variance (20.56% vs 20.25% content PER, 51.39% vs 51.94% F1@20 ms), showing that phonologically supervised SSL representations already encode articulatory dimensions. SPAM feature concatenation was discontinued.
  2. Disambiguating apical vowels introduced zero label confusion while maintaining linguistic precision for downstream synthesis.

5. Acoustic encoder comparison under unified Phonsa recipe

Unified protocol

We migrated to the Phonsa training paradigm across candidate encoders:

  • Standard 20 ms prediction clock.
  • Unified onset/whole-rime vocabulary (preserving apical vowels i0/ir).
  • Multi-task supervision: framewise CE, silence BCE, and sequence CTC.
  • End-to-end fine-tuning: encoder fine-tuned at learning rate 1e-6, phoneme classifier head at 5e-3.

We benchmarked Whisper Medium, Whisper Turbo, XEUS, and PhoneticXEUS on 5 min and 30 min Opencpop budgets on the 316-recording test split.

Stability and gradient leakage analysis on cloud GPU (Modal)

During 30 min cloud training on Modal, an initial Whisper Turbo run (cloud Run 16) diverged after epoch 5:

  • Controlled testing with frozen forward passes revealed backward gradient leakage in the attention head kernel: spurious backward gradients (~11x higher than analytical: norm 0.978 vs. 0.0887) propagated back into the encoder.
  • We corrected the analytic backward pass, added unit regression tests for input-gradient invariance (research/phone-recognition/tests/test_phonsa_training.py), and logged unclipped train/grad_norm.
  • Re-running with the fix (cloud Run 17) stably converged across all 30 epochs without excursion.

Full benchmark (316 test recordings, excluding non-vocal AP/SP)

The table below compares all end-to-end fine-tuned encoders on the 316-recording test split, excluding non-vocal AP and SP tokens.

Run ID Encoder Budget Test content PER Deletions Insertions Boundary F1@20 ms Boundary F1@50 ms Onset MAE
Cloud Run #17 Whisper Turbo 30 min 8.79% 0.89% 1.77% 49.30% 82.69% 29.43 ms
Local Run #29 / #35 Whisper Medium 30 min 12.51% 0.95% 3.78% 48.93% 81.29% 34.79 ms
Local Run #36 XEUS 30 min 14.78% 1.80% 5.20% 46.22% 81.14% 31.28 ms
Local Run #37 PhoneticXEUS 30 min 15.53% 1.65% 5.40% 50.19% 82.80% 28.97 ms
Local Run #38 Whisper Turbo 5 min 17.55% 1.90% 6.80% 46.09% 78.50% 38.34 ms
Local Run #33 XEUS 5 min 22.23% 2.10% 9.80% 44.99% 80.04% 31.85 ms
Local Run #28 / #32 Whisper Medium 5 min 23.77% 2.65% 10.03% 45.23% 75.77% 41.23 ms
Local Run #34 PhoneticXEUS 5 min 24.17% 2.45% 10.12% 45.78% 80.90% 32.74 ms

Key findings

  1. Whisper Turbo (30 min, cloud Run #17) achieved the lowest error rate across all evaluated runs (8.79% content PER, down from Whisper Medium’s 12.51%), outperforming every SSL encoder. Even at a 5 min budget, Whisper Turbo (17.55%) approached the 30 min performance of the non-Whisper encoders.
  2. PhoneticXEUS delivered the highest acoustic boundary precision across all budgets, reaching 50.19% F1@20 ms and 28.97 ms onset MAE at 30 min (ahead of Whisper Medium’s 48.93% and 34.79 ms), because its phone-discriminative pretraining produces sharper transition representations.
  3. Fine-tuning the encoder at learning rate 1e-6 alongside the classification head was necessary across every encoder. Freezing the encoder and training only a head on cached features consistently lagged by more than 10% PER.

Final decisions

  1. Deploy Whisper Turbo as the primary recognizer for unannotated vocal transcription, few-shot singer adaptation, and teacher pseudo-label generation.
  2. Discontinue external SPAM articulatory feature concatenation. Modern SSL encoders, especially phonologically supervised ones, already capture these articulatory dimensions.
  3. Retain syllable-consistent onset and whole-rime units, preserving language-specific apical vowels (i0/ir) and melisma rime continuity across score notes.

Type to search…

↑↓ navigate↵ selectEsc close