Skip to main content
QUICK REVIEW

[Paper Review] A Predictive Model for Music Based on Learned Interval Representations

Stefan Lattner, Maarten Grachten|arXiv (Cornell University)|Jun 22, 2018
Music and Audio ProcessingComputer Science11 references17 citations
TL;DR

This paper proposes the Recurrent Gated Autoencoder (RGAE), a sequence model that learns relative pitch intervals instead of absolute pitches, enabling improved generalization and explicit modeling of musical repetition and transposition. The RGAE achieves 99.43% average precision in predicting transposed musical repetitions—dramatically outperforming standard RNNs—by learning copy-and-shift operations in interval space.

ABSTRACT

Connectionist sequence models (e.g., RNNs) applied to musical sequences suffer from two known problems: First, they have strictly "absolute pitch perception". Therefore, they fail to generalize over musical concepts which are commonly perceived in terms of relative distances between pitches (e.g., melodies, scale types, modes, cadences, or chord types). Second, they fall short of capturing the concepts of repetition and musical form. In this paper we introduce the recurrent gated autoencoder (RGAE), a recurrent neural network which learns and operates on interval representations of musical sequences. The relative pitch modeling increases generalization and reduces sparsity in the input data. Furthermore, it can learn sequences of copy-and-shift operations (i.e. chromatically transposed copies of musical fragments)---a promising capability for learning musical repetition structure. We show that the RGAE improves the state of the art for general connectionist sequence models in learning to predict monophonic melodies, and that ensembles of relative and absolute music processing models improve the results appreciably. Furthermore, we show that the relative pitch processing of the RGAE naturally facilitates the learning and the generation of sequences of copy-and-shift operations, wherefore the RGAE greatly outperforms a common absolute pitch recurrent neural network on this task.

Motivation & Objective

  • Address the limitation of standard RNNs in modeling relative pitch relationships, which are fundamental to music theory but poorly captured by absolute pitch representations.
  • Overcome data sparsity and poor generalization in music sequence modeling by learning interval representations instead of absolute pitches.
  • Enable explicit modeling of musical repetition and transposed repetition (copy-and-shift operations), which are critical for musical form but often missed by standard RNNs.
  • Demonstrate that relative pitch processing via the RGAE complements absolute pitch models, improving overall prediction accuracy through ensemble methods.
  • Show that the RGAE can learn and generate complex structure schemes—abstract sequences of transposed repetitions—without relying on specific musical textures.

Proposed method

  • Use a Gated Autoencoder (GAE) to learn interval representations between input pitches, transforming absolute pitch sequences into relative interval representations in the latent space.
  • Apply a recurrent neural network (RNN) on the learned interval representations to model temporal dependencies and long-range structure in music.
  • Train the RGAE end-to-end as a generative sequence model using categorical cross-entropy loss to predict the next note in monophonic melodies.
  • Enable transposition invariance by operating on intervals rather than absolute pitches, reducing data sparsity and model complexity.
  • Allow the model to learn sequences of copy-and-shift operations by representing such operations as repeated applications of constant intervals over time lags.
  • Combine RGAE predictions with those of an absolute pitch RNN via ensemble averaging to improve overall prediction accuracy.

Experimental results

Research questions

  • RQ1Can a sequence model that learns interval representations generalize better than standard RNNs in monophonic melody prediction tasks?
  • RQ2To what extent can interval-based modeling improve the learning and generation of transposed repetitions (copy-and-shift operations) in music?
  • RQ3How does relative pitch processing via the RGAE compare to absolute pitch modeling in terms of prediction stability and generalization?
  • RQ4Can the RGAE learn and represent abstract musical structure schemes independently of the specific musical texture used to realize them?
  • RQ5Does combining relative pitch (RGAE) and absolute pitch (RNN) models yield better performance than either alone in music sequence prediction?

Key findings

  • The RGAE achieved an average precision of 99.43% in predicting transposed musical repetitions, with 92% of all sequences correctly continued with over 99% precision.
  • The RGAE's cross-entropy loss was 0.16, which was two orders of magnitude lower than the RNN's loss of 10.10, indicating significantly better predictive confidence and fit.
  • The RGAE outperformed the standard RNN by a large margin in the copy-and-shift task, where the RNN achieved only 41.38% average precision, highlighting the advantage of interval-based learning.
  • Hidden unit activations in the RGAE were more regular and content-invariant, reflecting their focus on abstract structure schemes rather than specific musical textures.
  • The RGAE demonstrated that it can learn and generalize over structure schemes (e.g., {-4,+8,-4,+8,...}) even when applied to novel melodies not seen during training.
  • Ensembling the RGAE with an absolute pitch RNN further improved prediction accuracy, showing that relative and absolute pitch modeling are complementary.

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.