Lunar Boom Learning

2.4 · Dataset Balance and Bias

Section 2.4 of 2.5

Dataset Balance and Bias

How the music in a dataset shapes what a model learns

Learn how genre, language, region, artist, label, and production imbalances can shape model behaviour, and how to measure them before training.

About 11 minutes

Guiding question

What happens when one genre, language, or source dominates a dataset?

By the end, you’ll be able to
  • Measure basic imbalance using examples, duration, artists, sources, and intersections between categories.
  • Explain how underrepresentation, label bias, and source bias can enter a music dataset.
  • Connect dataset composition with generation quality, prompt following, and cultural coverage.
  • Choose balancing methods without assuming that equal counts are always best.

A dataset can contain millions of audio clips and still represent a narrow part of music.

Imagine a collection where half the hours come from English-language pop, a small group of artists appears thousands of times, and some regional genres have only a few short examples. The file count may look impressive, but the model keeps seeing the same kinds of patterns.

This is why dataset balance is about more than size. It asks who and what appears, how often they appear, how they are labelled, and which combinations are missing.

A model usually becomes more reliable on patterns that appear often and consistently. Rare, noisy, or poorly labelled categories may be harder to learn. The result can be weaker prompt following, less convincing generation, or outputs that drift toward more common styles.

Where dataset bias can enter

  1. Collection

    The easiest platforms, catalogues, languages, or licences to access may dominate the dataset.

  2. Selection

    Filters may keep polished commercial recordings while removing field recordings, older archives, or unfamiliar formats.

  3. Annotation

    Labels can reflect the vocabulary, culture, assumptions, and confidence of the annotators.

  4. Segmentation

    Long tracks can create many crops, giving some artists or releases more weight than others.

  5. Sampling

    The training loader may show common records more often unless explicit sampling rules are used.

  6. Evaluation

    A benchmark can hide weak groups if most test examples come from the same dominant categories.

The long tail

Many music datasets have a long-tail distribution. A small number of tags, artists, genres, or sound events appear very often, while many others appear only a few times.

AudioSet is a clear example. It contains a large ontology of sound events, but the number of examples varies widely between classes. MTG-Jamendo contains more than 55,000 tracks and 195 genre, instrument, and mood or theme tags. Its published tag distributions show that some labels are far more common than others.

A long tail is not automatically a mistake. It may reflect the available catalogue or the real use case. The problem begins when the dataset is described as broadly representative but rare categories do not contain enough varied examples for the model to learn them well.

What should a music dataset audit?

Swipe sideways to view the full comparison

DimensionUseful measurementsWhat counts can miss
Genre and styleExamples, hours, labels, and label confidenceGenre mixing and inconsistent taxonomies
LanguageTracks, vocal minutes, lyric availability, and caption languageInstrumental music and multilingual songs
Region and traditionHours, artists, countries, and locally defined stylesDiaspora, mixed heritage, and unclear origin
Artist and releaseUnique artists, tracks per artist, albums, and top-share concentrationDifferent names for the same artist or duplicated releases
Instrument and vocal styleTags, verified annotations, and combinationsUnknown or culturally specific instruments
Production qualityCodec, bitrate, loudness, noise, era, and recording settingA polished recording is not the same as a better musical example
Source and licenceHours by platform, archive, label, contributor, and licenceSeveral sources may contain the same underlying recording
IntersectionsCounts for combinations such as language plus genre plus regionA category can look balanced overall while one subgroup is absent

In practice

Why genre counts are not enough

A dataset may contain 1,000 folk tracks and 1,000 electronic tracks, yet still be narrow. The folk tracks could come from ten countries and hundreds of artists, while the electronic tracks come from one platform, one language, and a small group of producers. Equal genre totals do not guarantee equal variety.

Count examples and duration

File counts can be misleading. Ten full albums and 100 short clips do not contribute the same amount of audio. A five-minute track can also create many more training crops than a thirty-second clip.

A basic audit should therefore report both:

    1. Number of source recordings
    2. Total audio hours
    3. Number of training segments after cropping
    4. Unique artists and releases
    5. Average and median duration

This helps reveal whether a category looks large only because a few long recordings were divided into many segments.

Watch artist and source concentration

A dataset can have many tracks but few independent creators. If one artist contributes 5,000 examples, the model may learn that artist's instrumentation, production, voice, or songwriting habits more strongly than the genre as a whole.

Useful concentration checks include:

    1. Share of total hours from the largest artist
    2. Share from the largest ten artists
    3. Median tracks per artist
    4. Number of unique releases
    5. Share from the largest source platform or archive
    6. Number of crops derived from each source recording

Artist and source limits can reduce domination, but they should be documented. Capping every artist at the same number can also remove useful variation from artists with broad catalogues.

Cultural coverage is a measurable issue

Recent music-generation research has examined which traditions appear in commonly used datasets. One large review reported that music from the Global North accounted for most of the analysed dataset hours and research attention. Another study found that only a small share of hours in the datasets it reviewed came from non-Western genres.

The exact percentage changes with the papers included and the way regions and genres are defined. That difference is itself important. Cultural categories are not simple technical labels, so an audit should publish its definitions rather than treating them as universal facts.

The shared finding is clearer than any single percentage: global musical traditions are not represented evenly in the datasets commonly used for generative music research.

Examples in practice

Research example: Music for All

The Music for All study reviewed music-generation datasets and research, then tested adaptation on Hindustani classical and Turkish makam music. The authors reported strong underrepresentation of non-Western genres and found that adapting popular models with small datasets was promising but not simple. The result supports a broader lesson: adding a few examples does not automatically give a model deep coverage of a musical tradition.

Output example: GlobalDISCO

GlobalDISCO tested commercial music generators with globally balanced style prompts covering many languages and countries. The researchers found differences in quality and reference alignment between high-resource and low-resource regions. For some geographically specific genres, outputs moved closer to mainstream style distributions instead of matching the intended regional tradition.

How imbalance can appear in model outputs

Swipe sideways to view the full comparison

Dataset issuePossible model behaviourWhat to test
Dominant genrePrompts drift toward common instruments, rhythms, or productionPrompt adherence and listener ratings by genre
Low-resource languageLyrics or vocal sounds become less clear or less faithfulLanguage accuracy and native-speaker evaluation
Regional style underrepresentationThe output resembles a mainstream neighbour rather than the requested traditionLocal expert comparison and reference alignment
Artist concentrationRepeated vocal, arrangement, or production patternsSimilarity checks and diversity across outputs
Production-quality biasOlder, noisy, live, or field-recorded styles are treated as lower qualityEvaluation across recording conditions
Label inconsistencyThe model follows some synonyms but ignores othersPrompt tests using aliases and local terminology

Balance the labels as well as the audio

A category can have enough hours and still be poorly represented if the labels are inconsistent or incomplete.

For example, the same style may appear under several spellings, translations, or neighbouring genre terms. One platform may use a local name while another replaces it with a broad Western category. Some tracks may have detailed instrument tags while others have only one general genre label.

Before counting categories, preserve the original labels and map them to a documented vocabulary. Track unknown and missing values instead of silently treating them as negatives.

Production quality can become a hidden category

Suppose traditional recordings are mostly older archives or live performances, while mainstream pop arrives as recent studio masters. A model may begin to associate the traditional genre with noise, narrow frequency range, or lower loudness.

Cleaning every recording until it sounds similar can hide the problem without fixing representation. A better audit tracks recording era, source format, loudness, noise, live or studio setting, and codec quality. The dataset can then separate musical style from recording condition during sampling and evaluation.

A simple balance dashboard

Swipe sideways to view the full comparison

MetricSimple calculationQuestion it answers
Example shareGroup examples divided by all examplesHow much of the record count belongs to this group?
Hour shareGroup hours divided by all hoursHow much listening time does the group contribute?
Artist coverageUnique artists in the groupDoes the group contain several creators or one catalogue?
Top-artist shareLargest artist hours divided by group hoursIs one artist dominating the category?
Source shareHours from each platform or archiveIs collection convenience shaping the dataset?
Unknown-label rateUnknown or missing labels divided by all recordsHow complete is the annotation?
Intersection coverageCount or hours for combinations of dimensionsWhich subgroups disappear inside broad totals?
Duplicate-adjusted hoursHours after grouping duplicates and crops from the same sourceHow much independent material is really present?
dataset-balance-report.json · A simplified balance report for one dataset group.

Swipe sideways to view code

{
  "group": {
    "genre": "folk",
    "language": "Georgian",
    "region": "Georgia"
  },
  "sourceRecordings": 420,
  "trainingSegments": 1680,
  "audioHours": 35.4,
  "uniqueArtists": 61,
  "uniqueReleases": 88,
  "largestArtistHourShare": 0.09,
  "largestSourceHourShare": 0.47,
  "unknownInstrumentTagRate": 0.22,
  "duplicateAdjustedHours": 31.8,
  "reviewStatus": "needs-more-source-diversity"
}
Ways to respond to imbalance

Swipe sideways to view the full comparison

MethodWhat it changesMain trade-off
Collect more dataAdds new examples to weak areasCan be expensive and difficult to licence or annotate
Cap dominant artists or sourcesReduces repeated exposure to the largest contributorsCan remove genuine variation from large catalogues
Oversample rare groupsShows selected examples more oftenCan increase memorisation and overfitting
Undersample common groupsReduces majority exposureThrows away available information
Reweight the lossMakes errors on selected groups count moreRequires reliable labels and careful tuning
Targeted augmentationCreates modified examples for selected groupsDoes not create missing cultural or musical knowledge
Fine-tune on a specialist datasetAdapts a general model toward an underrepresented domainMay reduce performance elsewhere or oversimplify the domain
Group-aware evaluationReports performance separately for relevant groupsDoes not fix the training data by itself

Document the dataset, not just the final percentages

A balance report should explain:

    1. Why the dataset was created
    2. Which groups and dimensions were measured
    3. How labels and regions were defined
    4. Which sources and licences were used
    5. Which records were removed
    6. Which groups are missing or uncertain
    7. How sampling weights are applied
    8. Which evaluations should be reported by group

The Datasheets for Datasets framework was created to make this kind of information easier to communicate. A dataset cannot be audited properly when its collection and composition remain hidden.

Interactive lesson

Balance a Music Dataset

Try it: Begin with the imbalanced catalogue and inspect the dashboard. Change one setting at a time. Add data, cap dominant artists, adjust sampling weights, or improve missing labels. Compare overall quality with group-level quality and watch for overfitting or loss of coverage.

Dataset balance should be measured across examples, hours, artists, sources, labels, and intersections. Common groups may be learned more reliably, while rare or poorly labelled groups may show weaker generation. Equal sampling is only one possible response and can create new trade-offs.

Check your understanding

Ready for a quick check?

Test whether you can measure dataset imbalance, connect it with model behaviour, and choose sensible responses.

Ready to continue?

Save this section to your account and continue from any device.

Checking your account…
Sources for this lesson (10)
  1. Music for All: Exploring Multicultural Representations in Music Generation Models — Atharva Mehta, Shivam Chauhan, Amirbek Djanibekov, Atharva Kulkarni, Gus Xia, and Monojit Choudhury (2025)
  2. Missing Melodies: AI Music Generation and its Nearly Complete Omission of the Global South — Atharva Mehta, Shivam Chauhan, and Monojit Choudhury (2024)
  3. Bias beyond Borders: Global Inequalities in AI-Generated Music — Ahmet Solak, Florian Grötschla, Luca A. Lanzendörfer, and Roger Wattenhofer (2025)
  4. Audio Set: An Ontology and Human-Labeled Dataset for Audio Events — Jort F. Gemmeke et al. (2017)
  5. The MTG-Jamendo Dataset — Dmitry Bogdanov et al. (2019)
  6. Dataset Balancing Can Hurt Model Performance — R. Channing Moore, Daniel P. W. Ellis, Eduardo Fonseca, Shawn Hershey, Aren Jansen, and Manoj Plakal (2023)
  7. Datasheets for Datasets — Timnit Gebru et al. (2021)
  8. Position: Measure Dataset Diversity, Don't Just Claim It — Sabina Tomkins et al. (2024)
  9. Ethical Dimensions of Music Information Retrieval Technology — Andre Holzapfel et al. (2018)
  10. Can MusicGen Create Training Data for MIR Tasks? — Nadine Kroher, Helena Cuesta, and Aggelos Pikrakis (2023)
Browse all contextual sources →