SepTr: Separable Transformer for Audio Spectrogram Processing

Nicolae-Catalin Ristea, Radu Tudor Ionescu, Fahad Shahbaz Khan
3/17/2022
cs.CVcs.LG
transformer-attention

Official code: ristea/septr (29 stars, Python, MIT, last commit 2022-09-29).

Abstract

Following the successful application of vision transformers in multiple computer vision tasks, these models have drawn the attention of the signal processing community. This is because signals are often represented as spectrograms (e.g. through Discrete Fourier Transform) which can be directly provided as input to vision transformers.

Show full abstract

However, naively applying transformers to spectrograms is suboptimal. Since the axes represent distinct dimensions, i.e. frequency and time, we argue that a better approach is to separate the attention dedicated to each axis. To this end, we propose the Separable Transformer (SepTr), an architecture that employs two transformer blocks in a sequential manner, the first attending to tokens within the same time interval, and the second attending to tokens within the same frequency bin. We conduct experiments on three benchmark data sets, showing that our separable architecture outperforms conventional vision transformers and other state-of-the-art methods. Unlike standard transformers, SepTr linearly scales the number of trainable parameters with the input size, thus having a lower memory footprint. Our code is available as open source at https://github.com/ristea/septr.

View on arXivView PDF

Code Implementations(1)

ristea/septrOfficial100%
MIT
297PythonMar 14, 20224 years agoMIT

Similar Papers

Cite this paper

@article{ristea2022septr,
  title  = {SepTr: Separable Transformer for Audio Spectrogram Processing},
  author = {Nicolae-Catalin Ristea and Radu Tudor Ionescu and Fahad Shahbaz Khan},
  year   = {2022},
  eprint = {2203.09581},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.09581}
}

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/2203.09581.svg)](https://codeofpaper.com/paper/2203.09581)

Discussion