TL;DR
This paper introduces ZIQI-Eval, a comprehensive benchmark designed to evaluate the musical capabilities of Large Language Models (LLMs). Despite LLMs' advancements in various domains, their musical understanding and generation abilities remain largely unassessed. The study reveals that current LLMs perform poorly across the board on ZIQI-Eval, highlighting a significant need for improvement in this area.
What Problem Does This Paper Address?
Large Language Models (LLMs) have demonstrated remarkable progress in understanding and generating human language, excelling in tasks ranging from question answering to code generation. However, a critical gap exists in evaluating their proficiency in other complex domains, particularly music. While general benchmarks exist, they often fall short of capturing the nuances of musical understanding and creation. Music is a fundamental aspect of human culture, and assessing LLMs' ability to comprehend, analyze, and generate music is crucial for their development into truly versatile AI systems. This paper addresses this oversight by proposing a dedicated, large-scale benchmark to rigorously test LLMs' musical intelligence.
Methods
The core of this work is the introduction of ZIQI-Eval, a novel benchmark for evaluating LLMs' musical abilities. ZIQI-Eval is structured into two main components: a music comprehension test and a music generation test.
- Music Comprehension Test: This part presents LLMs with multiple-choice questions covering a broad spectrum of musical knowledge. The questions are organized into 10 major categories and 56 subcategories, encompassing areas like music theory, composition, genres, instruments, and historical context. The dataset includes over 14,000 meticulously curated data entries.
- Music Generation Test: This component assesses LLMs' ability to continue musical pieces. To handle the textual input requirement of LLMs, musical scores are converted into ABC notation. The task involves providing LLMs with an initial segment of a musical score and four possible continuations, requiring them to select the most fitting one.
The authors evaluated 16 LLMs, including both API-based (e.g., GPT-4, Claude-instant-1.2) and open-source models (e.g., Aquila-7B, ChatGLM2-6B). Standard metrics like Precision, Recall (equivalent to Accuracy in this context), and F1 score were used to quantify performance.
Datasets
The primary dataset introduced in this paper is ZIQI-Eval. It comprises:
- Music Comprehension Question Bank: Over 14,000 data entries organized into 10 major categories and 56 subcategories. This dataset draws from sources like the Répertoire International de Littérature Musicale (RILM) and "The New Grove Dictionary of Music and Musicians," aiming for broad academic coverage and inclusivity, notably by highlighting female composers.
- Music Generation Question Bank: 200 questions designed to test music continuation abilities.
The dataset is made available on GitHub and HuggingFace.
Key Insights and Ideas
- Music is a Blind Spot for LLMs: The study unequivocally demonstrates that current LLMs, even the most advanced ones, struggle significantly with musical tasks. This suggests that music understanding and generation are not implicitly learned through general language training.
- Need for Specialized Benchmarks: Existing benchmarks, even comprehensive ones, are insufficient for evaluating musical capabilities. ZIQI-Eval fills this crucial gap, providing a standardized and robust framework.
- Inclusivity in Music AI: The benchmark actively incorporates content from female composers, addressing historical gender imbalances in music literature and promoting diversity in AI evaluations.
- Bias in Musical Understanding: LLMs exhibit biases related to gender, race, and region in their musical assessments, mirroring broader societal biases.
- Instruction Following vs. Musical Understanding: High precision in instruction following doesn't necessarily translate to strong musical comprehension or generation abilities, as seen with models like Yi-6B.
Key Results
- Poor Overall Performance: All 16 evaluated LLMs performed poorly on ZIQI-Eval. The highest F1 score achieved was 63.04 for music comprehension and 54.31 for music generation (by GPT-4), both falling short of a satisfactory threshold. Many models performed only marginally better than random chance.
- API Models Outperform Open-Source: API-based models generally showed higher F1 scores than open-source models in both comprehension and generation tasks.
- Parameter Scale Correlation is Nuanced: While there's some correlation between parameter scale and musical ability within the same model series (e.g., Qwen, Yi), it's not a universal rule across different model families.
- Bias Prevalence: Approximately 43.75% of LLMs showed gender bias, 37.50% showed racial bias, and a significant portion exhibited regional biases, particularly favoring European music.
- Music Generation Lag: LLMs generally performed worse on music generation tasks compared to music comprehension.
Limitations and Future Work
- Objective vs. Subjective Evaluation: The current benchmark focuses on objective questions and lacks evaluation of subjective aspects like musical creativity or aesthetic appreciation.
- Multimodal Data Absence: ZIQI-Eval is primarily text-based and does not incorporate multimodal data (e.g., visual elements of music, audio).
- Future Work: The authors plan to develop a multimodal benchmark to provide a more holistic evaluation of LLMs' musical expertise. They also aim to explore subjective musical tasks and incorporate a wider range of musical experiences.
Summary updated