English

Embedding Alignment in Code Generation for Audio

Multimedia 2025-09-25 v2 Artificial Intelligence Sound Audio and Speech Processing

Abstract

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.

Keywords

Cite

@article{arxiv.2508.05473,
  title  = {Embedding Alignment in Code Generation for Audio},
  author = {Sam Kouteili and Hiren Madhu and George Typaldos and Mark Santolucito},
  journal= {arXiv preprint arXiv:2508.05473},
  year   = {2025}
}

Comments

Accepted to NeurIPS 2025 AI4Music Workshop

R2 v1 2026-07-01T04:39:16.182Z