All models

XY-Tokenizer

Speech codec at 1 kbps and 12.5 Hz that keeps both semantic and acoustic information in its tokens.

Audio and speech · 2,912 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

This diagram has 2,912 operations (47 KB) and is drawn when you ask.

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
519.6M
Operations
2,912
Framework
PyTorch
Recurrent
No
Published
Proceedings of the conference - Association for Computational Linguistics. Meeting (arXiv 2025)
Cited by
0 (as of 30 October 2026)
Authors
Yitian Gong, Luozhijie Jin, Ruifan Deng and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m21544
Graph hash
f47e959628faed7d260fc8919af57bbfbe90cd3767e5cdc390832f59464574d8
Skeleton hash
1d1d6d60b64628409f193f783193c079dce5e669c8c02a5124087a94e4577372
Architecture hash
7a5f299fbaec97816e3b7f49677bd7bf3f6b956ebf7c6758600dce2a2a0e3890
Diagram SHA-256
6abaa1d1e105361bc79beb82b6ef22244aaf82eba6e3d242332169aab0dde75c
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

XY-Tokenizer is a speech codec with a 16kHz sampling rate and a 1kbps bitrate, built on a dual-tower architecture that models semantic and acoustic information simultaneously. The paper's starting point is that existing speech codecs struggle to balance high-quality audio reconstruction with ease of modeling by language models.

The encoder has two parallel branches, a semantic channel and an acoustic channel, each initialized with a whisper encoder and fed mel-spectrograms at 100 Hz. The encoder output is quantized by a residual vector quantization (RVQ) module with 8 layers at 12.5 Hz, each with a codebook of size 1024, for a total bitrate of 1 kbps. The decoder is split the same way: a decoder-only large language model generates text transcriptions, while the acoustic channel reconstructs the waveform.

Training has two stages: the first aligns the codec with text using an LLM-based speech recognition approach plus a reconstruction loss on the original speech signal, with encoder and decoder each in two channels, forming an X-shaped architecture. The second stage adds a discriminator for GAN training of fine-grained audio features, and the decoder discards the text-alignment module, resulting in a Y-shaped architecture. The paper reports a speaker similarity score of 0.83 between reconstructed and original audio. For comparison, it cites a speaker similarity score of 0.84 at a similar bitrate for BigCodec, an acoustic-only codec.

Key idea. XY-Tokenizer is a 1 kbps speech codec whose dual-tower architecture models semantic and acoustic information simultaneously through multi-task learning.

  • XY-Tokenizer
  • XY_Tokenizer
  • speech codec
  • speech tokenizer
  • low-bitrate speech codec
  • audio tokenizer
  • neural audio codec
  • semantic acoustic tokens
  • speech LLM tokenizer
  • RVQ codec

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{gong2025xytokenizermitigatingsemanticacousticconflict,
      title={XY-Tokenizer: Mitigating the Semantic-Acoustic Conflict in Low-Bitrate Speech Codecs}, 
      author={Yitian Gong and Luozhijie Jin and Ruifan Deng and Dong Zhang and Xin Zhang and Qinyuan Cheng and Zhaoye Fei and Shimin Li and Xipeng Qiu},
      year={2025},
      eprint={2506.23325},
      archivePrefix={arXiv},
      primaryClass={cs.SD},
      url={https://arxiv.org/abs/2506.23325}, 
}