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”.

no change+0.04+0.08+0.12+0.16MusicGen-medium, 1.5 B: +0.102 nats, 95 % interval 0.078 to 0.123, 27 unseen songsMusicGen-medium, 1.5 B27 unseen songs+0.102 [0.078, 0.123]MusicGen-large, 3.3 B: +0.128 nats, 95 % interval 0.104 to 0.152, 27 unseen songsMusicGen-large, 3.3 B27 unseen songs+0.128 [0.104, 0.152]MusicGen-medium, whole corpus: +0.076 nats, 95 % interval 0.069 to 0.084, 64 unseen songsMusicGen-medium, whole corpus64 unseen songs+0.076 [0.069, 0.084]
ModelLoss, base → tunedMelody in outputOn-scale (PCS)Blind test: tuned / base / neither
MusicGen-medium, 1.5 B4.101 → 4.00041 % → 52 %0.82 → 0.803 / 0 / 13, then 1 / 0 / 15
MusicGen-large, 3.3 B4.075 → 3.94736 % → 68 %0.87 → 0.7811 / 2 / 3, then 6 / 0 / 10
MusicGen-medium, whole corpus4.211 → 4.13442 % → 70 %0.85 → 0.741 / 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.

SourceRecordingsAudioPCS, median (middle half)Notes off the scaleTonic unclear
Solo oud (kaban)284.1 h0.96 (0.91 to 0.99)5 %4 of 28
Band with voice632.9 h0.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.

See three of the scores and the tuning findings