๐ค AI Summary
This work addresses the limitations of existing symbolic music tokenization approaches, which typically rely on event sequences with irregular time steps and struggle to explicitly model rhythmic regularities. The authors propose a novel tokenization method that uses fixed temporal unitsโsuch as beatsโas the fundamental building blocks, merging all events sharing the same pitch within a single time step into one token, thereby yielding a sparse piano-roll-like representation. This approach enables explicit alignment of temporal structure for the first time. Integrated with a Transformer architecture, it significantly enhances generation quality, structural coherence, and long-range dependency modeling in tasks such as music continuation and accompaniment generation, while also achieving superior efficiency and rhythmic consistency compared to prevailing event-based tokenization methods.
๐ Abstract
Tokenizing music to fit the general framework of language models is a compelling challenge, especially considering the diverse symbolic structures in which music can be represented (e.g., sequences, grids, and graphs). To date, most approaches tokenize symbolic music as sequences of musical events, such as onsets, pitches, time shifts, or compound note events. This strategy is intuitive and has proven effective in Transformer-based models, but it treats the regularity of musical time implicitly: individual tokens may span different durations, resulting in non-uniform time progression. In this paper, we instead consider whether an alternative tokenization is possible, where a uniform-length musical step (e.g., a beat) serves as the basic unit. Specifically, we encode all events within a single time step at the same pitch as one token, and group tokens explicitly by time step, which resembles a sparse encoding of a piano-roll representation. We evaluate the proposed tokenization on music continuation and accompaniment generation tasks, comparing it with mainstream event-based methods. Results show improved musical quality and structural coherence, while additional analyses confirm higher efficiency and more effective capture of long-range patterns with the proposed tokenization.