SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.07160 · ICML · 2024

A Multimodal Instruction-Following Language Model for Music

Josh Gardner, Simon Durand, Daniel Stoller, Rachel Bittner

arXiv · PDF · Open in the Atlas

Code that ran

5 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 2 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2310.07160.json · badge: /api/ran/2310.07160.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
mdeff/fma canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
spotify-research/llark canonical (classifier label)
classifier basis: classifier_2025
1 ran · 2 no recorded run
FunctionStatusWhere it lives
WrappedLlamav2Config Ran
ran on a synthesized input · constructed an object; no result was computed
spotify-research/llark/m2t/models/llamav2.py
pointer only (licence: NOASSERTION) · get_code("b6b5a8415848391b")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, spotify-research/llark (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_sample_loader Ran
ran; our contract draft was wrong, not the code
mdeff/fma/utils.py
code served (permissive licence) · get_code("0121345102f5ff03")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned type. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import pandas as pd
import os

# Create a minimal loader class that has the required interface
class MinimalLoader:
    def __init__(self):
        self.shape = (128,)  # Audio feature shape
    
    def load(self, audio_path):
        # Return dummy audio features
        return np.random.randn(128).astype(np.float32)

# Create dummy audio directory structure
audio_dir = "/tmp/audio"

# Create dummy track IDs
tids = np.array([1, 2, 3, 4, 5], dtype=np.int32)

# Create dummy Y (labels) as a pandas Series with track IDs as index
Y = pd.DataFrame(
    np.random.randint(0, 2, (5, 3)),
    index=[1, 2, 3, 4, 5]
)

# Create loader instance
loader = MinimalLoader()

ARGS = {
    "audio_dir": audio_dir,
    "Y": Y,
    "loader": loader
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
convert_duration Ran
ran, honoured the contract we drafted
mdeff/fma/creation.py
code served (permissive licence) · get_code("46a60ba365931494")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

def convert_duration(x):
    times = x.split(':')
    seconds = int(times[-1])
    minutes = int(times[-2])
    try:
        minutes += 60 * int(times[-3])
    except IndexError:
        pass
    return seconds + 60 * minutes

# The function takes a string parameter 'x' that represents time in HH:MM:SS or MM:SS format
# It splits by ':' and converts to integers, then calculates total seconds

ARGS = {
    'x': '1:30:45'  # Format: HH:MM:SS (1 hour, 30 minutes, 45 seconds)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_audio_path Ran
ran; our contract draft was wrong, not the code
mdeff/fma/utils.py
code served (permissive licence) · get_code("f7bb5dc60935c4cc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os.path

# Construct arguments for get_audio_path
# The function takes:
# 1. audio_dir: a directory path (string)
# 2. track_id: an integer track identifier

# Looking at the function body:
# - It formats track_id as a 6-digit zero-padded string
# - It extracts the first 3 characters as a subdirectory
# - It constructs a path using os.path.join

# Create a valid audio directory path
audio_dir = '../data/fma_small'

# Create a valid track_id (integer)
track_id = 2

ARGS = {
    'audio_dir': audio_dir,
    'track_id': track_id
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load Ran
ran, honoured the contract we drafted
mdeff/fma/utils.py
code served (permissive licence) · get_code("fd57d10b2a5fea40")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataFrame. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd
import tempfile
import os

# Create a temporary directory for test CSV files
temp_dir = tempfile.mkdtemp()

# Create a sample 'features' CSV file with multi-level headers
features_filepath = os.path.join(temp_dir, 'features.csv')
features_data = pd.DataFrame(
    [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]],
    index=['track_0', 'track_1'],
    columns=pd.MultiIndex.from_tuples([
        ('level0', 'level1', 'col1'),
        ('level0', 'level1', 'col2'),
        ('level0', 'level1', 'col3')
    ])
)
features_data.index.name = 'track_id'
features_data.to_csv(features_filepath)

ARGS = {
    'filepath': features_filepath
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
AudioEncoderConfig Not yet run
unverified (harvested, no recorded run)
spotify-research/llark/m2t/models/llamav2.py
pointer only (licence: NOASSERTION) · get_code("e0ec5330c4179e94")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, spotify-research/llark (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

WrappedLlamav2Model Not yet run
unverified (harvested, no recorded run)
spotify-research/llark/m2t/models/llamav2.py
pointer only (licence: NOASSERTION) · get_code("856e84f8c6dbac47")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, spotify-research/llark (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
convert_duration 1 other paper
1 dated earlier
1803.05337 (2018-03)
Learning to Recognize Musical Genre from Audio
get_audio_path 1 other paper
1 dated earlier
1803.05337 (2018-03)
Learning to Recognize Musical Genre from Audio

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Music has a unique and complex structure which is challenging for both expert humans and existing AI systems to understand, and presents unique challenges relative to other forms of audio. We present LLARK, an instruction-tuned multimodal model for music understanding. We detail our process for dataset creation, which involves augmenting the annotations of diverse open-source music datasets and converting them to a unified instruction-tuning format. We propose a multimodal architecture for LLARK, integrating a pretrained generative model for music with a pretrained language model. In evaluations on three types of tasks (music understanding, captioning, reasoning), we show that LLARK matches or outperforms existing baselines in music understanding, and that humans show a high degree of agreement with its responses in captioning and reasoning tasks. LLARK is trained entirely from open-source music data and models, and we make our training code available along with the release of this paper. Additional results and audio examples are at https://bit.ly/llark, and our source code is available at https://github.com/ spotify-research/llark.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2310.07160")
get_code_for_paper("2310.07160")
have("2310.07160")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2310.07160.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2310.07160.svg)](https://syntology.ai/paper/2310.07160)

Connect an agent — have() is free.