Deep Learning to Generate Pop Music Instrumentals Based on a Hybrid CNN-Transformer Model
Abstract
Contemporarily, deep learning approaches have been widely implemented in music generation. This paper presents an innovative approach to multi-track music generation using a hybrid CNN-Transformer architecture. Trained on a dataset of 50 pop music instrumentals, the system processes MIDI files through a sophisticated preprocessing pipeline that categorizes instruments into seven standardized groups. The architecture combines track-specific CNN encoders with a transformer-based sequence model, achieving remarkable improvements in cross-track coherence and rhythmic stability. Training results show consistent improvement over 197 epochs, with the loss decreasing from 5.06 to 0.27. Quantitative evaluation demonstrates superior performance compared to baselines, with note coherence, rhythm accuracy, and cross-track synchronization metrics all showing significant improvements. The system successfully generates coherent multi-instrumental compositions while maintaining individual track characteristics, providing a robust framework for AI-assisted music composition. The model architecture attempts to addresses key challenges in multi-track music generation through its specialized preprocessing pipeline, hybrid neural network design, and multi-track generation approach. This implementation establishes a foundation for future developments in computer-assisted composition, with potential applications in automated music production and interactive composition systems.
References
- Herremans, D., Chuan, C.H., Chew, E. (2017) A functional taxonomy of music generation systems. ACM Computing Surveys (CSUR), 50(5), 1-30.
- Raffel, C., Ellis, D.P. (2016) Extracting ground-truth information from MIDI files: A MIDIfesto. ISMIR 2016.
- Simon, I., Roberts, A., Raffel, C., Engel, J., Hawthorne, C., Eck, D. (2018) Learning a latent space of multitrack measures. arXiv preprint arXiv:1806.00195.
- Wang, L., Zhao, Z., Liu, H., Pang, J., Qin, Y., Wu, Q. (2024) A review of intelligent music generation systems. Neural Computing and Applications, 36(12), 6381-6401.
- Dash, A., Agres, K. (2024) Ai-based affective music generation systems: A review of methods and challenges. ACM Computing Surveys, 56(11), 1-34.
- Huang, C.Z.A., Vaswani, A., Uszkoreit, J., Shazeer, N., Hawthorne, C. (2019) Music transformer: Generating music with long-term structure. ICLR 2019.
- Dong, H.W., Hsiao, W.Y., Yang, L.C., Yang, Y.H. (2018) MuseGAN: Multi-track sequential generative adversarial networks for symbolic music generation and accompaniment. AAAI 2018.
- Schneider, F., Kamal, O., Jin, Z., Schölkopf, B. (2024) Moûsai: Efficient text-to-music diffusion models. ACL 2024.
- Parker, J.D., Spijkervet, J., Kosta, K., et al. (2024) Stemgen: A music generation model that listens. ICASSP 2024.
- Liu, S., Hussain, A.S., Sun, C., Shan, Y. (2024) Music understanding llama: Advancing text-to-music generation with question answering and captioning. ICASSP 2024.
- Oore, S., Simon, I., Dieleman, S., Eck, D., Simonyan, K. (2020) This time with feeling: Learning expressive musical performance. Neural Computing and Applications, 32(4), 955-967.
- Mehta, A., Chauhan, S., Djanibekov, A., Kulkarni, A., Xia, G., Choudhury, M. (2025) Music for All: Exploring Multicultural Representations in Music Generation Models. arXiv preprint arXiv:2502.07328.
- Epple, P., Shilov, I., Stevanoski, B., de Montjoye, Y.A. (2024) Watermarking Training Data of Music Generation Models. arXiv preprint arXiv:2412.08549.
- Yang, L.C., Lerch, A. (2020) On the evaluation of generative models in music. Neural Computing and Applications, 32(9), 4773-4784.
- Roberts, A., Engel, J., Raffel, C., Hawthorne, C., Eck, D. (2018) A hierarchical latent vector model for learning long-term structure in music. ICML 2018.
- Dhariwal, P., Jun, H., Payne, C., Kim, J.W., Radford, A., Sutskever, I. (2020) Jukebox: A generative model for music. arXiv preprint arXiv:2005.00341.
- Huang, Y.S., Yang, Y.H. (2020) Pop music transformer: Beat-based modeling and generation of expressive pop piano compositions. ACM Multimedia 2020.
- Wu, J., Hu, C., Wang, Y., Hu, X., Zhu, J. (2020) A hierarchical recurrent neural network for symbolic music generation. IEEE Transactions on Cybernetics.