SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.09636 · 2023

SoundStorm: Efficient Parallel Audio Generation

arXiv · PDF · Open in the Atlas

Code that ran

11 of 11 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, 5 violated it and 5 have no contract verdict; 0 failures of our instrument; 0 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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/2305.09636.json · badge: /api/ran/2305.09636.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
nari-labs/dia community (classifier label)
classifier basis not recorded on the link
5 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
3 ran · 0 no recorded run
lucidrains/soundstorm-pytorch reimplementation (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
FunctionStatusWhere it lives
divisible_by Ran
ran, violated the contract we drafted
this paper's copy was not recorded; identical code first harvested from ZhangXInFD/soundstorm-speechtokenizer
pointer only · get_code("856d86b39c6005b4")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

apply_audio_delay Ran
ran on a synthesized input
nari-labs/dia/dia/audio.py
code served (permissive licence) · get_code("bd5b74f128417448")
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 3, dtype family int, shape (2, 4, 3) 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 typing as tp

torch.manual_seed(0)

# Build tiny audio tokens: [B=2, T=4, C=3]
audio_BxTxC = torch.randint(0, 100, (2, 4, 3), dtype=torch.int16)

# Scalar token values
pad_value = 0
bos_value = 1

# Build precomputed indices
# t_idx_BxTxC: [B=2, T=4, C=3] containing time indices
# Some values < 0 (will trigger BOS), some >= T (will trigger PAD), some valid
t_idx_BxTxC = torch.tensor([
    [[-1, 0, 1], [0, 1, 2], [1, 2, 3], [2, 3, 4]],
    [[0, 1, -1], [1, 2, 0], [2, 3, 1], [3, 4, 2]]
], dtype=torch.long)

# indices_BTCx3: flattened indices for gathering
# Shape: [B*T*C, 3] where each row is [b_idx, t_idx, c_idx]
B, T, C = 2, 4, 3
indices_list = []
for b in range(B):
    for t in range(T):
        for c in range(C):
            indices_list.append([b, t, c])
indices_BTCx3 = torch.tensor(indices_list, dtype=torch.long)

precomp = (t_idx_BxTxC, indices_BTCx3)

ARGS = {
    "audio_BxTxC": audio_BxTxC,
    "pad_value": pad_value,
    "bos_value": bos_value,
    "precomp": precomp,
}
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 3, dtype family int, shape (2, 4, 3) — shape (2, 4, 3) 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
build_delay_indices Ran
ran on a synthesized input
nari-labs/dia/dia/audio.py
code served (permissive licence) · get_code("230a08e2d42ac7f3")
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
import typing as tp

torch.manual_seed(0)

ARGS = {
    "B": 2,
    "T": 4,
    "C": 3,
    "delay_pattern": [0, 1, 2]
}
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
build_revert_indices Ran
ran on a synthesized input
nari-labs/dia/dia/audio.py
code served (permissive licence) · get_code("176dd1fda856a295")
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
import typing as tp

torch.manual_seed(0)

ARGS = {
    "B": 2,
    "T": 4,
    "C": 3,
    "delay_pattern": [0, 1, 2]
}
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
cast_tuple Ran
ran, honoured the contract we drafted
lucidrains/soundstorm-pytorch/soundstorm_pytorch/trainer.py
code served (permissive licence) · get_code("5cfcc1d3230706ff")
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 int; 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 torch
import numpy as np

torch.manual_seed(0)

# The function cast_tuple takes a single parameter 't' and returns it as a tuple if it's not already a tuple or list
# We need to test different input types to demonstrate the function works

# Test case 1: A scalar value
test_scalar = 42

# Test case 2: A tensor
test_tensor = torch.randn(2, 4)

# Test case 3: A list
test_list = [1, 2, 3, 4]

# Test case 4: A tuple
test_tuple = (5, 6, 7)

# Test case 5: A numpy array
test_numpy = np.array([1, 2, 3])

# We'll use a scalar as the main test case
ARGS = {
    "t": 42
}
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 tuple, ndim 1, dtype family int — 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
create_attn_mask Ran
ran on a synthesized input
nari-labs/dia/dia/state.py
code served (permissive licence) · get_code("591485ad5b203f8f")
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 4, dtype family float, shape (2, 1, 4, 3) 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 padding masks for query and key sequences
# These are 1D boolean tensors where True means "not padded" and False means "padded"
batch_size = 2
q_seq_len = 4
k_seq_len = 3

# Query padding mask: shape (batch_size, q_seq_len)
# True indicates valid positions, False indicates padding
q_padding_mask_1d = torch.tensor([
    [True, True, False, False],
    [True, True, True, False]
], dtype=torch.bool)

# Key padding mask: shape (batch_size, k_seq_len)
# True indicates valid positions, False indicates padding
k_padding_mask_1d = torch.tensor([
    [True, True, False],
    [True, False, False]
], dtype=torch.bool)

device = torch.device('cpu')
is_causal = False

ARGS = {
    'q_padding_mask_1d': q_padding_mask_1d,
    'k_padding_mask_1d': k_padding_mask_1d,
    'device': device,
    'is_causal': is_causal
}
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 4, dtype family float, shape (2, 1, 4, 3) — shape (2, 1, 4, 3) 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
custom_scaled_dot_product_attention Ran
ran on a synthesized input
nari-labs/dia/dia/layers.py
code served (permissive licence) · get_code("746349bd1de0b85d")
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 4, dtype family float, shape (2, 8, 3, 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 torch
import torch.nn.functional as F

torch.manual_seed(0)

# Small tensor dimensions
B = 2  # batch size
N_q = 8  # num query heads
N_kv = 4  # num kv heads
T = 3  # query sequence length
S = 5  # key/value sequence length
H = 4  # head dimension

# Construct query, key, value tensors
query = torch.randn(B, N_q, T, H)
key = torch.randn(B, N_kv, S, H)
value = torch.randn(B, N_kv, S, H)

# Construct attention mask (optional)
attn_mask = torch.ones(B, 1, T, S, dtype=torch.bool)

# Scale factor
scale = 1.0 / (H ** 0.5)

# Causal masking flag
is_causal = False

# Number of GQA groups (query heads per kv head)
num_gqa_groups = N_q // N_kv

ARGS = {
    "query": query,
    "key": key,
    "value": value,
    "attn_mask": attn_mask,
    "scale": scale,
    "is_causal": is_causal,
    "num_gqa_groups": num_gqa_groups,
}
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 4, dtype family float, shape (2, 8, 3, 4) — shape (2, 8, 3, 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
default Ran
ran, violated the contract we drafted
this paper's copy was not recorded; identical code first harvested from ThomasMrY/VCT
pointer only; the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("60fff7c3c400d7ff")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

exists Ran
ran, violated the contract we drafted
this paper's copy was not recorded; identical code first harvested from ThomasMrY/VCT
pointer only; the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("aa5486a3650902d8")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

xnor Ran
ran, violated the contract we drafted
lucidrains/soundstorm-pytorch/soundstorm_pytorch/soundstorm.py
code served (permissive licence) · get_code("1ff4da2e5b7c8f30")
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 bool, 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)

# The function xnor(x, y) performs: not x ^ y
# This is a logical operation on two boolean values
# x ^ y is XOR (exclusive or), and "not" negates the result
# So xnor returns True when x and y have the same truth value

x = True
y = False

ARGS = {
    'x': x,
    'y': y
}
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 bool, 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
yes_or_no Ran
ran, violated the contract we drafted
lucidrains/soundstorm-pytorch/soundstorm_pytorch/trainer.py
code served (permissive licence) · get_code("d95562c398a6b25e")
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 bool, 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 unittest.mock as mock

# The function uses input() to get user input and checks if the answer is in ('yes', 'y')
# We need to mock input() to return a valid answer

ARGS = {
    'question': 'Do you want to continue?'
}

# Mock the input function to return 'y' so the function can execute
import builtins
original_input = builtins.input
builtins.input = mock.Mock(return_value='y')
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 bool, 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

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 3 the same month, 5 later) and 6 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
exists 486 other papers
174 dated earlier, 13 the same month, 293 later, 4 same year, order not determinable, 2 undated · 78 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1804.04637 (2018-04)
EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
and 483 more not named here
default 163 other papers
82 dated earlier, 6 the same month, 73 later, 1 same year, order not determinable, 1 undated · 27 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1810.00825 (2018-10)
Set Transformer: A Framework for Attention-based Permutation-Invariant Neural Networks
1907.01470 (2019-07)
Augmenting Self-attention with Persistent Memory
and 160 more not named here
divisible_by 17 other papers
5 dated earlier, 1 the same month, 11 later · 5 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2203.07852 (2022-03)
Block-Recurrent Transformers
and 14 more not named here
yes_or_no 7 other papers
3 dated earlier, 4 later
2202.01855 (2022-02)
Self-Supervised Learning with Random-Projection Quantizer for Speech Recognition
2301.11325 (2023-01)
MusicLM: Generating Music From Text
2302.01327 (2023-02)
Dual PatchNorm
and 4 more not named here
cast_tuple 4 other papers
2 dated earlier, 2 later
2202.01855 (2022-02)
Self-Supervised Learning with Random-Projection Quantizer for Speech Recognition
2302.01327 (2023-02)
Dual PatchNorm
2306.15687 (2023-06)
Voicebox: Text-Guided Multilingual Universal Speech Generation at Scale
and 1 more not named here

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

We present SoundStorm, a model for efficient, non-autoregressive audio generation. SoundStorm receives as input the semantic tokens of AudioLM, and relies on bidirectional attention and confidence-based parallel decoding to generate the tokens of a neural audio codec. Compared to the autoregressive generation approach of AudioLM, our model produces audio of the same quality and with higher consistency in voice and acoustic conditions, while being two orders of magnitude faster. SoundStorm generates 30 seconds of audio in 0.5 seconds on a TPU-v4. We demonstrate the ability of our model to scale audio generation to longer sequences by synthesizing high-quality, natural dialogue segments, given a transcript annotated with speaker turns and a short prompt with the speakers' voices.

For agents

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

get_harvested_code_for_paper("2305.09636")
get_code_for_paper("2305.09636")
have("2305.09636")

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

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

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

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

Connect an agent — have() is free.