Beat This! Live - Online Beat and Downbeat Tracking by Predicting the Future

Bánk Juhász, Gerhard Widmer, Jan SchlüterarXiv 2026

TL;DR

When you tap your foot to a song, you don’t wait to hear the drum hit and then react—you anticipate the rhythm and strike the floor right on time. Beat This! Live teaches a deep learning model to do the exact same thing, adapting a top-tier offline music tracker for live, streaming audio. By training the network to predict beats slightly before they actually happen, the system achieves zero- or even negative-latency tracking while crushing the previous state-of-the-art in accuracy.

What Problem Does This Paper Address?

Finding the beat (the regular pulse of a song) and the downbeat (the "one" of each musical measure) is foundational to Music Information Retrieval. Deep learning models have gotten remarkably good at this, with one catch: the best models operate offline. They ingest an entire song at once, looking forward and backward in time to figure out the rhythm.

If you want a lighting rig, a live DJ setup, or a robotic accompaniment system to react to live music, looking into the future is cheating. You need an online, causal model that only uses past audio. Furthermore, humans notice audio delays of around 50 milliseconds (and musicians are much pickier), so your model has to make decisions almost instantaneously. However, probability outputs from neural networks look like wide, blurry hills around a beat. In an offline setting, you just pick the highest peak of the hill. In a live setting, you don't know you've passed the peak until the numbers start going down—by which time, you're already late.

Methods

The authors start with an existing, open-source offline rotary transformer model called Beat This! and systematically strip away its ability to see the future:

  1. Enforcing Causality: Standard 2D convolutions and bidirectional time-attention layers are swapped out for causal convolutions and causal self-attention, ensuring no future audio frames leak into current predictions.
  2. Constant-Time Streaming: Running attention over an ever-growing history of live audio would eventually bog down the processor. Instead, the authors adopt causal sliding-window attention (looking back 256 or 512 frames), keeping the computational cost flat no matter how long the concert runs.
  3. Predicting the Future & Shifted Causal Local Max (SCLM): Here is the core trick. Because music is temporally regular, the authors shift the ground-truth beat labels backward by a few frames during training. This forces the model to anticipate upcoming beats.
Figure 1: Example estimates for the unshifted (b) and shifted (c) causal models with the corresponding true la- bel (a). At frame 11 (red line), the shifted model (c) pro- duces its estimate for frame 14 (3-frame lookahead). This provides additional time for computational latency as the model must only emit this prediction at frame 14 – poten- tially allowing for zero- or negative-latency predictions.

Because the model predicts a beat early, the system doesn't have to fire an output immediately. Instead, the novel SCLM postprocessor uses those extra buffer frames to wait, watch the probability hill crest and fall, and cleanly pick the true local maximum—all before the actual musical beat occurs in real life! It also lets the system check if a downbeat probability fired nearby and neatly snap it to the beat.

Figure 2: Comparison of postprocessing strategies. Of- fline Beat This! picks local maxima above a threshold (a), which requires access to future predictions. Causal thresh- olding reports the first activation above a threshold (b, c). A low threshold reports events too early (b). Raising the threshold reports events later (c), but may miss events com- pletely. Training with shifted labels moves all predictions to occur early (d), allowing to pick local maxima without breaking causality.

Datasets

No new datasets were introduced; the authors strictly followed the exact training and evaluation setup of the original Beat This! paper to allow fair comparisons:

  • Training & Validation: 4,556 tracks pooled from 15 different datasets (with a 15% validation split, carefully grouped so different versions of the same song don't leak across splits).
  • Evaluation: The GTZAN dataset (986 valid tracks across 10 genres), treated strictly as a held-out test set.

Key Insights and Ideas

  • Just one frame of foresight works wonders: Shifting labels far into the future makes the prediction task harder for the neural network. It turns out shifting by just a single frame gives the postprocessor enough lookahead to see when probabilities start declining, yielding the highest F1-scores.
  • Negative latency is possible: By shifting training labels back by 3 frames, using 1 frame for peak-picking lookahead, and pocketing the other 2 frames (40 ms total), the model overcomes an inherent 23 ms spectrogram calculation delay to emit beat predictions 17 ms before the beat actually happens (Beat This! Live Zero).
  • Recent history matters most: By plotting the model's gradients, the authors showed that causal models rely heavily on immediate past frames, with influence dropping off rapidly further back. This explains why a short sliding window (roughly 5–10 seconds of audio) performs nearly as well as full-history attention.
Figure 3: Comparison of gradient responses across models for frame 750 w.r.t. an input of length 1500.

Key Results

Evaluated on the GTZAN test set against the previous online state-of-the-art (BeatNet+):

  • Beat F1-Score: Jumped from 80.6% (BeatNet+) to 86.7% (Beat This! Live Large).
  • Downbeat F1-Score: Surged from 56.5% to 74.1%—a massive leap for online metrical tracking, with huge gains in notoriously tricky genres like classical, jazz, and reggae.
  • Negative Latency Performance: Even the lightweight Beat This! Live Zero variant—predicting at -17 ms latency—scores 85.9% on beats and 72.2% on downbeats, handily beating BeatNet+.
  • Speed: Running on a single CPU thread, the models achieve a Real-Time Factor (RTF) of 0.05 to 0.08, meaning they process audio roughly 12 to 20 times faster than real time.

Limitations and Future Work

  • Online algorithm, not yet a live software plugin: While the math is strictly causal and runs 10–20x faster than real-time in batch evaluations, it is not yet a true frame-by-frame real-time implementation. Deploying this for live musicians will require heavy engineering—caching intermediate convolutional and transformer states in a compiled language to avoid frame-by-frame overhead.
  • Precomputed feature latency: Because raw audio wasn't publicly available for all 15 training datasets, the authors reused precomputed spectrograms that had a centered window, baking in a 23 ms delay that had to be compensated for in postprocessing.
  • Cold starts: Like a human walking into a room mid-song, causal models perform noticeably worse during the first 10 seconds of a track while their context windows fill up.

Summary updated

Abstract

Beat and downbeat tracking have seen multiple improvements through recent deep learning approaches, but most target an offline setting, precluding their use in real-time scenarios. We adapt a recent offline beat tracking model, Beat This, for online, low-latency operation and propose Beat This! Live, a causal variant designed for real-time beat and downbeat tracking. We present the architectural modifications required to obtain a causal system suitable for streaming inference and measure their impact on accuracy. By training our model with temporally shifted labels, it produces predictions slightly ahead of the current frame, which not only reduces latency, but enables much more effective peak-picking. Evaluation on the GTZAN dataset shows the F1-score improves from 80.6 to 86.7 for beats and 56.5 to 74.1 for downbeats compared to BeatNet+, the current state of the art in online beat tracking.
BibTeX
@misc{juhasz2026beat,
  author = {Bánk Juhász and Gerhard Widmer and Jan Schlüter},
  title = {{Beat This! Live - Online Beat and Downbeat Tracking by Predicting the Future}},
  year = {2026},
  eprint = {2611.34277},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.34277},
}
Figure