mlsanityData to 14 Oct 2026

Emergent musical properties of a transformer under contrastive self-supervised learning

arXiv 2506.23873 ↗First posted 30 Jun 2025cs.SD cs.IR cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

In music information retrieval (MIR), contrastive self-supervised learning for general-purpose representation models is effective for global tasks such as automatic tagging. However, for local tasks such as chord estimation, it is widely assumed that contrastively trained general-purpose self-supervised models are inadequate and that more sophisticated SSL is necessary; e.g., masked modeling. Our paper challenges this assumption by revealing the potential of contrastive SSL paired with a transformer in local MIR tasks. We consider a lightweight vision transformer with one-dimensional patches in the time--frequency domain (ViT-1D) and train it with simple contrastive SSL through normalized temperature-scaled cross-entropy loss (NT-Xent). Although NT-Xent operates only over the class token, we observe that, potentially thanks to weight sharing, informative musical properties emerge in ViT-1D's sequence tokens. On global tasks, the temporal average of class and sequence tokens offers a performance increase compared to the class token alone, showing useful properties in the sequence tokens. On local tasks, sequence tokens perform unexpectedly well, despite not being specifically trained for. Furthermore, high-level musical features such as onsets emerge from layer-wise attention maps and self-similarity matrices show different layers capture different musical dimensions. Our paper does not focus on improving performance but advances the musical interpretation of transformers and sheds light on some overlooked abilities of contrastive SSL paired with transformers for sequence modeling in MIR.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 34 of its 48 references that are in the map. First posted on arXiv 30 Jun 2025.

Builds on

34 of 48 references.

References · 34

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
  4. 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,974
  5. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
  6. 2020Exploring Simple Siamese Representation Learningcited by 2,866
  7. 2021HuBERT: Self-Supervised Speech Representation Learning by Masked Prediction of Hidden Unitscited by 2,342
  8. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
  9. 2021AST: Audio Spectrogram Transformercited by 643
  10. 2020Jukebox: A Generative Model for Musiccited by 542
  11. 2021Efficient Training of Audio Transformers with Patchoutcited by 226
  12. 2016FMA: A Dataset For Music Analysiscited by 207
22 more
  1. 2023MERT: Acoustic Music Understanding Model with Large-Scale Self-supervised Trainingcited by 181
  2. 2022MuLan: A Joint Embedding of Music Audio and Natural Languagecited by 87
  3. 2021Contrastive Learning of Musical Representationscited by 82
  4. 2020SBERT-WK: A Sentence Embedding Method by Dissecting BERT-based Word Modelscited by 56
  5. 2021Towards Learning Universal Audio Representationscited by 51
  6. 2023A Foundation Model for Music Informaticscited by 46
  7. 2024Foundation Models for Music: A Surveycited by 37
  8. 2022Supervised and Unsupervised Learning of Audio Representations for Music Understandingcited by 35
  9. 2022Contrastive Audio-Language Learning for Musiccited by 33
  10. 2024Music2Latent: Consistency Autoencoders for Latent Audio Compressioncited by 33
  11. 2017Sample-level Deep Convolutional Neural Networks for Music Auto-tagging Using Raw Waveformscited by 27
  12. 2024Masked Modeling Duo: Towards a Universal Audio Pre-training Frameworkcited by 23
  13. 2023PESTO: Pitch Estimation with Self-supervised Transposition-equivariant Objectivecited by 18
  14. 2022Equivariant Self-Supervision for Musical Tempo Estimationcited by 9
  15. 2022S3T: Self-Supervised Pre-training with Swin Transformer for Music Classificationcited by 8
  16. 2024STONE: Self-supervised Tonality Estimatorcited by 8
  17. 2022Towards Proper Contrastive Self-supervised Learning Strategies For Music Audio Representationcited by 5
  18. 2020Data Cleansing with Contrastive Learning for Vocal Note Event Annotationscited by 4
  19. 2023Multi-Source Contrastive Learning from Musical Audiocited by 4
  20. 2024On the Effect of Data-Augmentation on Local Embedding Properties in the Contrastive Learning of Music Audio Representationscited by 4
  21. 2024An Experimental Comparison Of Multi-view Self-supervised Methods For Music Taggingcited by 4
  22. 2025S-KEY: Self-supervised Learning of Major and Minor Keys from Audiocited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.