LACE: Layer-Wise Compression for Dynamic Frame Rate Codecs
Paper โข 2609.17509 โข Published
Run espnet/libritts_lace_soundstream on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/espnet/libritts_lace_soundstream. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/espnet/libritts_lace_soundstream on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use espnet/libritts_lace_soundstream with ESPnet:
unknown model type (must be text-to-speech or automatic-speech-recognition)
Packed model bundle generated from egs3/libritts/lace.
espnet/libritts_lace_soundstreamegs3/libritts/lacelibrittslacethanapattrachu2026-12-03T08:26:21espnet3/recipe/libritts_lace85b5514c879 (clean)LACE54,907,43854,907,438 (100.0%)0219.63 MB33,666,992 (134.67 MB)970 total, 406 leaftorch.float32(161.3%)from espnet3.publication import InferenceModel
model = InferenceModel.from_pretrained("espnet/libritts_lace_soundstream")
output = model({"audio": "speech.wav"}) # a path, a (rate, samples) pair, or an array
audio = output["resyn_audio"] # the resynthesized Audio: audio.array (float32) at audio.rate
The input is encoded with the LACE codec at its compression rate and decoded back; it is resampled to the codec's rate and averaged to one channel before encoding.
Any LACEAudioCoding argument replaces the packed one, for example the
compression rate:
model = InferenceModel.from_pretrained("espnet/libritts_lace_soundstream", rate=0.25)
model_pack./exp/soundstreamcopy experiment outputs; register named artifact files; apply exclude filters| dataset | ci_sdr | dns_overall | dns_p808 | sdr | si_snr | spk_similarity | utmos |
|---|---|---|---|---|---|---|---|
| test | 3.0749 | 3.0914 | 3.7416 | 3.1194 | 0.0299 | 0.974 | 3.7334 |
num_device: 4
num_nodes: 1
recipe_dir: .
data_dir: ./data
exp_tag: soundstream
exp_dir: ./exp/soundstream
stats_dir: ./exp/soundstream/stats
inference_dir: ./exp/soundstream/inference
create_dataset:
recipe_dir: .
dataset:
_target_: espnet3.components.data.data_organizer.DataOrganizer
recipe_dir: .
train:
- data_src_args:
split: train
valid:
- data_src_args:
split: valid
preprocessor:
_target_: espnet2.train.preprocessor.CommonPreprocessor
train: true
token_type: null
speech_name: audio
force_single_channel: true
audio_pad_value: 0.0
_convert_: all
_convert_: all
model:
_target_: espnet3.systems.lace.src.models.lace.LACE
freeze_codec_module_name: none
compression_model:
name: dp_segmentation
params:
max_span: 4
min_rate: 0.25
max_rate: 1.0
random_rate: per_quantizer
eval_rate: 0.5
pretrained_model_tag: espnet/libritts_soundstream24k
_convert_: all
optimizers:
generator:
optimizer:
_target_: torch.optim.AdamW
lr: 0.0001
betas:
- 0.5
- 0.9
eps: 1.0e-09
weight_decay: 0.0
_convert_: all
params: generator
accum_grad_steps: 1
step_every_n_iters: 1
gradient_clip_val: 1.0
discriminator:
optimizer:
_target_: torch.optim.AdamW
lr: 0.0001
betas:
- 0.5
- 0.9
eps: 1.0e-09
weight_decay: 0.0
_convert_: all
params: discriminator
accum_grad_steps: 1
step_every_n_iters: 1
gradient_clip_val: 1.0
schedulers:
generator:
scheduler:
_target_: torch.optim.lr_scheduler.ExponentialLR
gamma: 0.999998
_convert_: all
interval: step
discriminator:
scheduler:
_target_: torch.optim.lr_scheduler.ExponentialLR
gamma: 0.999998
_convert_: all
interval: step
optimizer: null
scheduler: null
scheduler_interval: null
scheduler_monitor: null
best_model_criterion:
- - valid/mel_loss
- 5
- min
- - train/mel_loss
- 5
- min
- - step
- 5
- max
seed: null
parallel:
env: local
n_workers: 1
dataloader:
collate_fn:
_target_: espnet2.train.collate_fn.CommonCollateFn
float_pad_value: 0.0
int_pad_value: 0
_convert_: all
train:
iter_factory:
_target_: espnet2.iterators.chunk_iter_factory.ChunkIterFactory
batch_size: 16
chunk_length: 24000
num_cache_chunks: 64
num_samples_per_epoch: 10000
shuffle: true
num_workers: 4
collate_fn:
_target_: espnet2.train.collate_fn.CommonCollateFn
float_pad_value: 0.0
int_pad_value: 0
_convert_: all
batches:
type: unsorted
batch_size: 1
batch_bins: 0
shape_files:
- ./data/manifest/train.tsv
_convert_: all
valid:
iter_factory:
_target_: espnet2.iterators.chunk_iter_factory.ChunkIterFactory
batch_size: 16
chunk_length: 24000
num_cache_chunks: 64
shuffle: false
num_workers: 4
collate_fn:
_target_: espnet2.train.collate_fn.CommonCollateFn
float_pad_value: 0.0
int_pad_value: 0
_convert_: all
batches:
type: unsorted
batch_size: 1
batch_bins: 0
shape_files:
- ./data/manifest/valid.tsv
_convert_: all
trainer:
accelerator: auto
devices: 4
num_nodes: 1
strategy: ddp_find_unused_parameters_true
accumulate_grad_batches: 1
check_val_every_n_epoch: 1
log_every_n_steps: 500
max_steps: 30000
gan:
generator_first: true
skip_discriminator_prob: 0.3
logger:
- _target_: lightning.pytorch.loggers.TensorBoardLogger
save_dir: ./exp/soundstream/tensorboard
name: tb_logger
_convert_: all
fit: {}
@inproceedings{trachu2026lace,
title = {{LACE}: Layer-Wise Compression for Dynamic Frame Rate Codecs},
author = {Trachu, Thanapat and Cornell, Samuele and Chen, William and Watanabe, Shinji},
booktitle = {Proc. IEEE Spoken Language Technology Workshop (SLT)},
year = {2026},
url = {https://arxiv.org/abs/2609.17509}
}
@inproceedings{watanabe2018espnet,
author={Shinji Watanabe and Takaaki Hori and Shigeki Karita and Tomoki Hayashi and
Jiro Nishitoba and Yuya Unno and Nelson Yalta and Jahn Heymann and Matthew Wiesner
and Nanxin Chen and Adithya Renduchintala and Tsubasa Ochiai},
title={{ESPnet}: End-to-End Speech Processing Toolkit},
year={2018},
booktitle={Proceedings of Interspeech},
pages={2207--2211},
doi={10.21437/Interspeech.2018-1456}
}