Efficient Training of Audio Transformers with Patchout

Khaled Koutini, Jan Schlüter, Hamid Eghbal-zadeh, Gerhard Widmer
10/11/2021
480 citations
cs.SDcs.LGeess.AS
transformer-attention

Official code: kkoutini/PaSST (394 stars, Python, Apache-2.0, PyTorch, last commit 2024-01-12).

Abstract

The great success of transformer-based models in natural language processing (NLP) has led to various attempts at adapting these architectures to other domains such as vision and audio. Recent work has shown that transformers can outperform Convolutional Neural Networks (CNNs) on vision and audio tasks.

Show full abstract

However, one of the main shortcomings of transformer models, compared to the well-established CNNs, is the computational complexity. In transformers, the compute and memory complexity is known to grow quadratically with the input length. Therefore, there has been extensive work on optimizing transformers, but often at the cost of degrading predictive performance. In this work, we propose a novel method to optimize and regularize transformers on audio spectrograms. Our proposed models achieve a new state-of-the-art performance on Audioset and can be trained on a single consumer-grade GPU. Furthermore, we propose a transformer model that outperforms CNNs in terms of both performance and training speed. Source code: https://github.com/kkoutini/PaSST

View on arXivView PDF

Code Implementations(1)

kkoutini/PaSSTOfficial100%
PyTorchApache-2.0

Efficient Training of Audio Transformers with Patchout

39460PythonOct 6, 20212 years agoApache-2.0
audio-classificationaudio-taggingmachine-learningpattern-recognitionpytorch+1 more

Similar Papers

Cite this paper

@article{koutini2021efficient,
  title  = {Efficient Training of Audio Transformers with Patchout},
  author = {Khaled Koutini and Jan Schlüter and Hamid Eghbal-zadeh and Gerhard Widmer},
  year   = {2021},
  eprint = {2110.05069},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.05069}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2110.05069.svg)](https://codeofpaper.com/paper/2110.05069)

Discussion