SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.10362 · 2025

CLaMP 3: Universal Music Information Retrieval Across Unaligned Modalities and Unseen Languages

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 0 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/2502.10362.json · badge: /api/ran/2502.10362.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
sanderwood/clamp3 canonical (classifier label)
classifier basis not recorded on the link
7 ran · 2 no recorded run
FunctionStatusWhere it lives
collate_batch Ran
ran on a synthesized input
sanderwood/clamp3/code/train_clamp3_audio.py
code served (permissive licence) · get_code("ab89c01dfa845956")
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 tuple. 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 torch

torch.manual_seed(0)

# Create sample batch items
# Each item is a tuple of (text_input, text_mask, music_input, music_mask)
batch_item_1 = (
    torch.randn(4),  # text_input
    torch.ones(4),   # text_mask
    torch.randn(3),  # music_input
    torch.ones(3),   # music_mask
)

batch_item_2 = (
    torch.randn(4),  # text_input
    torch.ones(4),   # text_mask
    torch.randn(3),  # music_input
    torch.ones(3),   # music_mask
)

# Create batch as list of tuples
batch = [batch_item_1, batch_item_2]

ARGS = {
    "batch": batch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
get_features Ran
ran on a synthesized input
sanderwood/clamp3/inference/clamp3_score.py
code served (permissive licence) · get_code("33dfdbcc3d495cb8")
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 tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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
import numpy as np
import tempfile
import shutil

# Create a temporary directory structure with .npy files
temp_dir = tempfile.mkdtemp()

# Create nested directory structure
nested_path = os.path.join(temp_dir, "data", "subdir", "features")
os.makedirs(nested_path, exist_ok=True)

# Create some dummy .npy files
np.save(os.path.join(nested_path, "feature1.npy"), np.random.randn(5))
np.save(os.path.join(nested_path, "feature2.npy"), np.random.randn(3, 4))

# Create another file in a different subdirectory
nested_path2 = os.path.join(temp_dir, "data", "subdir2", "features")
os.makedirs(nested_path2, exist_ok=True)
np.save(os.path.join(nested_path2, "feature3.npy"), np.random.randn(2))

ARGS = {
    "path": temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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_features Ran
ran on a synthesized input
sanderwood/clamp3/inference/clamp3_eval.py
code served (permissive licence) · get_code("3f1865499c582a59")
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 tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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
import tempfile
import numpy as np

# Create a temporary directory with .npy files
tmpdir = tempfile.mkdtemp()

# Create subdirectories and .npy files
subdir1 = os.path.join(tmpdir, "subdir1")
subdir2 = os.path.join(tmpdir, "subdir2")
os.makedirs(subdir1, exist_ok=True)
os.makedirs(subdir2, exist_ok=True)

# Create sample .npy files
np.save(os.path.join(subdir1, "feature1.npy"), np.array([1.0, 2.0, 3.0]))
np.save(os.path.join(subdir1, "feature2.npy"), np.array([[4.0, 5.0], [6.0, 7.0]]))
np.save(os.path.join(subdir2, "feature3.npy"), np.array([8.0, 9.0]))

ARGS = {
    "path": tmpdir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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_info Ran
ran on a synthesized input
sanderwood/clamp3/inference/clamp3_search.py
code served (permissive licence) · get_code("01415f8417b1ee1b")
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 dict. 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
import numpy as np
import tempfile
import shutil

# Create a temporary directory with .npy files
temp_dir = tempfile.mkdtemp()

# Create sample .npy files
np.save(os.path.join(temp_dir, 'feature_a.npy'), np.array([1.0, 2.0, 3.0, 4.0]))
np.save(os.path.join(temp_dir, 'feature_b.npy'), np.array([[5.0, 6.0], [7.0, 8.0]]))
np.save(os.path.join(temp_dir, 'feature_c.npy'), np.array([9.0]))

# Define ARGS
ARGS = {
    'folder_path': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
get_modality_from_dir Ran
ran on a synthesized input
sanderwood/clamp3/utils.py
code served (permissive licence) · get_code("c625e2475a46a5c4")
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
import tempfile
import shutil

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

# Create some test files with different extensions
test_files = [
    'document.txt',
    'image.png',
    'photo.jpg',
    'music.mid',
    'song.wav',
]

for filename in test_files:
    filepath = os.path.join(temp_dir, filename)
    with open(filepath, 'w') as f:
        f.write('test content')

# Define the arguments dictionary
ARGS = {
    'directory': temp_dir
}
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
list_files_in_directory Ran
ran on a synthesized input
sanderwood/clamp3/classification/inference_cls.py
code served (permissive licence) · get_code("06cec5555589b1f7")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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
import tempfile
import shutil

# Create temporary directories with test files
temp_base = tempfile.mkdtemp()
temp_dir1 = os.path.join(temp_base, "dir1")
temp_dir2 = os.path.join(temp_base, "dir2")
os.makedirs(temp_dir1)
os.makedirs(temp_dir2)

# Create test files with different extensions
open(os.path.join(temp_dir1, "file1.npy"), 'w').close()
open(os.path.join(temp_dir1, "file2.npy"), 'w').close()
open(os.path.join(temp_dir1, "file3.txt"), 'w').close()
open(os.path.join(temp_dir2, "file4.npy"), 'w').close()
open(os.path.join(temp_dir2, "file5.csv"), 'w').close()

# Create a subdirectory with nested files
temp_subdir = os.path.join(temp_dir1, "subdir")
os.makedirs(temp_subdir)
open(os.path.join(temp_subdir, "file6.npy"), 'w').close()

ARGS = {
    'directories': [temp_dir1, temp_dir2],
    'extensions': ['npy']
}
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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
list_files_in_json Ran
ran on a synthesized input
sanderwood/clamp3/code/train_clamp3_audio.py
code served (permissive licence) · get_code("e046b13d535e4f84")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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
import json
import tempfile

# Create a temporary directory and a temporary JSONL file
temp_dir = tempfile.mkdtemp()
json_path = os.path.join(temp_dir, "test_data.jsonl")

# Write some test data to the JSONL file
test_data = [
    {"id": 1, "name": "file1.txt"},
    {"id": 2, "name": "file2.txt"},
    {"id": 3, "name": "file3.txt"}
]

with open(json_path, 'w', encoding='utf-8') as f:
    for item in test_data:
        f.write(json.dumps(item) + '\n')

ARGS = {
    "json_path": json_path
}
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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
process_one_batch Not yet run
unverified (harvested, no recorded run)
sanderwood/clamp3/code/train_clamp3_audio.py
code served (permissive licence) · get_code("97b247d97af263d2")
How it ran

no invocation recorded.

process_one_batch Not yet run
unverified (harvested, no recorded run)
sanderwood/clamp3/code/train_clamp3_symbolic.py
code served (permissive licence) · get_code("7e37c3154ef0a4bf")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 9 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.

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

CLaMP 3 is a unified framework developed to address challenges of cross-modal and cross-lingual generalization in music information retrieval. Using contrastive learning, it aligns all major music modalities--including sheet music, performance signals, and audio recordings--with multilingual text in a shared representation space, enabling retrieval across unaligned modalities with text as a bridge. It features a multilingual text encoder adaptable to unseen languages, exhibiting strong cross-lingual generalization. Leveraging retrieval-augmented generation, we curated M4-RAG, a web-scale dataset consisting of 2.31 million music-text pairs. This dataset is enriched with detailed metadata that represents a wide array of global musical traditions. To advance future research, we release WikiMT-X, a benchmark comprising 1,000 triplets of sheet music, audio, and richly varied text descriptions. Experiments show that CLaMP 3 achieves state-of-the-art performance on multiple MIR tasks, significantly surpassing previous strong baselines and demonstrating excellent generalization in multimodal and multilingual music contexts.

For agents

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

get_harvested_code_for_paper("2502.10362")
get_code_for_paper("2502.10362")
have("2502.10362")

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

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

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

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

Connect an agent — have() is free.