[论文解读] ComposerX: Multi-Agent Symbolic Music Composition with LLMs
ComposerX 提出一个无需训练、多代理框架,使用 GPT-4-turbo 共同生成对位的符号音乐,在质量和控制方面以低成本超越单代理基线。
Music composition represents the creative side of humanity, and itself is a complex task that requires abilities to understand and generate information with long dependency and harmony constraints. While demonstrating impressive capabilities in STEM subjects, current LLMs easily fail in this task, generating ill-written music even when equipped with modern techniques like In-Context-Learning and Chain-of-Thoughts. To further explore and enhance LLMs' potential in music composition by leveraging their reasoning ability and the large knowledge base in music history and theory, we propose ComposerX, an agent-based symbolic music generation framework. We find that applying a multi-agent approach significantly improves the music composition quality of GPT-4. The results demonstrate that ComposerX is capable of producing coherent polyphonic music compositions with captivating melodies, while adhering to user instructions.
研究动机与目标
- 动机:利用 LLM 推理和音乐知识进行符号音乐生成。
- 引入一个多代理框架,构建专门组件之间的协作结构(旋律、和声、乐器编制、审阅、编曲)。
- 证明多代理协作在音乐质量上优于单代理提示和现有模型。
- 展示该方法无需训练、数据高效且相较于传统符号音乐生成器具有更低成本。
提出的方法
- 整理一组包含流派、速度、调性、和弦进行、旋律、节奏、小节、声部、乐器、风格和情绪等信息的163条高质量用户提示。
- 使用角色扮演、连锁思维(CoT)和零-shot中的少量示例(ICL)来引导 GPT-4-turbo 进行 ABC 符号记谱生成的单代理提示。
- 设计一个带角色的多代理流水线,角色包括:组长、旋律代理、和声代理、乐器代理、审阅代理和编曲代理。
- 定义一个结构化的通信模式:初始任务计划、迭代改进和最终 ABC 符号记谱编排。
- 采用面向 ABC 符号记谱的代理特定提示和上下文学习,以及用于降低幻觉和确保记谱准确性的角色特定指令。

实验结果
研究问题
- RQ1Can a multi-agent GPT-4-based system produce higher-quality symbolic music than a single-agent setup under similar prompts?
- RQ2What cost and efficiency benefits arise from a training-free, multi-agent approach to symbolic music generation?
- RQ3How does the collaboration among melody, harmony, instrumentation, and review agents affect musical structure, coherence, and adherence to user prompts?
- RQ4What are the limitations of text-based ABC notation in coordinating polyphonic voices and achieving cadential resolution?
- RQ5How close can GPT-powered compositions come to human-like quality in listening tests across multiple checkpoints?
主要发现
- Multi-agent ComposerX improves music quality over single-agent baselines across subjective listening tests.
- The multi-agent system can generate longer pieces, with GPT-4-Turbo multi producing significantly longer ABC strings than single-agent baselines.
- In Turing tests, 32.2% of ComposerX pieces were indistinguishable from human-composed music, indicating notable human-likeness.
- The approach achieves a high automatic generation success rate across GPT-4-Turbo and other checkpoints (e.g., 98.2% for GPT-4-Turbo in one test).
- Costs are low: approximately 26k tokens per song and under $0.8 USD per piece, with total API expenditure under $1k during development.
- Subjective evaluations show multi-agent prompts outperform various prompting techniques (ICL, CoT, Role, Ori) in quality and coherence.

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。