atlas

Research map / Architectures and efficiency / Attention and transformers

N-gram Unsupervised Compoundation and Feature Injection for Better Symbolic Music Understanding

AAAI 2024 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and circuits · 6 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes NG-Midiformer, which tokenizes MIDI with BPE-based unsupervised compoundation (UCW) and adds an N-gram Transformer encoder whose frequency-weighted outputs are injected into a MIDI-BERT-style encoder, pre-trained with MLM on ~25k pieces.

Problem

Symbolic music understanding with Transformers: REMI yields long sequences that weaken token dependencies, while CP and OctupleMIDI shorten sequences but add [PAD] filler and break short-range dependencies between adjacent events.

Approach

Merge frequent adjacent same-family music events with BPE into variable-length UCW tokens (no [PAD]), and inject frequency-weighted N-gram encoder representations into each layer of the primary Transformer via an N-gram position matrix.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add N-gram Transformer encoder (NG-Midiformer) on UCW-7 tokens vs MIDI-Bert UCW-7 (ablation)MIDI-Bert backbone · Pianist8 / EMOPIA / GTZAN / Nottinghamaccuracy (%): +14.33, +9.08, +16.31, +15.79 (UCW-7, composer/emotion/genre/dance)Helped
Remove N-gram pre-training stage from NG-Midiformer (ablation)NG-Midiformer UCW-7 · Pianist8 / EMOPIA / GTZAN / Nottinghamaccuracy (%): drops of 31.90, 12.28, 34.84, 10.56 pointsHurt
Unsupervised compoundation (UCW-4 tokens) replacing CP-4 under MIDI-Bert (ablation)MIDI-Bert · Pianist8 / EMOPIA / GTZAN / Nottingham / POP909 velocity and melodyaccuracy (%): composer 78.57->66.61, emotion 67.89->63.75, genre 50.49->40.34, velocity 51.63->54.87 (improves), melody 96.37->92.26Hurt
Use UCW-7 instead of UCW-4 tokens in NG-Midiformer (ablation)NG-Midiformer · Pianist8 / EMOPIA / GTZAN / Nottinghamaccuracy (%): emotion 73.44->81.25, genre 56.67->65.87, dance 55.05->63.19; composer equal at 90.63Helped
Add N-gram encoder to CP-4 tokens (MIDI-Bert vs NG-Midiformer on CP-4) (ablation)CP-4 tokens · Pianist8 / EMOPIA / GTZAN / Nottingham / POP909accuracy (%): composer 78.57->83.33, genre 50.49->53.89, dance 57.02->61.30; emotion 67.89->65.87 (drop), velocity 51.63->59.82, melodMixed
Replace CP-7 with UCW-7 in NG-Midiformer on melody/velocity tasksNG-Midiformer · POP909 melodyaccuracy (%): melody 92.31 (UCW-4) vs 96.92 (CP-4 in NG-Midiformer)Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Pop1K7 ADL Piano GiantMIDI-Piano Maestro POP909 Nottingham Pianist8 EMOPIA GTZAN

Benchmarks: Pianist8 EMOPIA GTZAN Nottingham POP909

Metrics: accuracy precision recall

Baselines: MIDI-Bert RNN OM-MIDI-Bert RoAR MidiGPT

Builds on: MIDI-Bert Compound Word REMI ZEN Byte Pair Encoding

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy