Abstract
ByteComposer is an AI framework that mimics human melody composition through a structured four-step pipeline: Conception, Drafting, Evaluation, and Selection. By leveraging Large Language Models (LLMs) as agents, the system generates symbolic music in ABC notation that is both interpretable and editable. Experimental results demonstrate that ByteComposer achieves technical proficiency comparable to a novice human composer, significantly reducing error rates compared to standard LLM outputs.
Introduction
The field of AI music generation has seen significant advancements, primarily split between text-to-audio models and text-to-symbolic models. While audio models produce high-fidelity sound, they lack precise editability. Conversely, symbolic models often require expert-level music theory knowledge for effective control. Furthermore, most existing systems operate as "black boxes," offering no transparency regarding musical choices. ByteComposer addresses these challenges by introducing a "white-box" agent-based framework that mirrors the human creative process, making the AI's decision-making transparent and its output easily refinable.
Methodology
ByteComposer organizes LLMs into a four-stage pipeline to decompose the complex task of composition:
- Conception Analysis (The Expert): An LLM (e.g., GPT-4) acts as a musical consultant, translating vague user prompts into specific musical attributes such as key, meter, style, and instrumentation.
- Draft Composition (The Generator): These attributes seed a specialized generator. The framework utilizes both general-purpose LLMs and a custom-trained TunesFormer-Plus model to produce initial musical motifs in ABC notation.
- Self-Evaluation and Modification (The Voter): A fine-tuned Llama2 model identifies objective errors (e.g., out-of-range notes) and suggests corrections.
- Aesthetic Selection: The system generates multiple candidates, and a reward-model-style "Voter" selects the piece best aligned with human aesthetic preferences.
Central to this process is a State Memory Tree, which allows the agent to maintain context across iterations, facilitating a dialogue-like refinement process between the user and the AI.
Datasets and Training
The development of ByteComposer relied on three primary data pillars:
- Symbolic Music: The Irish Massive ABC Notation dataset (containing over 216,000 tunes) was used to train the internal TunesFormer-Plus generator.
- Musical Expertise: A dataset of 91,000+ entries, derived from 2,128 professional queries and expanded via GPT-4, was used to fine-tune the LLM for music theory analysis and score appraisal.
- Aesthetic Preference: 1,000 expert-annotated entries were curated to train the "Voter" module on human-perceived musical quality.
Results and Discussion
ByteComposer demonstrates a significant improvement over baseline models in both technical accuracy and alignment with user intent.
Technical Proficiency
In comparative tests, ByteComposer-GPT4 achieved a Time Signature Error Rate (TSER) of 1.8%, a dramatic improvement over the 68.8% error rate observed in raw GPT-4 outputs. Its Average Attribute Accuracy (AAA) reached 81.3%, indicating high fidelity to user-requested styles and moods.
Human Evaluation
Blind reviews by professional composers categorized ByteComposer’s output as reaching the level of a novice melody composer. The reviewers noted clear "creative motivations" in the AI's rhythmic and harmonic choices, a direct result of the structured conception phase.
Conclusion
By shifting from end-to-end "black box" generation to a structured, agentic workflow, ByteComposer provides a blueprint for interpretable AI music composition. While currently focused on melodies and limited by the depth of its musical logic compared to master composers, future work will expand the framework to include multi-track arrangements and more complex musical forms.
Summary updated