passt_patchout_spectrogram_transformer
Spectrogram transformer for AudioSet tagging, trained with patchout to cut cost and regularize.
Audio and speech · 345 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
- 86.2M
- Operations
- 345
- Framework
- PyTorch
- Recurrent
- No
- Published
- Interspeech 2022
- Cited by
- 231 (as of 19 October 2026)
- Authors
- Khaled Koutini, Jan Schlüter, Hamid Eghbal-zadeh, Gerhard Widmer
- Source
- GitHub: kkoutini/PaSST
- 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 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
- m8133
- Graph hash
- 50ad70e75821d37ad14b9bbb70da86eeb8f5e99dcebee41bdae01ace672d0788
- Skeleton hash
- c940d2492425257657529a9fb9d314d439e4c484afee8dc1c5852cf06bf1bf43
- Architecture hash
- 8cd77b5d5515760b0674ba85c54c9b4e066e37de04662482eb5b67e79c08af15
- Diagram SHA-256
- 00f758f99b2e3e8e1f3781721fd7ad19865c779069c04c8bdfdf2f08f09108e9
- 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
PaSST, the Patchout faSt Spectrogram Transformer, is a transformer for audio tagging and classification that works on audio spectrograms. The paper's motivation is that transformer compute and memory grow quadratically with input length, which makes training on overlapping spectrogram patches costly. Patchout drops parts of the transformer's input sequence during training, so the model learns to classify from an incomplete sequence while the full sequence is presented at inference.
The pipeline extracts small overlapping patches from the spectrogram, projects them linearly, and adds separate frequency and time positional encodings. These disentangled encodings let the model run on audio of different lengths by cropping the time encoding without touching the frequency encoding. Structured patchout, used by the PaSST-S models, removes whole columns or rows of patches at randomly picked frequency bins or time frames, a design inspired by SpecAugment.
The paper trains on Audioset, about 2 million clips tagged with 527 classes, using mono audio at 32 kHz and 128 mel bands. The model on this page uses 16x16 patches at stride 10 over a 128 by 998 spectrogram, with structured patchout of 40 time frames and 4 frequency bins. The repository reports an Audioset mAP of 0.476 for this checkpoint. A stripped-down package, hear21passt, wraps the same network with a mel front end for inference and embedding extraction following the HEAR 2021 API.
Key idea. Patchout drops spectrogram patches during transformer training, cutting compute and memory while acting as a regularizer that improves generalization.
- passt
- patchout
- audio tagging
- spectrogram transformer
- audioset
- audio classification
- structured patchout
- hear21passt
- audio transformer
- mel spectrogram
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{koutini2022efficienttrainingaudiotransformers,
title={Efficient Training of Audio Transformers with Patchout},
author={Khaled Koutini and Jan Schlüter and Hamid Eghbal-zadeh and Gerhard Widmer},
year={2022},
eprint={2110.05069},
archivePrefix={arXiv},
primaryClass={cs.SD},
doi={https://doi.org/10.21437/Interspeech.2022-227},
url={https://arxiv.org/abs/2110.05069},
}