Pay (Cross) Attention to the Melody: Curriculum Masking for Single-Encoder Melodic Harmonization
Not on the map. Why?
Abstract (arXiv)
Melodic harmonization, the task of generating harmonic accompaniments for a given melody, remains a central challenge in computational music generation. Recent single encoder transformer approaches have framed harmonization as a masked sequence modeling problem, but existing training curricula inspired by discrete diffusion often result in weak (cross) attention between melody and harmony. This leads to limited exploitation of melodic cues, particularly in out-of-domain contexts. In this work, we introduce a training curriculum, FF (full-to-full), which keeps all harmony tokens masked for several training steps before progressively unmasking entire sequences during training to strengthen melody-harmony interactions. We systematically evaluate this approach against prior curricula across multiple experimental axes, including temporal quantization (quarter vs. sixteenth note), bar-level vs. time-signature conditioning, melody representation (full range vs. pitch class), and inference-time unmasking strategies. Models are trained on the HookTheory dataset and evaluated both in-domain and on a curated collection of jazz standards, using a comprehensive set of metrics that assess chord progression structure, harmony-melody alignment, and rhythmic coherence. Results demonstrate that the proposed FF curriculum consistently outperforms baselines in nearly all metrics, with particularly strong gains in out-of-domain evaluations where harmonic adaptability to novel melodic queues is crucial. We further find that quarter-note quantization, intertwining of bar tokens, and pitch-class melody representations are advantageous in the FF setting. Our findings highlight the importance of training curricula in enabling effective melody conditioning and suggest that full-to-full unmasking offers a robust strategy for single encoder harmonization.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 34 of its 55 references that are in the map. First posted on arXiv 22 Jan 2026.
Builds on
34 of 55 references.
References · 34
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2021Improved Denoising Diffusion Probabilistic Modelscited by 3,736
- 2021Structured Denoising Diffusion Models in Discrete State-Spacescited by 1,665
- 2021ViLT: Vision-and-Language Transformer Without Convolution or Region Supervisioncited by 1,224
- 2022MaskGIT: Masked Generative Image Transformercited by 1,082
- 2019Multimodal Transformer for Unaligned Multimodal Language Sequencescited by 637
- 2019What BERT is not: Lessons from a new suite of psycholinguistic diagnostics for language modelscited by 317
- 2019Levenshtein Transformercited by 197
- 2019BERT has a Mouth, and It Must Speak: BERT as a Markov Random Field Language Modelcited by 184
- 2019CLUTRR: A Diagnostic Benchmark for Inductive Reasoning from Textcited by 155
22 more
- 2021Symbolic Music Generation with Diffusion Modelscited by 152
- 2013Generalized Denoising Auto-Encoders as Generative Modelscited by 113
- 2020Multimodal Pretraining Unmasked: A Meta-Analysis and a Unified Framework of Vision-and-Language BERTscited by 71
- 2021Vision-and-Language or Vision-for-Language? On Cross-Modal Influence in Multimodal Transformerscited by 71
- 2024Symbolic Music Generation with Non-Differentiable Rule Guided Diffusioncited by 52
- 2023Polyffusion: A Diffusion Model for Polyphonic Score Generation with Internal and External Controlscited by 35
- 2019Learning to Traverse Latent Spaces for Musical Score Inpaintingcited by 24
- 2024Whole-Song Hierarchical Generation of Symbolic Music Using Cascaded Diffusion Modelscited by 24
- 2020Automatic Melody Harmonization with Triad Chords: A Comparative Studycited by 19
- 2023Discrete Diffusion Probabilistic Models for Symbolic Music Generationcited by 16
- 2023GETMusic: Generating Any Music Tracks with a Unified Representation and Diffusion Frameworkcited by 13
- 2024MelodyT5: A Unified Score-to-Score Transformer for Symbolic Music Processingcited by 12
- 2021SurpriseNet: Melody Harmonization Conditioning on User-controlled Surprise Contourscited by 9
- 2017Chord Generation from Symbolic Melody Using BLSTM Networkscited by 8
- 2023Composer Style-specific Symbolic Music Generation Using Vector Quantized Discrete Diffusion Modelscited by 8
- 2020Melody Harmonization Using Orderless NADE, Chord Balancing, and Blocked Gibbs Samplingcited by 7
- 2023Generating symbolic music using diffusion modelscited by 7
- 2021Generating Chord Progression from Melody with Flexible Harmonic Rhythm and Controllable Harmonic Densitycited by 5
- 2024Emotion-Driven Melody Harmonization via Melodic Variation and Functional Representationcited by 4
- 2023Fast Diffusion GAN Model for Symbolic Music Generation Controlled by Emotionscited by 3
- 2025Mamba-Diffusion Model with Learnable Wavelet for Controllable Symbolic Music Generationcited by 3
- 2024SYMPLEX: Controllable Symbolic Music Generation using Simplex Diffusion with Vocabulary Priorscited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026MIDI-RAE-JEPA: Hierarchical Representation Learning and Generation for Symbolic Music
- 2024Editing Music with Melody and Text: Using ControlNet for Diffusion Transformer
- 2024Improving Musical Accompaniment Co-creation via Diffusion Transformers
- 2024Pictures Of MIDI: Controlled Music Generation via Graphical Prompts for Image-Based Diffusion Inpainting
- 2026YuE2: Unifying Symbolic and Audio Music Generation at Frontier Quality
- 2023InstructME: An Instruction Guided Music Edit And Remix Framework with Latent Diffusion Models
- 2026Helping Music Co-Creation Agents 'Listen' Well: Hierarchical Self-Supervised World Models for Understanding and Generation
- 2024YourMT3+: Multi-instrument Music Transcription with Enhanced Transformer Architectures and Cross-dataset Stem Augmentation