SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2303.17395 · 2023

WavCaps: A ChatGPT-Assisted Weakly-Labelled Audio Captioning Dataset for Audio-Language Multimodal Research

arXiv · PDF · Open in the Atlas

Code that ran

9 of 12 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; 1 honoured the contract we drafted, 0 violated it and 8 have no contract verdict; 0 failures of our instrument; 3 no recorded run), measured 2026-11-24; 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/2303.17395.json · badge: /api/ran/2303.17395.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
gzhu06/cacophony community (classifier label)
classifier basis not recorded on the link
6 ran · 3 no recorded run
labbeti/aac-datasets community (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
FunctionStatusWhere it lives
ast_update_pretrained_parameters Ran
ran on a synthesized input
gzhu06/cacophony/src/caco/audio_models/mae.py
code served (permissive licence) · get_code("619e138b6c356681")
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 FrozenDict. 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 jax
import jax.numpy as jnp
from flax.core import freeze, unfreeze
import tempfile
import os

# Create a minimal pretrained checkpoint structure that matches what the function expects
# The function looks for: checkpoint['0']['params']['AudioEncoder_0']

def create_mock_checkpoint(path):
    """Create a mock checkpoint file with the expected structure"""
    import pickle
    
    # Create the nested structure the function expects
    mock_checkpoint = {
        '0': {
            'params': {
                'AudioEncoder_0': {
                    'kernel': jnp.ones((4, 8)),
                    'bias': jnp.ones((8,))
                }
            }
        }
    }
    
    # Save as a simple pickle file (flax checkpoints can be loaded this way)
    os.makedirs(path, exist_ok=True)
    checkpoint_path = os.path.join(path, 'checkpoint_0')
    with open(checkpoint_path, 'wb') as f:
        pickle.dump(mock_checkpoint, f)
    
    return path

# Create a temporary directory for the checkpoint
temp_dir = tempfile.mkdtemp()
pretrained_path = create_mock_checkpoint(temp_dir)

# Create a sample params structure - this should be a PyTree (frozen dict in Flax)
sample_params = freeze({
    'audio_module': {
        'layer1': jnp.ones((4, 5)),
        'layer2': jnp.ones((5, 3))
    },
    'other_module': {
        'weight': jnp.ones((2, 6))
    }
})

ARGS = {
    'params': sample_params,
    'pretrained_path': pretrained_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type FrozenDict — a FrozenDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a FrozenDict output the recorded ndim 1 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
count_params Ran
ran on a synthesized input
gzhu06/cacophony/src/caco/load_model.py
code served (permissive licence) · get_code("935ad642c14e60f5")
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 jax
import jax.numpy as jnp

# Create a simple JAX pytree structure with parameters
# The function uses tree_reduce to sum the sizes of all leaves
params = {
    'layer1': {
        'w': jnp.ones((4, 3)),
        'b': jnp.ones((3,)),
    },
    'layer2': {
        'w': jnp.ones((3, 2)),
        'b': jnp.ones((2,)),
    }
}

ARGS = {
    'params': params
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — 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
create_position_ids_from_input_ids Ran
ran, honoured the contract we drafted
gzhu06/cacophony/src/caco/text_models/roberta_text_model.py
code served (permissive licence) · get_code("12a1bb1ff6ec7d06")
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 ArrayImpl, ndim 2, dtype family int, shape (2, 4) 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 jax.numpy as jnp
import numpy as np

# Create small test inputs
# input_ids: shape (batch_size, seq_length) with integer token IDs
# padding_idx: integer representing the padding token index
input_ids = jnp.array([[1, 2, 0, 3], 
                        [4, 0, 5, 6]], dtype='i4')

padding_idx = 0

ARGS = {
    "input_ids": input_ids,
    "padding_idx": padding_idx
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family int, shape (2, 4) — shape (2, 4) 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_audioset_mapping_cache_path Ran
ran on a synthesized input
labbeti/aac-datasets/src/aac_datasets/utils/audioset_mapping.py
code served (permissive licence) · get_code("558e8d8554f2f975")
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 PosixPath. 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.

from pathlib import Path

ARGS = {
    "cache_path": None
}
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 PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath 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_sin_cos_pos_embed Ran
ran on a synthesized input
gzhu06/cacophony/src/caco/audio_models/mae.py
code served (permissive licence) · get_code("8ac516f37a509ac9")
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 ArrayImpl, ndim 2, dtype family float, shape (4, 8) 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 jax.numpy as jnp
import numpy as np

# Create position_ids: a small array of position indices
# The function uses position_ids[..., None] so it needs to be broadcastable
# Let's create a 1D array of positions
position_ids = jnp.array([0, 1, 2, 3], dtype=jnp.int32)

# Create embed_size: must be even (asserted in function)
embed_size = 8

ARGS = {
    "position_ids": position_ids,
    "embed_size": embed_size,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (4, 8) — shape (4, 8) 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
load_audioset_mapping Ran
ran on a synthesized input
labbeti/aac-datasets/src/aac_datasets/utils/audioset_mapping.py
code served (permissive licence) · get_code("ca913bee7808fbc3")
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 tempfile
import csv
from pathlib import Path

# Create a temporary cache directory with a mock audioset mapping file
temp_cache_dir = tempfile.mkdtemp()
cache_path = Path(temp_cache_dir)

# Create the class_labels_indices.csv file with sample data
csv_file_path = cache_path / 'class_labels_indices.csv'
with open(csv_file_path, 'w', newline='') as f:
    writer = csv.DictWriter(f, fieldnames=['index', 'mid', 'display_name'])
    writer.writeheader()
    writer.writerow({'index': '0', 'mid': '/m/001g9', 'display_name': 'Speech'})
    writer.writerow({'index': '1', 'mid': '/m/0357u', 'display_name': 'Fart'})
    writer.writerow({'index': '2', 'mid': '/m/07qz1', 'display_name': 'Helicopter'})

ARGS = {
    'key_name': 'index',
    'val_name': 'display_name',
    'offline': True,
    'cache_path': cache_path,
    'verbose': 0,
}
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 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
load_audioset_name_to_idx Ran
ran on a synthesized input
labbeti/aac-datasets/src/aac_datasets/utils/audioset_mapping.py
code served (permissive licence) · get_code("c1f4b5c3e3948f5f")
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 tempfile
import csv
from pathlib import Path

# Create a temporary directory for cache
temp_cache_dir = tempfile.mkdtemp()

# Pre-populate the cache with a mock audioset mapping file
cache_path = Path(temp_cache_dir)
cache_path.mkdir(exist_ok=True)

# Create the class_labels_indices.csv file
csv_file = cache_path / 'class_labels_indices.csv'
with open(csv_file, 'w', newline='') as f:
    writer = csv.DictWriter(f, fieldnames=['index', 'mid', 'display_name'])
    writer.writeheader()
    writer.writerow({'index': '0', 'mid': '/m/001yrb', 'display_name': 'Speech'})
    writer.writerow({'index': '1', 'mid': '/m/0342h', 'display_name': 'Cat'})
    writer.writerow({'index': '2', 'mid': '/m/0bm0k', 'display_name': 'Dog'})

ARGS = {
    'offline': True,
    'cache_path': cache_path,
    'verbose': 0
}
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 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
roberta_update_pretrained_parameters Ran
ran on a synthesized input
gzhu06/cacophony/src/caco/text_models/roberta_text_model.py
code served (permissive licence) · get_code("0068a7c10ff0707d")
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 FrozenDict. 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 jax
import jax.numpy as jnp
from flax.core import freeze, unfreeze
from flax.traverse_util import flatten_dict, unflatten_dict
from typing import Any, Callable, Optional, Tuple

# Mock the load_params utility function
def mock_load_params(path: str):
    """Mock function to load parameters from a pretrained path"""
    # Create a simple pretrained weights structure
    pretrained = {
        ('encoder', 'layer', '0', 'attention', 'self', 'query', 'kernel'): jnp.ones((4, 3)),
        ('encoder', 'layer', '1', 'attention', 'self', 'query', 'kernel'): jnp.ones((4, 3)),
        ('encoder', 'layer', '0', 'output', 'dense', 'kernel'): jnp.ones((5, 4)),
        ('encoder', 'layer', '1', 'output', 'dense', 'kernel'): jnp.ones((5, 4)),
        ('embeddings', 'word_embeddings', 'embedding'): jnp.ones((100, 6)),
    }
    return pretrained

# Monkey-patch the utils module
import sys
from types import ModuleType
utils_mock = ModuleType('utils')
utils_mock.load_params = mock_load_params
sys.modules['utils'] = utils_mock

# Create a valid params PyTree structure that matches what the function expects
def create_model_params():
    """Create a minimal parameter structure matching the expected format"""
    params_dict = {
        ('encoder', 'layer', 'ScanFlaxRobertaLayer_0', 'attention', 'self', 'query', 'kernel'): jnp.ones((2, 4, 3)),
        ('encoder', 'layer', 'ScanFlaxRobertaLayer_0', 'attention', 'self', 'query', 'bias'): jnp.ones((2, 3)),
        ('encoder', 'layer', 'ScanFlaxRobertaLayer_0', 'output', 'dense', 'kernel'): jnp.ones((2, 5, 4)),
        ('encoder', 'layer', 'ScanFlaxRobertaLayer_0', 'output', 'dense', 'bias'): jnp.ones((2, 4)),
        ('embeddings', 'word_embeddings', 'embedding'): jnp.ones((100, 6)),
    }
    return unflatten_dict(params_dict)

# Build arguments
ARGS = {
    'params': create_model_params(),
    'pretrained_path': '/fake/path/to/pretrained/model',
    'prefix': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax, utils — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type FrozenDict — a FrozenDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a FrozenDict output the recorded ndim 1 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
spectrogram_to_patches Ran
ran on a synthesized input
gzhu06/cacophony/src/eval/eval_caco_torch.py
code served (permissive licence) · get_code("93d588113f6aff52")
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 numpy as np

# Create a small spectrogram array
# Shape: (time_frames, frequency_bins)
# Using dimensions divisible by patch sizes for simplicity
# 64 time frames (divisible by 16), 48 frequency bins (divisible by 16)
spectrogram = np.random.randn(64, 48).astype(np.float32)

ARGS = {
    'spectrogram': spectrogram,
    'time_patch_size': 16,
    'freq_patch_size': 16,
    'max_patches': 512
}
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
decode Not yet run
unverified (harvested, no recorded run)
gzhu06/cacophony/src/caco/caco.py
code served (permissive licence) · get_code("131ab70b285d350e")
How it ran

no invocation recorded.

load_audiomae Not yet run
unverified (harvested, no recorded run)
gzhu06/cacophony/src/caco/load_model.py
code served (permissive licence) · get_code("1144ea63154654a4")
How it ran

no invocation recorded.

load_caco Not yet run
unverified (harvested, no recorded run)
gzhu06/cacophony/src/caco/load_model.py
code served (permissive licence) · get_code("062ce739f0119f15")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 11 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
create_position_ids_from_input_ids 2 other papers
1 dated earlier, 1 later
2202.07962 (2022-02)
Revisiting Parameter-Efficient Tuning: Are We Really There Yet?
2307.08941 (2023-07)
MLP Fusion: Towards Efficient Fine-tuning of Dense and Mixture-of-Experts Language Models

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-24.

Repositories linked to this paper

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

Abstract

The advancement of audio-language (AL) multimodal learning tasks has been significant in recent years. However, researchers face challenges due to the costly and time-consuming collection process of existing audio-language datasets, which are limited in size. To address this data scarcity issue, we introduce WavCaps, the first large-scale weakly-labelled audio captioning dataset, comprising approximately 400k audio clips with paired captions. We sourced audio clips and their raw descriptions from web sources and a sound event detection dataset. However, the online-harvested raw descriptions are highly noisy and unsuitable for direct use in tasks such as automated audio captioning. To overcome this issue, we propose a three-stage processing pipeline for filtering noisy data and generating high-quality captions, where ChatGPT, a large language model, is leveraged to filter and transform raw descriptions automatically. We conduct a comprehensive analysis of the characteristics of WavCaps dataset and evaluate it on multiple downstream audio-language multimodal learning tasks. The systems trained on WavCaps outperform previous state-of-the-art (SOTA) models by a significant margin. Our aspiration is for the WavCaps dataset we have proposed to facilitate research in audio-language multimodal learning and demonstrate the potential of utilizing ChatGPT to enhance academic research. Our dataset and codes are available at https://github.com/XinhaoMei/WavCaps.

For agents

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

get_harvested_code_for_paper("2303.17395")
get_code_for_paper("2303.17395")
have("2303.17395")

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

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

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

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

Connect an agent — have() is free.