---
title: "AST — paper by Gong et al. (2021) · Interspeech (USB)"
description: "How Audio Spectrogram Transformer classifies sound with attention, transfers learning from images, and performs across audio benchmarks."
canonical: "https://research.elamur.ai/free/en/papers/gong-2021-ast-audio-spectrogram-transformer/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/gong-2021-ast-audio-spectrogram-transformer/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / AST: Audio Spectrogram Transformer

# AST: Audio Spectrogram Transformer

Paper · 2021 · Yuan Gong, Yu-An Chung and James Glass

**Authors:** [Yuan Gong](https://md.research.elamur.ai/free/en/authors/yuan-gong/), [Yu-An Chung](https://md.research.elamur.ai/free/en/authors/yu-an-chung/) and [James Glass](https://md.research.elamur.ai/free/en/authors/james-glass/) · **Year:** 2021 · **Venue:** Interspeech (USB) · **Licence:** [CC BY 4.0 (arXiv)](https://creativecommons.org/licenses/by/4.0/)

[**1,086** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W3146639881|W3196974791) · [Interspeech (USB)](https://openalex.org/S4393918409) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/2104.01778)
- [DOI 10.21437/interspeech.2021-698](https://doi.org/10.21437/interspeech.2021-698)
- [arXiv 2104.01778](https://arxiv.org/abs/2104.01778)
- [OpenAlex](https://openalex.org/W3196974791)

Citations: OpenAlex, 2026-10-14.

## Deep dive: AST: Audio Spectrogram Transformer

How Audio Spectrogram Transformer classifies sound with attention, transfers learning from images, and performs across audio benchmarks. · about 35 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

Audio classification asks a system to identify what a recording contains: an environmental sound, a spoken command, or several events occurring within the same clip. Before AST, strong systems commonly processed a spectrogram through convolutional layers, sometimes adding attention afterward to connect information across the recording. The paper asks whether that convolutional stage is essential. Its answer is the Audio Spectrogram Transformer, or AST: an architecture that turns regions of a spectrogram into a sequence and classifies that sequence with a standard [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/).

The central architectural change is where information can interact. A conventional convolutional stack builds representations through successive local operations. AST gives attention access to patches from across the spectrogram from the beginning of its encoder. Each patch covers a small region of time and frequency, receives a learned representation of its position, and enters the same sequence-processing architecture. A special classification token gathers information used to predict the recording’s labels. The system therefore retains a local input representation while replacing the conventional convolutional feature extractor.

An important part of the result is transfer from images. Rather than relying completely on audio training, the authors initialize AST using an image Transformer trained on ImageNet. They adapt its input projection to a spectrogram’s single channel, reshape its learned positional information to match the audio patch grid, and replace the image classifier. Their preferred initialization comes from DeiT, whose image training includes distillation from a CNN. AST consequently demonstrates that a convolutional audio backbone is unnecessary under this training recipe; it does not establish that convolution has played no role anywhere in the system’s learning history.

Across the evaluated tasks, AST obtains strong results with the same encoder architecture. On AudioSet, its best ensemble reaches 0.485 mean average precision, while its strongest individual system uses checkpoint weight averaging and reaches 0.459±0.000. On ESC-50, initialization from both ImageNet and AudioSet produces 95.6±0.4 accuracy under the paper’s cross-validation procedure. For Speech Commands V2, AST with ImageNet initialization reaches 98.11±0.05 test accuracy, and additional AudioSet pretraining does not help. These distinctions matter: the headline AudioSet result involves an ensemble, and the preferred pretraining sequence differs between environmental sounds and spoken commands.

The broader contribution is a carefully tested alternative to the assumption that audio classification needs a CNN backbone. AST processes recordings of different durations without redesigning its encoder, and its controlled comparisons identify several practical ingredients: image initialization, transferred positional information, and overlapping patches. The evidence supports AST as a general audio classifier across the tested benchmarks. It does not establish performance on every audio task, explain every benefit of image transfer, or show that attention is always the most economical deployment choice.

### Ideas worth borrowing

Preserve a standard computational core. The authors adapt the input and output interfaces while leaving the Transformer encoder conventional. This makes existing implementations and pretrained parameters usable without introducing a specialized audio block at every layer. The reusable principle is to distinguish the part of a system that must understand a new data format from the part that can remain shared. When a new task can be expressed through an established representation interface, preserving the core can simplify both implementation and experimental comparison.

Transfer structure alongside parameters. AST’s image initialization includes learned positions, instead of treating them as disposable bookkeeping. Cutting and interpolating the positional grid retains information that would be lost through random replacement. The positional ablation supports this decision: transferred positions outperform newly initialized ones. Elsewhere, this suggests examining which learned structures describe relationships among inputs and which describe the original task’s labels. A classifier may need replacement while a representation of arrangement remains useful.

Test an inherited component directly. The motivating question is whether convolution is required, so AST removes the conventional convolutional backbone and evaluates the resulting architecture on established tasks. This gives a clearer answer than adding another attention module to an already strong hybrid. The same experimental habit applies when a field has settled around a familiar pipeline: identify the component whose necessity is assumed, construct a credible alternative, and compare it under a training procedure that does not unnecessarily favor either side.

Treat segmentation as an architectural choice. Patch shape, size, and overlap determine the sequence the encoder receives. AST’s experiments show that these decisions influence both recognition quality and computational demand. They also reveal a dependency on available initialization: a patch geometry that performs better from scratch may be less attractive when it cannot reuse strong pretrained weights. This lesson applies to other structured inputs. The best segmentation depends on the data, the processing cost, and the representations available for transfer.

Separate ways of combining predictors. Averaging checkpoint weights and averaging outputs from separately trained systems are different operations with different deployment consequences. AST reports them separately, allowing readers to distinguish an improvement that preserves an individual architecture from one that requires multiple predictors. The idea is useful wherever a strong headline result includes aggregation. Recording exactly what is combined makes the result easier to reproduce and helps an engineer choose a suitable point between accuracy and inference cost.

Check whether pretraining matches the destination. AudioSet initialization helps AST on ESC-50 but is unnecessary for its strongest Speech Commands result. More pretraining is therefore not automatically the right choice, even when the intermediate data come from the same broad modality. The transferable lesson is to evaluate the full sequence of learning stages on the destination task. Similar input formats do not guarantee that every stage improves the particular distinctions the final classifier must make.

Use architecture consistency as evidence of breadth. The authors retain the same encoder while moving between short commands, environmental recordings, and longer event clips. This is a useful way to test whether an architecture’s success depends on extensive task-specific redesign. It does not remove the need to tune training or classification outputs, but it makes the claim of a reusable backbone more concrete. Researchers studying a supposedly general representation can borrow this discipline by keeping the core stable while documenting the interfaces and training conditions that change.

### How Mova uses it

For Mova, the small transparent language system implemented in Rust, AST is best treated as a possible audio component and a source of design lessons. There is no established AST integration to describe. The paper supplies an architecture and experimental evidence for audio classification; it does not establish that Mova currently processes spectrograms, loads AST parameters, or uses audio representations in its language processing.

A concrete future use would be an audio classification stage outside Mova’s central language machinery. A recording could be converted into the spectrogram representation expected by AST, passed through the classifier, and represented downstream as explicit labels and their associated scores. Mova could then operate on that structured output. This would preserve a clear boundary between recognizing an acoustic event and interpreting what an application should do with the recognition result.

That boundary matters for transparency. An audio label is a prediction about a recording, rather than a linguistic analysis or an explanation of why the event occurred. If such a component were built, Mova could expose the supplied label, the score, and the provenance of the classification separately from any subsequent language-level reasoning. AST itself does not provide this integration, but its explicit input-to-label interface makes the proposed separation straightforward to describe and evaluate.

Speech command recognition is another plausible application, with a narrower scope than a general spoken interface. The Speech Commands experiments concern classification among 35 command categories. They do not demonstrate transcription of unrestricted speech, conversational understanding, or response generation. A Mova experiment based on that result would therefore begin with a bounded command inventory and an explicit mapping from recognized categories to permitted operations. Calling it a complete speech understanding system would exceed the paper’s evidence.

The paper also offers a useful lesson for Mova’s implementation philosophy: keep reusable computation separate from domain-specific adaptation. AST’s encoder remains standard while its patch projection, positional arrangement, and output layer bridge the differences between images and audio. A similar separation could help a Rust implementation keep data preparation, learned inference, and interpretable downstream processing independently inspectable. This is a proposed engineering analogy, rather than evidence that AST’s neural representations themselves are transparent.

The distinction between checkpoint averaging and ensembles would be relevant before choosing an implementation target. The strongest AudioSet ensemble requires multiple trained predictors, whereas averaging checkpoint weights leaves an individual system with the same architecture. A small system should not inherit the ensemble headline without also inheriting its execution requirements. The paper provides a reason to consider the individual weight-averaged result as a separate candidate, although it does not supply the deployment measurements needed to decide whether that candidate fits Mova.

A sensible exploratory evaluation would also keep audio predictions separate from confidence in downstream conclusions. The paper reports benchmark recognition performance, not a guarantee that a returned label is correct for every recording. If Mova used an AST-like front end, its transparent interface could retain uncertainty rather than silently turning the highest score into an unquestionable fact. This would be an application design choice informed by the nature of classification, not a capability demonstrated by AST.

More generally, the paper encourages testing imported assumptions. Mova need not adopt attention merely because it succeeds here, nor reject it because its internal representations differ from Mova’s transparent language structures. The useful question is whether a bounded audio component solves a clearly defined task and exposes an interface that Mova can represent honestly. AST provides a concrete candidate for such an experiment, while leaving its Rust implementation, resource use, integration, and value to Mova unestablished.

### The problem and its context

#### From acoustic features to learned representations

The paper describes audio classification as a field that had moved from manually designed acoustic features towards systems trained to map spectrograms directly to labels. In the earlier approach, much of the representation was chosen before learning the classifier. In the later approach, the classifier learned useful representations as part of its training procedure. CNNs became a common foundation for that change.

A spectrogram makes sound available as a structured array. Its axes describe time and frequency, so nearby regions can contain related acoustic information. Convolutional architectures bring assumptions that fit this arrangement: they emphasize local neighborhoods and apply shared operations across positions. The authors identify spatial locality and translation equivariance as reasons these architectures were considered useful for audio.

Those assumptions do not settle how a system should combine information across a whole recording. A sound category may depend on evidence distributed across different moments or frequency regions. The paper’s account of recent work therefore emphasizes attention as a way to capture broader context. Strong systems increasingly combined a convolutional feature extractor with mechanisms that connected more distant information.

This history creates the paper’s central ambiguity. If a CNN-attention hybrid performs well, its result does not reveal whether both components are indispensable. Attention might merely improve a representation that requires convolution, or it might be capable of organizing the relevant information without that backbone. AST investigates the latter possibility.

#### What earlier attention-based systems retained

The related-work discussion distinguishes several forms of hybrid architecture. Some systems placed a Transformer after a CNN, so attention operated on features already constructed through convolution. Other systems combined convolution and attention within their repeated processing blocks. The paper cites [Conformer](https://md.research.elamur.ai/free/en/papers/gulati-2020-conformer-convolution-augmented-transformer-speech/) as an example of this second arrangement.

Still other audio classifiers used attention modules simpler than a full Transformer encoder. The examples span event recognition, command classification, and emotion-related tasks. Within the paper’s argument, these systems establish that attention was already useful in audio. AST’s novelty claim concerns removing the conventional convolutional backbone, rather than introducing attention to sound processing for the first time.

The underlying sequence architecture comes from [Attention Is All You Need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/), originally developed for language processing. AST uses its encoder component for classification. It does not need the decoder side associated with producing an output sequence. This choice keeps the architectural question focused: can a familiar attention-based encoder support audio classification when it receives an appropriate input representation?

#### Why image Transformers made the question practical

The closest architectural precedent is the Vision Transformer introduced in [An Image is Worth 16x16 Words](https://md.research.elamur.ai/free/en/papers/dosovitskiy-2020-image-worth-16x16-words-transformers/). Its relevance is the conversion of a spatial array into patch representations processed by a Transformer. AST applies a related construction to a spectrogram, whose dimensions correspond to frequency and time rather than image height and width.

This connection is stronger than a visual resemblance. Both inputs can be partitioned into regions, projected into vectors, and supplemented with positional information. The authors use those shared interfaces to transfer learned parameters. The task and the meaning of the axes differ, but much of the computational structure can remain compatible.

The paper also draws motivation from [Tokens-to-Token ViT](https://md.research.elamur.ai/free/en/papers/yuan-2021-tokens-token-vit-training-vision/) and from DeiT, discussed in [Training data-efficient image transformers](https://md.research.elamur.ai/free/en/papers/touvron-2020-training-data-efficient-image-transformers/). These works support its broader premise that attention-based image architectures are worth adapting to audio. AST then tests design choices specifically on audio tasks rather than assuming that every image configuration will transfer unchanged.

#### The data problem behind the architecture

Removing convolution does not remove the need for a learning strategy. The authors identify data demand as a disadvantage of Transformers relative to CNNs. They cite the original ViT study’s finding that its image Transformer began to surpass CNNs when image training data exceeded 14 million examples. Their audio datasets do not supply comparable amounts of task-specific data.

Cross-modal initialization is their practical response. Prior work had already transferred ImageNet-trained CNN parameters into audio classifiers. AST extends that general strategy to an attention-based architecture. Instead of training the image stage themselves, the authors reuse available pretrained weights, making the experiment feasible without reproducing the full cost of strong image training.

The resulting scientific question is therefore more precise than whether attention can learn audio in complete isolation. It is whether a standard attention-based classifier, supplied with a suitable spectrogram interface and transferable image initialization, can match or exceed strong audio systems. The experiments support that proposition across the selected benchmarks.

#### Why variable duration matters

Audio examples do not all arrive with the same duration. The paper’s tasks include brief spoken commands, longer environmental recordings, and event clips of another length. An architecture that requires extensive redesign for each duration would be less convincing as a general classifier.

AST addresses duration through its input sequence. A longer spectrogram produces more patch tokens, while the encoder’s embedding width and repeated processing blocks remain fixed. Positional embeddings still require adaptation to the relevant grid, but the architecture does not need a different convolutional layout for each task.

This is an architectural convenience with a computational qualification. Supporting longer sequences does not make their processing free. The overlap experiments explicitly connect sequence length with attention cost. The paper’s contribution is to show that the same core architecture works across the tested durations, not to establish unlimited or constant-cost processing of arbitrary recordings.

### The method, step by step

AST’s pipeline begins with a waveform and ends with recording-level label scores. Its intermediate steps turn the waveform into a time–frequency array, turn that array into patch vectors, add information about where those patches came from, and let the encoder combine them. Image initialization supplies a starting point for much of the learned computation.

From an audio recording to label scores The steps in order.

#### Represent the recording as a spectrogram

The input is an audio waveform lasting t seconds. The authors compute log Mel filterbank features with a 25ms Hamming window and a step of 10ms. Each timestep has 128 feature values. In this representation, the recording becomes an array with a frequency-related dimension and a time dimension.

The stated spectrogram shape is:

```
128 × 100t
```

Here, 128 is the feature dimension, t is recording duration in seconds, and 100t describes the time-axis size used in the paper’s formulation. The multiplication sign joins the dimensions of the array. This is the representation supplied to AST; the Transformer does not directly consume waveform samples.

This preparation is important when interpreting the term end-to-end. The classifier learns a mapping from spectrograms to labels, but an acoustic transformation still precedes the learned architecture. The paper does not claim to eliminate signal representation choices. Its architectural change concerns the learned processing that follows them.

Before training with the transferred initialization, the authors normalize the audio spectrograms. Their target dataset mean is 0, and the target standard deviation is 0.5. This normalization belongs to the transfer recipe. It helps define the input distribution on which the reused image parameters are adapted, instead of adding an audio-specific encoder stage.

#### Divide time and frequency into patches

AST extracts square regions measuring 16×16 from the spectrogram. Neighboring regions overlap by 6 along both axes. A patch therefore contains local information from a span of time and a span of frequency, while overlap lets adjacent tokens share part of their input evidence.

The paper states the patch-count expression as:

```
N = 12⌈(100t − 16) / 10⌉
```

N denotes the number of patch tokens, and t again denotes duration in seconds. The ceiling brackets indicate rounding upward. The constants describe the patch arrangement under the paper’s chosen feature and overlap settings. N is the patch-sequence length before adding the classification token.

Patch creation is not a cosmetic preprocessing choice. It determines what counts as a local unit, which information is placed inside the same vector, and how many vectors attention must process. The later ablations vary overlap and patch geometry because these choices affect both recognition and computation.

The square patch sequence is not simply a chronological list of audio frames. Patches occupy a grid across frequency as well as time. A system that knew only their order in the input list would not automatically know the spatial arrangement from which they were extracted. AST therefore supplies position explicitly.

#### Project each patch into the encoder’s representation

The values within each patch are flattened and passed through a learned linear projection. The output is a vector of size 768. The paper calls this projection the patch embedding layer: it changes a local spectrogram region into the representation format expected by the Transformer.

Flattening removes the patch’s internal array layout from the input format, but the learned projection receives its values in a consistent arrangement. It can therefore learn useful combinations of those values. The projection itself does not combine information from distant patches; that interaction happens in the encoder.

Every patch receives a trainable positional vector, also of size 768. Adding that vector makes position available alongside acoustic content. The intended information concerns the patch’s place in the spectrogram grid, rather than only its place in an arbitrary sequence enumeration.

This division is useful conceptually. The patch projection represents what is present in a local region. The positional embedding supplies where the region lies. Attention can then use both when combining evidence. The ablation on positional transfer tests whether positions learned during image training provide a useful starting point for this second function.

#### Add a token for the whole recording

AST prepends a special [CLS] token to the patch sequence. This token does not represent a spectrogram patch. Instead, its final encoder output becomes the representation used for recording-level classification.

The use of [CLS] is related to the classification setup associated with BERT in the paper’s discussion. Its role here is architectural: it provides a designated output location through which the classifier can use information from the patch sequence. The paper does not require an audio transcript or a sequence of text tokens.

After the encoder, a linear layer maps the [CLS] representation to label scores, using sigmoid activation. This output arrangement is suitable for AudioSet’s possibility of several labels belonging to the same clip. The final label inventory depends on the classification task.

It is important to distinguish this output from event localization. A recording-level category says that a sound is present in a clip. It does not by itself state when the event began, where it ended, or which patch supplied decisive evidence. AST’s evaluated interface is classification, even though its input preserves time-related structure.

#### Keep the encoder standard

The encoder has 12 layers, 12 attention heads, and an embedding width of 768. The authors deliberately avoid modifying the standard Transformer encoder. Their reasons are practical as well as scientific: common implementations are available, and a compatible architecture makes pretrained parameters easier to reuse.

Attention allows a patch representation to interact with information from across the sequence. This is the basis of the claim that global context is available even near the start of the encoder. The architecture does not require a deep convolutional stack to enlarge a local receptive field before distant regions can contribute.

The paper does not introduce a new attention equation, a new encoder block, or an audio-specific recurrence. Its distinctive method lies in the input construction, transfer adaptation, and demonstration that the resulting attention-based architecture works well for audio. Explaining it as a new form of attention would misidentify the contribution.

The authors also qualify the phrase convolution-free. The patch projection can be expressed as a convolution with a large kernel and stride, and a projection within a Transformer block can be described as a 1×1 convolution. Their distinction concerns the absence of the conventional multilayer CNN backbone built from smaller local operations. It is a description of architectural organization, rather than a claim that no operation has any convolutional equivalent.

#### Adapt the image input projection

The pretrained image system expects 3 input channels, whereas the audio spectrogram uses a single channel. To bridge this mismatch, the authors average the patch projection weights associated with the image channels and use the result in AST’s projection layer.

This adaptation retains learned input-processing parameters while matching the audio representation. It also avoids maintaining redundant copies of the same spectrogram across image-style channels. The important point is that the transfer reaches into the patch embedding stage; it is not restricted to the encoder’s deeper layers.

The image classifier itself is discarded. Image categories and audio labels are different prediction problems, so the output layer is reinitialized for audio. The resulting system reuses a learned representation backbone while learning a destination-specific decision layer.

The authors use DeiT initialization for their preferred configuration. Its image input size is 384×384, its parameter count is 87M, and its reported ImageNet 2012 top-1 accuracy is 85.2%. These values describe the image system providing initialization. They should not be read as an independently reported parameter count or image-recognition result for the final audio classifier.

#### Adapt positions to a different grid

The positional embeddings need a separate transformation because the spectrogram’s shape differs from the image shape. A pretrained encoder may accept a different sequence length, but a learned grid of positions cannot simply be assumed to match a differently arranged input.

The paper illustrates this with image patches arranged as:

```
24 × 24 = 576
```

The dimensions 24×24 describe the image patch grid obtained from the stated 384×384 image input and 16×16 patch size. The value 576 is the corresponding number of image patch positions. This is the image-side positional layout used in the adaptation example.

For the 10-second audio example, the authors describe an audio patch grid of 12×100. They cut the pretrained positional grid along one dimension and interpolate along the other to obtain positions for that audio arrangement. The preferred interpolation is bilinear.

The [CLS] positional embedding is transferred directly. DeiT also has two classification tokens during image training; the authors average those token representations to obtain the single classification token used for audio training. These steps preserve compatibility while simplifying the output interface to AST’s recording representation.

The patch-count expression and the worked positional-grid example are presented separately in the paper. They are best understood as its stated descriptions of the input arrangement; the method discussion does not provide a detailed boundary-handling specification that reconciles every implementation detail. The central reproducible idea is the grid adaptation through cutting and interpolation.

#### Train with the destination task’s procedure

On AudioSet, the authors use binary cross-entropy loss and the Adam optimizer. Their training pipeline follows PSLA, including image initialization, augmentation, and aggregation. Balanced sampling is used for full-set training.

The augmentation combines mixup with spectrogram masking. Mixup has a ratio of 0.5. The time masks have a maximum length of 192 frames, while frequency masks extend to at most 48 bins. Masking is connected to [SpecAugment](https://md.research.elamur.ai/free/en/papers/park-2019-specaugment-simple-data-augmentation-method/), which the paper cites as the relevant augmentation approach.

These ingredients matter because AST’s results evaluate a trained system, instead of an architecture stripped of established training techniques. Using the same broad pipeline as a strong hybrid baseline makes the architectural comparison more informative. It also means that the headline result cannot be attributed to attention alone.

The authors identify an official code release for AST. Its role is to make their implementation available alongside the architectural and training description. The research contribution remains the method and evidence, instead of a new command interface or deployment framework.

### Experiments and results

The evaluation spans AudioSet, ESC-50, and Speech Commands V2. These tasks differ in recording duration, label structure, and acoustic content. AudioSet tests event labels for clips that can contain multiple sounds. ESC-50 tests environmental sound categories. Speech Commands tests a fixed spoken-command inventory.

This breadth is important, but the metrics should remain separate. Mean average precision on AudioSet and accuracy on the other datasets answer different evaluation questions. Their numerical values cannot be read as a common scale of task difficulty or recognition quality.

#### AudioSet: large-scale event classification

AudioSet contains over 2 million clips drawn from YouTube videos, each lasting 10 seconds, with labels selected from a set of 527 categories. The paper describes a balanced training set of 22k samples, a full training set of 2M, and an evaluation set of 20k.

The recordings have weak labels: the annotation identifies sounds associated with the clip rather than supplying detailed temporal boundaries for every event. This makes the task an appropriate test of recording-level classification. AST’s [CLS] output is trained to summarize the spectrogram for that purpose.

The main metric is mean average precision, abbreviated mAP. It evaluates how well the scores rank relevant examples for the label categories, with the category-level results averaged. This differs from requiring a single winning category for every recording and fits the possibility of several labels per clip.

For the full training set, AST uses a batch size of 12 and an initial learning rate of 1e-5. Training lasts 5 epochs. After the 2nd epoch, the learning rate is halved at each subsequent epoch. The authors repeat experiments with different random seeds and report means and standard deviations where stated.

The last checkpoint from full-set training achieves 0.448±0.001 mAP. Averaging checkpoint weights raises the reported result to 0.459±0.000. The aggregation averages parameters from the first through the last training epoch, producing the paper’s strongest individual classifier.

AST aggregation settings on full AudioSet, evaluation mAP Both aggregation strategies improve on the final checkpoint, with the mixed ensemble strongest.

**The numbers**

| System or setting | mAP |
| --- | --- |
| Final checkpoint | 0.448 |
| Checkpoint weight averaging | 0.459 |
| Ensemble-S | 0.475 |
| Ensemble-M (this paper) | 0.485 |

The chart separates several systems that can otherwise be collapsed into the single phrase AST result. Ensemble-S averages outputs from runs with the same experimental settings but different random seeds. It reaches 0.475 mAP.

Ensemble-M adds predictors trained with different patch-splitting strategies to those in Ensemble-S. Its result is 0.485 mAP, the strongest full AudioSet figure. The best ensemble contains 6 predictors. That result should be associated with the ensemble procedure whenever it is compared with an individual classifier.

The paper reports that AST surpasses PSLA across the corresponding aggregation settings. The comparison is useful because both use ImageNet initialization and the same training pipeline. The prose does not give every numerical baseline entry, so it supports the stated ordering without permitting a complete numerical reconstruction of the earlier system.

Training duration is another reported contrast. AST uses 5 epochs on full AudioSet, while the PSLA hybrid is trained for 30 epochs. This establishes a difference in the reported training schedules and supports the authors’ observation of quick convergence. It does not alone establish the total elapsed time, energy, or end-to-end cost of producing the pretrained system.

#### AudioSet with less audio training data

The balanced AudioSet experiment asks whether AST remains useful when destination audio data are much more limited. The paper characterizes the balanced set as about 1% of the full set. This is especially relevant because data demand motivated the image initialization strategy.

Balanced-set training starts at a learning rate of 5e-5 and runs for 25 epochs. After the 10th epoch, the rate is halved every 5 epochs. The batch size and optimizer follow the AudioSet setup, while balanced sampling is reserved for full-set training.

For checkpoint averaging, the authors combine weights from the final 20 epochs. The reported individual result is 0.347±0.001 mAP. Ensemble-S reaches 0.363, and Ensemble-M reaches 0.378 on the AudioSet evaluation set.

The balanced-data mixed ensemble is broader than the full-data version. It contains 11 predictors with variation in random seeds, image initialization, positional interpolation, and patch splitting. This is an important condition of the 0.378 result. It measures the combined system rather than a single standard configuration.

The authors report that these balanced-data results also exceed the corresponding previous best system. Their interpretation is that attention-based audio classification remains competitive even with relatively little destination training data. A careful reading keeps image initialization in that statement: the small audio training set is not the system’s entire learning history.

#### ESC-50: environmental sounds

ESC-50 contains 2,000 recordings lasting 5 seconds, arranged into 50 classes. Evaluation follows the standard 5-fold cross-validation procedure. Each fold has 1,600 training examples, so the benchmark tests adaptation with a small task-specific training set.

The authors distinguish training with and without additional audio pretraining. AST-S uses ImageNet initialization but no AudioSet initialization. AST-P uses both ImageNet and AudioSet before the destination task.

This naming requires care. AST-S is not trained completely from random parameters. The distinction is additional audio data, not the absence of all external learning. It is therefore clearer to describe the initialization explicitly than to rely on a shorthand such as training from scratch.

The earlier comparison values reported by the paper are 86.5% accuracy without additional audio pretraining and 94.7% with AudioSet pretraining. AST obtains 88.7±0.7 for AST-S and 95.6±0.4 for AST-P under its repeated cross-validation experiments.

Environmental sound classification on ESC-50, cross-validation accuracy AST exceeds the reported earlier comparison in each audio-pretraining condition.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Earlier system without extra audio pretraining | 86.5 |
| AST-S | 88.7 |
| Earlier system with AudioSet pretraining | 94.7 |
| AST-P (this paper) | 95.6 |

Both AST settings use frequency and time masking, a batch size of 48, and Adam. Training lasts 20 epochs. AST-S starts with a learning rate of 1e-4, while AST-P starts at 1e-5. After the 5th epoch, the learning rate is multiplied by 0.85 each epoch.

The experiments are repeated three times, with means and standard deviations reported. The benefit of AudioSet initialization is clear in the AST comparison, but the result remains specific to this environmental sound task. The next benchmark shows why the paper does not justify treating the same pretraining sequence as universally preferable.

#### Speech Commands V2: bounded speech recognition

Speech Commands V2 contains 105,829 recordings, each lasting 1 second, for 35 common command categories. The reported split has 84,843 training examples, 9,981 validation examples, and 11,005 test examples.

The task is classification within that inventory. It is a [speech](https://md.research.elamur.ai/free/en/topics/speech/) recognition task in a bounded sense, rather than unrestricted transcription. A successful system assigns a command category to a short recording; it is not evaluated on producing arbitrary word sequences.

The paper reports an earlier time-channel separable CNN result of 97.4% test accuracy without additional audio pretraining. It also describes a CNN reaching 97.7% after pretraining on an additional 200 million YouTube audio examples. These are different training conditions and should remain identified as such.

AST-S reaches 98.11±0.05 test accuracy. The authors find that it performs better than AST-P, so AudioSet initialization is unnecessary for the strongest AST command classifier. The paper’s abstract expresses its headline command result as 98.1%, while the experiment discussion supplies the more precise repeated-run value.

Spoken command classification on Speech Commands V2, test accuracy AST with image initialization exceeds the reported CNN comparisons.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Earlier CNN without extra audio pretraining | 97.4 |
| Earlier CNN with extra audio pretraining | 97.7 |
| AST-S (this paper) | 98.11 |

Both AST training settings use frequency masking, time masking, random noise, and mixup. The batch size is 128, the optimizer is Adam, and the initial learning rate is 2.5e-4. After the 5th epoch, the rate is multiplied by 0.85 each epoch.

Training continues for up to 20 epochs. The validation split determines which checkpoint is selected, and accuracy is then reported on the test split. The authors repeat the experiment three times. This procedure matters because selecting a checkpoint with validation data is different from simply reporting the final epoch or choosing a checkpoint by its test performance.

#### What the benchmark combination establishes

The encoder is retained across recordings lasting 1 second, 5 seconds, and 10 seconds. The task-specific input length, classification layer, and training procedure differ, but the paper does not redesign the encoder around each benchmark.

That consistency strengthens the claim of a reusable architecture. The results cover environmental audio, event tagging, and command classification, rather than a single narrow dataset. They also show that the architecture can benefit from different initialization sequences depending on the destination.

The combination does not establish a universal audio representation. Every reported success is attached to a particular dataset, evaluation split, training recipe, and output task. The paper’s strongest general conclusion is that a conventional CNN backbone is unnecessary for competitive performance across these tested classification settings.

### What the ablations show

The authors run most controlled comparisons on balanced AudioSet to reduce computation. They use checkpoint weight averaging and omit ensembles in these experiments. This helps keep the comparisons focused on design choices rather than on differences in predictor aggregation.

Several ablation tables are identified in the paper, while the accompanying prose supplies the direction of their findings. Where that discussion does not state individual numerical entries, the supported conclusion is qualitative. The evidence still distinguishes useful mechanisms, but it should not be turned into invented effect sizes.

#### Image initialization supplies a major advantage

The first comparison places ImageNet-initialized AST against randomly initialized AST. Initialization from images performs better on both balanced and full AudioSet. The benefit is more pronounced when the destination audio training set is smaller.

This supports the practical motivation for cross-modal transfer. A spectrogram and an image differ in meaning, yet the learned parameters from image training provide a useful starting point for audio classification. The advantage is not limited to the smallest audio setting, since the full-set comparison also benefits.

The experiment does not isolate exactly which visual properties account for the transfer. Reused parameters span the patch projection, positional representations, and encoder. A result favoring the combined initialization establishes its usefulness, while leaving open how much each internal source of learned information contributes.

The smaller-data result is especially important for interpreting AST’s competitiveness. The paper does not solve the Transformer’s data requirement by showing that random initialization is equally effective with little audio. It addresses that requirement through an effective source of prior learning.

#### The choice of image weights matters

The authors compare initialization from ViT-Base, ViT-Large, and DeiT variants, making the architectural adjustments needed to load the respective parameters. Their strongest audio result comes from the distilled DeiT initialization that also performs best on ImageNet in the comparison.

This is evidence that initialization quality matters beyond the simple presence or absence of pretraining. Different image-trained parameter sets lead to different destination performance. Using a compatible architecture is necessary for transfer, but it does not make all compatible checkpoints equally useful.

The observation does not establish that ImageNet accuracy will always predict audio accuracy. The compared systems differ in their training conditions and architecture-related properties. The paper reports an ordering within this set, instead of a controlled law connecting image performance to every future audio task.

Distillation also complicates the broadest reading of convolution-free. The preferred image initialization has learned through a procedure that includes CNN knowledge. The inference architecture on audio remains attention-based, while its training ancestry contains information transferred through another architecture.

#### Learned positions contain useful transferable information

The positional ablation compares adapting pretrained positions with replacing them randomly. Random positional initialization does not erase the entire benefit of the image-trained system: it still outperforms fully random initialization. Other transferred parameters therefore remain useful.

However, replacing positions reduces performance relative to the proposed adaptation. The result supports the decision to preserve and resize learned positional information. Spatial arrangement is part of the transferable representation, rather than an irrelevant accessory to the encoder weights.

Bilinear and nearest-neighbor interpolation perform similarly in the reported comparison. The paper’s discussion does not identify a substantial difference between them. The stronger conclusion concerns retaining pretrained spatial information at all; the precise interpolation choice appears less decisive within the tested alternatives.

This distinction is useful for reproduction. An implementer should not assume that random positions are interchangeable with transferred ones, but the paper gives less reason to treat the preferred interpolation rule as the unique workable option. The evidence separates a consequential design decision from a smaller implementation variation.

#### Overlap improves recognition while lengthening the sequence

Increasing patch overlap improves performance in the balanced and full AudioSet comparisons. Overlap gives neighboring tokens shared input content and changes the local views available to the encoder. The findings support its inclusion in the preferred configuration.

The authors explicitly pair that benefit with a cost. More overlap produces more tokens, and attention’s computational overhead increases quadratically with sequence length. The preferred patch construction therefore balances recognition performance against a substantial sensitivity to input size.

AST remains stronger than the earlier comparison system even without overlap, according to the paper. This limits an overly narrow explanation of its success. Overlap helps, but the overall result is not dependent on overlapping extraction being the only viable configuration.

The full AudioSet mixed ensemble also uses variation in patch splitting. That is consistent with treating segmentation as a source of complementary predictors. It does not, on its own, show which recordings benefit from which overlap setting; the paper’s evidence concerns aggregate performance.

#### Patch shape interacts with available pretraining

The authors test a temporally ordered alternative to square patches. A 128×2 rectangle spans the full feature dimension while covering a narrow time region. Its sequence can therefore follow time directly, unlike the sequence of square regions distributed across both axes.

The rectangular and square patches have the same stated area of 256. When trained from scratch under the comparison conditions, the rectangular version performs better than the 16×16 square version. This is evidence against treating square patches as inherently ideal for audio.

Yet the preferred practical configuration uses squares because the authors do not have matching image-pretrained weights for the 128×2 representation. The final choice reflects the combined benefit of patch geometry and available initialization. A locally better representation under random training need not produce the strongest complete pipeline.

The paper also finds that smaller patches perform better in its patch-size comparison. These experiments use no overlap. The finding points towards the value of finer input units, while the earlier sequence-length discussion warns that finer segmentation can affect processing cost.

Taken together, the patch studies make AST’s design less arbitrary. They show why the preferred configuration should be understood as a practical compromise grounded in available transfer resources and computational constraints. They do not establish that its square size and overlap are optimal for every audio dataset.

### Limitations

#### Limits the authors explicitly identify

The authors identify training-data demand as a challenge for attention-based architectures. Their response relies on image initialization. AST’s success therefore does not show that a standard Transformer can learn equally well from limited audio without prior training.

They also identify the computational cost of longer patch sequences. Increased overlap improves recognition but raises attention overhead quadratically. This is an explicit limit on the idea that variable duration and flexible segmentation are effortless advantages. The encoder accepts different lengths, but the processing burden changes with them.

The patch-shape analysis exposes a resource constraint in the design search. Rectangular patches perform better in the stated from-scratch comparison, yet suitable image-pretrained parameters are unavailable for that geometry. The chosen square representation is consequently conditioned by what can be transferred, rather than established as the best audio segmentation in isolation.

Finally, the authors qualify their architectural terminology. The patch projection and some encoder projections have convolutional interpretations. Convolution-free refers to replacing the conventional CNN backbone, and should be read with that qualification rather than as an absolute claim about every mathematical operation.

#### Limits visible in the evaluation setup

The benchmarks test classification. They do not establish unrestricted speech transcription, temporal event detection, source separation, audio synthesis, or dialogue capability. Those tasks may use related representations, but success at recording-level label prediction does not demonstrate their outputs.

AudioSet’s labels are associated with clips. The evaluation does not require AST to provide the temporal extent of every event. Though the input retains a time axis, and attention can combine information across it, the reported metric measures label prediction rather than localization.

The same caution applies to explanations. The paper motivates attention through its ability to access global context, but it does not demonstrate that attention weights provide a faithful explanation of each decision. The presence of an attention mechanism and the presence of interpretable reasoning are separate claims.

There is also a distinction between consistent architecture and identical systems. The encoder structure is shared across tasks, while the input arrangement, output labels, initialization history, and training settings differ. The evidence supports reuse of the core architecture. It does not show that a single unchanged trained checkpoint performs every task.

#### The headline figures have different conditions

The strongest AudioSet value is an ensemble result. It should not be presented as the performance of an individual classifier with the same inference requirements as the checkpoint-averaged system. Combining outputs retains multiple predictors, whereas combining checkpoint weights does not enlarge the architecture.

ESC-50’s strongest result uses AudioSet initialization as well as image initialization. Its setting differs from AST-S and from a classifier whose parameters begin randomly. The paper makes the distinction through its additional-audio-data categories, but those categories can be misleading if detached from their definitions.

Speech Commands uses a validation-selected checkpoint. Its result concerns the 35-category task and the specified test split. It does not demonstrate the same accuracy for a larger vocabulary, continuous recordings, or recordings drawn from an untested operating environment.

These are not reasons to dismiss the results. They define what the results measure. A useful comparison preserves the aggregation method, pretraining history, evaluation procedure, and task boundaries alongside the headline metric.

#### Convergence does not settle deployment efficiency

The reported epoch comparison favors AST’s training schedule over the hybrid baseline’s schedule. Epochs, however, are not a direct measurement of elapsed time or hardware cost. The paper’s discussion does not provide enough information to turn that schedule difference into a computed resource saving.

The same issue arises with pretraining. Reusing available image parameters makes destination training practical, but those parameters embody earlier computation. The reported AudioSet training duration does not account for reproducing the image system from the beginning.

Nor does the paper establish the deployment behavior needed for a constrained application. It does not report the latency, memory use, or energy measurements that would decide whether a particular AST configuration suits a small device. Its architectural simplicity and strong recognition results are useful evidence, but they do not replace those measurements.

Ensembles make this distinction especially concrete. Their improved mAP is relevant when recognition quality is the priority. An application that must execute a compact individual predictor needs to evaluate the corresponding individual result and implementation cost.

#### Generalization remains bounded by the tested data

Repeated experiments reduce dependence on a particular random seed, and the reported standard deviations help characterize that source of variability. They do not measure every possible distribution shift or operational failure.

The paper does not establish performance across untested recording conditions, category inventories, or deployment populations. It also does not provide an analysis of [bias, fairness, and safety](https://md.research.elamur.ai/free/en/topics/bias-fairness-safety/). Those questions require evidence beyond aggregate benchmark scores.

The ablations are concentrated mainly on balanced AudioSet. They are informative about the tested design space, but not every ordering is guaranteed to persist on full AudioSet, ESC-50, or Speech Commands. The different value of AudioSet pretraining across the latter tasks is itself a reminder that destination conditions matter.

A careful overall claim is therefore conditional and substantial: under the reported initialization and training procedures, a standard attention-based encoder can replace the conventional CNN backbone and achieve excellent results across the tested audio classification tasks. Broader claims about universal superiority, complete interpretability, or deployment economy remain outside the evidence.

### What came after

The later citation record places AST alongside research on audio representation, cross-modal learning, broader sequence architectures, and systems that connect perception with language or action. A citation establishes that a later work references AST. It does not by itself establish that the later system uses AST’s exact architecture, repeats its transfer procedure, or improves its benchmark results.

The closest explicitly named continuation is [SSAST: Self-Supervised Audio Spectrogram Transformer](https://md.research.elamur.ai/free/en/papers/gong-2022-ssast-self-supervised-audio-spectrogram/). Its title carries the audio spectrogram Transformer architecture into a self-supervised setting. That is a direct thematic development of AST’s central representational choice: treat a spectrogram as structured input for a Transformer. The citation entry does not specify the self-supervised objective, its experimental conditions, or its numerical outcomes, so those details cannot be assigned to the relationship.

[ImageBind](https://md.research.elamur.ai/free/en/papers/girdhar-2023-imagebind-one-embedding-space-bind/) describes a shared embedding space connecting different forms of input. AST is relevant to that broader direction because it already demonstrates a useful bridge between image-trained computation and audio spectrogram processing. The distinction is important: AST transfers initialization into an audio classifier, whereas the later title concerns binding representations in a common space. The citation establishes contact between these lines of work without establishing which AST components the later system adopts.

[InternVideo2](https://md.research.elamur.ai/free/en/papers/wang-2024-internvideo2-scaling-foundation-models/) addresses scaled foundations for multimodal video understanding. Its citation places AST in a context where audio-related representation can be considered alongside other perceptual information. AST’s own evidence remains confined to audio classification; the later entry does not describe the mechanism connecting its architecture to video understanding. It therefore supports a broader research connection instead of a specific claim of architectural inheritance.

[GAMA](https://md.research.elamur.ai/free/en/papers/ghosh-2024-gama-large-audio-language-model/) moves the named focus toward audio understanding and complex reasoning through an audio-language system. This direction differs from AST’s output interface. AST predicts categories, while the later title identifies a system concerned with audio and language. The available citation information does not establish how an audio representation is connected to language, whether AST is used as an encoder, or which reasoning abilities are experimentally demonstrated.

[Revisiting Audio-language Pretraining](https://md.research.elamur.ai/free/en/papers/tseng-2026-revisiting-audio-language-pretraining-learning/) names general-purpose audio representation as its goal. That makes it relevant to the question AST leaves open about the breadth of learned audio features. AST demonstrates successful adaptation across classification tasks, but does not itself train through an audio-language objective. The later citation marks continued interest in how audio representations should be learned, without supplying enough detail to compare training objectives or performance.

[Distilling an End-to-End Voice Assistant](https://md.research.elamur.ai/free/en/papers/held-2025-distilling-end-end-voice-assistant/) concerns a voice assistant trained without instruction-training data, as indicated by its title. The connection illustrates how far later system goals can extend beyond command classification. AST’s Speech Commands experiment is a bounded category-prediction task; it does not provide evidence for conversational assistance. The citation entry does not identify whether AST contributes representations, serves as background, or appears in another role within the later work.

The remaining citations show an even wider disciplinary reach. [FAST](https://md.research.elamur.ai/free/en/papers/pertsch-2025-fast-efficient-action-tokenization-vision/) concerns efficient action tokenization for vision-language-action systems. AST also makes segmentation central, but its tokens represent spectrogram regions rather than actions. The citation alone does not justify claiming that FAST derives its tokenization method from AST. It establishes a connection in the scholarly record while leaving the technical relationship unspecified.

[Transformers for Tabular Data Representation](https://md.research.elamur.ai/free/en/papers/badaro-2023-transformers-tabular-data-representation-survey/) is a survey of Transformer applications to tabular inputs. AST provides an example of adapting a standard attention architecture to a structured format outside ordinary text. The survey citation is consistent with that broad interest in representational interfaces, but its entry does not identify a particular taxonomy, conclusion, or comparison involving AST.

[Hierarchically Gated Recurrent Neural Network](https://md.research.elamur.ai/free/en/papers/qin-2023-hierarchically-gated-recurrent-neural-network/) concerns sequence processing through a recurrent architecture. Its presence cautions against treating all later citations as adoption of attention. A work can reference AST while pursuing a different computational design. Without further methodological information, the relationship cannot be narrowed to an implementation choice, baseline comparison, or direct extension.

Finally, [The Rise and Potential of Large Language Model Based Agents](https://md.research.elamur.ai/free/en/papers/xi-2023-rise-potential-large-language/) places the citation in a survey concerned with agents. That context reaches beyond the classification question AST experimentally addresses. The citation does not turn AST into an agent architecture or establish an agent capability; it shows that its contribution became relevant to a broader discussion.

Across these later works, the most defensible continuing idea is the separation of a structured input interface from a reusable sequence-processing core. AST makes that separation concrete for sound and shows how prior image learning can support it. The citation list documents continued attention to audio representations, shared spaces, and broader perceptual systems, while the exact technical contribution of AST to each later system must remain limited to what its citation entry actually establishes.

## Cite

Cite as Yuan Gong, Yu-An Chung and James Glass. 2021. AST: Audio Spectrogram Transformer. Interspeech (USB).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.21437/interspeech.2021-698](https://doi.org/10.21437/interspeech.2021-698)

```bibtex
@inproceedings{gong2021ast,
  title = {{AST: Audio Spectrogram Transformer}},
  author = {Yuan Gong, Yu-An Chung and James Glass},
  booktitle = {Interspeech (USB)},
  year = {2021},
  doi = {10.21437/interspeech.2021-698},
  eprint = {2104.01778},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.21437/interspeech.2021-698}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
