CoComposer: LLM Multi-agent Collaborative Music Composition

Peiwen Xing, Aske Plaat, Niki van SteinarXiv 2025

TL;DR

CoComposer is a novel multi-agent framework that leverages generic Large Language Models (LLMs) to compose polyphonic music via text-based ABC notation. By mimicking a traditional human music composition workflow with five specialized agents, it achieves higher musical quality and complexity than previous single- and multi-agent LLM approaches while offering superior editability compared to black-box audio generation models.

What Problem Does This Paper Address?

While AI-driven music generation has made massive strides with platforms like Suno and Google's MusicFX, these tools suffer from significant bottlenecks for professional or serious creators. They typically feature short generation limits (e.g., 30 seconds), struggle with long or highly detailed text prompts, and produce "toy-like" outputs that lack fine-grained controllability.

If a user wants to tweak a specific harmony or adjust a single instrument's track, end-to-end audio generation models offer no clean way to do so. The authors tackle this by turning to symbolic music generation—specifically generating text-based ABC notation using a collaborative multi-agent LLM architecture that gives creators full visibility and editing power over the underlying score.

Methods

CoComposer utilizes the AutoGen framework to orchestrate a team of five role-playing language agents. Instead of training a model from scratch, the system relies entirely on in-context learning with generic LLMs (such as GPT-4o, DeepSeek-V3, and Gemini-2.5-Flash).

The architecture streamlines the traditional composition workflow into a compact "task decomposition - creative execution - corrective feedback" loop using five distinct roles:

Names and main responsibilities of agents in the CoComposer system

The creative process operates in two main phases:

  1. Initialization Phase: The Leader Agent parses the user's prompt and splits the work. The Melody Agent writes the core melody line in ABC notation, specifying MIDI instruments. The Accompaniment Agent then designs a complementary backing track based on that melody. Finally, the Revision Agent fixes any formatting or timing errors, and the Review Agent critiques the piece across five music-theory dimensions.
  2. Iterative Phase: The Leader Agent reviews the critique and guides the Melody and Accompaniment agents through targeted revisions until the piece is polished.

The final corrected ABC notation is then rendered into audio using a standard MIDI backend.

Datasets

The system was evaluated using a benchmark set of 20 user input prompts originally constructed by the creators of ComposerX (a baseline multi-agent system). To test the models' creative freedom, 10 of these prompts were intentionally abridged. The prompts span diverse musical styles, tempos, and instrumentation—ranging from "Vintage French Chanson" to "Retro Video Game Adventure."

For objective, automated aesthetic evaluation, the authors used Meta’s AudioBox-Aesthetics model, which scores audio across four dimensions: Production Quality (PQ), Production Complexity (PC), Content Enjoyment (CE), and Content Usefulness (CU).

Key Insights and Ideas

  • Less is More in Agent Architecture: Previous systems like ComposerX used six agents, separating instrument assignment and arrangement. CoComposer condenses this to five agents by embedding instrument selection directly into the melody and accompaniment generation. This synchronization reduces communication overhead and significantly boosts creative complexity.
  • The Power of Symbolic Intermediaries: Generating text-based ABC notation instead of raw audio waveforms provides an "open-source" music format. This gives the system unparalleled interpretability and editability—users can directly read, understand, and modify the notes or harmonies.
  • Reliability of Generic LLMs: Without any specialized musical fine-tuning, generic LLMs achieved a 100% generation success rate, proving that in-context learning can reliably handle the strict syntax and structural constraints of symbolic music notation.

Key Results

The authors ran four comparative experiments using the AudioBox-Aesthetics metric:

Summary table of the results of four experiments
  • CoComposer vs. ComposerX (Experiment 1): CoComposer powered by GPT-4o outperformed ComposerX across all aesthetic and complexity metrics (e.g., Content Enjoyment of 6.75 vs. 6.52; Production Complexity of 4.13 vs. 3.72).
  • Multi-Agent vs. Single-Agent (Experiment 2): CoComposer demonstrated a clear advantage in Production Complexity (PC: 4.13) compared to a single-agent baseline (PC: 3.92), proving that agent specialization yields richer, multi-voice textures.
  • LLM Comparison (Experiment 3): GPT-4o achieved the best overall balance, though DeepSeek-V3-0324 scored slightly higher in subjective Content Enjoyment (CE: 6.77).
  • CoComposer vs. MusicFX (Experiment 4): Google's dedicated MusicFX model still comfortably beats LLM-based symbolic generation in raw aesthetic indicators (CE: 7.37, PC: 4.96). However, CoComposer remains competitive in technical Production Quality (PQ: 7.86 vs 7.84) while offering the crucial advantage of editability.

Limitations and Future Work

Despite its strengths, CoComposer faces a few notable hurdles:

  • MIDI Sound Library Constraints: Because ABC notation relies on standard MIDI libraries for audio playback, it cannot easily replicate modern, computer-synthesized textures or complex sound design found in electronic music.
  • Complex Musical Structures: Relying purely on the native capabilities of general-purpose LLMs limits the system's grasp of advanced polyphonic counterpoint and large-scale musical forms.
  • Vague User Feedback: Humans often give abstract feedback (e.g., "make this track sound less cheerful"). The authors propose adding a specialized feedback analysis agent to translate these subjective critiques into concrete instructions (e.g., "reduce tempo by 10 BPM and shift to a minor key"), alongside a memory mechanism to retain user stylistic preferences over multiple sessions.

Summary updated

BibTeX
@misc{xing2025cocomposer,
  author = {Peiwen Xing and Aske Plaat and Niki van Stein},
  title = {{CoComposer: LLM Multi-agent Collaborative Music Composition}},
  year = {2025},
  eprint = {2509.00132},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.00132},
}
Figure