← all repositories
lucidrains/BS-RoFormer

ByteDance’s band-split trick for pulling apart songs

A PyTorch implementation of the ByteDance transformer that beat the prior first-place music source separation method by applying axial attention across frequency bands and time.

BS-RoFormer
Not currently ranked — collecting fresh signals.
star history

What it does BS-RoFormer is a PyTorch implementation of the ByteDance AI Labs transformer that isolates instruments from mixed audio. It runs axial attention across time and frequency—splitting frequency into bands—so the model can tease apart vocals, drums, or other stems. The repo also includes the follow-up Mel-Band variant and supports stereo inputs and multiple output stems.

The interesting bit The authors found that rotary positional embeddings (RoPE) delivered a huge jump over learned absolute positions, which is the kind of boring-sounding detail that actually moves the SOTA needle. This repo is a clean, hackable reference implementation of that architecture rather than a black-box service.

Key highlights

  • Implements both the original Band-Split Roformer and the Mel-Band follow-up.
  • Claims to beat the prior first-place music separation score by a large margin (per the paper).
  • Supports stereo training and multi-stem output natively.
  • Community members have already replicated training and released open weights based on this code.
  • Has been used in actual released remixes (Katy Perry, Hatsune Miku), so it’s not just a paper exercise.

Verdict Worth grabbing if you’re researching audio transformers or building source-separation pipelines. If you only need a pretrained drop-in model, the community-trained weights linked in the README are probably a better starting point.

Frequently asked

What is lucidrains/BS-RoFormer?
A PyTorch implementation of the ByteDance transformer that beat the prior first-place music source separation method by applying axial attention across frequency bands and time.
Is BS-RoFormer open source?
Yes — lucidrains/BS-RoFormer is open source, released under the MIT license.
What language is BS-RoFormer written in?
lucidrains/BS-RoFormer is primarily written in Python.
How popular is BS-RoFormer?
lucidrains/BS-RoFormer has 873 stars on GitHub.
Where can I find BS-RoFormer?
lucidrains/BS-RoFormer is on GitHub at https://github.com/lucidrains/BS-RoFormer.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.