All models

MusIAC

Transformer encoder-decoder that fills in missing bars and tracks of symbolic music under bar and track control tokens.

Audio and speech · 519 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (27 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
29.8M
Operations
519
Framework
PyTorch
Recurrent
No
Published
EvoMUSART 2022 (LNCS 13221)
Cited by
11 (as of 3 November 2026)
Authors
Rui Guo, Ivor Simpson, Chris Kiefer and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m18593
Graph hash
8d0b74f8dd43c7cda493ebce4a129a832198f6553f2316ae47a10315848e592d
Skeleton hash
eda89f6b2b9c9a45c9e09976a9c7703daf3f7431029b6736f3d03dcc82670e54
Architecture hash
22a0e31345581f063da8266a0bd708f6652fc0708a947c14b4ff51bb3f33b41f
Diagram SHA-256
7a45e108df837a15c27f87e4f035d7ff50dd2b0ef37d055d8a212c3bf866f1e3
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

MusIAC is a transformer for music infilling, the task of generating missing musical sections to fit the multi-track music around them. The paper notes that earlier infilling models took only track note density as a control. MusIAC calculates six human-interpretable features from the input and adds them as control tokens: key, bar tensile strain, bar cloud diameter, track density, track polyphony and track occupation.

The music is written as an adapted version of the REMI token representation, and the full event vocabulary, control tokens included, has 360 entries. The network is a transformer encoder-decoder with 4 layers in each of the encoder and decoder, 8 heads and a model dimension of 512. In the encoder input one mask token stands for a track in a bar, and the decoder reconstructs that masked bar track.

Training has two stages, a pretraining stage that learns music grammar and a finetuning stage for the infilling tasks. The data comes from the Lakh LMD-matched dataset, filtered for songs with a melody track, a bass track and an optional accompaniment track. In the paper's experiment, the model with the added control tokens produced infillings with more stylistic similarity to the original music than one trained without them. The authors present the model in a Google Colab notebook for interactive generation.

Key idea. MusIAC adds calculated control tokens, such as tonal tension per bar and track polyphony level, to a transformer that infills missing sections of multi-track music.

  • MusIAC
  • music infilling
  • music inpainting
  • symbolic music generation
  • music transformer
  • controllable generation
  • control tokens
  • tonal tension
  • multi-track music
  • MIDI

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{guo2022musiacextensiblegenerativeframework,
      title={MusIAC: An extensible generative framework for Music Infilling Applications with multi-level Control}, 
      author={Rui Guo and Ivor Simpson and Chris Kiefer and Thor Magnusson and Dorien Herremans},
      year={2022},
      eprint={2202.05528},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2202.05528}, 
}