[Paper Review] Modeling Harmony with Skip-Grams
This paper proposes using skip-grams—a natural language processing technique—to model tonal harmony in Western classical music, reducing data sparsity in n-gram distributions by capturing non-contiguous chord progressions. By including sub-sequences within a skip threshold, the method significantly improves coverage of conventional cadences and reduces rare n-gram proportions, outperforming contiguous n-grams in pattern discovery tasks, especially for 3- and 4-grams.
String-based (or viewpoint) models of tonal harmony often struggle with data sparsity in pattern discovery and prediction tasks, particularly when modeling composite events like triads and seventh chords, since the number of distinct n-note combinations in polyphonic textures is potentially enormous. To address this problem, this study examines the efficacy of skip-grams in music research, an alternative viewpoint method developed in corpus linguistics and natural language processing that includes sub-sequences of n events (or n-grams) in a frequency distribution if their constituent members occur within a certain number of skips. Using a corpus consisting of four datasets of Western classical music in symbolic form, we found that including skip-grams reduces data sparsity in n-gram distributions by (1) minimizing the proportion of n-grams with negligible counts, and (2) increasing the coverage of contiguous n-grams in a test corpus. What is more, skip-grams significantly outperformed contiguous n-grams in discovering conventional closing progressions (called cadences).
Motivation & Objective
- To address data sparsity in n-gram models of tonal harmony, particularly for higher-order progressions like 3- and 4-grams.
- To overcome the contiguity fallacy in music modeling, where non-contiguous events like cadences are missed due to intervening non-chord tones.
- To evaluate whether skip-grams can recover recurrent harmonic patterns—such as perfect authentic cadences—that are absent in contiguous n-gram distributions.
- To improve pattern discovery and prediction in symbolic music corpora by modeling non-adjacent but structurally significant chord events.
Proposed method
- The study employs voice-leading types (VLTs) to create an optimally reduced chord typology, representing chords via intervals above the bass in semitones modulo 12.
- Skip-grams are defined as sub-sequences of n chord events where constituent members occur within a fixed or variable temporal skip (t), allowing non-contiguous events to be included in n-gram distributions.
- Two skip conditions are evaluated: fixed-skip (e.g., t=2) and variable-skip (e.g., t=2 seconds of inter-onset interval), both applied to 2-, 3-, and 4-grams.
- The method is tested on four symbolic music corpora of Western classical music, using VLT-encoding to standardize chord representations across datasets.
- Coverage and sparsity metrics are computed by comparing the proportion of rare n-grams and the percentage of test-set contiguous n-grams recovered by skip-gram models.
- The approach is computationally feasible, with runtimes under 100ms for 4-gram extraction on 1,000-chord sequences using commodity hardware.
Experimental results
Research questions
- RQ1Can skip-grams reduce data sparsity in n-gram distributions of tonal harmony by minimizing the proportion of rare n-grams with negligible counts?
- RQ2To what extent do skip-grams improve coverage of contiguous n-grams in test corpora compared to contiguous n-grams?
- RQ3Can skip-grams successfully recover conventional harmonic progressions—such as cadences—that are structurally present but not contiguous in the musical surface?
- RQ4How does the inclusion of non-contiguous events via skip-grams affect the detection of recurrent harmonic patterns like the semplice and composta cadences?
Key findings
- For 3-grams, the proportion of n-grams with negligible counts dropped from 42.5% (contiguous) to 21.8% (fixed-skip) and 18.7% (variable-skip), significantly reducing sparsity.
- Coverage of contiguous 3-grams in the test set increased from 59.2% (contiguous) to 84.1% (fixed-skip) and 88.3% (variable-skip), mitigating the zero-frequency problem.
- For 4-grams, coverage of contiguous n-grams rose from 36.5% (contiguous) to 71.1% (fixed-skip) and 82.4% (variable-skip), demonstrating strong recovery of structural patterns.
- The semplice cadence (I⁶–ii⁶–V⁷–I) was detected in 32 out of 245 pieces using skip-grams, compared to zero in the contiguous model, while the composta cadence (ii⁶–“I⁶₄”–V⁷–I) was found in 77 pieces with skip-grams versus only 7 in the contiguous model.
- The method recovered the power-law frequency-rank relationship for n<5, which was lost in contiguous n-gram distributions, indicating improved statistical robustness.
- Runtime performance was feasible: 4-gram extraction took under 100ms for fixed-skip and under 3 seconds for variable-skip conditions on a 1,000-chord sequence.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.