EnCLAP
BART-based audio captioner fed EnCodec codes and a CLAP audio embedding.
Audio and speech · 753 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
- 165.8M
- Operations
- 753
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICASSP 2024
- Paper
- EnCLAP: Combining Neural Audio Codec and Audio-Text Joint Embedding for Automated Audio Captioning
- Cited by
- 19 (as of 3 November 2026)
- Authors
- Jaeyeon Kim, Jaeyoon Jung, Jinjoo Lee, Sang Hoon Woo
- Source
- GitHub: jaeyeonkim99/enclap
- License
- MIT
- 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
- m16434
- Graph hash
- 9fe9f1c5b956742b004dc508b210cdbe93a0c934f9828ae5fd3a5742466c2b9a
- Skeleton hash
- d141b671f6b6ca20498d893466514c0e9416aef40a16beef6306b35bcd185dfb
- Architecture hash
- e1c2a66cbb4b8ce38bedc2e5ed278d247825a997854b92b2fa864b3e0dcab23f
- Diagram SHA-256
- bbb7e42c008d81e94f12767d4d6bdc27780ef927322f91b84587cac82bf7f2d2
- 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
EnCLAP writes a text caption for an audio clip, the task called automated audio captioning. It pairs two pretrained audio encoders, EnCodec and CLAP, with a pretrained language model, BART, which generates the caption.
The two encoders give BART two views of the sound: a matrix of discrete codes over time and one embedding for the whole clip. EnCodec, a neural audio codec, turns a 24 kHz waveform into 16 code sequences at 75 Hz, each code taking one of 1024 values. The embeddings of those codes are summed into one BART input per time step. The CLAP embedding is projected by a linear layer into a further BART input. The authors chose codes on the hypothesis that pretrained language models use discrete inputs better than continuous ones.
Training adds an auxiliary task, masked codec modeling, meant to teach the BART encoder how the acoustic codes relate to one another. CLAP and EnCodec stay frozen during training. On AudioCaps, the paper reports that EnCLAP-large, trained only on that dataset, scores above WavCaps, a model pretrained on a large-scale dataset. In the paper's ablation, the CLAP audio embedding accounts for the largest improvement.
Key idea. EnCLAP feeds discrete EnCodec codes and a CLAP audio embedding to a pretrained BART and adds masked codec modeling as an auxiliary objective for audio captioning.
- EnCLAP
- automated audio captioning
- audio captioning
- neural audio codec
- audio-text joint embedding
- masked codec modeling
- AAC
- AudioCaps
- Clotho
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{kim2024enclapcombiningneuralaudio,
title={EnCLAP: Combining Neural Audio Codec and Audio-Text Joint Embedding for Automated Audio Captioning},
author={Jaeyeon Kim and Jaeyoon Jung and Jinjoo Lee and Sang Hoon Woo},
year={2024},
eprint={2401.17690},
archivePrefix={arXiv},
primaryClass={eess.AS},
url={https://arxiv.org/abs/2401.17690},
}