All models

CLMR

A contrastive, label-free learner of music representations from raw audio.

Audio and speech · 94 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (69 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
2.7M
Operations
94
Framework
PyTorch
Recurrent
Yes
Published
ISMIR 2021
Cited by
56 (as of 24 October 2026)
Authors
Janne Spijkervet, John Ashley Burgoyne
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m15118
Graph hash
6ad61832179321aa57c47bc41c3ced0f6495d41ca4b91321c28b8cc8139eb13d
Skeleton hash
e123105d5b0969921a7f6358fa5124054d9dbcf6b08251c19941f9d985f9930c
Architecture hash
012f1df1775d9d871601fd3dd702b6acd4dbcabc3ced2b226d52f95811cdcef0
Diagram SHA-256
b29323ec943fe4c197c5907ec149310a313cc2275b14273c4d794d618cec9bce
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

CLMR, short for Contrastive Learning of Musical Representations, learns representations of music from raw time-domain audio without any labels. The paper starts from the difficulty of creating labeled music datasets and brings SimCLR to the music domain with a large chain of audio data augmentations.

Training starts with augmentations that produce two correlated versions of the same audio fragment. An encoder turns each into a representation, and a projector maps that to the latent space where the contrastive loss is formulated. The encoder is the SampleCNN architecture. With its final output layer removed, it yields a 512-dimensional feature vector for every audio input. The loss is the normalized temperature-scaled cross-entropy loss, known as NT-Xent.

The paper reports that a linear classifier trained on these representations achieved a higher average precision than supervised models on the MagnaTagATune dataset and performed comparably on the Million Song dataset. Using only 259 labeled songs from MagnaTagATune, 1% of the full dataset, it reports an average precision of 33.1%.

Key idea. The paper adapts SimCLR to raw music audio with a chain of audio data augmentations, learning representations without labels that a linear classifier can use for music classification.

  • clmr
  • contrastive learning of musical representations
  • music representation learning
  • self-supervised music
  • music classification
  • music tagging
  • raw audio
  • contrastive learning

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{spijkervet2021contrastivelearningmusicalrepresentations,
      title={Contrastive Learning of Musical Representations}, 
      author={Janne Spijkervet and John Ashley Burgoyne},
      year={2021},
      eprint={2103.09410},
      archivePrefix={arXiv},
      primaryClass={cs.SD},
      url={https://arxiv.org/abs/2103.09410}, 
}