MIDI-RAE-JEPA: Hierarchical Representation Learning and Generation for Symbolic Music

· Source: Machine Learning · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Computational Music & Audio · Depth: Expert, quick

Summary

MIDI-RAE-JEPA is a novel self-supervised approach for learning hierarchical representations of symbolic music, addressing the underexplored area of multiscale musical structure encoding. It integrates a pitch- and time-shift equivariance objective with LeJEPA and a Swin Transformer V2 encoder, processing symbolic music as piano roll images. The encoder is trained exclusively using self-supervised objectives, including a masked embedding predictor, with SIGReg preventing collapse. A separate decoder, trained on the frozen encoder embeddings, achieves a high reconstruction F1 score of 0.995. Furthermore, a flow matching generative model, conditioned on these embeddings, accurately reproduces the pitch register and rhythmic density of input excerpts. The learned representations surpass a Haar scattering transform baseline in a downstream emotion classification task, and demonstrate measurable equivariance, with embedding distances increasing monotonically with pitch and time shift magnitude.

Key takeaway

For Machine Learning Engineers building music AI, this research highlights a powerful approach for creating semantically rich symbolic music representations. You should consider integrating equivariance-based self-supervised learning objectives, like those in MIDI-RAE-JEPA, with high-capacity encoders. This method can significantly improve both music understanding tasks, such as emotion classification, and the quality of generative models by producing outputs that accurately reflect desired musical characteristics.

Key insights

MIDI-RAE-JEPA uses equivariance-based self-supervised learning to create rich, hierarchical representations for symbolic music generation and understanding.

Principles

Method

Combines pitch/time-shift equivariance with LeJEPA and Swin Transformer V2. Encoder uses masked embedding prediction and SIGReg. Decoder reconstructs from frozen embeddings.

In practice

Topics

Best for: Research Scientist, AI Scientist, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.