BTC
BTC, a bi-directional Transformer that recognizes musical chords from audio with self-attention.
Audio and speech · 947 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Audio and speech
- Parameters
- 3M
- Operations
- 947
- Framework
- PyTorch
- Recurrent
- No
- Published
- ISMIR 2019
- Cited by
- 27 (as of 25 October 2026)
- Authors
- Jonggwon Park, Kyoyun Choi, Sungwook Jeon and others
- Source
- GitHub: jayg996/BTC-ISMIR19
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m14887
- Graph hash
- 20f2a0babb2dccc695625086300565e255762c70bea174f6bc6ed5eefa9635fc
- Skeleton hash
- 4a21af8bfb642230b08890f7bfd6aa6cd9d6f83892f41f38712f1a7c20edce53
- Architecture hash
- b05dcdb1933c935a370b9343dce808d871c638424b5b89669c8ecfd2743ca536
- Diagram SHA-256
- 0717939d0401d26a8612578c5b094f536054089a174c06d7854fe3ce54f7f798
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
BTC is a bi-directional Transformer for chord recognition, the task of naming the chords in a piece of music from its audio. The paper notes that earlier convolutional and recurrent models mostly have limitations in capturing long-term dependency or need an additional model to be trained. BTC instead uses self-attention to focus on certain regions of chords, and its training consists of a single phase.
Audio files are preprocessed into a constant-q transformation before they reach the model. An attention map analysis in the paper found that the model divides segments of chords by using the adaptive receptive field of the attention mechanism. The same analysis observed that the model captures long-term dependencies regardless of distance.
The code recognizes chords with either a major and minor label type or a large vocabulary label type. The authors used the Isophonics, Robbie Williams and UsPop2002 datasets, which consist of chord label files.
Key idea. The paper builds a bi-directional Transformer that uses self-attention for chord recognition, trains it in a single phase, and analyzes its attention maps.
- btc
- bi-directional transformer for chord recognition
- chord recognition
- musical chord recognition
- automatic chord recognition
- music information retrieval
- self-attention
- constant-q transformation
- attention map
- large vocabulary chords
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{park2019bidirectionaltransformermusicalchord,
title={A Bi-directional Transformer for Musical Chord Recognition},
author={Jonggwon Park and Kyoyun Choi and Sungwook Jeon and Dokyun Kim and Jonghun Park},
year={2019},
eprint={1907.02698},
archivePrefix={arXiv},
primaryClass={cs.SD},
url={https://arxiv.org/abs/1907.02698},
}