Skip to main content
QUICK REVIEW

[Paper Review] Generating Music Medleys via Playing Music Puzzle Games

Yu-Siang Huang, Szu-Yu Chou|arXiv (Cornell University)|Sep 13, 2017
Music and Audio ProcessingComputer Science29 references4 citations
TL;DR

This paper proposes a self-supervised learning approach called the Similarity Embedding Network (SEN) that trains neural networks to generate music medleys by solving music puzzle games—sorting audio fragments in correct temporal order. By learning frame-level similarity matrices and embedding them into a shared space, SEN outperforms baselines on music jigsaw, sequencing, and medley tasks, achieving 0.790 and 0.750 global accuracy on medley games with downbeat-informed segmentation.

ABSTRACT

Generating music medleys is about finding an optimal permutation of a given set of music clips. Toward this goal, we propose a self-supervised learning task, called the music puzzle game, to train neural network models to learn the sequential patterns in music. In essence, such a game requires machines to correctly sort a few multisecond music fragments. In the training stage, we learn the model by sampling multiple non-overlapping fragment pairs from the same songs and seeking to predict whether a given pair is consecutive and is in the correct chronological order. For testing, we design a number of puzzle games with different difficulty levels, the most difficult one being music medley, which requiring sorting fragments from different songs. On the basis of state-of-the-art Siamese convolutional network, we propose an improved architecture that learns to embed frame-level similarity scores computed from the input fragment pairs to a common space, where fragment pairs in the correct order can be more easily identified. Our result shows that the resulting model, dubbed as the similarity embedding network (SEN), performs better than competing models across different games, including music jigsaw puzzle, music sequencing, and music medley. Example results can be found at our project website, https://remyhuang.github.io/DJnet.

Motivation & Objective

  • To develop a self-supervised method for learning sequential patterns in music using audio fragment ordering as a supervisory signal.
  • To address the challenge of ordering multisecond, non-overlapping music fragments from the same or different songs.
  • To enable automatic music medley generation as a practical application of sequential audio understanding.
  • To improve upon existing Siamese networks by learning from frame-level similarity matrices in a shared embedding space.

Proposed method

  • The model uses a Siamese convolutional network to process pairs of audio fragments and compute frame-level similarity scores between them.
  • A similarity matrix is constructed from these scores, representing temporal alignment and structural coherence between fragment pairs.
  • The network learns to embed the similarity matrix into a common space where in-order (positive) pairs are more easily separable from out-of-order (negative) pairs.
  • The method employs a pair-wise evaluation strategy, assessing n(n−1) fragment pairs instead of all n! permutations, enabling scalability to larger fragment sets.
  • Downbeat tracking is used to create musically meaningful, non-overlapping fragments, improving model generalization.
  • The model is trained using three types of negative pairs: R1R3, R2R1, and R3R1, with ablation studies showing that using all three improves performance.

Experimental results

Research questions

  • RQ1Can a self-supervised learning framework based on music puzzle games effectively learn sequential patterns in audio?
  • RQ2How does the proposed SEN model compare to existing Siamese networks in sorting audio fragments from the same or different songs?
  • RQ3To what extent does downbeat-informed segmentation improve the model’s ability to learn musically meaningful patterns?
  • RQ4Can the model generalize to complex tasks like music medley generation, where fragments are from different songs?
  • RQ5What types of negative training samples are most effective for improving the model’s discrimination of correct temporal order?

Key findings

  • The SEN model achieves a global accuracy of 0.790 on the music medley game when trained with downbeat-informed segmentation, significantly outperforming baseline models.
  • Using all three types of negative pairs (R1R3, R2R1, R3R1) in training yields the best performance, with R2R1 alone being insufficient for optimal results.
  • The model learns to distinguish not only in-order from out-of-order pairs but also between consecutive (R2R1) and non-consecutive (R1R3, R3R1) pairs, indicating sensitivity to sequential structure.
  • Ablation studies show that replacing cosine similarity with inner product harms performance due to lack of normalized similarity scores.
  • The model preserves local ordering in predictions, with many incorrect predictions still sounding musically plausible due to correct local segment sequencing.
  • Visualizations of learned features show that convolutional filters detect distinct patterns and textures in similarity matrices, confirming the model captures meaningful structural information.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.