Skip to main content
QUICK REVIEW

[Paper Review] Beat Transformer: Demixed Beat and Downbeat Tracking with Dilated Self-Attention

Jingwei Zhao, Gus Xia|arXiv (Cornell University)|Sep 15, 2022
Music and Audio ProcessingComputer Science8 citations
TL;DR

Beat Transformer proposes a novel Transformer encoder with dilated self-attention and instrument-wise attention for joint beat and downbeat tracking using demixed audio sources. It achieves up to 4% absolute improvement in downbeat tracking accuracy over TCN-based models and learns interpretable, hierarchical attention patterns mirroring musical metrical structure.

ABSTRACT

We propose Beat Transformer, a novel Transformer encoder architecture for joint beat and downbeat tracking. Different from previous models that track beats solely based on the spectrogram of an audio mixture, our model deals with demixed spectrograms with multiple instrument channels. This is inspired by the fact that humans perceive metrical structures from richer musical contexts, such as chord progression and instrumentation. To this end, we develop a Transformer model with both time-wise attention and instrument-wise attention to capture deep-buried metrical cues. Moreover, our model adopts a novel dilated self-attention mechanism, which achieves powerful hierarchical modelling with only linear complexity. Experiments demonstrate a significant improvement in demixed beat tracking over the non-demixed version. Also, Beat Transformer achieves up to 4% point improvement in downbeat tracking accuracy over the TCN architectures. We further discover an interpretable attention pattern that mirrors our understanding of hierarchical metrical structures.

Motivation & Objective

  • Address the limitation of existing beat tracking models that rely solely on mixed audio spectrograms, missing rich instrumental and harmonic cues.
  • Improve metrical structure inference by incorporating demixed audio sources (e.g., drums, bass, piano) to model instrumental coordination and harmonic progression.
  • Design a Transformer architecture with hierarchical modeling capability that maintains linear complexity, overcoming the quadratic complexity of standard self-attention.
  • Enable interpretable attention patterns that reflect hierarchical musical structures, such as beat and downbeat phase transitions.
  • Demonstrate state-of-the-art performance in beat and downbeat tracking, especially in downbeat accuracy, across multiple benchmark datasets.

Proposed method

  • Use Spleeter to decompose input music into multiple instrument channels (e.g., drum, bass, piano, vocal) for demixed spectrogram input.
  • Design a dual-attention mechanism: time-wise self-attention within each channel and instrument-wise self-attention across channels to model cross-instrument coordination.
  • Introduce dilated self-attention (DSA) with exponentially increasing dilation rates to capture hierarchical metrical structures with linear complexity.
  • Structure the Transformer encoder with alternating layers of time-wise and instrument-wise attention to model both temporal and instrumental dependencies.
  • Formalize the attention matrix as a multi-step Markov transition matrix to interpret the model’s hierarchical reasoning over beat and downbeat phases.
  • Train the model end-to-end using joint beat, downbeat, and tempo estimation with a multi-task learning setup, leveraging dynamic Bayesian networks for phase refinement.

Experimental results

Research questions

  • RQ1Can demixed audio sources improve beat and downbeat tracking performance compared to using mixed audio spectrograms?
  • RQ2Does dilated self-attention in a Transformer architecture enable effective hierarchical modeling of metrical structures with linear computational complexity?
  • RQ3Can the attention mechanism in the proposed model be interpreted as a finite-state Markov chain that reflects known musical phase transitions?
  • RQ4How does the model’s performance compare to state-of-the-art TCN and Transformer-based models in beat and downbeat tracking across diverse datasets?
  • RQ5To what extent does instrument-wise attention capture harmonic and rhythmic cues that are orthogonal to temporal energy envelopes?

Key findings

  • Beat Transformer achieves a 4% point improvement in downbeat F-measure over the TCN-based model of Böck et al. [13] on the unseen GTZAN dataset.
  • The model outperforms the non-demixed version by a significant margin, especially in downbeat tracking, demonstrating the value of instrumental context.
  • Ours w/o Aug. (no data augmentation) achieves competitive performance with only 10.25M parameters and no data augmentation, indicating strong data efficiency.
  • The dilated self-attention mechanism enables linear complexity while maintaining strong performance, making the model efficient even on 24GB GPUs.
  • Visualization of the attention matrix reveals that the model learns to transition attention from offbeat to upbeat phases around beat positions, mirroring human perceptual timing.
  • The model learns interpretable hierarchical attention patterns aligned with beat and downbeat positions, confirming its ability to model metrical structure in a musically meaningful way.

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.