arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.15831cs.SDcs.AI
收藏

将音乐建模为时频图像:一种用于音乐生成的2D分词器

Modeling Music as a Time-Frequency Image: A 2D Tokenizer for Music Generation

Department of Music AI and Information Technology, Central Conservatory of Music(音乐人工智能与信息技术系,中央音乐学院);Zhipu AI(智谱AI)

Yuqing Cheng, Xingyu Ma, Guochen Yu, Xiaotao Gu

AI总结:

本文提出BandTok,一种面向生成的2D梅尔频谱分词器,通过单个共享码本生成梅尔频带token,提升自回归建模能力,实验表明其在数据有限情况下表现优异。

摘要:

自回归音乐生成高度依赖音频分词器。现有高保真编码器常使用残差多码本量化,虽保留重建质量但序列展平后语言建模复杂,因残差层次强序列依赖且放大误差积累。我们提出BandTok,一种面向生成的2D梅尔频谱分词器,通过单个共享码本生成梅尔频带token,生成物理可解释的时频token网格,具有更独立的token结构,更适合自回归建模。BandTok通过多尺度PatchGAN目标和EMA码本更新提升重建质量。我们进一步引入具有2D Rotary Position Embedding(2D RoPE)的自回归语言模型,以在生成过程中保持时间和频带结构。实验表明,BandTok优于残差码本分词器,在数据有限情况下表现优异。本工作源代码和生成演示已公开。

英文摘要:

Autoregressive music generation depends strongly on the audio tokenizer. Existing high-fidelity codecs often use residual multi-codebook quantization, which preserves reconstruction quality but complicates language modeling after sequence flattening, as the residual hierarchy imposes strong sequential dependencies and can amplify error accumulation. We propose BandTok, a generation-oriented 2D Mel-spectrogram tokenizer that represents each frame with Mel-frequency band tokens from a single shared codebook. This design yields a physically interpretable time-frequency token grid with a more independent token structure, making it better suited for autoregressive modeling. BandTok improves reconstruction with a multi-scale PatchGAN objective and EMA codebook updates. We further introduce an autoregressive language model with 2D Rotary Position Embedding (2D RoPE) to preserve temporal and frequency-band structure during generation. Experiments show that BandTok improves over residual-codebook tokenizers and achieves strong results in a data-limited setting. The source code and generation demos for this work are publicly available.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑