AI作曲其實是在玩接龍?這集小皮介紹自回歸生成(Autoregressive):就像手機輸入法猜下一個字,模型看著前面所有的音訊token,猜出下一個、接上去、再猜下一個。負責猜的Transformer用注意力機制回頭看前面的節奏與主題,OpenAI 2020年的Jukebox就走這條路。Meta 2023年開源的MusicGen用32 kHz EnCodec、4本密碼本、每秒50格,靠「延遲排列」讓4本密碼本錯開一格一起猜,每秒音樂只要接50步;它用T5讀懂文字描述,melody版還能照你哼的旋律生成,以兩萬小時授權音樂訓練,有3億、15億、33億參數三種大小。
參考資料:
Simple and Controllable Music Generation (MusicGen) - arXiv:https://arxiv.org/abs/2306.05284
AudioCraft MusicGen docs - GitHub:https://github.com/facebookresearch/audiocraft/blob/main/docs/MUSICGEN.md
Jukebox (OpenAI):https://openai.com/index/jukebox/
Autoregressive model - Wikipedia:https://en.wikipedia.org/wiki/Autoregressive_model
Transformer (deep learning architecture) - Wikipedia:https://en.wikipedia.org/wiki/Transformer_(deep_learning_architecture)