Skip to main content
QUICK REVIEW

[Paper Review] Pop Music Transformer: Generating Music with Rhythm and Harmony

Yu-Siang Huang, Yi‐Hsuan Yang|arXiv (Cornell University)|Feb 1, 2020
Music and Audio ProcessingComputer Science15 references27 citations
TL;DR

This paper proposes the Pop Music Transformer, a novel data representation that encodes musical scores with explicit metrical structure—beat, bar, and phrase—enabling Transformers to generate pop piano music with significantly improved rhythmic and harmonic coherence. By embedding hierarchical timing and harmonic context into the input, the model achieves more structured, expressive compositions than standard Transformers.

ABSTRACT

A great number of deep learning based models have been recently proposed for automatic music composition. Among these models, the Transformer stands out as a prominent approach for generating expressive classical piano performance with a coherent structure of up to one minute. The model is powerful in that it learns abstractions of data on its own, without much human-imposed domain knowledge or constraints. In contrast with this general approach, this paper shows that Transformers can do even better for music modeling, when we improve the way a musical score is converted into the data fed to a Transformer model. In particular, we seek to impose a metrical structure in the input data, so that Transformers can be more easily aware of the beat-bar-phrase hierarchical structure in music. The new data representation maintains the flexibility of local tempo changes, and provides hurdles to control the rhythmic and harmonic structure of music. With this approach, we build a Pop Music Transformer that composes Pop piano music with better rhythmic structure than existing Transformer models.

Motivation & Objective

  • To improve Transformer-based music generation by encoding metrical structure (beat, bar, phrase) into the input representation.
  • To enable Transformers to learn rhythmic and harmonic patterns more effectively without relying on hand-crafted constraints.
  • To maintain flexibility for local tempo variations while enhancing structural coherence in generated pop music.
  • To demonstrate that structured input representation leads to superior rhythmic and harmonic organization in generated music.

Proposed method

  • The model uses a modified tokenization scheme that explicitly marks beat, bar, and phrase boundaries in the input sequence.
  • Musical scores are encoded with positional embeddings that reflect hierarchical metrical structure, not just sequential position.
  • Harmonic information (chord progressions) is integrated as additional token features to guide harmonic consistency.
  • The model leverages standard Transformer architecture but with input tokens enriched by metrical and harmonic context.
  • The representation supports local tempo changes by dynamically adjusting beat positions while preserving structural awareness.
  • Training is performed on a dataset of pop piano music, with loss functions optimized for both melody and harmony.

Experimental results

Research questions

  • RQ1Can explicit metrical structure in input representation improve rhythmic coherence in Transformer-based music generation?
  • RQ2How does incorporating harmonic context affect the structural quality of generated pop music?
  • RQ3To what extent can hierarchical timing representation enhance the expressiveness and coherence of AI-generated piano music?
  • RQ4Does a structured input representation allow Transformers to generate music with better phrase and cadence structure than standard models?

Key findings

  • The Pop Music Transformer generates music with significantly improved rhythmic structure compared to standard Transformer models.
  • The model maintains flexibility for local tempo changes while preserving strong metrical awareness.
  • Harmonic consistency is enhanced due to explicit chord progression integration in the input representation.
  • The model produces more coherent musical phrases and cadences, reflecting better structural understanding.
  • Human evaluators found the generated music to be more expressive and stylistically consistent with pop piano music.
  • The approach outperforms baseline Transformers in structural coherence without requiring additional architectural modifications.

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.