Skip to main content
QUICK REVIEW

[Paper Review] Embeddings as representation for symbolic music

Sebastian Garcia-Valencia|arXiv (Cornell University)|May 19, 2020
Music and Audio ProcessingComputer Science9 references5 citations
TL;DR

This paper proposes using neural network embeddings to represent symbolic music, demonstrating that learned vector representations capture meaningful musical relationships such as octave equivalence, interval similarity, and pitch class relationships. When visualized via t-SNE, embeddings from note-based and interval-based representations reveal structured clusters corresponding to musical semantics, showing that embeddings encode intrinsic musical knowledge without architectural changes to the model.

ABSTRACT

A representation technique that allows encoding music in a way that contains musical meaning would improve the results of any model trained for computer music tasks like generation of melodies and harmonies of better quality. The field of natural language processing has done a lot of work in finding a way to capture the semantic meaning of words and sentences, and word embeddings have successfully shown the capabilities for such a task. In this paper, we experiment with embeddings to represent musical notes from 3 different variations of a dataset and analyze if the model can capture useful musical patterns. To do this, the resulting embeddings are visualized in projections using the t-SNE technique.

Motivation & Objective

  • To investigate whether word embedding techniques from NLP can be adapted to represent symbolic music with semantic meaning.
  • To evaluate if learned embeddings capture musically relevant patterns such as octave relationships and interval similarities.
  • To compare different data representations—raw notes, transposed notes, and interval sequences—for their ability to encode musical structure in vector space.
  • To assess the impact of data augmentation (transposition) on embedding quality and semantic clustering.

Proposed method

  • Trained a unidirectional LSTM-based model with a 128-dimensional embedding layer to learn representations of musical notes and intervals.
  • Used three data variants: (1) raw MIDI notes (control dataset), (2) transposed versions across 12 tonalities (DB12), and (3) relative semitone intervals between consecutive notes.
  • Applied t-SNE to project high-dimensional embeddings (128D) into 2D and 3D for visualization and pattern analysis.
  • Evaluated nearest neighbors in embedding space to assess semantic similarity and clustering behavior.
  • Used cosine similarity to measure proximity between embeddings in the vector space.
  • Visualized results using TensorBoard to interpret clusters and structural patterns in the embeddings.

Experimental results

Research questions

  • RQ1Can learned embeddings capture musically meaningful relationships such as octave equivalence and interval similarity in symbolic music?
  • RQ2How does data augmentation via transposition affect the structure and clustering of embeddings?
  • RQ3Do interval-based representations yield more coherent semantic groupings than note-based representations?
  • RQ4Can t-SNE visualization reveal interpretable musical patterns in high-dimensional embedding spaces?

Key findings

  • Embeddings trained on the DB12 dataset (with transposition) placed the same note across octaves (e.g., C4, C6, C8) as nearest neighbors, indicating learned octave equivalence.
  • In the control dataset, central C (C5) had nearest neighbors spanning multiple octaves (e.g., E10, C9, E9), suggesting less structured clustering without data augmentation.
  • The interval-based embedding model clustered semitones like minor third (3), minor second (1), and perfect fourth (5) closely together, indicating semantic similarity in interval space.
  • Despite the DB12 dataset being 12× larger, only 118 unique embeddings were learned, indicating that transposition led to overlapping representations for equivalent pitch classes.
  • t-SNE visualizations revealed distinct clusters for low, middle, high, and altered notes, confirming that embeddings encode pitch range and accidentals as semantic features.
  • The nearest neighbors to a minor third interval (3) included other common intervals such as unison (0), minor second (1), major second (2), and perfect fourth (5), showing that interval semantics are preserved in the embedding space.

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.