arXiv:2610.32007cs.SDOct 2026

Manuscript Offprint

arXiv:2610.32007

MI-MIDI 2: From Observation to Control with Sparse Autoencoders in Text-to-MIDI Generation

Jakub Poćwiardowski, Mateusz Modrzejewski

ABSTRACT

Sparse autoencoders (SAEs) can expose features of a generative model without predefined labels, but in language models the evidence used to interpret these features has proven an unreliable guide to which of them steer the output. Whether interpretations of SAE features predict control in music generators has not, to our knowledge, been tested. We develop an end-to-end protocol for discovering and evaluating SAE features in text-to-MIDI generation and apply it to text2midi and MIDI-LLM. The protocol characterizes features through correlations with musical metrics, shared instrument programs, and automated descriptions, each with its own control: note-density adjustment, matched inactive excerpts, and permutation calibration. It then tests candidates by intervention, measured directly in the generated MIDI against unmodified generation and a matched random direction, ranks them in screens, and confirms selected features on new prompts. Evidence that survives these controls points to features that steer the output. Descriptions exceed permutation controls for instrumentation, and a feature whose description names a synth-lead program introduces that program in a prespecified confirmation and in a replication on disjoint prompts and reappears in independently trained dictionaries. Features selected by density-adjusted correlations show a small positive shift of their target metric as a family, whereas features selected by raw correlations show none. An atlas provides MIDI, piano-roll, and audio examples for every feature of the targeted screen.

Keywords Mechanistic interpretability · sparse autoencoders · activation steering · symbolic music · text-to-MIDI

1 Introduction

Interpretability methods offer a route to controlling text-conditioned music generators. Adding a hidden-state direction associated with a musical attribute changes that attribute during generation, as shown for instrumentation, genre, tempo, and timbral brightness in text-to-audio models [1, 2]; such interventions have also been evaluated in text-to-MIDI models [3]. These directions are supervised: the attribute must be chosen in advance. Sparse autoencoders (SAEs) remove this requirement. They decompose hidden states into a large dictionary of sparsely active directions learned without labels [4, 5], and each dictionary direction can itself steer the model [6].

To use a dictionary feature for control, one must know what it represents and whether that interpretation predicts its effect. The evidence for a feature's meaning is mostly observational: the examples on which it is most active, its correlation with a measurable property, or a description that a language model writes from those examples [7, 8]. In language models, this evidence is an unreliable guide to control. Features that respond strongly to inputs differ from those that steer outputs [9], descriptions based on inputs often miss a feature's effect on generation [10], SAE steering underperforms simple baselines [11], and automated interpretability scores do not separate trained from randomly initialized transformers [12].

For music generators, this relation has not been tested. SAE features of MusicGen have been described by a multimodal language model and used for steering, with the effect judged from the generated audio [13], and SAEs of a symbolic generator have been used to steer attributes defined in advance [14]. To our knowledge, no study has asked whether the

Figure

Figure 1: Overview of the experiments. Each observational route has its own control; interventions compare the feature direction with baseline generation and a matched random direction, with endpoints measured in MIDI. Screens rank candidates and give family-level estimates; selected features are confirmed on new prompts.

observational evidence about unsupervised features of a music generator predicts their effect on the generated music. Text-to-MIDI generators make this question answerable, because their output is a score whose notes, durations, and instrument programs can be measured exactly.

We study SAE features of two text-to-MIDI models of contrasting design, text2midi [15] and MIDI-LLM [16], in the four stages of Figure 1. After training the dictionaries, we collect three kinds of observational evidence about their features: correlations with symbolic music metrics, instrument programs shared by a feature's active excerpts, and automated descriptions tested on held-out excerpts. Each kind needs a control. Many musical statistics can grow with the number of notes in an excerpt, so we adjust correlations for note density, and a language model may find a pattern in any group of excerpts, so we compare descriptions with permutation controls. We then steer generation along the features' decoder directions and measure the outcome in MIDI against unmodified generation and a matched random direction. We screen many features on few prompts to rank candidates and estimate effects for families of features, and we confirm individual features on new prompts.

Our contributions are as follows.

  1. A validation protocol for SAE features of symbolic music generators. It pairs each kind of observational evidence with a control and measures interventions in the generated MIDI against two references, so that researchers can locate the step at which an interpretation stops predicting the music.

  2. Evidence that controlled observations identify steerable features. A feature from the only description group that survives the permutation control steers its instrument program in a prespecified confirmation and a replication, and features selected after the density adjustment show a small positive family-level shift of their target metric, unlike features selected by raw correlations. Practitioners can therefore select steering candidates by evidence that survives its control and confirm them on new prompts.

  3. To our knowledge, the first SAE dictionaries and feature atlas for text-conditioned symbolic music generators. The atlas (https://jpocwiar.github.io/MI-MIDIv2-Demo/) provides MIDI files, piano rolls, and audio for all 80 features of the targeted screen, so that readers can inspect the music behind the measurements.

References (31)