Museformer: Transformer with Fine- and Coarse-Grained Attention for Music Generation
Botao YuPLPeiling LuRWRui Wang
Wei Hu
Xu Tan
Wei YeSZShikun Zhang
Tao Qin
Tie-Yan Liu
Botao Yu
PLPeiling Lu
RWRui Wang

Wei Hu

Xu Tan

Wei Ye
SZShikun Zhang

Tao Qin

Tie-Yan Liu
+9
Museformer introduces a Transformer with fine- and coarse-grained attention for symbolic music generation, addressing the inefficiency of full attention on long sequences (over 10,000 tokens) and its weakness in modeling repetition structures. In fine-grained attention, each token of a bar attends to all tokens of the most structurally relevant bars (e.g., previous 1st, 2nd, 4th, 8th, selected by similarity statistics). In coarse-grained attention, a token attends only to a summarization of other bars, reducing cost. This captures both structure-related correlations and contextual information, enabling over 3× longer sequence modeling than full attention, with high quality and better structures.

arXiv ·
· October 19, 2022