SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.16692 · ICLR · 2024

SPEECHTOKENIZER: UNIFIED SPEECH TOKENIZER FOR SPEECH LANGUAGE MODELS

Dong Zhang, Xin Zhang, Xipeng Qiu, Shimin Li, Yaqian Zhou, Hubert Speechtokenizer

arXiv · PDF · Open in the Atlas

Code that ran

24 of 26 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 1 has no contract verdict; 17 failures of our instrument; 2 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/2308.16692.json · badge: /api/ran/2308.16692.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
ZhangXInFD/SpeechTokenizer canonical (classifier label)
classifier basis: census
14 ran · 2 no recorded run
0nutation/uslm canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
2 ran · 0 no recorded run
ZhangXInFD/soundstorm-speechtokenizer extension (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
divisible_by Ran
ran, violated the contract we drafted
ZhangXInFD/soundstorm-speechtokenizer/soundstorm_speechtokenizer/soundstorm.py
code served (permissive licence) · get_code("856d86b39c6005b4")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-05T00:44:03Z). 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

torch.manual_seed(0)

# The function divisible_by takes two parameters: numer and denom
# It checks if numer % denom == 0
# Both parameters should be numeric types that support the modulo operator

ARGS = {
    "numer": 12,
    "denom": 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, 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
apply_parametrization_norm Ran
ran; our contract draft was wrong, not the code
ZhangXInFD/SpeechTokenizer/speechtokenizer/modules/conv.py
code served (permissive licence) · get_code("6c82cd3d9b6dba51")
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 Conv2d. 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
from torch import nn
from torch.nn.utils import spectral_norm, weight_norm

torch.manual_seed(0)

# Create a simple module to test with
module = nn.Conv2d(3, 4, kernel_size=3)

# Test with different normalization types
ARGS = {
    'module': module,
    'norm': 'weight_norm'
}
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 Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
average_metrics Ran
ran; our contract draft was wrong, not the code
ZhangXInFD/SpeechTokenizer/speechtokenizer/quantization/distrib.py
code served (permissive licence) · get_code("18804e5e23d7209a")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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)

# Construct valid arguments for average_metrics function
ARGS = {
    "metrics": {
        "loss": 0.5,
        "accuracy": 0.95,
        "f1_score": 0.87
    },
    "count": 2.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
build_stable_quantized_cdf Ran
ran; our contract draft was wrong, not the code
ZhangXInFD/SpeechTokenizer/speechtokenizer/quantization/ac.py
code served (permissive licence) · get_code("b9d6342963694f46")
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 1, dtype family int, shape (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

torch.manual_seed(0)

# Create a small valid PDF (probability distribution)
# Shape [N] where N is the cardinality
# Values should sum to approximately 1 and be non-negative
pdf = torch.tensor([0.1, 0.2, 0.3, 0.4])

# total_range_bits should be large enough so that:
# alpha = min_range * cardinality / (2 ** total_range_bits) <= 1
# With cardinality=4, min_range=2: alpha = 8 / 2^total_range_bits
# So 2^total_range_bits >= 8, meaning total_range_bits >= 3
total_range_bits = 8

# roundoff parameter - small value for rounding the PDF
roundoff = 1e-8

# min_range - minimum range width, must be at least 2
min_range = 2

# check parameter - whether to perform validation checks
check = True

ARGS = {
    "pdf": pdf,
    "total_range_bits": total_range_bits,
    "roundoff": roundoff,
    "min_range": min_range,
    "check": check,
}
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 1, dtype family int, shape (4,) — shape (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
calc_lr Ran
ran on a synthesized input
0nutation/uslm/modules/scheduler.py
pointer only (licence: NONE) · get_code("ffec7b2aa35d0253")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, 0nutation/uslm when it was checked. 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.

circular_padding Ran
ran; our contract draft was wrong, not the code
0nutation/uslm/bin/infer.py
pointer only (licence: NONE) · get_code("6c54df5029e831e1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, 0nutation/uslm when it was checked. 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.

collate_fn Ran
ran; our contract draft was wrong, not the code
ZhangXInFD/SpeechTokenizer/speechtokenizer/trainer/dataset.py
code served (permissive licence) · get_code("2f77684a19a01429")
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
from torch.nn.utils.rnn import pad_sequence

torch.manual_seed(0)

# Test case 1: Single tensors (is_one_data = True)
# data should be a list where data[0] is not a tuple
data_single = [
    torch.randn(3, 4),
    torch.randn(3, 4),
]

# Test case 2: Tuples of tensors (is_one_data = False)
# data should be a list of tuples
data_tuples = [
    (torch.randn(2, 4), torch.tensor([1])),
    (torch.randn(3, 4), torch.tensor([2])),
]

# Test case 3: Tuples with mixed types (tensors and scalars)
data_mixed = [
    (torch.randn(2, 4), 1),
    (torch.randn(3, 4), 2),
]

ARGS = {
    "data": data_mixed
}
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
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.

default Ran
ran; our contract draft was wrong, not the code
ZhangXInFD/SpeechTokenizer/speechtokenizer/quantization/core_vq.py
code served (permissive licence) · get_code("1e8f03292b45230b")
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 typing as tp

def default(val: tp.Any, d: tp.Any) -> tp.Any:
    return val if val is not None else d

ARGS = {
    "val": None,
    "d": "default_value"
}
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
dynamic_range_compression_torch Ran
ran; our contract draft was wrong, not the code
ZhangXInFD/SpeechTokenizer/speechtokenizer/trainer/loss.py
code served (permissive licence) · get_code("6f6051e1e48db824")
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 2, dtype family float, 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 torch

torch.manual_seed(0)

# Create a small tensor with positive values suitable for log compression
x = torch.abs(torch.randn(2, 4)) + 0.1

C = 1
clip_val = 1e-05

ARGS = {
    "x": x,
    "C": C,
    "clip_val": clip_val,
}
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 2, dtype family float, 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
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.

get_2d_padding Ran
ran, violated the contract we drafted
ZhangXInFD/SpeechTokenizer/speechtokenizer/discriminators.py
code served (permissive licence) · get_code("35ac4a3a2d0faeac")
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 typing as tp

def get_2d_padding(kernel_size: tp.Tuple[int, int], dilation: tp.Tuple[int, int]=(1, 1)):
    return ((kernel_size[0] - 1) * dilation[0] // 2, (kernel_size[1] - 1) * dilation[1] // 2)

ARGS = {
    "kernel_size": (3, 5),
    "dilation": (1, 2)
}
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 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
get_dataloader Ran
ran; our contract draft was wrong, not the code
ZhangXInFD/SpeechTokenizer/speechtokenizer/trainer/dataset.py
code served (permissive licence) · get_code("9f134f4ea526149a")
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 DataLoader. 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
from torch.utils.data import Dataset

torch.manual_seed(0)

class SimpleDataset(Dataset):
    def __init__(self, data):
        self.data = data
    
    def __len__(self):
        return len(self.data)
    
    def __getitem__(self, idx):
        return self.data[idx]

# Create a dataset with tuples of (tensor, tensor) pairs
# Using distinct sizes: 3 and 4 for different dimensions
dataset_data = [
    (torch.randn(3, 4), torch.randn(2, 4)),
    (torch.randn(5, 4), torch.randn(3, 4)),
]

ds = SimpleDataset(dataset_data)

ARGS = {
    "ds": ds,
    "batch_size": 2,
    "shuffle": False,
    "num_workers": 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 DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader 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_extra_padding_for_conv1d Ran
ran; our contract draft was wrong, not the code
ZhangXInFD/SpeechTokenizer/speechtokenizer/modules/conv.py
code served (permissive licence) · get_code("8d9aa381c6147164")
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 math

torch.manual_seed(0)

# Create a small tensor with shape (batch, channels, length)
# The function accesses x.shape[-1] to get the length dimension
x = torch.randn(2, 4, 16)  # batch=2, channels=4, length=16

# Set up typical conv1d parameters
kernel_size = 3
stride = 2
padding_total = 0

ARGS = {
    "x": x,
    "kernel_size": kernel_size,
    "stride": stride,
    "padding_total": padding_total,
}
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 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_padding Ran
ran, honoured the contract we drafted
ZhangXInFD/SpeechTokenizer/speechtokenizer/discriminators.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from isletennos/mmvc_trainer, is pointer only (licence: NONE) · get_code("a26f85d7c72ef39a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from isletennos/mmvc_trainer, and GitHub detected no licence in that repository when it was checked. 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.

laplace_smoothing Ran
ran, violated the contract we drafted
ZhangXInFD/SpeechTokenizer/speechtokenizer/quantization/core_vq.py
code served (permissive licence) · get_code("c360b5ccff704a88")
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 1, dtype family float, shape (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 numpy as np

torch.manual_seed(0)

# Analyze the function:
# - x: needs to support .sum() method, so a tensor or array
# - n_categories: int
# - epsilon: float

# Create a small tensor for x
x = torch.tensor([1.0, 2.0, 3.0, 4.0])

# Define parameters
ARGS = {
    "x": x,
    "n_categories": 4,
    "epsilon": 1e-05
}
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 Tensor, ndim 1, dtype family float, shape (4,) — shape (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
random_cast_to_half Ran
ran; our contract draft was wrong, not the code
0nutation/uslm/modules/scaling.py
pointer only (licence: NONE) · get_code("982b9083b5a41368")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, 0nutation/uslm when it was checked. 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.

random_clamp Ran
ran; our contract draft was wrong, not the code
0nutation/uslm/modules/scaling.py
pointer only (licence: NONE) · get_code("1d72f492e19080e6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, 0nutation/uslm when it was checked. 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.

sample_vectors Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ZhangXInFD/SpeechTokenizer/speechtokenizer/quantization/core_vq.py
code served (permissive licence) · get_code("09f10cd96592b37d")
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 2, dtype family float, shape (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

torch.manual_seed(0)

# Create a small tensor with shape (batch_size=2, features=4)
samples = torch.randn(2, 4)

# Create the ARGS dictionary with all parameters
ARGS = {
    "samples": samples,
    "num": 3
}
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 2, dtype family float, shape (3, 4) — shape (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
snake Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ZhangXInFD/SpeechTokenizer/speechtokenizer/modules/seanet.py
code served (permissive licence) · get_code("f247e4748f379a76")
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, 4, 3, 5) 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 takes two parameters: x (a tensor) and alpha (a scalar or tensor)
# x is reshaped, modified with sin operations, and reshaped back
# alpha is used in arithmetic operations (reciprocal, multiplication)

# Create a small tensor with shape (batch=2, channels=4, height=3, width=5)
x = torch.randn(2, 4, 3, 5)

# Create a scalar alpha parameter
alpha = torch.tensor(1.0)

ARGS = {
    "x": x,
    "alpha": alpha,
}
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, 4, 3, 5) — shape (2, 4, 3, 5) 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
softmax Ran
ran; our contract draft was wrong, not the code
0nutation/uslm/modules/scaling.py
pointer only (licence: NONE) · get_code("c124aa8bd6b9ebe9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, 0nutation/uslm when it was checked. 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.

spectral_normalize_torch Ran
ran; our contract draft was wrong, not the code
ZhangXInFD/SpeechTokenizer/speechtokenizer/trainer/loss.py
code served (permissive licence) · get_code("bcadb9daef59d785")
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 2, dtype family float, 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 torch

torch.manual_seed(0)

# Create a small magnitude tensor (2D batch)
# The function expects magnitudes to be a tensor
magnitudes = torch.rand(2, 4) + 0.1  # Add 0.1 to avoid very small values

ARGS = {
    "magnitudes": magnitudes,
}
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 2, dtype family float, 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
top_k_top_p_filtering Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
0nutation/uslm/models/valle.py
pointer only (licence: NONE) · get_code("99a311d99448f881")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, 0nutation/uslm when it was checked. 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.

topk_sampling Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
0nutation/uslm/models/valle.py
pointer only (licence: NONE) · get_code("fb8e21d446dcf26f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, 0nutation/uslm when it was checked. 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.

all_reduce Not yet run
unverified (harvested, no recorded run)
ZhangXInFD/SpeechTokenizer/speechtokenizer/quantization/distrib.py
code served (permissive licence) · get_code("193e4cb06c7034a4")
How it ran

no invocation recorded.

get_norm_module Not yet run
unverified (harvested, no recorded run)
ZhangXInFD/SpeechTokenizer/speechtokenizer/modules/conv.py
code served (permissive licence) · get_code("9b33ed59d8d8736e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 26 samples lifted from this paper's linked repositories, 26 carry a function identity and 0 do not. Of the 26 distinct functions with an identity, 22 are also present in other papers whose code we hold (19 with at least one paper dated earlier, 3 the same month, 21 later) and 4 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
206 dated earlier, 17 the same month, 257 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
92 dated earlier, 4 the same month, 65 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
get_padding 53 other papers
22 dated earlier, 3 the same month, 27 later, 1 undated · 4 only as an assembly brick
1910.10838 (2019-10)
Zero-Shot Multi-Speaker Text-To-Speech with State-of-the-art Neural Speaker Embeddings
2006.04558 (2020-06)
FastSpeech 2: Fast and High-Quality End-to-End Text to Speech
2006.06873 (2020-06)
FastPitch: Parallel Text-to-speech with Pitch Prediction
and 50 more not named here
top_k_top_p_filtering 21 other papers
13 dated earlier, 8 later
1909.11942 (2019-09)
ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
2005.00796 (2020-05)
A Simple Language Model for Task-Oriented Dialogue
2009.06367 (2020-09)
GeDi: Generative Discriminator Guided Sequence Generation
and 18 more not named here
divisible_by 17 other papers
7 dated earlier, 10 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
snake 10 other papers
2 dated earlier, 8 later · 1 only as an assembly brick
2306.06546 (2023-06)
High-Fidelity Audio Compression with Improved RVQGAN
2307.04686 (2023-07)
VampNet: Music Generation via Masked Acoustic Token Modeling
2406.10056 (2024-06)
UniAudio 1.5: Large Language Model-driven Audio Codec is A Few-shot Audio Task Learner
and 7 more not named here
get_extra_padding_for_conv1d 9 other papers
1 dated earlier, 8 later · 1 only as an assembly brick
2306.06546 (2023-06)
High-Fidelity Audio Compression with Improved RVQGAN
2310.00014 (2023-10)
Fewer-token Neural Speech Codec with Time-invariant Codes
2405.04752 (2024-05)
HILCodec: High-Fidelity and Lightweight Neural Audio Codec
and 6 more not named here
dynamic_range_compression_torch 7 other papers
4 dated earlier, 3 later
2106.06103 (2021-06)
Conditional Variational Autoencoder with Adversarial Learning for End-to-End Text-to-Speech
2110.02500 (2021-10)
MediumVC: Any-to-any voice conversion using synthetic specific-speaker speeches as intermedium features
2206.04658 (2022-06)
BigVGAN: A Universal Neural Vocoder with Large-Scale Training
and 4 more not named here
spectral_normalize_torch 6 other papers
4 dated earlier, 2 later
2106.06103 (2021-06)
Conditional Variational Autoencoder with Adversarial Learning for End-to-End Text-to-Speech
2110.02500 (2021-10)
MediumVC: Any-to-any voice conversion using synthetic specific-speaker speeches as intermedium features
2206.04658 (2022-06)
BigVGAN: A Universal Neural Vocoder with Large-Scale Training
and 3 more not named here
apply_parametrization_norm 5 other papers
1 dated earlier, 4 later · 1 only as an assembly brick
2306.06546 (2023-06)
High-Fidelity Audio Compression with Improved RVQGAN
2310.00014 (2023-10)
Fewer-token Neural Speech Codec with Time-invariant Codes
2409.12121 (2024-09)
WMCodec: End-to-End Neural Speech Codec with Deep Watermarking for Authenticity Verification
and 2 more not named here
get_norm_module 5 other papers
1 dated earlier, 4 later · 1 only as an assembly brick
2306.06546 (2023-06)
High-Fidelity Audio Compression with Improved RVQGAN
2405.04752 (2024-05)
HILCodec: High-Fidelity and Lightweight Neural Audio Codec
2409.12121 (2024-09)
WMCodec: End-to-End Neural Speech Codec with Deep Watermarking for Authenticity Verification
and 2 more not named here
laplace_smoothing 4 other papers
1 dated earlier, 3 later · 1 only as an assembly brick
2306.06546 (2023-06)
High-Fidelity Audio Compression with Improved RVQGAN
2401.01885 (2024-01)
From Audio to Photoreal Embodiment: Synthesizing Humans in Conversations
2410.15017 (2024-10)
DM-Codec: Distilling Multimodal Representations for Speech Tokenization
and 1 more not named here
topk_sampling 4 other papers
1 dated earlier, 3 later
2301.02111 (2023-01)
Neural Codec Language Models are Zero-Shot Text to Speech Synthesizers
2403.16973 (2024-03)
VoiceCraft: Zero-Shot Speech Editing and Text-to-Speech in the Wild
2409.05356 (2024-09)
INDICVOICES-R: Unlocking a Massive Multilingual Multi-speaker Speech Corpus for Scaling Indian TTS
and 1 more not named here
default 3 other papers
1 dated earlier, 2 later · 1 only as an assembly brick
2306.06546 (2023-06)
High-Fidelity Audio Compression with Improved RVQGAN
2410.15017 (2024-10)
DM-Codec: Distilling Multimodal Representations for Speech Tokenization
2604.22225 (2026-04)
TTS-PRISM: A Perceptual Reasoning and Interpretable Speech Model for Fine-Grained Diagnosis
random_cast_to_half 3 other papers
2 dated earlier, 1 later
2301.02111 (2023-01)
Neural Codec Language Models are Zero-Shot Text to Speech Synthesizers
2303.03926 (2023-03)
Speak Foreign Languages with Your Own Voice: Cross-Lingual Neural Codec Language Modeling
2409.07556 (2024-09)
SSR-Speech: Towards Stable, Safe and Robust Zero-shot Text-based Speech Editing and Synthesis
random_clamp 3 other papers
2 dated earlier, 1 later
2301.02111 (2023-01)
Neural Codec Language Models are Zero-Shot Text to Speech Synthesizers
2303.03926 (2023-03)
Speak Foreign Languages with Your Own Voice: Cross-Lingual Neural Codec Language Modeling
2409.07556 (2024-09)
SSR-Speech: Towards Stable, Safe and Robust Zero-shot Text-based Speech Editing and Synthesis
softmax 3 other papers
2 dated earlier, 1 later
2301.02111 (2023-01)
Neural Codec Language Models are Zero-Shot Text to Speech Synthesizers
2303.03926 (2023-03)
Speak Foreign Languages with Your Own Voice: Cross-Lingual Neural Codec Language Modeling
2409.07556 (2024-09)
SSR-Speech: Towards Stable, Safe and Robust Zero-shot Text-based Speech Editing and Synthesis
all_reduce 2 other papers
2 later
2502.17462 (2025-02)
The Case for Cleaner Biosignals: High-fidelity Neural Compressor Enables Transfer from Cleaner iEEG to Noisier EEG
2602.15491 (2026-02)
The Equalizer: Introducing Shape-Gain Decomposition in Neural Audio Codecs
average_metrics 2 other papers
2 later
2502.17462 (2025-02)
The Case for Cleaner Biosignals: High-fidelity Neural Compressor Enables Transfer from Cleaner iEEG to Noisier EEG
2602.15491 (2026-02)
The Equalizer: Introducing Shape-Gain Decomposition in Neural Audio Codecs
get_2d_padding 2 other papers
2 later
2406.10056 (2024-06)
UniAudio 1.5: Large Language Model-driven Audio Codec is A Few-shot Audio Task Learner
2602.15491 (2026-02)
The Equalizer: Introducing Shape-Gain Decomposition in Neural Audio Codecs

Shown: the 20 functions present in the most other papers. 2 more shared functions are not listed 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

Current speech large language models build upon discrete speech representations, which can be categorized into semantic tokens and acoustic tokens. However, existing speech tokens are not specifically designed for speech language modeling. To assess the suitability of speech tokens for building speech language models, we established the first benchmark, SLMTokBench. Our results indicate that neither semantic nor acoustic tokens are ideal for this purpose. Therefore, we propose SpeechTokenizer, a unified speech tokenizer for speech large language models. SpeechTokenizer adopts the Encoder-Decoder architecture with residual vector quantization (RVQ). Unifying semantic and acoustic tokens, SpeechTokenizer disentangles different aspects of speech information hierarchically across different RVQ layers. Furthermore, We construct a Unified Speech Language Model (USLM) leveraging SpeechTokenizer. Experiments show that SpeechTokenizer performs comparably to EnCodec in speech reconstruction and demonstrates strong performance on the SLMTokBench benchmark. Also, USLM outperforms VALL-E in zero-shot Text-to-Speech tasks. Code and models are available at https://github.com/ZhangXInFD/SpeechTokenizer/.

For agents

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

get_harvested_code_for_paper("2308.16692")
get_code_for_paper("2308.16692")
have("2308.16692")

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

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

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

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

Connect an agent — have() is free.