Skip to content
How-to GuideUnreviewed

Adapt PhoneticXEUS to singing

Fine-tune PhoneticXEUS directly on singing audio using existing few-shot recording selections, compare runs with SPAM calibration, and inspect predictions on the Dashboard. Before starting, set up the audio environment from Run phone recognition inference and alignment, select a few-shot manifest with Run few-shot recognition experiments, and review the training settings in phonetic.toml.

Training reads audio directly and uses whole onset/rime annotations without requiring manual glide or coda boundaries. Inference returns those same whole-unit intervals. SPAM calibration is needed only when running the SPAM comparison.

Train without SPAM

Train the baseline PhoneticXEUS model on the five-minute selection:

uv run --project research/phone-recognition phone-recognition recognizer phonetic train \
  local/data/phone-recognition/few-shot/5m-seed42/manifest.json \
  --config research/phone-recognition/configs/phonetic.toml \
  --output local/runs/phone-recognition/phonetic-a-5m \
  --runtime infra/runtime/local.toml \
  --device mps

Losses, validation metrics, and run status synchronize through ml_tracking while checkpoints remain local without artifact uploads. Checkpoint selection balances content PER and boundary F1@20ms. Compare deletion and insertion rates alongside the combined selection score.

Resume the same run to extend its total training duration:

uv run --project research/phone-recognition phone-recognition recognizer phonetic train \
  local/data/phone-recognition/few-shot/5m-seed42/manifest.json \
  --config research/phone-recognition/configs/phonetic.toml \
  --output local/runs/phone-recognition/phonetic-a-5m \
  --runtime infra/runtime/local.toml \
  --device mps \
  --resume \
  --epochs 40

Compare with SPAM

SPAM adds articulatory evidence to phone and boundary prediction without requiring extra annotated audio. Existing MMS, WavLM, and original XEUS projections are incompatible with PhoneticXEUS calibration. Keep the training selection, seed, and optimization settings identical to the run without SPAM, and evaluate both checkpoints on the same validation recordings before running test evaluation.

  1. Extract calibration features from the training partition of the five-minute selection (calibration uses onsets and single-phone rimes while leaving compound-rime annotations intact):
uv run --project research/phone-recognition phone-recognition recognizer phonetic extract \
  local/data/phone-recognition/few-shot/5m-seed42/manifest.json \
  --config research/phone-recognition/configs/phonetic.toml \
  --output local/data/phone-recognition/phonetic-spam/5m-seed42 \
  --device mps
  1. Fit the SPAM projection from the extracted calibration cache:
uv run --project research/phone-recognition phone-recognition calibrate \
  --dataset local/data/phone-recognition/phonetic-spam/5m-seed42/manifest.json \
  --output local/assets/spam/phoneticxeus-5m-seed42.pt \
  --count 500
  1. Train PhoneticXEUS with the calibrated SPAM checkpoint:
uv run --project research/phone-recognition phone-recognition recognizer phonetic train \
  local/data/phone-recognition/few-shot/5m-seed42/manifest.json \
  --config research/phone-recognition/configs/phonetic.toml \
  --spam-checkpoint local/assets/spam/phoneticxeus-5m-seed42.pt \
  --output local/runs/phone-recognition/phonetic-b-5m \
  --runtime infra/runtime/local.toml \
  --device mps

Evaluate and preview

Evaluate a checkpoint on the validation split to inspect recognition errors, boundary F1@20ms, and oracle-sequence boundary metrics (which supply the true phone sequence to separate recognition errors from boundary timing errors):

uv run --project research/phone-recognition phone-recognition recognizer phonetic evaluate \
  local/data/phone-recognition/few-shot/5m-seed42/manifest.json \
  --checkpoint local/runs/phone-recognition/phonetic-b-5m/best.pt \
  --split validation \
  --device mps

Push the model prediction to an existing Dashboard alignment collection for listening and interval inspection:

uv run --project research/phone-recognition phone-recognition recognizer phonetic infer \
  local/data/phone-recognition/opencpop/manifest.json \
  --checkpoint local/runs/phone-recognition/phonetic-b-5m/best.pt \
  --track-id "PhoneticXEUS SPAM 5m" \
  --push-track 1 \
  --runtime infra/runtime/local.toml \
  --device mps

Type to search…

↑↓ navigate↵ selectEsc close