
audio-spectrogram-transformer
Audio and speech303 ops86.2M params
A Vision Transformer pointed at spectrograms: convolution-free audio classification.
Audio and speech · 303 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.
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.
How this diagram was made
transformers.ASTModel()
About this model's family
The Audio Spectrogram Transformer, usually shortened to AST, is an audio classifier that treats sound as a picture: it applies a Vision Transformer to audio by first turning the audio into an image, a spectrogram. It was proposed by Yuan Gong, Yu-An Chung and James Glass in the paper AST: Audio Spectrogram Transformer. The question the paper asks is whether audio classifiers really need a convolutional network at all, or whether a network purely based on attention is enough.
Their answer is AST, described as the first convolution-free, purely attention-based model for audio classification. It reached 0.485 mAP on AudioSet, 95.6% accuracy on ESC-50 and 98.1% accuracy on Speech Commands V2. One practical quirk: AST wants a low learning rate, 10 times smaller than the one the authors used for their CNN model. The feature extractor normalises inputs to a mean of 0 and a standard deviation of 0.5, using the AudioSet statistics by default.
Key idea. AST is the first convolution-free, purely attention-based model for audio classification.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.