TL;DR
This paper introduces ImprovNet, a novel transformer-based model for generating expressive and controllable musical improvisations. By employing a self-supervised corruption-refinement strategy, ImprovNet can perform cross-genre and intra-genre style transfer, harmonize melodies, and handle prompt continuation and infilling tasks, offering users fine-grained control over the output.
What Problem Does This Paper Address?
Generating high-quality, controllable musical style transfer, especially for complete symbolic music pieces, is a significant challenge. Existing methods often struggle with limited datasets (particularly for genres like jazz), a lack of unified models capable of multiple generation tasks, and difficulties in controlling the degree of style transfer while preserving structural integrity. This research aims to bridge this gap by providing a flexible and controllable framework for musical improvisation that goes beyond simple note generation.
Methods
ImprovNet utilizes a transformer architecture trained with a self-supervised corruption-refinement strategy. The core idea involves segmenting a musical piece into 5-second chunks. During training, these segments are intentionally corrupted using various "corruption functions" (e.g., masking pitch-velocity, permuting notes, fragmentation) and then fed into the transformer along with genre and corruption type tokens. The model learns to reconstruct the original segment, effectively learning to "fix" the corruption.
For generation, ImprovNet iteratively corrupts and refines segments. Users can control the degree of style transfer by selecting corruption functions, corruption rates, and the number of refinement passes. This iterative process allows for gradual shaping of the music towards a target genre. A key innovation is the use of a "skyline" corruption function combined with logit constraints to enable genre-conditioned harmonization of monophonic melodies.
Datasets
- Pre-training: A retranscribed version of the ATEPP dataset (~1000 hours of classical solo piano music).
- Fine-tuning:
- Maestro dataset (177 hours of classical piano music).
- PiJAMA dataset (~200 hours of jazz piano music).
- Doug McKenzie dataset (307 short jazz MIDI pieces).
- Evaluation:
- Wikifonia dataset (100 pieces for harmonization task).
- A subset of the fine-tuning datasets for style-aware improvisation and prompt continuation/infilling tasks.
Key Insights and Ideas
- Corruption as a Training Signal: Intentionally corrupting music segments and training a model to refine them is a powerful self-supervised learning approach for musical generation and style transfer.
- Controllable Style Transfer: The iterative refinement process, coupled with user-selectable corruption functions and rates, provides unprecedented control over the degree of style transfer and structural similarity to the original piece.
- Unified Framework: ImprovNet successfully integrates multiple music generation tasks (style transfer, harmonization, continuation, infilling) into a single architecture, addressing a significant limitation in prior work.
- Harmonization with Constraints: Using a "skyline" corruption function and logit constraints during generation is an effective method for harmonizing monophonic melodies with genre-specific chord progressions.
- Generalizability of Corruption-Refinement: The paper suggests that this corruption-refinement paradigm could be applicable to other domains, drawing parallels to diffusion models.
Key Results
- Genre Identification: 79% of participants correctly identified jazz-style improvisations generated from classical pieces.
- Prompt Continuation/Infilling: ImprovNet outperformed the Anticipatory Music Transformer (AMT) baseline in objective metrics for short prompt continuation and infilling tasks.
- Harmonization: ImprovNet with constraints produced more diverse chords and a better "pitch in scale rate" compared to unconstrained generation or random chords, though cross-genre harmonization sometimes introduced higher tonal tension.
- Subjective Evaluation: Participants rated ImprovNet's generated improvisations as nearly on par with originals in terms of interestingness and structural similarity, with intra-genre improvisations generally scoring higher on human-likeness.
Limitations and Future Work
- Harmonization Density: The harmonization task can sometimes produce overly dense chords, which could be improved with additional conditional tokens.
- Rhythm Irregularity: The onset-duration mask corruption can occasionally lead to irregular rhythms; future work aims to refine this for more consistent swing rhythms.
- Distorted Phrasal Structures: In cross-genre improvisations, occasional distorted phrasal structures were noted, impacting the human-like score.
- Future Work: The authors suggest exploring the generalizability of the corruption-refinement framework to other domains, including large language models, and further refining rhythmic generation.
Summary updated