SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.14537 · 2026

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

Scott Hawley

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 3 functions out of this paper's own repositories and ran 1 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
drscotthawley/midi-rae — 1 of 3
FunctionStatusWhere it lives
HierarchicalPatchState Ran drscotthawley/midi-rae/midi_rae/swin.py
code served (permissive licence) · get_code("b9bf4a176a54d45a")
EncoderOutput Not yet run drscotthawley/midi-rae/midi_rae/swin.py
code served (permissive licence) · get_code("d2ce4f0be4f934d5")
SwinMaskedEmbeddingPredictor Not yet run drscotthawley/midi-rae/midi_rae/swin.py
code served (permissive licence) · get_code("67128dbfdfe4d61e")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Rich internal representations of musical structure are essential for music understanding tasks such as machineassisted music co-writing, yet self-supervised approaches for symbolic music representation remain underexplored, particularly those that encode the hierarchical multiscale nature of musical structures. We present MIDI-RAE-JEPA, combining a pitch-and time-shift equivariance objective with LeJEPA and a Swin Transformer V2 encoder to learn such hierarchical representations of symbolic music encoded as piano roll images. The time-shift equivariance objective encourages the model to internalize temporal musical relationships. The encoder is trained purely on selfsupervised objectives -including a masked embedding predictor (MEP) -with collapse prevented via SIGReg. A separate decoder trained on the frozen encoder embeddings achieves reconstruction F1 of 0.995, and a flow matching generative model conditioned on those embeddings produces generations that closely match the pitch register and rhythmic density of the conditioning excerpt, while mismatched conditioning yields unrelated but musically plausible output. Learned representations outperform a Haar scattering transform baseline on a downstream emotion classification task, and embedding distances increase monotonically with pitch and time shift magnitude, confirming measurable equivariance. These results suggest that equivariance-based SSL objectives, combined with sufficient fine-level encoder capacity, provide a viable path toward semantically rich, generatively useful representations of symbolic music.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2607.14537")
get_code_for_paper("2607.14537")
have("2607.14537")

Connect an agent — have() is free.