SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2408.16532 · ICLR · 2025

WavTokenizer: an Efficient Acoustic Discrete Codec Tokenizer for Audio Language Modeling

Zhou Zhao, Qian Chen, Wen Wang, Siqi Zheng, Qian Yang, Rongjie Huang, Zehan Wang, Ziang Zhang, Ziyue Jiang, Xize Cheng, Ruiqi Li, Shengpeng Ji, and 5 more

arXiv · PDF · Open in the Atlas

Code that ran

5 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2408.16532.json · badge: /api/ran/2408.16532.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
jishengpeng/wavtokenizer canonical (classifier label)
classifier basis: census
5 ran · 1 no recorded run
jishengpeng/WavTokenizer canonical (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
FunctionStatusWhere it lives
Normalize Ran
ran; our contract draft was wrong, not the code
jishengpeng/wavtokenizer/decoder/models.py
code served (permissive licence) · get_code("9fcdaa6e423e8aa7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned GroupNorm. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The Normalize function takes in_channels and num_groups (with default 32)
# It returns a GroupNorm layer

# in_channels: number of channels for the GroupNorm layer
# num_groups: number of groups to separate the channels into (default 32)

# We need to provide valid arguments where num_groups divides in_channels evenly
# Let's use in_channels=64 so it's divisible by the default num_groups=32

ARGS = {
    'in_channels': 64,
    'num_groups': 32
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GroupNorm — a GroupNorm output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a GroupNorm 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
nonlinearity Ran
ran; our contract draft was wrong, not the code
jishengpeng/wavtokenizer/decoder/models.py
code served (permissive licence) · get_code("3137073275f8c21a")
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) 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)

# The function takes a single parameter 'x' which is used with:
# - multiplication operator (*)
# - torch.sigmoid() function
# This means x should be a tensor

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
safe_log Ran
ran; our contract draft was wrong, not the code
jishengpeng/wavtokenizer/decoder/modules.py
code served (permissive licence) · get_code("5923f41e711c0b69")
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 values that need clipping
x = torch.tensor([[0.5, 1e-8, 0.1, 2.0],
                   [0.3, 0.7, 1e-9, 0.05]], dtype=torch.float32)

# Define arguments dictionary
ARGS = {
    "x": x,
    "clip_val": 1e-07
}
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
symexp Ran
ran; our contract draft was wrong, not the code
jishengpeng/wavtokenizer/decoder/modules.py
code served (permissive licence) · get_code("f1abe87534e9b4b5")
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)

# The function symexp takes a single tensor argument and applies:
# torch.sign(x) * (torch.exp(x.abs()) - 1)
# It needs a tensor input

x = torch.randn(2, 4)

ARGS = {
    "x": x,
}
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
symlog Ran
ran; our contract draft was wrong, not the code
jishengpeng/wavtokenizer/decoder/modules.py
code served (permissive licence) · get_code("3acb919a94ac1a19")
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)

# The symlog function takes a single tensor argument and applies
# element-wise symmetric logarithm: sign(x) * log1p(|x|)
# We need to provide a small tensor to test this.

x = torch.randn(2, 4)

ARGS = {
    "x": x,
}
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
instantiate_class Not yet run
unverified (harvested, no recorded run)
jishengpeng/WavTokenizer/decoder/pretrained.py
code served (permissive licence) · get_code("705b857d58937815")
How it ran

no invocation recorded.

make_attn Not yet run
unverified (harvested, no recorded run)
jishengpeng/wavtokenizer/decoder/models.py
code served (permissive licence) · get_code("dba3d5f0d0d4a6f2")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 2 the same month, 6 later) and 0 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
nonlinearity 156 other papers
95 dated earlier, 6 the same month, 51 later, 4 same year, order not determinable · 25 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 153 more not named here
Normalize 54 other papers
32 dated earlier, 2 the same month, 19 later, 1 same year, order not determinable · 3 only as an assembly brick
2204.06125 (2022-04)
Hierarchical Text-Conditional Image Generation with CLIP Latents
2208.13753 (2022-08)
Frido: Feature Pyramid Diffusion for Complex Scene Image Synthesis
2211.13221 (2022-11)
Latent Video Diffusion Models for High-Fidelity Long Video Generation
and 51 more not named here
safe_log 5 other papers
4 dated earlier, 1 later
2306.00814 (2023-06)
Vocos: Closing the gap between time-domain and Fourier-based neural vocoders for high-quality audio synthesis
2402.12208 (2024-02)
Language-Codec: Bridging Discrete Codec Representations and Speech Language Models
2405.11273 (2024-05)
Uni-MoE: Scaling Unified Multimodal LLMs with Mixture of Experts
and 2 more not named here
symexp 5 other papers
4 dated earlier, 1 later
2306.00814 (2023-06)
Vocos: Closing the gap between time-domain and Fourier-based neural vocoders for high-quality audio synthesis
2402.12208 (2024-02)
Language-Codec: Bridging Discrete Codec Representations and Speech Language Models
2405.11273 (2024-05)
Uni-MoE: Scaling Unified Multimodal LLMs with Mixture of Experts
and 2 more not named here
symlog 5 other papers
4 dated earlier, 1 later
2306.00814 (2023-06)
Vocos: Closing the gap between time-domain and Fourier-based neural vocoders for high-quality audio synthesis
2402.12208 (2024-02)
Language-Codec: Bridging Discrete Codec Representations and Speech Language Models
2405.11273 (2024-05)
Uni-MoE: Scaling Unified Multimodal LLMs with Mixture of Experts
and 2 more not named here
instantiate_class 3 other papers
2 dated earlier, 1 later
2306.00814 (2023-06)
Vocos: Closing the gap between time-domain and Fourier-based neural vocoders for high-quality audio synthesis
2402.12208 (2024-02)
Language-Codec: Bridging Discrete Codec Representations and Speech Language Models
2410.16928 (2024-10)
xLSTM-Mixer: Multivariate Time Series Forecasting by Mixing via Scalar Memories
make_attn 1 other paper
1 dated earlier
2405.11273 (2024-05)
Uni-MoE: Scaling Unified Multimodal LLMs with Mixture of Experts

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

Repositories linked to this paper

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

Abstract

Language models have been effectively applied to modeling natural signals, such as images, video, speech, and audio. A crucial component of these models is the tokenizer, which compresses high-dimensional natural signals into lower-dimensional discrete tokens. In this paper, we introduce WavTokenizer, which offers several advantages over previous state-of-the-art (SOTA) acoustic codec models in the audio domain: 1) extreme compression. By compressing the layers of quantizers and the temporal dimension of the discrete codec, one-second audio of 24kHz sampling rate requires only a single quantizer with 40 or 75 tokens. 2) improved subjective reconstruction quality. Despite the reduced number of tokens, WavTokenizer achieves SOTA reconstruction quality with outstanding UTMOS scores and also inherently contains richer semantic information. Specifically, we achieve these results by designing a broader VQ space, extending contextual windows, improving attention networks, and introducing a powerful multi-scale discriminator and an inverse Fourier transform structure. We conduct extensive reconstruction experiments in the domains of speech, audio, and music. WavTokenizer exhibits competitive to superior performance across various objective and subjective metrics compared to SOTA models. We also evaluate WavTokenizer on semantic representation, VQ utilization, and adaptability to generative models. Comprehensive ablation studies confirm the necessity of each module in WavTokenizer.

For agents

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

get_harvested_code_for_paper("2408.16532")
get_code_for_paper("2408.16532")
have("2408.16532")

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

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

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

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

Connect an agent — have() is free.