Evaluation
What was measured, in one figure and one table
Two questions. Does fine-tuning a music model on Somali recordings make it predict unseen Somali songs better? And how well does the transcription pipeline hold to the scale of what it hears? Every number here is computed by a script from the run files in the repository.
1. Generation: every fine-tuned model beats its base on unseen songs
Each dot is how much better the fine-tuned model predicts songs it never saw in training, compared with the same model as published (cross-entropy, in nats; further right is better). The bar is the 95 % interval from resampling the test songs. No bar touches “no change”.
| Model | Loss, base → tuned | Melody in output | On-scale (PCS) | Blind test: tuned / base / neither |
|---|---|---|---|---|
| MusicGen-medium, 1.5 B | 4.101 → 4.000 | 41 % → 52 % | 0.82 → 0.80 | 3 / 0 / 13, then 1 / 0 / 15 |
| MusicGen-large, 3.3 B | 4.075 → 3.947 | 36 % → 68 % | 0.87 → 0.78 | 11 / 2 / 3, then 6 / 0 / 10 |
| MusicGen-medium, whole corpus | 4.211 → 4.134 | 42 % → 70 % | 0.85 → 0.74 | 1 / 0 / 15 |
How to read it honestly
- The gain is real and it grows with model size: the larger model gains more than the medium one on the same 27 test songs.
- The fine-tuned models put more trackable melody into what they generate, and drift further from the five-note scale while doing it.
- The ear is a harder judge than the loss. In blind paired tests of 16 clips each, one listener (the author) mostly answered “neither”. Only the large model was preferred clearly, and only in its first sitting. A study with Somali musicians is open on the study page.
- These three models learned from archive cassettes that are not cleared for release, so their audio is not on this site. The clips on the Listen page come from models trained only on consented recordings.
2. Transcription: 91 recordings written out automatically
The pipeline transcribed every recording in the pool without a failure. PCS is the share of the melody that lands on the recording's own five-note scale; notes off the scale are kept in the score and marked, not deleted.
| Source | Recordings | Audio | PCS, median (middle half) | Notes off the scale | Tonic unclear |
|---|---|---|---|---|---|
| Solo oud (kaban) | 28 | 4.1 h | 0.96 (0.91 to 0.99) | 5 % | 4 of 28 |
| Band with voice | 63 | 2.9 h | 0.74 (0.65 to 0.81) | 35 % | 3 of 63 |
- Solo oud transcribes cleanly. Voice over a band is harder: the voice has to be separated first, and singers slide between notes.
- No Somali recording has been corrected by ear yet, so these are properties of the automatic scores. On a public benchmark of sung melody with human annotations (vocadito), the browser transcriber scores a note F1 of 0.69 [0.66, 0.72]. Two human annotators agree with each other at 0.74, so the system reaches 93 % of human agreement.
- Cassette restoration, measured on generated clips: a model trained on restored tapes produces audio with a band signal-to-noise ratio of 11.3 dB, against 4.7 dB for one trained on the raw tapes.