arXiv:2609.11353cs.SDSep 2026

Manuscript Offprint

arXiv:2609.11353

Copying Versus Randomization in Lempel-Ziv Music Synthesis

Nadav Mishan, Ram Zamir

I. INTRODUCTION

The field of generative artificial intelligence (GenAI) is currently dominated by diffusion models, transformer-based models, and generative adversarial networks (GANs) [1]. While effective, these methods demand substantial computational resources and obscure the logic of their creation process. Universal Compression (UC) models, conversely, operate efficiently in "real-time". This computational advantage, combined with the ability of algorithms like Lempel-Ziv (LZ) [2] to learn statistical models [3] for data compression, presents a promising alternative path for GenAI. Specifically, the LZ algorithm has been explored for music generation in prior works such as Dubnov and Assayag [4] and recently by Ding et al. [5].

The fundamental principle of LZ compression is the detection and reuse of repeated sequences, which poses a significant challenge for content generation. In the musical domain, new compositions are typically inspired by existing works rather than reproduced from them. However, the standard LZ algorithm is designed to maximize compression efficiency by copying long, contiguous segments of the source data. Consequently, the resulting output often consists of verbatim excerpts from the training material, rather than exhibiting the originality and variation expected of creative composition [6].

In this work, we propose a novel method to address this limitation by introducing controls to balance the trade-off between exact copying (over-copy) and randomization (under-copy). We propose two methods of controlling average sequence length: limiting the training data per tree to decrease average sequence length, and a sequence extension technique that extends branch depth to increase average sequence length.