Proceedings

CompLex: Music Theory Lexicon Constructed by Autonomous Agents for Automatic Music Generation

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 7419-7427.

https://doi.org/10.24963/ijcai.2025/825

Abstract

Generative artificial intelligence in music has made significant strides, yet it still falls short of the substantial achievements seen in natural language processing, primarily due to the limited availability of music data. Knowledge-informed approaches have been shown to enhance the performance of music generation models, even when only a few pieces of musical knowledge are integrated. This paper seeks to leverage comprehensive music theory in AI-driven music generation tasks, such as algorithmic composition and style transfer, which traditionally require significant manual effort with existing techniques. We introduce a novel automatic music lexicon construction model that generates a lexicon, named CompLex, comprising 37,432 items derived from just 9 manually input category keywords and 5 sentence prompt templates. A new multi-agent algorithm is proposed to automatically detect and mitigate hallucinations. CompLex demonstrates impressive performance improvements across three state-of-the-art text-to-music generation models, encompassing both symbolic and audio-based methods. Furthermore, we evaluate CompLex in terms of completeness, accuracy, non-redundancy, and executability, confirming that it possesses the key characteristics of an effective lexicon.

  1. [Achiam et al., 2023] Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Alt- man, Shyamal Anadkat, et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023.
  2. [Akama, 2019] Taketo Akama. Controlling symbolic music generation based on concept learning from domain knowl- edge. In ISMIR, pages 816-823, 2019.
  3. [Bhandari et al., 2025] Keshav Bhandari, Abhinaba Roy, Kyra Wang, Geeta Puri, Simon Colton, and Dorien Her- remans. text2midi: Generating symbolic music from cap- tions. In AAAI, 2025.
  4. [Briot et al., 2017] Jean-Pierre Briot, Gaëtan Hadjeres, and Franc ¸ois-David Pachet. Deep learning techniques for mu- sic generation-a survey. arXiv preprint arXiv:1709.01620, 2017.
  5. [Cao, 2022] Longbing Cao. Ai in finance: challenges, techniques, and opportunities. ACM Computing Surveys (CSUR), 55(3):1-38, 2022.
  6. [Chan et al., 2024] Chi-Min Chan, Weize Chen, Yusheng Su, Jianxuan Yu, Wei Xue, Shanghang Zhang, Jie Fu, and Zhiyuan Liu. Chateval: Towards better llm-based evalua- tors through multi-agent debate. In ICLR, 2024.
  7. [Chuan and Herremans, 2018] Ching-Hua Chuan and Dorien Herremans. Modeling temporal tonal relations in polyphonic music through deep networks with a novel image-based representation. In AAAI, volume 32, 2018.
  8. [Cobbe et al., 2021] Karl Cobbe, Vineet Kosaraju, Moham- mad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word prob- lems. arXiv preprint arXiv:2110.14168, 2021.
  9. [Copet et al., 2024] Jade Copet, Felix Kreuk, Itai Gat, Tal Remez, David Kant, Gabriel Synnaeve, Yossi Adi, and Alexandre Défossez. Simple and controllable music gen- eration. NeurIPS, 36, 2024.
  10. [Dai et al., 2020] Shuqi Dai, Huan Zhang, and Roger B Dan- nenberg. Automatic analysis and influence of hierarchical structure on melody, rhythm and harmony in popular mu- sic. arXiv preprint arXiv:2010.07518, 2020.
  11. [Dai et al., 2021] Shuqi Dai, Zeyu Jin, Celso Gomes, and Roger B Dannenberg. Controllable deep melody gener- ation via hierarchical music structure representation. In ISMIR, 2021.
  12. [Durante et al., 2024] Zane Durante, Qiuyuan Huang, Naoki Wake, Ran Gong, Jae Sung Park, Bidipta Sarkar, Rohan Taori, Yusuke Noda, Demetri Terzopoulos, Yejin Choi, et al. Agent ai: Surveying the horizons of multimodal in- teraction. arXiv preprint arXiv:2401.03568, 2024.
  13. [Farquhar et al., 2024] Sebastian Farquhar, Jannik Kossen, Lorenz Kuhn, and Yarin Gal. Detecting hallucinations in large language models using semantic entropy. Nature, 630(8017):625-630, 2024.
  14. [Gao et al., 2024] Shanghua Gao, Ada Fang, Yepeng Huang, Valentina Giunchiglia, Ayush Noori, Jonathan Richard Schwarz, Yasha Ektefaie, Jovana Kondic, and Marinka Zitnik. Empowering biomedical discovery with ai agents. Cell, 187(22):6125-6151, 2024.
  15. [Han et al., 2024] Bing Han, Junyu Dai, Weituo Hao, Xinyan He, Dong Guo, Jitong Chen, Yuxuan Wang, Yan- min Qian, and Xuchen Song. Instructme: an instruction guided music edit framework with latent diffusion models. In IJCAI, pages 5835-5843, 2024. IJCAI
  16. [Hu et al., 2023] Zhejing Hu, Xiao Ma, Yan Liu, Gong Chen, Yongxu Liu, and Roger B Dannenberg. The beauty of repetition: an algorithmic composition model with motif-level repetition generator and outline-to-music gen- erator in symbolic music generation. IEEE Transactions on Multimedia, 2023.
  17. [Hu et al., 2024] Zhejing Hu, Yan Liu, Gong Chen, Xiao Ma, Shenghua Zhong, and Qianwen Luo. Responding to the call: Exploring automatic music composition using a knowledge-enhanced model. In AAAI, volume 38, pages 521-529, 2024.
  18. [Hu et al., 2025] Zhejing Hu, Yan Liu, Gong Chen, and Bruce XB Yu. Compose with me: Collaborative music in- painter for symbolic music infilling. In AAAI, volume 39, pages 1327-1335, 2025.
  19. [Islam et al., 2024] Md. Ashraful Islam, Mohammed Eunus Ali, and Md. Rizwan Parvez. Mapcoder: Multi-agent code generation for competitive problem solving. In ACL, pages 4912-4944. Association for Computational Linguis- tics, 2024.
  20. [Ji et al., 2023] Shulei Ji, Xinyu Yang, and Jing Luo. A survey on deep learning for symbolic music generation: Representations, algorithms, evaluations, and challenges. ACM Computing Surveys, 56(1):1-39, 2023.
  21. [Jiang et al., 2020] Junyan Jiang, Gus G Xia, Dave B Carl- ton, Chris N Anderson, and Ryan H Miyakawa. Trans- former vae: A hierarchical model for structure-aware and interpretable music representation learning. In ICASSP, pages 516-520, 2020.
  22. [Karystinaios et al., 2023] Emmanouil Karystinaios, Francesco Foscarin, and Gerhard Widmer. Musical voice separation as link prediction: modeling a musical perception task as a multi-trajectory tracking problem. In IJCAI, pages 3866-3874, 2023. IJCAI
  23. [Kovač et al., 2023] Grgur Kovač, Rémy Portelas, Peter Ford Dominey, and Pierre-Yves Oudeyer. The socialai school: Insights from developmental psychology towards artificial socio-cultural agents. arXiv preprint arXiv:2307.07871, 2023.
  24. [Kreuk et al., 2022] Felix Kreuk, Gabriel Synnaeve, Adam Polyak, Uriel Singer, Alexandre Défossez, Jade Copet, Devi Parikh, Yaniv Taigman, and Yossi Adi. Audio- gen: Textually guided audio generation. arXiv preprint arXiv:2209.15352, 2022.
  25. [Lu et al., 2022] Peiling Lu, Xu Tan, Botao Yu, Tao Qin, Sheng Zhao, and Tie-Yan Liu. Meloform: Generating melody with musical form based on expert systems and neural networks. arXiv preprint arXiv:2208.14345, 2022.
  26. [Mayo et al., 2024] Katherine Mayo, Nicholas Grabill, and Michael P. Wellman. Fraud risk mitigation in real-time payments: A strategic agent-based analysis. In IJCAI, pages 157-165. ijcai.org, 2024. IJCAI
  27. [McDermott and Oxenham, 2008] Josh H McDermott and Andrew J Oxenham. Music perception, pitch, and the auditory system. Current opinion in neurobiology, 18(4):452-463, 2008.
  28. [Melechovsky et al., 2024] Jan Melechovsky, Abhinaba Roy, and Dorien Herremansn. Midicaps: A large-scale midi dataset with text captions. In ISMIR, 2024.
  29. [Qian et al., 2024] Chen Qian, Wei Liu, Hongzhang Liu, Nuo Chen, Yufan Dang, Jiahao Li, Cheng Yang, Weize Chen, Yusheng Su, Xin Cong, et al. Chatdev: Commu- nicative agents for software development. In ACL, pages 15174-15186, 2024.
  30. [Raffel, 2016] C Raffel. Learning-based methods for com- paring sequences, with applications to audio-to-midi alignment and matching. 331 Ph. D. PhD thesis, thesis, Columbia University, 2016.
  31. [Shamshad et al., 2023] Fahad Shamshad, Salman Khan, Syed Waqas Zamir, Muhammad Haris Khan, Munawar Hayat, Fahad Shahbaz Khan, and Huazhu Fu. Transform- ers in medical imaging: A survey. Medical Image Analy- sis, 88:102802, 2023.
  32. [Shih et al., 2022] Yi-Jen Shih, Shih-Lun Wu, Frank Zalkow, Meinard Muller, and Yi-Hsuan Yang. Theme transformer: Symbolic music generation with theme-conditioned trans- former. IEEE Transactions on Multimedia, 2022.
  33. [Shorten and Khoshgoftaar, 2019] Connor Shorten and Taghi M Khoshgoftaar. A survey on image data augmen- tation for deep learning. Journal of big data, 6(1):1-48, 2019.
  34. [Suno, 2025] Suno. Official website. https://suno.com, 2025. Accessed: 2025-01-01. Link
  35. [Tatar and Pasquier, 2019] Kıvanc ¸Tatar and Philippe Pasquier. Musical agents: A typology and state of the art towards musical metacreation. Journal of New Music Research, 48(1):56-105, 2019.
  36. [Udio, 2025] Udio. Official website. https://www.udio.com, 2025. Accessed: 2025-01-01. Link
  37. [Wang et al., 2024] Lei Wang, Chen Ma, Xueyang Feng, Zeyu Zhang, Hao Yang, Jingsen Zhang, Zhiyuan Chen, Jiakai Tang, Xu Chen, Yankai Lin, et al. A survey on large language model based autonomous agents. Frontiers of Computer Science, 18(6):186345, 2024.
  38. [Wei et al., 2022] Jason Wei, Xuezhi Wang, Dale Schuur- mans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. NeurIPS, 35:24824- 24837, 2022.
  39. [Wei et al., 2023] Haojie Wei, Jun Yuan, Rui Zhang, Yueguo Chen, and Gang Wang. Jepoo: highly accurate joint es- timation of pitch, onset and offset for music information retrieval. In IJCAI, pages 4892-4902, 2023. IJCAI
  40. [Wu et al., 2020] Jian Wu, Xiaoguang Liu, Xiaolin Hu, and Jun Zhu. Popmnet: Generating structured pop music melodies using neural networks. Artificial Intelligence, 286:103303, 2020.
  41. [Yasunaga et al., 2024] Michihiro Yasunaga, Xinyun Chen, Yujia Li, Panupong Pasupat, Jure Leskovec, Percy Liang, Ed H Chi, and Denny Zhou. Large language models as analogical reasoners. In ICLR, 2024.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards