﻿# FMA genre targets: a top-level label is not the full genre hierarchy

Specify FMA subset membership and the selected genre representation before comparing single-label classification with hierarchical or multi-label music tagging.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-fma-top-genre-hierarchical-multilabel-target/
Language: en

## Specify which genre question the model answers

A music classifier predicts a single broad genre, while another predicts every associated subgenre. Both results are presented as FMA genre accuracy even though their target spaces differ. A hierarchy can connect these tasks without making them identical. Record the selected label field, hierarchy treatment and output encoding before comparing scores. A correct broad category does not establish correct recognition of every finer label attached to a track.

## Keep subset choice with the target definition

The [FMA creator repository](https://github.com/mdeff/fma) distinguishes small, medium, large and full audio resources and describes their genre coverage and balance. The metadata archive covers the broader collection, so loading it is not the same as selecting the audio subset being evaluated. Join by track identity and apply the intended subset membership explicitly. Otherwise, missing audio or a target column populated for a narrower task can lead to an undocumented evaluation population after automatic row dropping.

## Preserve the hierarchy rather than flattening by accident

The [FMA paper](https://arxiv.org/abs/1612.01840) presents a hierarchical genre taxonomy and multiple dataset subsets. A child genre and its parent are related categories, not independent observations of different music. Decide whether the target is an original tag set, a hierarchy-expanded set or a selected top-level class. If expanding ancestors, describe that derivation and apply it consistently to predictions and references. The resulting task differs from simply selecting the first available genre in a metadata list.

## Parse structured genre fields as structured values

The [author utility source](https://raw.githubusercontent.com/mdeff/fma/master/utils.py) includes handling for list-valued genre metadata. Preserve these fields as collections rather than classifying their serialized text as a label. Record the ordered class vocabulary separately from the track-to-genre relation. A model output vector can retain the same shape while its indices acquire different meanings after an independently generated mapping, which makes a plausible-looking score meaningless even when every audio file loads correctly.

## Check a track with several related labels

Trace a diagnostic track from subset membership through its genre list and parent relations to the actual target vector. Explain how a broad prediction would be judged under the chosen objective and keep the original metadata available. The [entity-group split guide](/journal/data-guide-entity-group-split-design/) and [reproducible software stack guide](/journal/software-stack-reproducibility/) help preserve grouping and implementation boundaries. Report the task as top-level classification, multi-label tagging or a declared hierarchical evaluation, so that the shared corpus name does not hide a changed prediction problem.
