SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2409.13292 · 2024

Exploring Text-Queried Sound Event Detection with Audio Source Separation

arXiv · PDF · Open in the Atlas

Code that ran

8 of 8 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 0 have no contract verdict; 7 failures of our instrument; 0 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/2409.13292.json · badge: /api/ran/2409.13292.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
apple-yinhan/tq-sed canonical (classifier label)
classifier basis: census
8 ran · 0 no recorded run
FunctionStatusWhere it lives
clip_mse Ran
ran; our contract draft was wrong, not the code
apple-yinhan/tq-sed/models/sed.py
code served (permissive licence) · get_code("6dc7818c5777e187")
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 Tensor, ndim 0, dtype family float, 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

torch.manual_seed(0)

# Create small tensors for output and target
# Both need to be the same shape for MSELoss
batch_size = 2
feature_dim = 4

output = torch.randn(batch_size, feature_dim)
target = torch.randn(batch_size, feature_dim)

ARGS = {
    "output": output,
    "target": target,
}
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 Tensor, ndim 0, dtype family float, 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
event_counts_and_durations Ran
ran; our contract draft was wrong, not the code
apple-yinhan/tq-sed/sed_scores_eval/base_modules/ground_truth.py
code served (permissive licence) · get_code("f68a9049b45e1f45")
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.

from numbers import Number

# Construct valid arguments for event_counts_and_durations

# Define event classes
event_classes = ["speech", "music", "noise"]

# Define ground truth with audio clip keys mapping to lists of event tuples
# Each event tuple is (onset_time, offset_time, event_label)
ground_truth = {
    "clip_001": [
        (0.0, 1.5, "speech"),
        (2.0, 3.5, "music"),
        (4.0, 5.2, "speech"),
    ],
    "clip_002": [
        (0.5, 2.0, "noise"),
        (3.0, 4.5, "music"),
    ],
    "clip_003": [
        (1.0, 2.5, "speech"),
    ],
}

ARGS = {
    "ground_truth": ground_truth,
    "event_classes": event_classes,
}
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 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
fscore_curve_from_intermediate_statistics Ran
ran; our contract draft was wrong, not the code
apple-yinhan/tq-sed/sed_scores_eval/base_modules/precision_recall.py
code served (permissive licence) · get_code("df0a52d96e1396cc")
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 numpy as np

# Create small intermediate statistics for a single class
scores = np.array([0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1])
tps = np.array([1, 2, 3, 3, 4, 4, 5, 5, 5])
fps = np.array([0, 0, 1, 2, 2, 3, 3, 4, 5])
n_ref = 5

stats_single = (scores, {
    'tps': tps,
    'fps': fps,
    'n_ref': n_ref
})

# Create a dict of intermediate statistics for multiple classes
scores_class_a = np.array([0.9, 0.7, 0.5, 0.3, 0.1])
tps_class_a = np.array([1, 2, 3, 4, 5])
fps_class_a = np.array([0, 1, 2, 3, 4])
n_ref_class_a = 5

scores_class_b = np.array([0.95, 0.75, 0.55, 0.35, 0.15])
tps_class_b = np.array([2, 3, 4, 5, 6])
fps_class_b = np.array([0, 0, 1, 2, 3])
n_ref_class_b = 6

stats_multi = {
    'class_a': (scores_class_a, {
        'tps': tps_class_a,
        'fps': fps_class_a,
        'n_ref': n_ref_class_a
    }),
    'class_b': (scores_class_b, {
        'tps': tps_class_b,
        'fps': fps_class_b,
        'n_ref': n_ref_class_b
    })
}

ARGS = {
    'scores_intermediate_statistics': stats_single,
    'beta': 1.0
}
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 — 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
fscore_from_precision_recall Ran
ran, honoured the contract we drafted
apple-yinhan/tq-sed/sed_scores_eval/base_modules/precision_recall.py
code served (permissive licence) · get_code("c8a897b47e7b4f4d")
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 float64, ndim 0, 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 numpy as np

# Set random seeds for reproducibility
np.random.seed(0)

# Create scalar precision and recall values
precision_scalar = 0.85
recall_scalar = 0.92

# Create array precision and recall values with different shapes to test both cases
precision_array = np.array([0.80, 0.85, 0.90])
recall_array = np.array([0.88, 0.92, 0.87])

# Test with scalars
ARGS = {
    "precision": precision_scalar,
    "recall": recall_scalar,
    "beta": 1.0,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
multi_label_to_single_label_ground_truths Ran
ran; our contract draft was wrong, not the code
apple-yinhan/tq-sed/sed_scores_eval/base_modules/ground_truth.py
code served (permissive licence) · get_code("3f017c80caed3382")
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 torch
import numpy as np
from numbers import Number

# Construct valid arguments for multi_label_to_single_label_ground_truths

# Define ground truth: dict mapping audio clip keys to lists of (onset, offset, event_label) tuples
ground_truth = {
    'audio_clip_1': [
        (0.5, 1.2, 'speech'),
        (2.1, 3.5, 'music'),
        (4.0, 5.5, 'speech'),
    ],
    'audio_clip_2': [
        (0.1, 0.8, 'music'),
        (1.5, 2.3, 'speech'),
    ],
    'audio_clip_3': [
        (0.0, 2.0, 'music'),
    ],
}

# Define event classes
event_classes = ['speech', 'music']

# Construct ARGS dictionary
ARGS = {
    'ground_truth': ground_truth,
    'event_classes': event_classes,
}
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 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
onset_deltas Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
apple-yinhan/tq-sed/sed_scores_eval/base_modules/detection.py
code served (permissive licence) · get_code("8314f1aac70f95e9")
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 ndarray, ndim 1, dtype family int, shape (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 numpy as np

# Create a simple 1D numpy array of SED (Sound Event Detection) scores
# The function expects a 1D array of scores that will be analyzed for local maxima/minima
scores = np.array([0.1, 0.5, 0.8, 0.7, 0.9, 0.4, 0.2, 0.6], dtype=np.float32)

ARGS = {
    "scores": scores
}
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 ndarray, ndim 1, dtype family int, shape (8,) — shape (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
onset_offset_curves Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
apple-yinhan/tq-sed/sed_scores_eval/base_modules/detection.py
code served (permissive licence) · get_code("437c3074d4fee848")
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 numpy as np

# Construct valid arguments for onset_offset_curves

# Create scores: 1d numpy array of SED scores
scores = np.array([0.4, 1.0, 0.6, 0.6, 1.0, 1.0, 0.4])

# Create timestamps: 1d numpy array with length = len(scores) + 1
# Each score has a duration, so we need one more timestamp than scores
timestamps = np.linspace(0.0, len(scores) * 0.2, len(scores) + 1)

# change_point_candidates is optional (defaults to None)
# When None, it will use np.unique(scores) internally
change_point_candidates = None

ARGS = {
    'scores': scores,
    'timestamps': timestamps,
    'change_point_candidates': change_point_candidates,
}
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 — 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
precision_recall_curve_from_intermediate_statistics Ran
ran; our contract draft was wrong, not the code
apple-yinhan/tq-sed/sed_scores_eval/base_modules/precision_recall.py
code served (permissive licence) · get_code("8113a7700e87e50b")
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 numpy as np

# Construct valid arguments for precision_recall_curve_from_intermediate_statistics

# Single case: tuple of (scores, intermediate_statistics)
scores = np.array([0.9, 0.8, 0.7, 0.6, 0.5, 0.4])
intermediate_statistics = {
    'tps': np.array([1, 2, 2, 3, 3, 4]),
    'fps': np.array([0, 0, 1, 1, 2, 2]),
    'n_ref': 5
}

single_input = (scores, intermediate_statistics)

# Dict case: mapping class names to (scores, intermediate_statistics) tuples
scores_class_a = np.array([0.95, 0.85, 0.75, 0.65])
stats_class_a = {
    'tps': np.array([1, 2, 2, 3]),
    'fps': np.array([0, 0, 1, 1]),
    'n_ref': 4
}

scores_class_b = np.array([0.92, 0.82, 0.72])
stats_class_b = {
    'tps': np.array([1, 2, 3]),
    'fps': np.array([0, 1, 1]),
    'n_ref': 3
}

dict_input = {
    'class_a': (scores_class_a, stats_class_a),
    'class_b': (scores_class_b, stats_class_b)
}

# Use the single input case as the primary test
ARGS = {
    'scores_intermediate_statistics': single_input
}
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 — 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

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 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
event_counts_and_durations 1 other paper
1 dated earlier
2201.13148 (2022-01)
Threshold Independent Evaluation of Sound Event Detection Scores
fscore_from_precision_recall 1 other paper
1 dated earlier
2201.13148 (2022-01)
Threshold Independent Evaluation of Sound Event Detection Scores
onset_offset_curves 1 other paper
1 dated earlier
2201.13148 (2022-01)
Threshold Independent Evaluation of Sound Event Detection Scores

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

In sound event detection (SED), overlapping sound events pose a significant challenge, as certain events can be easily masked by background noise or other events, resulting in poor detection performance. To address this issue, we propose the text-queried SED (TQ-SED) framework. Specifically, we first pre-train a language-queried audio source separation (LASS) model to separate the audio tracks corresponding to different events from the input audio. Then, multiple target SED branches are employed to detect individual events. AudioSep is a state-of-the-art LASS model, but has limitations in extracting dynamic audio information because of its pure convolutional structure for separation. To address this, we integrate a dual-path recurrent neural network block into the model. We refer to this structure as AudioSep-DP, which achieves the first place in DCASE 2024 Task 9 on language-queried audio source separation (objective single model track). Experimental results show that TQ-SED can significantly improve the SED performance, with an improvement of 7.22\% on F1 score over the conventional framework. Additionally, we setup comprehensive experiments to explore the impact of model complexity. The source code and pre-trained model are released at https://github.com/apple-yinhan/TQ-SED.

For agents

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

get_harvested_code_for_paper("2409.13292")
get_code_for_paper("2409.13292")
have("2409.13292")

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

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

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

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

Connect an agent — have() is free.