Embedding Alignment in Code Generation for Audio
Not on the map. Why?
Abstract (arXiv)
LLM-powered code generation has the potential to revolutionize creative coding endeavors, such as live-coding, by enabling users to focus on structural motifs over syntactic details. In such domains, when prompting an LLM, users may benefit from considering multiple varied code candidates to better realize their musical intentions. Code generation models, however, struggle to present unique and diverse code candidates, with no direct insight into the code's audio output. To better establish a relationship between code candidates and produced audio, we investigate the topology of the mapping between code and audio embedding spaces. We find that code and audio embeddings do not exhibit a simple linear relationship, but supplement this with a constructed predictive model that shows an embedding alignment map could be learned. Supplementing the aim for musically diverse output, we present a model that given code predicts output audio embedding, constructing a code-audio embedding alignment map.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 10 of its 23 references that are in the map. First posted on arXiv 7 Aug 2025.
Builds on
10 of 23 references.
References · 10
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2020wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representationscited by 3,905
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
- 2022MuLan: A Joint Embedding of Music Audio and Natural Languagecited by 87
- 2025Paper2Code: Automating Code Generation from Scientific Papers in Machine Learningcited by 70
- 2024CodeJudge: Evaluating Code Generation with Large Language Modelscited by 44
- 2024Learning Spatially-Aware Language and Audio Embeddingscited by 17
- 2024Evaluation of pretrained language models on music understandingcited by 4
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026MIDI-REPA: Improving Text-to-Music Generation with Symbolic Representation Alignment
- 2025Language Model Mapping in Multimodal Music Learning: A Grand Challenge Proposal
- 2026Auditing Training Data in Generative Music Models via Black-Box Membership Inference
- 2025MusicWeaver: Programmable Long-Form Music Generation with Provably Local Editing ↗
- 2025Auto-Regressive vs Flow-Matching: a Comparative Study of Modeling Paradigms for Text-to-Music Generation
- 2024An Independence-promoting Loss for Music Generation with Language Models
- 2026SemanticAudio: Audio Generation and Editing in Semantic Space
- 2026Verifier-Guided Twelve-Tone Composition: A Generate-Verify-Repair Harness for Symbolic Music Generation