All models

FocalCodec

Low-bitrate speech codec built on focal modulation with a single binary codebook, here as the 50 Hz checkpoint.

Audio and speech · 681 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

Loading diagram (24 KB)

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
142.1M
Operations
681
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2025
Cited by
2 (as of 28 October 2026)
Authors
Luca Della Libera, Francesco Paissan, Cem Subakan, Mirco Ravanelli
License
Apache-2.0
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
m16724
Graph hash
9d65e954b0b591eaea660ef2269e8b4818699769e7420a1835ca6d3a189e31d9
Skeleton hash
1f784e2f0146522a6e30624dc74012b7dc4e5349b3f3bcee6351f905de249c20
Architecture hash
03db76bcac9f79d8859162a694d3327bfcaafb9d31133a4dd4fcf67b80f6bf03
Diagram SHA-256
e05a26024a19613cffb2fad935b694bbeb171aecda41cd380c0ab43a46b8e8f0
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

FocalCodec is a low-bitrate speech codec based on focal modulation that uses a single binary codebook to compress speech to between 0.16 and 0.65 kbps. This model is the 50 Hz checkpoint trained on LibriTTS 960.

The encoder extracts features containing both acoustic and semantic information, a compressor maps them to a low-dimensional space where they are binary quantized, and a decompressor projects them back. The decoder resynthesizes the waveform from these features. The encoder is the first 6 layers of WavLM-large. A focal block replaces the self-attention mechanism of the standard transformer block with focal modulation. Unlike self-attention, which directly computes token-wise interactions, focal modulation first aggregates the global context and then modulates local interactions based on the aggregated representation.

Quantization is binary spherical quantization (BSQ), which the paper notes was originally introduced for compression of images and videos. Latent representations of dimension 13 correspond to a codebook size of 8192. The paper trains FocalCodec on LibriTTS resampled to 16 kHz, in three variants with a codebook size of 8192 and token rates of 50 Hz, 25 Hz, and 12.5 Hz.

Key idea. FocalCodec compresses speech to between 0.16 and 0.65 kbps with a single binary codebook, in a low-bitrate codec based on focal modulation.

  • FocalCodec
  • speech codec
  • low-bitrate speech coding
  • focal modulation
  • binary spherical quantization
  • single binary codebook
  • speech tokenization
  • neural audio codec

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

Cite the paper

@misc{dellalibera2025focalcodeclowbitratespeechcoding,
      title={FocalCodec: Low-Bitrate Speech Coding via Focal Modulation Networks}, 
      author={Luca Della Libera and Francesco Paissan and Cem Subakan and Mirco Ravanelli},
      year={2025},
      eprint={2502.04465},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2502.04465}, 
}