HiFi-Codec
Audio codec that compresses audio into discrete tokens with group-residual vector quantization and 4 codebooks.
Audio and speech · 666 operations Checked
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
- Task
- Audio and speech
- Parameters
- 63.6M
- Operations
- 666
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2023
- Cited by
- 279 (as of 17 November 2026)
- Authors
- Dongchao Yang, Songxiang Liu, Rongjie Huang and others
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m17332
- Graph hash
- b99cbd7e541f535e3c84007a3a186a9ebd3923334fbbb6507a8be742e7335153
- Skeleton hash
- 6944c543d12e74f4a15a818bc2c2ef48c1a27a5e9adfc3f5462cdedcfb3905b1
- Architecture hash
- ae0ac7ac7094ebbbac2f5e27ab302b1d8edcbd43ad00b2c40f0f878a2033abd9
- Diagram SHA-256
- 1a9be675926b085428c667f0a734ca5ca748e65b9c205863c3d0497c1a2faded
- 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
HiFi-Codec is an audio codec model, a kind of model that compresses audio into discrete representations. Such codecs are increasingly used as intermediate representations in audio generation, and the paper names two obstacles. Training them is difficult because public training processes are lacking and large-scale data and GPUs are needed, and good reconstruction requires many codebooks, which increases the burden on generation models.
The paper proposes a group-residual vector quantization (GRVQ) technique and uses it to build HiFi-Codec, which requires only 4 codebooks. All models were trained on publicly available TTS data such as LibriTTS, VCTK and AISHELL, with a total duration of over 1000 hours, using 8 GPUs. The paper reports that HiFi-Codec outperformed Encodec in reconstruction performance despite requiring only 4 codebooks.
HiFi-Codec is released in AcademiCodec, an open-source audio codec toolkit that offers training code and pre-trained models for Encodec, SoundStream and HiFi-Codec. The repository also includes a notebook for inferring acoustic tokens for later training of models such as VALL-E and SoundStorm.
Key idea. The paper proposes group-residual vector quantization (GRVQ) and uses it to build HiFi-Codec, an audio codec that requires only 4 codebooks.
- HiFi-Codec
- HiFiCodec
- AcademiCodec
- audio codec
- neural audio codec
- group-residual vector quantization
- GRVQ
- audio tokenizer
- acoustic tokens
- audio compression
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{yang2023hificodecgroupresidualvectorquantization,
title={HiFi-Codec: Group-residual Vector quantization for High Fidelity Audio Codec},
author={Dongchao Yang and Songxiang Liu and Rongjie Huang and Jinchuan Tian and Chao Weng and Yuexian Zou},
year={2023},
eprint={2305.02765},
archivePrefix={arXiv},
primaryClass={cs.SD},
url={https://arxiv.org/abs/2305.02765},
}