arXiv:2504.04466cs.SDcs.AI2025-04

不训练模型,让音乐自动生成无缝循环片段

LoopGen: Training-Free Loopable Music Generation

  • 用环形生成方式让模型在结尾时关注开头,实现自然循环
  • 环接处的词元困惑度降低55%,听觉上更平滑
  • 无需额外训练,适合想快速生成舞曲循环段落的创作者

循环段——设计为可无缝重复的短音频片段——是舞蹈和电子音乐等类型的核心。然而,当前生成式音乐模型难以产出真正可循环的音频,因为仅生成短波形无法保证从末尾回到开头时无听觉断点。本文通过修改非自回归模型MAGNeT,使其以环形方式生成词元,使模型在生成结尾时能关注开头内容。这一仅需推理的方法使生成结果具备未来上下文意识,自然循环,无需额外训练或数据。我们通过计算循环接缝处的词元困惑度评估循环一致性,结果提升55%。盲听测试进一步证实感知效果显著优于基线方法,平均评分提高70%。这些结果表明,仅推理方法在改进生成模型方面有效,也凸显了非自回归方法在上下文感知音乐生成中的优势。

原文摘要 · Abstract (English)

Loops--short audio segments designed for seamless repetition--are central to many music genres, particularly those rooted in dance and electronic styles. However, current generative music models struggle to produce truly loopable audio, as generating a short waveform alone does not guarantee a smooth transition from its endpoint back to its start, often resulting in audible discontinuities. We address this gap by modifying a non-autoregressive model (MAGNeT) to generate tokens in a circular pattern, letting the model attend to the beginning of the audio when creating its ending. This inference-only approach results in generations that are aware of future context and loop naturally, without the need for any additional training or data. We evaluate the consistency of loop transitions by computing token perplexity around the seam of the loop, observing a 55% improvement. Blind listening tests further confirm significant perceptual gains over baseline methods, improving mean ratings by 70%. Taken together, these results highlight the effectiveness of inference-only approaches in improving generative models and underscore the advantages of non-autoregressive methods for context-aware music generation.

音乐生成循环音频非自回归推理优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。