{"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/flux-that-plays-music","title":"FLUX that Plays Music","arxiv_id":"2409.00587","date":"2024-09-01","proceeding":null,"authors":["Zhengcong Fei","Mingyuan Fan","Changqian Yu","Junshi Huang"],"abstract":"This paper explores a simple extension of diffusion-based rectified flow Transformers for text-to-music generation, termed as FluxMusic. Generally, along with design in advanced Flux\\footnote{https://github.com/black-forest-labs/flux} model, we transfers it into a latent VAE space of mel-spectrum. It involves first applying a sequence of independent attention to the double text-music stream, followed by a stacked single music stream for denoised patch prediction. We employ multiple pre-trained text encoders to sufficiently capture caption semantic information as well as inference flexibility. In between, coarse textual information, in conjunction with time step embeddings, is utilized in a modulation mechanism, while fine-grained textual details are concatenated with the music patch sequence as inputs. Through an in-depth study, we demonstrate that rectified flow training with an optimized architecture significantly outperforms established diffusion methods for the text-to-music task, as evidenced by various automatic metrics and human preference evaluations. Our experimental data, code, and model weights are made publicly available at: \\url{https://github.com/feizc/FluxMusic}.","url_abs":"https://arxiv.org/abs/2409.00587v2","url_pdf":"https://arxiv.org/pdf/2409.00587v2.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":"flux-that-plays-music","repo_url":"https://github.com/feizc/fluxmusic","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}},{"paper_slug":"flux-that-plays-music","repo_url":"https://github.com/black-forest-labs/flux","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"music-generation","task_name":"Music Generation"},{"task_slug":"text-to-music-generation","task_name":"Text-to-Music Generation"}],"methods":[{"method_slug":"attention","method_name":"Attention"},{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"softmax","method_name":"Softmax"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/text-to-music-generation-on-musiccaps","task":"Text-to-Music Generation","dataset":"MusicCaps","model":"FLUXMusic","rank_in_archive_order":2,"of":21,"metrics":{"FAD":"1.43","IS":"2.98","KL_passt":"1.25"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2409.00587","atlas_url":"https://app.syntology.ai/?focus=2409.00587","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2409.00587"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/black-forest-labs/flux","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/feizc/fluxmusic","reach":{"status":"ok","spdx":"NOASSERTION"}}],"summary":{"ran_honours":2,"ran":2,"ran_fixture":1,"ran_draft_wrong":1,"unverified":3},"by_repo_kind":{"official":{"samples":9,"ran":6,"repositories":1}},"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":9,"samples":[{"code_sha256_prefix":"a26f85d7c72ef39a","entry":"get_padding","repo":"feizc/fluxmusic","repo_kind":"official","path":"audioldm2/hifigan/models.py","file_url":"https://github.com/feizc/fluxmusic/blob/HEAD/audioldm2/hifigan/models.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a26f85d7c72ef39a"}},{"code_sha256_prefix":"f1cba67eb6d6e4ad","entry":"get_param_num","repo":"feizc/fluxmusic","repo_kind":"official","path":"audioldm2/utilities/model.py","file_url":"https://github.com/feizc/fluxmusic/blob/HEAD/audioldm2/utilities/model.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f1cba67eb6d6e4ad"}},{"code_sha256_prefix":"fb7ac27a448677a1","entry":"prepare","repo":"feizc/fluxmusic","repo_kind":"official","path":"sample.py","file_url":"https://github.com/feizc/fluxmusic/blob/HEAD/sample.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"fb7ac27a448677a1"}},{"code_sha256_prefix":"17724d4203fa5863","entry":"rope","repo":"feizc/fluxmusic","repo_kind":"official","path":"modules/layers.py","file_url":"https://github.com/feizc/fluxmusic/blob/HEAD/modules/layers.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"17724d4203fa5863"}},{"code_sha256_prefix":"5fb036462ae82f9f","entry":"swish","repo":"feizc/fluxmusic","repo_kind":"official","path":"modules/autoencoder.py","file_url":"https://github.com/feizc/fluxmusic/blob/HEAD/modules/autoencoder.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5fb036462ae82f9f"}},{"code_sha256_prefix":"4dab43e0c6c8c170","entry":"torch_version_orig_mod_remove","repo":"feizc/fluxmusic","repo_kind":"official","path":"audioldm2/utilities/model.py","file_url":"https://github.com/feizc/fluxmusic/blob/HEAD/audioldm2/utilities/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"4dab43e0c6c8c170"}},{"code_sha256_prefix":"3444bbcc9065f707","entry":"apply_rope","repo":"feizc/fluxmusic","repo_kind":"official","path":"modules/layers.py","file_url":"https://github.com/feizc/fluxmusic/blob/HEAD/modules/layers.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3444bbcc9065f707"}},{"code_sha256_prefix":"b17d74354ecaf7fe","entry":"attention","repo":"feizc/fluxmusic","repo_kind":"official","path":"modules/layers.py","file_url":"https://github.com/feizc/fluxmusic/blob/HEAD/modules/layers.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b17d74354ecaf7fe"}},{"code_sha256_prefix":"89bb9be7815a9834","entry":"get_available_checkpoint_keys","repo":"feizc/fluxmusic","repo_kind":"official","path":"audioldm2/utilities/model.py","file_url":"https://github.com/feizc/fluxmusic/blob/HEAD/audioldm2/utilities/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"89bb9be7815a9834"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}