Dissonance Spectrum explicitly models perceptual frequency interactions for better music understanding
Organizations: Beijing Institute for General Artificial Intelligence, Beijing, China · Central Conservatory of Music, Beijing, China · Peking University, Beijing, China
Abstract
Conventional music representations describe acoustic energy over time and frequency but do not explicitly expose relations among simultaneous frequency components. We introduce the Dissonance Spectrum (DS), a nonnegative time--frequency representation that applies a tolerance-based rational pitch-relation kernel with logarithmic harmonic distance to a constant-Q spectrum and attributes aggregate pairwise interactions back to individual frequency bins. Controlled music-theory tests show strong ordinal agreement for intervals, harmonic-function connections, and church modes, and weaker but significant agreement across diverse chord voicings. DS is then encoded by a lightweight parallel branch whose zero-initialized residual projection preserves the baseline function at initialization. Across six paired training seeds in open-ended music question answering and categorical and dimensional music emotion recognition, DS obtains the highest mean on every reported endpoint relative to the unchanged baseline, a parameter-matched Gaussian-input branch, and an architecture-matched magnitude-CQT branch. These results support DS as an interpretable, complementary representation, while listener-specific perception and broader task coverage remain open problems.
Figures & tables
| Test | Spearman | Kendall | |
|---|---|---|---|
| Intervals | 13 | .951 ( ) | .846 ( ) |
| Chord quality (4 exemplars) | 4 | 1.000 (–) | 1.000 (–) |
| Chord quality (13 voicings) | 13 | .626 (.022) | .462 (.030) |
| Functional connections | 7 | .794 (.033) | .655 (.054) |
| Church modes | 7 | .893 (.0068) | .810 (.0107) |
| Metric | Baseline | Gaussian | CQT | DS | |
|---|---|---|---|---|---|
| BLEU | .2987 .0019 | .2985 .0019 | .3056 .0015 | .3074 .0014 | |
| METEOR | .3761 .0017 | .3759 .0018 | .3838 .0014 | .3857 .0013 | |
| ROUGE-L | .4556 .0018 | .4554 .0019 | .4643 .0016 | .4671 .0015 | |
| BERTScore-R | .8952 .0007 | .8950 .0006 | .8996 .0006 | .9024 .0015 | |
| Test loss | .625 .004 | .626 .004 | .607 .003 | .600 .002 | |
| Perplexity | 1.868 .008 | 1.870 .008 | 1.836 .005 | 1.822 .004 |
| Metric | Baseline | Gaussian | CQT | DS |
|---|---|---|---|---|
| J-PR | .1580 | |||
| J-ROC | .7841 | |||
| DEAM-V | .5355 | |||
| DEAM-A | .6291 | |||
| Emo-V | .6642 | |||
| Emo-A | .7668 |
Appendix figures & tables36 assets
Supplementary material from the paper’s appendix.
Appendix
| Item | Setting |
|---|---|
| Audio / frame rate | 22.05 kHz mono / 4 frames s -1 |
| CQT grid | 8 octaves, 72 bins octave -1 , , |
| Kernel | , relative tolerance , octave folding |
| Preprocessing | linear magnitude, relative-frame soft gate at 0.1, context window 4 s |
| Peak selection | prominence .015; other peak filters disabled |
| Scaling | target and reference normalized separately; final factor |
| Note | Rank | Note | Rank | ||
|---|---|---|---|---|---|
| C4 | 1 | .000253 | G4 | 3 | .001145 |
| C 4 | 13 | .004379 | G 4 | 7 | .001913 |
| D4 | 11 | .003476 | A4 | 6 | .001703 |
| D 4 | 8 | .002463 | A 4 | 10 | .002583 |
| E4 | 5 | .002298 | B4 | 12 | .002802 |
| F4 | 4 | .001614 | C5 | 2 | .000030 |
| Chord | Semitones | Rank | Chord | Semitones | Rank | ||
|---|---|---|---|---|---|---|---|
| Major-1 | [0,4,7] | 1 | .005691 | Sus-1 | [0,7,17] | 7 | .005641 |
| Major-2 | [0,3,8] | 5 | .006941 | Sus-2 | [0,2,7] | 6 | .006758 |
| Major-3 | [0,9,17] | 3 | .006299 | Sus-3 | [0,10,17] | 4 | .007769 |
| Minor-1 | [0,3,7] | 2 | .006058 | Dim-1 | [0,3,6] | 12 | .015950 |
| Minor-2 | [0,4,9] | 10 | .006738 | Dim-2 | [0,9,15] | 9 | .008581 |
| Minor-3 | [0,8,17] | 8 | .006363 | Dim-3 | [0,9,18] | 11 | .008172 |
| File | First chord | Group | Rank | |
|---|---|---|---|---|
| CC | C–E–G | tonic | 1 | .003848 |
| DC | D–F–A | predominant | 2 | .009701 |
| EC | E–G–B | tonic | 1 | .005311 |
| FC | F–A–C | predominant | 2 | .008495 |
| G7C | G–B–D–F | dominant | 3 | .010312 |
| AC | A–C–E | tonic | 1 | .005695 |
| Mode | Rank | |
|---|---|---|
| Ionian | 1 | .030220 |
| Mixolydian | 2 | .030273 |
| Lydian | 3 | .033697 |
| Dorian | 4 | .030704 |
| Aeolian | 5 | .031444 |
| Phrygian | 6 | .033937 |
| Audio | Duration (s) | Audio | Duration (s) | ||
|---|---|---|---|---|---|
| Saxophone | 14.005 | .003134 | Violins | 15.531 | .005633 |
| Guitar | 14.005 | .003170 | Alto | 15.214 | .007333 |
| Piano | 14.099 | .004385 | Trumpet | 14.005 | .011913 |
| Flute | 15.724 | .029903 | 24-TET sequence | 26.005 | .003751 |
| Metric | vs. Baseline | vs. Gaussian | vs. CQT |
|---|---|---|---|
| BLEU | +.0087 | +.0089 | +.0018 |
| METEOR | +.0096 | +.0098 | +.0019 |
| ROUGE-L | +.0115 | +.0117 | +.0028 |
| BERTScore-R | +.0072 | +.0074 | +.0028 |
| Test loss | -.025 | -.026 | -.007 |
| Perplexity | -.046 | -.048 | -.014 |
| ID | Audio ID | Dataset track index | Original Token F1 | ID | Audio ID | Dataset track index | Original Token F1 |
|---|---|---|---|---|---|---|---|
| 01 | 012895.wav | 661609 | .000 | 06 | 013055.wav | 873804 | .071 |
| 02 | 012815.wav | 477309 | .038 | 07 | 012553.wav | 8308 | .111 |
| 03 | 012725.wav | 267904 | .063 | 08 | 012986.wav | 796003 | .073 |
| 04 | 012786.wav | 387501 | .087 | 09 | 012972.wav | 768506 | .094 |
| 05 | 012750.wav | 345903 | .000 | 10 | 013063.wav | 875005 | .103 |
| ID | Question | Reference answer | Original MU-LLaMA | DS-augmented MU-LLaMA |
|---|---|---|---|---|
| 01 | What is the term used to describe a style of music that features a strong emphasis on melody and harmony? | Acoustic rock is a term used to describe a style of music that features a strong emphasis on melody and harmony. Acoustic rock typically combines elements of rock and folk music, with acoustic guitar, harmonica, and vocals as the main instruments. | Classical. | Acoustic rock. |
| 02 | What type of orchestral music is characterized by complex harmonies and intricate compositions? | Progressive orchestral. Progressive orchestral music incorporates elements of progressive rock, avant-garde, and experimental music, and is characterized by complex harmonies and intricate compositions. | Symphonic music. | Progressive orchestral music. |
| 03 | What can be inferred from the audio? | The audio blends folk, punk rock, rock, and ska. It uses acoustic guitars, bass, drums, and occasional brass and strings, with gruff vocals, harmonies, and call-and-response sections. | The song is about a man’s love for a woman. | The music blends folk, punk rock, ska, and acoustic instrumentation. |
| 04 | Describe the audio in detail. | The audio is a soothing and upbeat tune with a catchy melody and harmonious vocals. Harp, synthesizer, and piano create an elegant, layered, and enjoyable arrangement. | The music is described as slow and weird. | The music is described as soothing, upbeat, and harmonious. |
| 05 | What is the genre of music that is characterized by a slow and smooth rhythm, often played on a saxophone? | Bossanova. It originated in Brazil and is known for its relaxed and romantic sound, often featuring a slow and smooth rhythm. | Jazz. | Bossanova. |
| ID | Question | Reference answer | Original MU-LLaMA | DS-augmented MU-LLaMA |
|---|---|---|---|---|
| 06 | What can be inferred from the audio? | The audio appears to be a movie or TV soundtrack with a moody, atmospheric character. Its slow, mellow melody and layered guitars and piano evoke longing, nostalgia, and introspection. | The song is about love and heartbreak. | The music feels moody, mellow, nostalgic, and introspective. |
| 07 | Describe the audio in detail. | A relaxing instrumental composition combining electronic, lounge, and oriental music. Its slow, smooth tempo and minimal instrumentation create a calming atmosphere. | The music is described as having a weird and otherworldly quality. | The music is described as relaxing, smooth, and gently oriental. |
| 08 | What can be inferred from the audio? | A relaxing and upbeat trip-hop track for chilling out. Synthesizer, strings, bass, drums, Rhodes, and trumpet create a dreamy, smooth, and sophisticated atmosphere. | The song is about love and heartbreak. | The track is relaxing, upbeat, dreamy, and sophisticated. |
| 09 | Describe the audio in detail. | A calm orchestral composition. Acoustic bass, cello, piano, violin, bell, and oboe create a warm, elegant, magical, and serene piece for relaxing. | The music is described as having a weird and otherworldly quality. | The music is described as calm, warm, elegant, and serene. |
| 10 | Describe the audio in detail. | A fusion of classical and ambient music with flute and synthesizer, a slow and mellow pace, bass and electric guitar foundation, and soulful background vocals. | The music is described as having a weird and scary atmosphere. | The music is described as slow, mellow, soulful, and ambient. |
| Variant | BERTScore-R | vs. proposed |
|---|---|---|
| Global DS | .8985 .0007 | |
| Randomized kernel | .8992 .0009 | |
| Temporal DS, shuffled | .8997 .0007 | |
| Temporal DS, pre-projection | .9004 .0006 | |
| Temporal DS, proposed | .9015 .0013 | – |
| Variant | Emotion |
|---|---|
| Global DS | .6524 .0015 |
| Temporal DS, shuffled | .6550 .0017 |
| Global DS, early concatenation | .6558 .0016 |
| Temporal DS, proposed | .6589 .0018 |
| Source | BLEU | METEOR | ROUGE-L | BERTScore-R |
|---|---|---|---|---|
| Original report (released script) | .3060 | .3850 | .4660 | .9010 |
| Our baseline (specified metrics) | .2987 | .3761 | .4556 | .8952 |
| Absolute difference | .0073 | .0089 | .0104 | .0058 |
| Source | J-PR | J-ROC | DEAM-V | DEAM-A | Emo-V | Emo-A | PM-V | PM-A |
|---|---|---|---|---|---|---|---|---|
| Original report | .1543 | .7810 | .5184 | .6228 | .6512 | .7616 | .5473 | .7940 |
| Our baseline | .1539 | .7806 | .5169 | .6209 | .6487 | .7598 | .5451 | .7926 |
| Absolute difference | .0004 | .0004 | .0015 | .0019 | .0025 | .0018 | .0022 | .0014 |
| Seed | Baseline | Gaussian | CQT | DS |
|---|---|---|---|---|
| 17 | .8943 | .8942 | .8990 | .9001 |
| 42 | .8950 | .8948 | .8996 | .9017 |
| 101 | .8954 | .8951 | .8998 | .9027 |
| 2025 | .8948 | .8947 | .8989 | .9028 |
| 2026 | .8962 | .8960 | .8997 | .9024 |
| 3407 | .8955 | .8952 | .9006 | .9047 |
| Seed | Baseline | Gaussian | CQT | DS |
|---|---|---|---|---|
| 17 | .6453 | .6449 | .6519 | .6560 |
| 42 | .6472 | .6466 | .6542 | .6587 |
| 101 | .6481 | .6476 | .6552 | .6596 |
| 2025 | .6464 | .6457 | .6525 | .6580 |
| 2026 | .6494 | .6488 | .6557 | .6602 |
| 3407 | .6476 | .6468 | .6555 | .6609 |
| Task | Comparison | Mean | ||
|---|---|---|---|---|
| MusicQA | DS vs. Baseline | +.0072 | .0938 | |
| MusicQA | DS vs. Gaussian | +.0074 | .0938 | |
| MusicQA | DS vs. CQT | +.0028 | .0017 | .0938 |
| Music2Emo | DS vs. Baseline | +.0116 | .0938 | |
| Music2Emo | DS vs. Gaussian | +.0122 | .0938 | |
| Music2Emo | DS vs. CQT | +.0047 | .0938 |