{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/multitrack-music-transformer-learning-long","title":"Multitrack Music Transformer","arxiv_id":"2207.06983","date":"2022-07-14","proceeding":null,"authors":["Hao-Wen Dong","Ke Chen","Shlomo Dubnov","Julian McAuley","Taylor Berg-Kirkpatrick"],"abstract":"Existing approaches for generating multitrack music with transformer models have been limited in terms of the number of instruments, the length of the music segments and slow inference. This is partly due to the memory requirements of the lengthy input sequences necessitated by existing representations. In this work, we propose a new multitrack music representation that allows a diverse set of instruments while keeping a short sequence length. Our proposed Multitrack Music Transformer (MMT) achieves comparable performance with state-of-the-art systems, landing in between two recently proposed models in a subjective listening test, while achieving substantial speedups and memory reductions over both, making the method attractive for real time improvisation or near real time creative applications. Further, we propose a new measure for analyzing musical self-attention and show that the trained model attends more to notes that form a consonant interval with the current note and to notes that are 4N beats away from the current step.","url_abs":"https://arxiv.org/abs/2207.06983v4","url_pdf":"https://arxiv.org/pdf/2207.06983v4.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"multitrack-music-transformer-learning-long","repo_url":"https://github.com/salu133445/mmt","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"multitrack-music-transformer-learning-long","repo_url":"https://github.com/salu133445/mtmt","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"music-generation","task_name":"Music Generation"}],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"transformer","method_name":"Transformer"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2207.06983","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2207.06983"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/salu133445/mtmt","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/salu133445/mmt","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":11},"by_repo_kind":{"official":{"samples":11,"ran":0,"repositories":2}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"61feba2e9419878d","entry":"encode_notes","repo":"salu133445/mmt","repo_kind":"official","path":"mmt/representation.py","file_url":"https://github.com/salu133445/mmt/blob/HEAD/mmt/representation.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"61feba2e9419878d"}},{"code_sha256_prefix":"da8737665512aaf7","entry":"encode_notes","repo":"salu133445/mtmt","repo_kind":"official","path":"baseline/representation_mmm.py","file_url":"https://github.com/salu133445/mtmt/blob/HEAD/baseline/representation_mmm.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"da8737665512aaf7"}},{"code_sha256_prefix":"3c28f24eae63a984","entry":"encode_notes","repo":"salu133445/mtmt","repo_kind":"official","path":"baseline/representation_remi.py","file_url":"https://github.com/salu133445/mtmt/blob/HEAD/baseline/representation_remi.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3c28f24eae63a984"}},{"code_sha256_prefix":"4f844f0f942a9c17","entry":"extract_notes","repo":"salu133445/mmt","repo_kind":"official","path":"mmt/representation.py","file_url":"https://github.com/salu133445/mmt/blob/HEAD/mmt/representation.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4f844f0f942a9c17"}},{"code_sha256_prefix":"d5b3cafc9b1d5ff4","entry":"extract_notes","repo":"salu133445/mtmt","repo_kind":"official","path":"baseline/representation_mmm.py","file_url":"https://github.com/salu133445/mtmt/blob/HEAD/baseline/representation_mmm.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d5b3cafc9b1d5ff4"}},{"code_sha256_prefix":"cf05a0584cdd8e3d","entry":"extract_notes","repo":"salu133445/mtmt","repo_kind":"official","path":"baseline/representation_remi.py","file_url":"https://github.com/salu133445/mtmt/blob/HEAD/baseline/representation_remi.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cf05a0584cdd8e3d"}},{"code_sha256_prefix":"a4775d7ad289f8ac","entry":"get_mask","repo":"salu133445/mmt","repo_kind":"official","path":"mmt/dataset.py","file_url":"https://github.com/salu133445/mmt/blob/HEAD/mmt/dataset.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a4775d7ad289f8ac"}},{"code_sha256_prefix":"536553c3bd2d2ef0","entry":"inverse_dict","repo":"salu133445/mmt","repo_kind":"official","path":"mmt/utils.py","file_url":"https://github.com/salu133445/mmt/blob/HEAD/mmt/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"536553c3bd2d2ef0"}},{"code_sha256_prefix":"39ad0a1e610519f3","entry":"load_json","repo":"salu133445/mmt","repo_kind":"official","path":"mmt/utils.py","file_url":"https://github.com/salu133445/mmt/blob/HEAD/mmt/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"39ad0a1e610519f3"}},{"code_sha256_prefix":"c0a19c384703b701","entry":"load_txt","repo":"salu133445/mmt","repo_kind":"official","path":"mmt/utils.py","file_url":"https://github.com/salu133445/mmt/blob/HEAD/mmt/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c0a19c384703b701"}},{"code_sha256_prefix":"44d7d3f43204eb41","entry":"pad","repo":"salu133445/mmt","repo_kind":"official","path":"mmt/dataset.py","file_url":"https://github.com/salu133445/mmt/blob/HEAD/mmt/dataset.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"44d7d3f43204eb41"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}