Derivation Depth Exposes Reasoning Failures in Tool-Augmented Music Analysis

Audio-language models can read musical facts from MIR tools, but struggle to reason from them—even when all the necessary information is provided.

Rupali Rajesh*,1, Sethuraman T V*,2, Savya Khosla2, Srinidhi Sunkara5, Aditya Shanmugham4, Rohan Maheshwari3, Derek Hoiem2
1IIT Madras 2UIUC 3Independent 4Amazon Science 5Google
*Equal contribution

Audio-language models can read musical facts from MIR tools, but struggle to reason from them—even when all the necessary information is provided.

Panel a: the model answers a musical question from the audio and an MIR tool's output. Panel b: it follows a stated conclusion even when wrong, and fails to derive the conclusion from intermediate output such as the home key and secondary dominant.

Setup and failure modes. (a) The model answers a musical question from the audio and an MIR tool’s output. (b) It follows a stated conclusion even when wrong (top), and fails to derive the conclusion from intermediate output such as the home key and secondary dominant (bottom).

Abstract

Audio-language models remain unreliable at extracting basic musical properties from audio, motivating pipelines that place a music information retrieval (MIR) tool between the audio and the model. The tool reports measurements such as keys, chords, and structural similarity, and the model is expected to derive the answer. We test whether it can. Holding the musical information fixed, we vary derivation depth: the number of reasoning steps between the tool output and the answer. When the report states the conclusion, all five models score near 100%, and they follow it even when it is wrong. One step away, accuracy drops. On modulation, open models fall to 57–81%, although they answer that single step correctly when asked directly, and reach 0% at greater depths. Frontier models degrade less, but still degrade. Adding the audio does not recover the loss. The bottleneck in tool-augmented music analysis is not access to musical information but reasoning from it, so tool design must account for how much derivation it leaves to the model.


Setup

Every experiment fixes the musical fact and varies only how it reaches the model: report format, audio, and reasoning distance. Each task is a minimal pair — two versions of a piece differing in exactly one musical property, which makes that property the sole determinant of the correct answer.

Five tasks

Cadence (authentic vs. deceptive), modulation (new major vs. minor key), scale (Lydian vs. Ionian, one note apart), motif (transposed return vs. new motif), structure (ABA vs. through-composed).

Synthetic stimuli

Short scores written to exhibit exactly one property, generated programmatically as MIDI and rendered with FluidSynth (TimGM6mb General MIDI soundfont, piano). Ground truth is exact.

Items

N = 6 compositions per task at up to five transpositions between −6 and +6 semitones, giving up to 30 pairs per task (23 for scale). The ladder adds 72 generated items per task.

Pair scoring

A pair counts only when both members are answered correctly. The two members have opposite answers, so a constant responder scores 0%; chance is 25%. Keyword scoring validated at κ = 0.90.

Five models

Open-weight and run locally: Qwen2.5-Omni, Music Flamingo, Audio Flamingo 3. Through the API: Gemini 2.5 Flash, Gemini 3.6 Flash.

Two input conditions

No-audio, where the model sees only the measurement, isolating whether it can read it; and audio-crossed, where it also gets the audio, testing whether audio helps when reasoning fails.

FormatStyleExample tool output
F1Verdict“The piece modulates at bar 9 to a new MAJOR key (G major).”
F1 flipVerdict (flip)“The piece modulates at bar 9 to a new MINOR key (A minor).”
F2Key–valuebars9_16_key: G major
F3Prose“From bar 9 the harmony re-centers on G major, a major key (pivot chord D7).”
F4Tool outputchord_report: bar1=C, bar2=F, …, bar9=D7, …, bar16=G
F5Output + noiseF4 + tempo_bpm=104, first_key=C major, rms_db=-15.5
F6JSON{"chords_by_bar": {"1": "C", …, "9": "D7", …}}

One modulation item in each of the six measurement formats. F1 and F3 state the conclusion; F2 gives the single value it follows from; F4–F6 give the full tool output with increasing clutter (F5) and structure (F6). F1 flip states the wrong conclusion in F1’s form, to test whether a model follows the report even against the correct answer.


The Derivation Ladder

To order the formats by reasoning distance, we generate 72 items per task in which the same fact is reported at four depths. d0 states the conclusion; d1 gives the fact one step away (for modulation, the home and new key); d2 gives the evidence for that fact (the pivot chord); d3 gives only its constituents (the chord’s pitches). Items vary key and harmonic relation rather than transposition, so every report is distinct. At every depth the question is the same — is the new key major or minor? — and so is the answer: major.

≥ 90% 40–89% < 40% Vertical line marks chance (25%).

The rung that matters is the first one. Between d0 and d1 nothing changes but the phrase “a new MAJOR key” becoming “D major”. Every open model answers the isolated question “is D major a major key?” correctly 100% of the time — and still loses up to 43 points when the same fact must be applied to the tool’s report.


Finding 1

Models follow stated conclusions, even when they are wrong

When the tool output states the conclusion (F1/F3), all models are near-perfect. But when we deliberately flip that conclusion in F1 flip, accuracy falls to 0% for every model, the frontier models included (table below, last column): each follows the incorrect statement, even when audio is available. The models read the tool output but do not reliably verify its conclusion.


Finding 2

Accuracy falls with the distance between tool output and answer; one reasoning step is enough

The format profile. The gap appears as soon as the tool provides measurements rather than the answer itself. In the no-audio condition, open-model accuracy drops from 100% to about 35%, while the Gemini models show a smaller but consistent drop. Providing the relevant tool output is therefore not sufficient; performance depends on how much reasoning remains between that output and the answer. Modulation F2 reveals one confound: it gives the new key but not the home key, so the output alone does not establish that a modulation occurred. We therefore use a controlled derivation ladder in which every rung contains sufficient information, while only the number of reasoning steps changes.

ModelVerdictMeas.Δ no audioΔ + audioF1 flip
Qwen2.5-Omni1003664 [56, 72]480
Music Flamingo1003565 [48, 83]670
Audio Flamingo 31003565 [48, 83]580
Gemini 2.5 Flash1008515 [9, 21]210
Gemini 3.6 Flash1009010 [4, 17]150

Format profile, pair accuracy (%), structure and modulation pooled (n = 60 pairs, 12 compositions). Verdict = F1/F3, Measurement = F2/F4/F5/F6. Δ is verdict minus measurement, no audio [95% CI] and with audio. F1 flip is the flipped verdict — 0 means every pair followed the wrong statement.

The derivation ladder. On modulation, all three open models score 100% at d0. Replacing the conclusion with the new key, “D major,” leaves one step: recognizing that D major is a major key. Accuracy falls to as low as 57%. Giving the secondary dominant instead (d2) drops it to 0–26%, at or below chance. Giving only its pitches (d3) drops it to 0%. Cadence and structure follow the same trend, though the step where models fail differs by task. The limitation appears before any long chain of reasoning: one elementary step already costs up to 43 points. The frontier models split on the hardest chain — Gemini 2.5 Flash collapses at d2 like the open models (15%), while Gemini 3.6 Flash, which reasons internally before answering, holds 86% and 82% at d2 and d3; both are at or near 100% on every cadence and structure rung.

Three line charts for structure, modulation and cadence showing pair accuracy falling as derivation steps increase, for five models.

Pair accuracy against derivation depth on three tasks, no audio, n = 72 independent items each. Depth zero states the conclusion; each further step withholds one inference. Open models in color, frontier models in gray; dotted line is chance (25%).

Three line charts of accuracy across report formats F1 to F6, with and without audio, for three models.

Format profile, three models. Accuracy by report format, with and without audio. The open models fall off a cliff at the verdict/measurement boundary; Gemini 2.5 Flash sags but stays up. Audio changes the picture very little in either direction.


Finding 3

The first-step failure is not a knowledge gap

A natural explanation for the depth drop is missing music-theory knowledge. We test the required intermediate facts directly. At d1, all three open models identify whether a named key is major or minor with 100% accuracy, yet score as low as 57% when that same fact must be used to answer the modulation question. Even the first-step failure therefore reflects difficulty applying available knowledge to the tool output, not simply missing knowledge. At deeper levels both effects appear: some models lack the required theory, while others know the intermediate facts but still fail to combine them.

Model Audio,
no report
Ladder, without / with audio Knowledge, asked alone
d0d1d2d3 d1d2d3
Qwen2.5-Omni1710076 / 8926 / 250 / 010019 / 590
Audio Flamingo 3010081 / 80 / 00 / 010017 / 10012
Music Flamingo010057 / 816 / 30 / 110085 / 5919
Gemini 2.5 Flash1710010015 / 4321 / 3210083 / 10018
Gemini 3.6 Flash1310010086 / 8182 / 4710085 / 10023

Modulation: the derivation ladder beside the knowledge each depth needs. Audio, no report: pair accuracy from the clip alone (chance 25). Ladder: pair accuracy (%) without / with audio (n = 72 items; one number when both agree). Knowledge: the fact each depth needs, asked alone — d1, is a named key major or minor; d2, which key a dominant seventh resolves to / whether a scale degree is major or minor; d3, which chord a set of pitches spells. n = 48 per question for the open models (37 for the scale-degree question), n = 144 for Gemini.


Finding 4

Audio does not rescue derivation, and the gap persists on real recordings

Providing the original audio does not recover failures at deeper derivation depths. We then test whether the same pattern holds when the tool output comes from a running librosa analyzer rather than the template report, and whether it carries over to real GuitarSet recordings. When the analyzer is correct, conclusion-style outputs remain near-perfect, while measurement-style outputs reduce accuracy by 54–73 points across the three open models. When the analyzer gives an incorrect conclusion, the models follow it rather than correcting it from the audio, and on GuitarSet every model follows a wrong key annotation (33–100% of the time) even though the open models identify the key from audio alone in 50–62% of recordings and the Geminis in only 8–15%. Neither access to the audio, nor real tool output, nor real recordings removes the derivation gap.

Model Audio, no report Δ verdict − meas. Wrong verdict followed (%)
Synth.Guitar Templ.Librosa F1 flipLibrosaGuitar
Qwen2.5-Omni215564 / 4860 / 5710010063
Music Flamingo06265 / 6773 / 52100100100
Audio Flamingo 305065 / 5854 / 6110010033
Gemini 2.5 Flash17815 / 2133 / 23100100100
Gemini 3.6 Flash131510 / 1512 / 22100100100

Beyond the template report. Audio, no report: accuracy from the recording alone (synthetic: pair accuracy, chance 25; GuitarSet: open-ended key identification on 60 recordings, chance about 4). Δ: verdict minus measurement formats, without / with audio, for the template report and for a running librosa analyzer on the same synthetic audio (analyzer correct on 56 of 60 pairs in the open-model runs, 54 in the Gemini runs). Wrong verdict followed: how often a wrong tool conclusion was adopted.


Finding 5

Derivation fails either because the conclusion is never formed or because it is lost

Behavioral failure alone cannot tell us whether the model never computes an answer or computes one it fails to use. A logit lens on the frozen Qwen2.5-Omni projects the residual stream at the answer position through the output head at every layer, tracking its preference between the two candidate answers. The two tasks diverge.

Modulation — absence

never

The conclusion is not formed

The correct answer never becomes reliably decodable at any layer. Activation steering does not recover it — Qwen moves from 25% to at most 29% across seven layers — and stating the required rule in the prompt moves the open models nowhere (Qwen 26→12, AF3 0→0, MF 6→0) while lifting the Geminis to 92% and 99%. There is nothing internal to recover.

Structure — loss

93%

It is formed, then dropped

Although the final answer is wrong, the correct conclusion becomes decodable on 93% of items at an intermediate layer before weakening toward the output — the represented-but-unused pattern reported for speech prosody. Structure is also the task on which Qwen remains robust to greater derivation depth, reaching 90% at d2, linking stronger internal representation with greater behavioral robustness.

Two line charts of log-probability margin against layer, for modulation and structure, comparing verdict supplied against derivation required.

Logit lens on Qwen2.5-Omni: log-probability margin between the correct and incorrect answer words decoded from each layer. With derivation required the margin never leaves zero for modulation (d2, n = 72 items) but rises to +0.9 at layer 25 for structure (F4, n = 30) before falling at the output.


Finding 6

Explicit intermediate reasoning helps selectively, but does not solve the problem

If a derivation is never performed, forcing it into the transcript should help. We test this with a two-call procedure: in the first call the model states what the measurement says and what it indicates; in the second it answers using only its own first-call statement, with the original measurement withheld. This differs from ordinary chain-of-thought prompting, where the model can still fall back on the original evidence.

Taskd1d2d3
Modulation76 → 7926 → 00 → 0
Cadence83 → 8317 → 4217 → 8
Structure100 → 6290 → 3840 → 43

Two-call mitigation, Qwen2.5-Omni: pair accuracy (%), single call → two calls, n = 72 per rung.

Cadence d2 improves from 17% to 42%, and the failing structure full report on the battery from 0% to 17%. But deeper derivations are not rescued: modulation d3 remains at 0%, while cadence d3 falls from 17% to 8%. The procedure can also destroy information that was previously usable — structure d1 drops from 100% to 62% and d2 from 90% to 38% when the intermediate summary omits the score the second call needs. Externalizing the intermediate step helps in a few cells, hurts in others, and does not extend the model’s reasoning depth.


Conclusion

Given an MIR tool’s output, current audio-language models copy a stated conclusion but rarely derive one, and the loss grows with every reasoning step left to them. Our results motivate evaluating tool-augmented audio systems not only by whether they retrieve the right information, but also by how much derivation they leave to the language model and whether that derivation is performed reliably.

This also suggests a training direction: post-training should reward not only correct tool calling, but also correct tool reading — interpreting and reasoning over the returned output before answering. Derivation-depth examples and flipped-conclusion controls could provide supervision or reward signals for this capability, while also testing whether models verify rather than simply follow tool outputs. Future work will extend these ideas to broader model families and musical systems, including non-Western traditions.

  1. The failure is ordered by inferential distance, not by surface form. One elementary step costs up to 43 points, and the step at which a model collapses differs by task.
  2. It is not a knowledge gap at the first step. Every model answers the required fact perfectly alone. Deeper down a real gap (chord spelling, 0–23%) is mixed in for everyone, frontier models included.
  3. Only one of the two mechanisms is addressable by prompting. A conclusion that is formed and lost can be caught; one that is never formed cannot.

BibTeX

@misc{rajesh2026derivationdepth,
  title  = {Derivation Depth Exposes Reasoning Failures in
            Tool-Augmented Music Analysis},
  author = {Rajesh, Rupali and T V, Sethuraman and Khosla, Savya and
            Sunkara, Srinidhi and Shanmugham, Aditya and
            Maheshwari, Rohan and Hoiem, Derek},
  year   = {2026},
}