[Paper Review] ComposerX: Multi-Agent Symbolic Music Composition with LLMs
ComposerX proposes a training-free, multi-agent framework that uses GPT-4-turbo to collaboratively generate polyphonic symbolic music, outperforming single-agent baselines in quality and control at low cost.
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.
Motivation & Objective
- Motivate leveraging LLM reasoning and musical knowledge for symbolic music generation.
- Introduce a multi-agent framework to structure collaboration among specialized components (melody, harmony, instrumentation, review, arrangement).
- Demonstrate that multi-agent collaboration improves musical quality over single-agent prompts and existing models.
- Show that the approach is training-free, data-efficient, and cost-effective compared to traditional symbolic music generators.
Proposed method
- Curate a set of 163 high-quality user prompts capturing genre, tempo, key, chord progression, melody, rhythm, bars, voices, instruments, style, and mood.
- Develop single-agent prompts using role-play, CoT, and ICL to guide GPT-4-turbo in ABC notation generation.
- Design a multi-agent pipeline with roles: Group Leader, Melody Agent, Harmony Agent, Instrument Agent, Reviewer Agent, and Arrangement Agent.
- Define a structured communication pattern: initial task planning, iterative refinement, and final ABC notation arrangement.
- Employ agent-specific prompting with In-Context Learning for ABC notation, plus role-specific instructions to reduce hallucinations and ensure notation accuracy.

Experimental results
Research questions
- 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?
Key findings
- 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.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.