Kyutai 发布 MuScriptor:用于多乐器自动音乐转录的开源解码器专用 Transformer 模型


腾讯orkbuddy注册即可得2000积分,可以干不少活。下载链接:https://www.workbuddy.cn/

百度Dumate智能体,也是工作搭配好工具:邀请码及下载地址:百度 Dumate邀请码: 7D8DUYG

字节TraeWork免费4500积分,点击下载字节跳动TraeWork免费4500积分

Tabbit AI浏览器,在浏览器里用AITabbit AI浏览器,点击下载

MonkeyCode 长亭百智云Monkeycode-AI,点击在线使用

\n
MarkTechPost(RSS)

Kyutai 发布 MuScriptor:用于多乐器自动音乐转录的开源解码器专用 Transformer 模型

2026-07-11 04:21·6小时前·Asif Razzaq
阅读原文· marktechpost.com
AI 摘要

Kyutai 与 Mirelo 团队发布 MuScriptor,一款用于多乐器自动音乐转录(AMT)的开放权重解码器专用 Transformer 模型。它将音频转录建模为语言建模任务,采用 MT3 token 化方案。模型在 Hugging Face 上提供三个权重变体:small(103M)、medium(307M,默认)和 large(1.4B)。训练采用三阶段流程:在约 145 万 MIDI 文件上预训练,在 17 万段真实录音(超 11000 小时)上微调,再通过 GRPO 类强化学习后训练。在 D Test 基准上,large 模型 Multi F1 达 48.2,远超 YourMT3+ 基线的 21.9。推理代码采用 MIT 许可,权重采用 CC BY-NC 4.0(限制商业使用)。

原文 · 保持原样,未翻译

Automatic Music Transcription (AMT) converts an audio recording into symbolic notes, usually MIDI. Single-instrument transcription already works reasonably well. However, transcribing a full multi-instrument mix stays difficult. Kyutai and Mirelo team now release MuScriptor to close that gap. It is an open-weight model trained on real, multi-instrument recordings across many genres.

This article explains how MuScriptor works, what the benchmarks show, and how to run it.

What is MuScriptor?

At its core, MuScriptor is a decoder-only Transformer for music transcription. First, it reads a mel-spectrogram of a short audio segment. Then it autoregressively predicts MIDI-like tokens for pitch, timing, and instrument. In effect, transcription becomes a language-modeling task, following the MT3 tokenization scheme.

The release ships three weight variants on Hugging Face. Their sizes are small (103M), medium (307M, default), and large (1.4B). The inference code uses the MIT license. The weights use CC BY-NC 4.0, so commercial use is restricted.

How the Three-Stage Pipeline Works

MuScriptor’s main idea is data, not architecture. Accordingly, training moves through three stages, and each builds on the last.

  1. Pre-training uses DSynth, roughly 1.45M MIDI files. An on-the-fly pipeline synthesizes them during training. Augmentations include pitch shifting, tempo changes, velocity adjustment, and instrument randomization. Over 250 soundfonts plus random detuning yield near-infinite audio realizations.
  2. Fine-tuning uses DReal, an internal set of 170,000 recordings. Together they total more than 11,000 hours with aligned note annotations. Most alignments come from audio-symbolic synchronization using interpolation and dynamic time warping. Poor pairs are filtered by warping distance and a maximum time-dilation factor.
  3. Reinforcement learning post-training uses DRL, 300 manually verified tracks. The team applies a GRPO-like method combining REINFORCE with group-relative advantage normalization. The reward sums three F-scores: onset, frame, and offset. As a result, the model learns to favor cleaner transcriptions.

Performance

For evaluation, the research team use DTest, 372 held-out tracks with accurate annotations. They report instrument-agnostic metrics from the mir_eval library. Among them, Multi F1 is strictest, since it also requires the correct instrument.

The table below traces each training stage against the YourMT3+ baseline, using the large (~1.3B) model.

Model (DTest) Onset F1 Frame F1 Offset F1 Drums F1 Multi F1
YourMT3+ (baseline) 32.5 45.5 17.8 41.4 21.9
MuScriptor · DSynth 34.5 48.9 16.1 21.0 16.2
MuScriptor · DSynth + DReal 54.4 69.3 42.3 43.3 41.6
MuScriptor · DSynth + DReal + DRL 60.4 73.3 49.0 50.2 48.2

Clearly, every stage improves results, and real data matters most. Synthetic-only training reaches competitive frame F1 but weak onset and multi scores. Adding DReal then lifts all metrics by roughly 20 points. Finally, RL post-training reduces false negatives and sharpens onset timing.

Cross-dataset tests point the same way. For example, frame F1 on Dagstuhl ChoirSet rises from 51.0 to 80.7. Even so, onset and offset stay lower on hard styles like chorals.

Getting Started

Installation takes one command, and inference streams note events directly.

# pip install muscriptor   (or: uv add muscriptor)
from pathlib import Path
from muscriptor import TranscriptionModel

# Downloads the default "medium" variant (also accepts "small" / "large")
model = TranscriptionModel.load_model()

# Stream note events; optionally condition on known instruments
for event in model.transcribe("audio.wav", instruments=["acoustic_piano", "drums"]):
    print(event)   # NoteStartEvent / NoteEndEvent / ProgressEvent

# Or write a MIDI file directly
Path("out.mid").write_bytes(model.transcribe_to_midi("audio.wav"))

For the released models, keep cfg_coef at 1, since they are already RL post-trained. Additionally, uvx muscriptor serve launches a browser web UI with a live piano roll.

Use Cases with Examples

Because the output is standard MIDI, many workflows open up:

  • Producers can extract a MIDI bassline from a mix, then re-voice it in a DAW.
  • Musicologists can convert historical recordings into editable scores for analysis.
  • MIR researchers can feed transcriptions into chord or key recognition systems.
  • Educators can build practice tools showing a live piano roll during playback.
  • Developers can transcribe only drums by passing instrument conditioning.

Strengths and Weaknesses

Strengths:

  • Trained on 170k real recordings spanning classical to heavy metal.
  • Open weights plus MIT-licensed inference code, in three size variants.
  • Multi F1 of 48.2 versus 21.9 for the YourMT3+ baseline on DTest.
  • Instrument conditioning customizes output and stabilizes cross-segment predictions.
  • A streaming API emits note events and MIDI, alongside a browser web UI.

Weaknesses:

  • Weights are CC BY-NC 4.0, so commercial deployment is restricted.
  • The tokenizer drops velocity and cannot represent overlapping same-pitch, same-instrument notes.
  • Onset and offset accuracy stay lower on chorals and similar styles.
  • The large model wants a GPU for practical speed.
  • The 5-second segment size limits long-range context and inference speed.

暂无评论,快来发表第一条评论吧!

📮 需求咨询