---
title: "SSAST: Self-Supervised Audio Spectrogram Transformer (2022)"
description: "How SSAST learns from unlabeled audio through masked spectrogram patches, what its experiments establish, and where its advantages stop."
canonical: "https://research.elamur.ai/free/en/papers/gong-2022-ssast-self-supervised-audio-spectrogram/"
---
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-2022-ssast-self-supervised-audio-spectrogram/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / SSAST: Self-Supervised Audio Spectrogram Transformer

# SSAST: Self-Supervised Audio Spectrogram Transformer

Paper · 2022 · Yuan Gong, Cheng-I Lai, Yu-An Chung et al.

**Authors:** [Yuan Gong](https://md.research.elamur.ai/free/en/authors/yuan-gong/), Cheng-I Lai, [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:** 2022 · **Venue:** Proceedings of the AAAI Conference on Artificial Intelligence · **Licence:** [CC BY 4.0 (arXiv)](https://creativecommons.org/licenses/by/4.0/)

[**284** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W3206996142|W6929264858) · [Proceedings of the AAAI Conference on Artificial Intelligence](https://openalex.org/S4210191458) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/2110.09784)
- [DOI 10.1609/aaai.v36i10.21315](https://doi.org/10.1609/aaai.v36i10.21315)
- [arXiv 2110.09784](https://arxiv.org/abs/2110.09784)
- [OpenAlex](https://openalex.org/W3206996142)

Citations: OpenAlex, 2026-10-14.

## Deep dive: SSAST: Self-Supervised Audio Spectrogram Transformer

How SSAST learns from unlabeled audio through masked spectrogram patches, what its experiments establish, and where its advantages stop. · about 34 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

An audio classifier can have a capable architecture and still learn poorly when labeled recordings are scarce. SSAST addresses that problem for the Audio Spectrogram Transformer, or AST: a system that treats a time–frequency representation of sound as a sequence of small regions and processes them with a [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/). Earlier AST results depended heavily on supervised pretraining, including training on labeled images. That route supplied a useful starting point, but required an expensive training procedure and tied audio processing to architectural choices inherited from vision. SSAST asks whether audio itself can provide the preliminary learning signal, without requiring labels during that stage.

The proposed method, masked spectrogram patch modeling, hides regions of an audio spectrogram and asks the network to solve complementary tasks. It must identify which original region belongs at each hidden location, choosing among the regions hidden within that recording. It must also reconstruct the numerical contents of the missing region. The identification task encourages contextual discrimination; reconstruction requires a prediction of the underlying acoustic features. Because a region can cover a limited frequency range as well as a limited time interval, the task can draw on relationships across both dimensions. The authors pretrain using a mixture of AudioSet recordings and Librispeech speech, withholding their labels.

The resulting system improves over AST trained without pretraining across all 6 downstream benchmarks. These cover environmental sound classification, keyword recognition, speaker identification, and speech emotion recognition. The authors report an average improvement of 60.9%. On AudioSet-20K, the reported mean average precision is 0.310 for SSAST, compared with 0.148 for AST-Scratch. Within the principal comparison against supervised AST alternatives, SSAST obtains the strongest results on every benchmark except AudioSet-20K. That exception matters: supervised ImageNet pretraining with knowledge distillation remains strongest there. In separate speech comparisons, wav2vec 2.0 and HuBERT can match or exceed SSAST even while their representations are kept frozen.

The controlled experiments make the contribution more specific than a general endorsement of self-supervision. Combining identification and reconstruction works better than either objective alone. Combining speech recordings with broader audio recordings transfers better than pretraining on either source separately. Pretraining also changes the usefulness of architectural capacity and input shape: larger AST variants benefit more reliably, while square spectrogram regions favor the audio event tasks and narrow, full-frequency regions favor the speech tasks. SSAST therefore establishes a practical alternative to supervised initialization for audio classification, while leaving the best input geometry, the effects of greater computing resources, and broader speech capabilities unresolved.

### Ideas worth borrowing

Match the learning unit to the signal. SSAST does not assume that the natural prediction unit must be an entire acoustic frame. A spectrogram contains structure across frequency as well as time, so hiding a bounded region makes both kinds of context available. The reusable idea is to inspect the dimensions of the input before deciding what to predict. In another structured representation, a useful missing unit may be a local region rather than a whole row, a whole example, or the next item in a sequence. SSAST’s shape comparisons also provide a caution: the most useful unit can depend on the downstream task.

Combine choosing with reconstructing. A system that selects the correct missing region and a system that predicts its feature values face related but different demands. Selection asks whether the prediction distinguishes the right candidate from plausible alternatives. Reconstruction asks how closely the prediction matches the actual input. SSAST’s objective ablation supports using both demands together in this setting. Elsewhere, this suggests testing whether a representation benefits from a discriminative constraint alongside a fidelity constraint, rather than assuming that successful reconstruction automatically produces the most useful distinctions.

Make shortcuts part of the design. The authors remove patch overlap during pretraining because shared edges could reveal hidden content too directly. They also choose competing patches from the same recording, making recording-wide characteristics less useful for selecting the answer. These choices illustrate a broader experimental habit: examine how a system could solve the exercise without acquiring the intended capability. A prediction task can look difficult while still admitting a cheap cue. Changing what is hidden, what remains visible, or where alternatives come from may matter as much as changing the network.

Mix sources according to missing coverage. AudioSet includes speech, but the authors argue that its recordings may contain only brief speech segments among other sounds. They therefore add Librispeech to improve sustained speech coverage. The useful principle is to distinguish the presence of a category from adequate exposure to its structure. A heterogeneous collection may technically contain the target phenomenon while presenting it too sparsely or inconsistently for good pretraining. SSAST’s data ablations support deliberately combining complementary sources, although they do not establish that every mixture will help.

Keep aggregation consistent with supervision. Original AST uses a dedicated classification token whose representation receives the supervised training signal. SSAST instead trains representations at individual patch locations, then averages those representations to obtain a clip-level vector. This is a transferable design question: where did the training objective actually encourage information to accumulate? Choosing an output representation because it is conventional can be less justified than choosing it because the learning procedure trained it to serve that role.

Evaluate the exercise through transfer. SSAST measures how well the hidden-region tasks are solved, but also checks whether their progress corresponds to better downstream classification. It varies masking difficulty and evaluates intermediate checkpoints after task-specific adaptation. This separates success at the constructed exercise from usefulness beyond it. For another self-supervised system, the same distinction is essential: an objective is a means of shaping representations, and its value depends on what those representations enable under the intended evaluation conditions.

### How Mova uses it

For Mova, the small transparent language system implemented in Rust, SSAST offers a set of research ideas rather than evidence of an existing audio capability. The paper does not describe a Mova integration. It therefore gives no basis for claiming that Mova already processes spectrograms, performs audio pretraining, or contains an SSAST component. Any connection is a proposed use of the paper’s reasoning, with the implementation and its benefits still to be established.

The most direct connection is the pairing of identification and reconstruction. A possible Mova experiment could hide part of a structured linguistic input, ask which withheld element fits the remaining context, and separately ask the system to recover its contents. The questions would need to remain distinct in the evaluation. Choosing correctly among supplied alternatives would show contextual discrimination under that candidate set. Recovering the hidden content would test a different capability. SSAST motivates examining whether these signals help each other; it does not show that their combination would improve a small language system.

The treatment of shortcuts is especially relevant to transparency. A Mova experiment inspired by SSAST could make the visible context, the missing unit, and the competing answers explicit. That would make it easier to inspect whether the exercise tests the intended relation or rewards a superficial cue. The audio paper’s exact precautions would not transfer mechanically: overlapping spectrogram edges have no automatic counterpart in linguistic analysis. What transfers is the requirement to identify the task’s easy escape routes and test whether the system depends on them.

The data-mixture result also suggests a concrete question for Mova. If a future training exercise aims to support several linguistic functions, does its source material expose each function adequately? SSAST shows why merely finding some speech in a broad audio collection may be insufficient. A comparable Mova investigation would examine coverage of the intended linguistic phenomena, then compare separate sources with their combination. Such a study would need its own controlled results; the audio findings cannot establish a benefit for language processing.

Finally, SSAST encourages keeping the measurement close to the intended use. An internal missing-content score would be useful for monitoring a proposed Mova exercise, but it would not by itself establish better linguistic analysis. The downstream behavior would still need evaluation. This is the most defensible connection: SSAST provides an experimental pattern for testing learning objectives, input units, and source coverage, while leaving Mova’s actual design choices open.

### The problem and its context

#### A strong architecture with a costly starting point

The paper begins with a tension in attention-based audio classification. Pure attention architectures had become competitive in vision, and AST had extended a similar approach to sound. Their flexibility came with a data requirement. Compared with convolutional systems, these architectures encode fewer assumptions about which nearby input elements belong together or how a shifted pattern should be treated. More of that structure must be learned from examples.

The authors describe this as a difference in inductive bias: the assumptions an architecture brings before training. A convolutional network builds in local processing and a particular treatment of translations. A pure Transformer has less of that built-in organization. That does not mean it cannot learn local relationships. It means the architecture relies more heavily on data to discover which relationships matter.

The background comes from the progression from [Attention Is All You Need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/) to vision systems such as [An Image is Worth 16x16 Words](https://md.research.elamur.ai/free/en/papers/dosovitskiy-2020-image-worth-16x16-words-transformers/). The paper presents these as evidence that attention can serve as the main computational mechanism outside language processing. AST then applies a related design to spectrograms, where the input represents how sound varies across time and frequency.

The practical obstacle is not simply that AST needs labels for its final classification task. Its strongest earlier results depend on learning useful parameters before that task begins. When trained directly from random initialization on the available labeled audio, AST performs substantially worse. The original approach addresses this through supervised ImageNet pretraining, transferring parameters learned from visual classification into audio classification.

That transfer is useful but introduces dependencies. The authors describe ImageNet pretraining as complicated and costly. It also encourages matching the visual architecture’s patch geometry, because the pretrained parameters were learned for that arrangement. An audio representation may have good reasons to use another shape, yet the convenience of transferring visual weights can constrain the choice.

SSAST therefore targets the preliminary learning stage. It asks whether abundant unlabeled recordings can supply a useful starting point for the same general architecture. The objective is to reduce reliance on labeled pretraining data, not to remove labels from every part of the classification pipeline. The downstream tasks still provide supervised training signals.

#### Why predict a region of a spectrogram?

Earlier speech self-supervision supplies the immediate methodological context. The paper discusses approaches that predict acoustic frames at past, present, or future positions, using convolutional, recurrent, or mixed convolution-and-attention architectures. Autoregressive predictive coding represents a generative direction; wav2vec represents a discriminative direction. Both inform the SSAST design, but the authors question whether a frame-centered prediction task fully exploits a spectrogram’s organization.

A full frame spans the frequency axis at a particular temporal location. Hiding it makes time the obvious dimension along which context is supplied. A smaller spectrogram region can instead leave visible evidence at neighboring frequencies as well as neighboring times. Recovering that region can therefore require relationships within the frequency structure, rather than only relationships between successive frames.

This distinction is a motivation, not a guarantee about internal representations. A frame-based learner is not proved incapable of learning frequency relationships. The paper’s more defensible claim is that patch prediction makes those relationships directly relevant to the constructed task. Its experiments then ask whether that choice improves downstream behavior.

Patch-based self-supervision already had precedents in vision. The related-work discussion includes jigsaw-style prediction, image embedding approaches, and masked image pretraining. It also cites studies of self-supervised visual Transformers, including [Emerging Properties in Self-Supervised Vision Transformers](https://md.research.elamur.ai/free/en/papers/caron-2021-emerging-properties-self-supervised-vision/). SSAST’s contribution is situated in audio: adapting a patch-centered objective to spectrograms and combining discriminative and generative training for AST.

The authors present their patch-based audio framework and self-supervised AST as first contributions of their kind to their knowledge. That qualification should remain attached to the novelty claim. The paper also acknowledges earlier audio research using several self-supervised objectives. Its contribution is the particular combination of input geometry, architecture, training tasks, and evaluation, instead of the invention of learning from unlabeled sound in general.

#### Learning across speech and other sounds

The other contextual problem is domain coverage. A system may learn useful environmental sound distinctions without becoming equally useful for speech. Conversely, a representation developed around speech recordings may not transfer as well to a broad range of acoustic events. The authors note that much earlier work focuses on one side of this division.

Some earlier efforts aimed at more general audio representations, but the paper describes them as pretraining on AudioSet alone. SSAST deliberately adds Librispeech. The reason is not that AudioSet lacks speech entirely. About half of its recordings contain speech, according to the authors, but a clip can contain several sounds and speech can occupy only part of it.

This gives the mixture a specific rationale. AudioSet supplies variety across acoustic events; Librispeech supplies sustained spoken material. The authors then evaluate both speech and audio classification tasks, so the intended breadth is tested rather than inferred merely from the training collection’s size.

The resulting research question has several parts. Can missing-region prediction improve AST without labeled pretraining? Do discrimination and reconstruction contribute complementary information? Does a speech-and-audio mixture transfer more broadly than either source alone? Does removing dependence on visual initialization permit input shapes that better suit different acoustic tasks? The experimental design follows these questions closely.

### The method, step by step

#### Turn a waveform into a structured input

SSAST begins with a waveform and converts it into log Mel filterbank features. This representation organizes acoustic information by frequency and time. Instead of asking the Transformer to process raw waveform samples, the method gives it a spectrogram whose local regions can be treated as input units.

The feature extractor uses 128 Mel dimensions. Its analysis window is a 25ms Hanning window, advanced every 10ms. For an input lasting t seconds, the architecture discussion describes a spectrogram with dimensions 128 × 100t. Here, t denotes duration; the other axis indexes the frequency features.

During pretraining, the recordings are cut or padded to 10 seconds. The masking procedure describes the resulting input as a 1024 × 128 spectrogram. This fixed arrangement supplies a consistent grid for learning the hidden-region tasks. The approach does not require downstream recordings to have the same duration.

The standard patch configuration divides the spectrogram into nonoverlapping 16 × 16 regions. The pretraining grid contains 512 such regions, arranged as 8 positions along frequency and 64 along time. Each region is flattened before a learned linear projection maps it into an embedding with 768 dimensions.

It helps to distinguish the objects involved. A patch is a small block of original spectrogram values. Its embedding is the learned vector supplied to the Transformer. Its output representation is the vector produced after the Transformer has combined information across the input sequence. Reconstruction ultimately targets the original patch values, rather than merely reproducing its initial embedding.

From unlabeled recordings to audio classification The steps in order.

#### Preserve location while allowing contextual interaction

Flattening the grid into a sequence does not make its positions self-explanatory. The Transformer needs information about where each patch belongs. SSAST therefore adds a trainable positional vector to each patch embedding. The positional vectors also have 768 dimensions, allowing them to be added directly to the content embeddings.

Position matters in both directions. Two patches can be close in time but far apart in frequency, or close in frequency but separated in time. The input units do not form an ordinary sequence of whole acoustic frames. Their spatial arrangement must remain available after the grid has been converted into a list.

The default Transformer encoder has 12 layers and 12 attention heads, with an embedding size of 768. SSAST retains this architecture to support comparison with original AST. The paper is therefore mainly testing a new pretraining procedure around a familiar encoder, rather than attributing all improvements to a newly enlarged backbone.

Only the encoder is needed for the classification pipeline. It produces a contextual vector at every patch location. The paper denotes these outputs by O, with Oᵢ referring to the output at a particular location i. During self-supervised learning, the outputs at masked positions feed the pretraining heads.

The system retains information about masked locations even though their acoustic contents are removed. Their learned mask embeddings indicate absence; their positional embeddings indicate where the missing content belongs. The prediction must be made from that location together with the remaining context.

#### Hide content without revealing its edges

The original AST divides spectrograms into overlapping patches. For classification, overlap can help. For hidden-region prediction, however, overlap creates a possible shortcut: part of a supposedly missing patch may remain visible inside its neighbors.

SSAST removes overlap during pretraining. This makes the hidden content less directly recoverable from duplicated boundary values. The aim is to require contextual inference rather than a solution based on shared edges.

After pretraining, overlap returns. During downstream adaptation and inference, square patches overlap by 6, following the original AST arrangement. The different handling of overlap reflects the different purpose of each stage. A useful classification input can contain redundancy that would undermine a missing-content learning exercise.

Masking itself occurs at the embedding level. The authors first retain the original patch values as targets. At selected locations, they replace the projected content vector with a learned mask embedding, denoted E_mask. They then add the positional information and run the full sequence through the encoder.

This distinction also separates SSAST’s learning task from simply perturbing an input during classification. The missing patches are explicit prediction targets. The system receives a loss for identifying and reconstructing them, rather than only a final clip label.

#### Vary how much neighboring evidence disappears

SSAST does not always hide isolated patches. It groups selected patches into spatial clusters, controlled by a factor C. Starting from a randomly selected location, the masking procedure covers a square whose side length is determined by C.

The paper’s example uses C = 3. This gives a cluster containing 9 patches and covering a 48 × 48 spectrogram region. The example makes the geometry concrete: cluster size describes how the hidden units group together, not just how many are hidden in total.

A small cluster leaves nearby visible evidence. A larger cluster removes more of the immediate neighborhood, so a successful prediction must rely on information from farther away. The authors use varying cluster sizes to expose the encoder to both kinds of demand.

```
C ∼ [3,5]
```

C is the factor governing the side length of a masking cluster. The notation indicates that it is selected randomly within the stated range during pretraining. The paper uses this variation to avoid requiring only local completion or only broader contextual prediction.

The total count of hidden patches is a separate setting, denoted N. The experiments examine 100, 250, and 400 masked patches. C describes their spatial grouping; N describes the prediction workload and the amount of content removed. Keeping those roles separate is necessary for understanding the ablations.

#### Predict identity and acoustic content

At each hidden position, the encoder output is sent to separate pretraining heads. The classification head produces cᵢ, a vector used to score candidate patches. The reconstruction head produces rᵢ, a prediction of the patch’s original spectrogram values.

Both heads are multilayer perceptrons with two layers. Each maps the 768-dimensional encoder output to 256 dimensions, matching the flattened target patch. The heads therefore share the same input representation while imposing different requirements on it.

The discriminative task asks which hidden patch belongs at a particular hidden position. The candidates are the patches masked within that same spectrogram. It is not a classification task over sound labels such as a keyword or an environmental event. The correct answer is a piece of the current recording.

The loss uses InfoNCE, associated in the paper with [Representation Learning with Contrastive Predictive Coding](https://md.research.elamur.ai/free/en/papers/oord-2018-representation-learning-contrastive-predictive-coding/). It rewards the score assigned to the matching patch relative to the scores assigned to the other masked candidates.

```
L_d = −(1/N) Σᵢ₌₁ᴺ log[exp(cᵢᵀxᵢ) / Σⱼ₌₁ᴺ exp(cᵢᵀxⱼ)]
```

L_d denotes the discriminative loss, and N is the masked-patch count. The vector xᵢ contains the original values of the patch belonging at masked position i. The classification head’s output there is cᵢ. The superscript T indicates a transpose, so cᵢᵀxⱼ is a dot-product score between the prediction at position i and candidate patch j.

The exponential turns each score into a positive quantity. The denominator adds those quantities across the masked candidates, while the numerator uses the matching candidate. The logarithm and leading minus sign turn a stronger relative match into a smaller loss. Averaging across i makes every masked position contribute to the training objective.

The reconstruction task uses mean squared error. It compares the predicted acoustic contents with the original patch rather than asking only which candidate receives the highest score.

```
L_g = (1/N) Σᵢ₌₁ᴺ (rᵢ − xᵢ)²
```

L_g is the generative loss. The reconstruction vector rᵢ is compared with target patch xᵢ, and the squared error penalizes mismatches in their values. N again denotes how many positions are masked. This term encourages fidelity to the input features, supplying a different constraint from relative candidate identification.

The overall objective combines the losses with a weighting factor.

```
L = L_d + λL_g
```

L is the total pretraining loss, L_d is the identification term, and L_g is the reconstruction term. The coefficient λ controls the reconstruction contribution. The authors set λ = 10 in their experiments. They then update the encoder and associated training components to minimize this combined objective.

The identification head’s name can otherwise be misleading. It does not produce the final downstream class label, and its 256-dimensional output is not a fixed set of audio categories. It produces a prediction vector whose compatibility with the current hidden patches defines the candidate-selection task.

#### Choose difficult alternatives within each recording

Using candidates from the same spectrogram is a deliberate restriction. If the alternatives came from unrelated recordings, recording-wide cues might help distinguish them without locating the correct local content. Within a recording, those broad characteristics are less useful for separating the candidates.

The authors specifically mention recording environment as a potentially trivial cue. Requiring the system to choose among regions that share that environment raises the demand for more local or contextual distinctions. It does not prove that every shortcut disappears, but it addresses a clear one.

This candidate construction also avoids maintaining a memory bank of patches drawn from other spectrograms. The authors describe that as reducing computational demands and weakening dependence on mini-batch size. The candidates needed for the loss are already available within the current example.

The setting remains a constructed retrieval problem. Solving it means distinguishing regions under that candidate set, with the surrounding spectrogram visible. It should not be confused with recognizing an arbitrary real-world sound or producing an unrestricted acoustic reconstruction.

#### Pretrain on complementary recordings

AudioSet-2M provides the broad audio source. The paper describes it as containing 2 million clips of 10 seconds, organized around 527 sound classes. The recordings come from YouTube and include varied acoustic material, such as music, human activity, animals, and environmental sounds. Their class labels are not used for SSAST pretraining.

Librispeech supplies the speech source. The authors use its 960-hour training collection, comprising English audiobook speech read by over 1,000 speakers. The role of this source is to strengthen speech exposure rather than provide transcriptions as training targets.

After preparing fixed-duration inputs, the authors use 1,953k AudioSet examples and 281k Librispeech examples. They state a combined collection of 2,234k examples. The sources are mixed and shuffled during pretraining.

The optimization procedure uses [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/), a batch size of 24, and an initial learning rate of 1e-4. If validation performance on the pretraining tasks fails to improve for 8k iterations, the learning rate is halved. Training continues for up to 800k iterations, described as roughly 8.5 epochs.

Pretraining reportedly takes approximately 10 days using four NVIDIA GPUs, either GTX Titan X models or GTX Titan X Pascal models. These details qualify the accessibility of the approach: avoiding labeled pretraining does not make pretraining computationally negligible. The paper also identifies an official code repository.

#### Adapt the encoder to labeled classification

For downstream [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/), SSAST averages the patch output representations to produce a clip-level vector. A linear classifier then maps that vector to the required labels. Every layer remains trainable; the encoder is not frozen in the main downstream experiments.

Mean pooling follows the location of the pretraining signal. Each patch output has been trained to support the missing-region tasks. The original supervised AST instead uses a dedicated [CLS] token, whose output receives the clip-level training signal. The comparisons preserve that distinction: supervised baselines use their classification-token representation, while SSAST uses the average of patch representations.

Input duration can change between pretraining and downstream use. AST adjusts its learned positional embeddings through interpolation or truncation to match the new length. This lets a representation learned from 10-second pretraining inputs be adapted to classification datasets with other recording durations.

The method therefore has a clear division of labor. Unlabeled recordings shape the encoder through local prediction tasks. Labeled downstream data then adjusts the entire system for a particular classification problem. The paper’s results concern the effectiveness of that complete procedure.

### Experiments and results

#### What the benchmarks measure

The evaluation covers 6 benchmarks, spanning audio events and several aspects of speech. The authors report mean average precision, abbreviated mAP, for AudioSet-20K. The remaining tasks use accuracy. This distinction prevents treating all reported scores as interchangeable: AudioSet’s multi-label ranking problem differs from choosing a single class.

AudioSet-20K uses the balanced AudioSet training subset, containing 20,785 clips. Its evaluation set is separate from both that subset and the larger AudioSet pretraining collection. Multiple sound labels can apply to a recording, so the metric evaluates how well the system ranks the relevant labels rather than requiring one exclusive answer.

ESC-50 tests environmental sound classification with a single label per recording. It contains 2,000 recordings, each lasting 5 seconds, distributed across 50 classes. The authors follow 5-fold cross-validation and report accuracy. This supplies an audio event test outside the AudioSet evaluation arrangement, with a much smaller labeled collection.

Speech Commands V2 evaluates keyword spotting. It contains 105,829 recordings of 1 second, covering 35 commands. The authors specify 84,843 training examples, 9,981 validation examples, and 11,005 test examples. Fine-tuning uses the training split; checkpoint selection uses validation; the reported classification accuracy comes from the test split.

Speech Commands V1 provides another keyword evaluation. Its label scheme contains 10 keyword classes, a silence class, and an unknown category intended to account for false positives. The paper follows the SUPERB evaluation framework and reports test accuracy. The distinct label setup is one reason its results should not be collapsed into those of Speech Commands V2.

VoxCeleb 1 tests speaker identification. Speech from 1,251 speakers totals 352 hours in the collection. The task assigns an utterance to a speaker from the pre-defined set shared by training and testing. The authors again use SUPERB and report test accuracy.

IEMOCAP tests emotion classification from speech. The paper describes about 12 hours of recordings from 10 speakers. Its evaluation retains the roughly balanced categories neutral, happy, sad, and angry, following the conventional protocol used through SUPERB. The reported result is mean accuracy under 5-fold cross-validation.

Together, these tasks ask whether the pretrained representation supports distinctions in sound events, spoken content, speaker identity, and emotion. That breadth is meaningful, but all remain classification evaluations. They do not measure every capability that might be associated with [speech processing](https://md.research.elamur.ai/free/en/topics/speech/).

#### The supervised and unpretrained comparisons

AST-Scratch provides the direct test of whether pretraining matters. It uses the AST architecture with initialization but no preliminary training. The appendix states that these systems receive additional training until convergence, addressing the possibility that a slower-learning baseline would otherwise be stopped prematurely.

AST-IM+KD supplies the ImageNet-based supervised comparison. It uses labeled ImageNet pretraining together with knowledge distillation from a convolutional teacher. The paper connects that training strategy to [Training data-efficient image transformers](https://md.research.elamur.ai/free/en/papers/touvron-2020-training-data-efficient-image-transformers/). This is a strong alternative, instead of a deliberately weak initialization scheme.

AST-AudioSet uses supervised pretraining on AudioSet-2M. Its labels directly describe audio events, making it especially relevant for downstream sound classification. Comparing it with SSAST also helps examine whether unlabeled learning can transfer differently from pretraining organized around the source dataset’s categories.

The principal SSAST variants differ in the count of hidden patches used during pretraining: SSAST 250 and SSAST 400. These configurations share the mixed AudioSet-and-Librispeech source and the combined objective. The masking-count ablation later examines their task-dependent behavior more closely.

For AudioSet-20K, ESC-50, and Speech Commands V2, the authors preserve the original AST training and evaluation arrangement. They use mixup together with [SpecAugment](https://md.research.elamur.ai/free/en/papers/park-2019-specaugment-simple-data-augmentation-method/), the spectrogram augmentation method cited in the paper. This continuity makes the comparison more informative about pretraining, since the downstream recipe is not independently redesigned to favor SSAST.

The stated initial learning rates are 5e-5 for AudioSet-20K, 1e-4 for ESC-50, and 2.5e-4 for Speech Commands V2. Their respective training durations are 25, 50, and 30 epochs. These are task-specific settings; they are not a single shared optimization schedule.

For Speech Commands V1 and VoxCeleb 1, the learning-rate search spans 1e-5 to 1e-3 for SSAST and the baselines. Training runs for up to 20k iterations on the former and 40k on the latter. IEMOCAP uses a fixed learning rate of 1e-4 with a maximum of 10k iterations. These experiments follow SUPERB instead of the original AST evaluation recipe.

#### The central transfer result

The paper reports that self-supervised pretraining improves every downstream task relative to AST-Scratch. Its headline average improvement is 60.9%. That is the authors’ aggregate claim across the benchmark suite, not an accuracy value for a particular task.

The clearest numerical example in the discussion is AudioSet-20K. SSAST reaches 0.310 mAP, while AST-Scratch reaches 0.148 mAP. The result supports a large practical role for initialization: the same general architecture becomes much more effective when the preliminary learning stage uses unlabeled audio.

AudioSet-20K evaluation performance by pretraining setting Unlabeled pretraining improves audio event classification, including when it uses only the downstream training recordings.

**The numbers**

| System or setting | mAP |
| --- | --- |
| AST-Scratch | 0.148 |
| SSAST pretrained on AudioSet-20K | 0.257 |
| SSAST with mixed-source pretraining (this paper) | 0.310 |

The restricted-data SSAST setting in the chart pretrains and fine-tunes on the same AudioSet-20K training collection. Its 0.257 mAP shows that the procedure can help even without adding the large pretraining sources. This is evidence about extracting additional learning value from the available training recordings, while keeping the AudioSet evaluation set separate.

The learning-curve analysis reinforces the initialization interpretation. On AudioSet-20K, SSAST learns more effectively and reaches a better result than AST-Scratch. The authors report that trying other learning rates or extending training does not remove the unpretrained baseline’s disadvantage. The improvement is therefore not explained simply by giving the unpretrained system too little time under the original schedule.

Against the supervised AST alternatives, the reported outcome is favorable but qualified. SSAST obtains the strongest results across the principal comparison except on AudioSet-20K. There, ImageNet supervision with distillation remains best. The paper therefore supports replacing supervised pretraining in many of its evaluated settings, instead of claiming that the self-supervised procedure wins universally.

The supervised AudioSet initialization is particularly strong on audio event tasks but weaker on speech tasks. The authors interpret this as a limitation in transfer from its supervised categories. ImageNet pretraining, despite coming from another modality, performs broadly well. SSAST’s results are interesting in part because the competing transfer routes are both credible.

#### Fine-tuning can affect how smaller systems use pretraining

A separate numerical comparison concerns the small SSAST architecture on AudioSet-20K. Using a learning rate of 5e-5 throughout gives 0.272 mAP. Giving the final classifier a learning rate of 5e-3 while retaining 5e-5 elsewhere gives 0.308 mAP.

Small SSAST fine-tuning on AudioSet-20K A faster learning rate for the final classifier helps this pretrained setting.

**The numbers**

| System or setting | mAP |
| --- | --- |
| Learning rate 5e-5 throughout | 0.272 |
| Classifier 5e-3, remaining layers 5e-5 (this paper) | 0.308 |

This comparison concerns optimization after pretraining. It does not establish that the missing-patch objective itself changed. A pretrained encoder and a newly adapted output layer may benefit from different update rates, and the reported setting illustrates that possibility.

The authors restrict the finding. They observe the benefit for tiny and small self-supervised architectures on some downstream tasks, and do not find the same improvement for systems trained without pretraining. The result should therefore be treated as a conditional fine-tuning observation rather than a universal recipe.

#### How SSAST compares with speech-focused systems

The paper separately evaluates SSAST against established speech self-supervision approaches. It distinguishes a square-patch variant pretrained only on Librispeech, another square-patch variant using the mixed source, and a frame-based variant using the mixed source. The Librispeech-only configuration is important because it limits one source of difference from speech-focused baselines.

Against autoregressive predictive coding and wav2vec 1.0, SSAST matches or exceeds the reported results on the speech comparisons. The authors evaluate those baselines both with frozen representations and with fine-tuning, then report their better setting. This gives the comparison more substance than choosing whichever baseline adaptation method happens to be weaker.

The outcome changes for [wav2vec 2.0](https://md.research.elamur.ai/free/en/papers/baevski-2020-wav2vec-2-0-framework-self/) and HuBERT. Their frozen representations can already match or outperform the fine-tuned SSAST systems on the speech tasks. The authors do not conduct a full fine-tuning comparison for those alternatives, citing the expense and difficulty of finding suitable hyper-parameters.

Computing resources also differ. The paper describes wav2vec 2.0 pretraining with 64 GPUs and HuBERT pretraining with 32 GPUs, compared with 4 for SSAST. The authors suggest that larger batches and more resources might improve SSAST. That remains a possible explanation and a future direction; the measured speech comparison still favors the stronger alternatives in the stated conditions.

### What the ablations show

#### Masking difficulty matters, but the best setting depends on the task

The ablation reference configuration uses 400 hidden patches, both pretraining losses, and the mixed AudioSet-and-Librispeech collection. The authors change one factor at a time around that configuration. This makes the comparisons useful for identifying which ingredients contribute within the tested recipe.

Masking 100 patches gives the weakest downstream performance across the benchmark suite. The authors interpret the task as too easy: enough context remains that successful completion provides a weaker learning demand. This supports making the constructed task sufficiently challenging, instead of maximizing pretraining accuracy by leaving most content visible.

The choice between 250 and 400 hidden patches is less absolute. Hiding 400 works better for audio event classification, while 250 works better for speech tasks. The authors describe their overall performance as similar. The lesson is a task-dependent tradeoff, not a single masking count that dominates every use.

The pretraining-task evaluation helps explain the difficulty range. Systems trained with fixed masking counts are evaluated with counts ranging from 50 to 500. With 50 hidden patches, identification accuracy exceeds 80%; with 400 hidden patches, it is around 35%. These are missing-patch identification results on validation data, not downstream keyword or sound classification scores.

Accuracy falls as more content disappears, as expected. The authors take the results as evidence that the exercise is solvable without being trivial. They also find that a system can handle a different masking count at evaluation from the count used in pretraining. Its learned behavior is therefore not confined to one exact level of missing context.

That flexibility should not be mistaken for universal robustness. The experiment varies the quantity of masked patches within the same constructed task. It does not test every kind of missing audio, recording corruption, or distribution change.

#### Identification contributes more alone, but reconstruction still helps

The objective comparison tests discrimination alone, reconstruction alone, and their combination. The discriminative objective performs better than the generative objective across the downstream tasks. Yet combining them gives the strongest result in every reported task comparison.

This is an important distinction. Reconstruction’s weaker standalone performance does not make it redundant. Its contribution becomes visible when paired with the identification requirement. The representation apparently benefits from an additional constraint on acoustic fidelity even though fidelity alone is the less effective pretraining signal.

The experimental result establishes complementarity at the level of downstream performance. It does not identify exactly which internal features are learned by each head. The paper does not provide a decomposition showing that one objective learns a particular acoustic property while the other learns another.

A careful interpretation is therefore functional. Candidate discrimination and value reconstruction impose different demands on a shared encoder, and their combination transfers better in this setup. A more detailed account of what each demand changes inside the representation would require additional analysis.

#### More data helps, and source coverage matters

The source-data ablation compares pretraining on the small AudioSet subset, the larger AudioSet collection, Librispeech, and the mixed collection. AudioSet-2M pretraining outperforms AudioSet-20K pretraining across the downstream tasks. This supports a benefit from increased pretraining data within the AudioSet source.

The smaller-source result remains meaningful. SSAST pretrained and fine-tuned on AudioSet-20K reaches the reported 0.257 mAP on its separate evaluation set. The method therefore does not depend entirely on access to the largest source collection. It can make better use of recordings already available for the downstream task.

The source-specific patterns align with the paper’s coverage argument. AudioSet pretraining is stronger for audio event classification; Librispeech pretraining is stronger for speech tasks. Combining them gives the strongest performance in the reported data comparison. Broad acoustic variety and sustained speech exposure appear useful together.

The supervised comparison on the same AudioSet-2M source adds another dimension. The authors find that self-supervision can produce comparable or stronger downstream outcomes, particularly for speech. This suggests that the source recordings contain transferable information beyond the distinctions emphasized by their event labels.

However, the mixture comparison changes both composition and the amount of pretraining material. It supports the effectiveness of the tested combination, but it does not perfectly isolate domain diversity from additional data volume. The domain-specific results strengthen the coverage interpretation without eliminating that qualification.

#### Improvement during pretraining carries into downstream tasks

The authors save intermediate checkpoints, fine-tune them separately, and compare their downstream performance. Later pretraining generally leads to better classification. They describe a strong relationship between progress on the pretraining tasks and progress after downstream adaptation.

This analysis matters because a constructed objective can improve without producing more useful representations. SSAST checks that concern empirically. Better missing-region performance is associated with better results on both audio and speech tasks over the observed training trajectory.

The conclusion remains bounded by the checkpoint study. It does not establish that every future reduction in pretraining loss will improve every downstream task, or that training can continue indefinitely with the same benefit. It shows that the objective remains productive over the range examined.

The relationship also does not make the downstream evaluations unnecessary. Those evaluations are what demonstrate usefulness. The pretraining curves become informative because their association with transfer is checked, rather than assumed.

#### Pretraining changes the relationship between size and performance

The architecture-size study compares tiny, small, and base configurations. The tiny encoder has 12 layers, 3 attention heads, and embeddings of size 192, with 6M parameters. The small configuration retains 12 layers but uses 6 heads and embeddings of size 384, with 23M parameters.

The base configuration uses 12 layers, 12 heads, and embeddings of size 768, with 89M parameters. The study compares each architecture with and without SSAST pretraining, using the 400-mask setting for the pretrained versions.

Pretraining helps every tested size. This matters because the benefit is not limited to making a large architecture trainable. Even the smaller configurations gain from the missing-region objective. The paper describes MSPM as working across these architecture sizes.

Without pretraining, greater capacity does not reliably produce a better result. The small architecture exceeds the base architecture on AudioSet-20K and the keyword tasks. With SSAST pretraining, the larger configurations perform better across the reported size comparisons.

The result supports a specific account of capacity: a larger architecture can be difficult to exploit with limited labeled training, while unlabeled pretraining provides a more useful starting point. It does not establish an unlimited scaling trend. The authors treat larger-than-base experiments as a future possibility.

The classifier learning-rate comparison adds an optimization caution. Some apparent limitations of a smaller pretrained configuration may reflect how quickly its new output layer adapts. The successful adjustment is selective, so architecture comparisons still need attention to fine-tuning conditions.

#### Square regions and full-frequency frames serve different tasks

The shape experiment compares 16 × 16 patches with 128 × 2 frame-like regions. The latter span the full frequency axis while covering a narrow temporal interval. The authors keep patch area equal and make the resulting sequence lengths similar, while retaining the same encoder architecture.

For frame-based processing, patches do not overlap during pretraining and overlap by 1 along time during downstream use. Unlike the square-patch configuration, frame masking is not clustered. The authors report that clustering frames weakens both pretraining-task and downstream performance, so the frame comparison uses random frame selection.

Without pretraining, the frame-based architecture generally performs better. The detailed discussion identifies emotion recognition as an exception. That detail qualifies the broader statement in the conclusion that frames always win in the unpretrained setting.

After pretraining, the task split becomes clearer. Square-patch SSAST performs better on AudioSet-20K and ESC-50. Frame-based SSAST performs better on the speech tasks, although its advantage over square patches becomes smaller. Pretraining improves both shapes, with a larger improvement for square patches except on emotion recognition.

These results support flexibility rather than a universal preference for square inputs. The authors’ hypothesis is that square regions help exploit complex frequency structure in natural sounds. The task pattern is consistent with that hypothesis, but it does not establish a complete explanation of the difference.

The comparison is also not purely a shape intervention, since the masking arrangement changes with shape. It is best understood as a comparison between sensible square-patch and frame-based training configurations. The finding that the framework supports both is stronger than a claim that every observed difference comes from geometry alone.

### Limitations

#### Limits the authors explicitly identify

The authors acknowledge that their computing resources restrict batch size. SSAST is pretrained with 4 GPUs, and they leave larger-scale pretraining for future work. Accordingly, the paper does not establish how much performance would improve with more resources or whether the current recipe remains best at another scale.

They also leave the patch-versus-frame explanation unresolved. The experiments show a consistent division between audio event tasks and speech tasks after pretraining, but the reason for that division remains a research question. Their account in terms of frequency structure is a motivated interpretation, not a completed causal analysis.

The comparison with stronger speech systems has an explicit procedural limit. The authors use frozen wav2vec 2.0 and HuBERT representations because full fine-tuning and hyper-parameter selection are expensive. Since those frozen alternatives can already match or exceed SSAST, the paper does not establish superior speech representations over them.

The scaling claim is similarly prospective. Larger tested SSAST architectures perform better, but the authors describe further investigation of AST scaling as future work. Their findings support the usefulness of pretraining across the tested sizes, without establishing what happens beyond them.

#### Limits implied by the evaluation

The study concerns classification. It does not evaluate transcription, unrestricted acoustic generation, or a general system for understanding arbitrary spoken requests. Patch reconstruction is an internal training exercise, not evidence of a complete sound-generation capability. The downstream task set is broad within classification, but its scope should remain explicit.

Speaker identification is evaluated with a pre-defined speaker set shared across training and testing. That differs from recognizing a previously unseen identity or deciding whether arbitrary recordings share a speaker. The reported benchmark answers the closed-set classification question stated by the authors.

Emotion recognition is evaluated under a restricted IEMOCAP protocol. The selected categories and cross-validation arrangement define the result. Success there does not establish general emotion understanding across every category, recording situation, or speaker population.

Similarly, Librispeech provides English audiobook speech. The paper does not demonstrate multilingual speech transfer or establish that the same source mixture would be optimal for other linguistic settings. Adding speech improves the tested tasks; it does not prove comprehensive speech coverage.

The method removes the need for labeled pretraining targets, but it does not eliminate supervised downstream learning. All layers are adjusted using task labels in the main SSAST evaluations. These results therefore concern the combination of self-supervised initialization and supervised adaptation. They do not directly establish frozen-feature quality under a uniform protocol.

#### Limits on causal interpretation

The mixed-source pretraining result is useful but does not fully disentangle diversity from quantity. Adding Librispeech changes what recordings the system sees and how much material is available. The observed domain-specific strengths make the diversity argument plausible, while a stricter separation would require additional matched-data comparisons.

The shape comparison also changes masking behavior. Square regions are clustered; frame-like regions are sampled without clustering because that works better for them. This is a reasonable practical comparison, but it prevents assigning the entire downstream difference to shape alone.

The objective ablation supports the value of combining losses under the selected recipe. It does not establish that λ = 10 is best across tasks, source mixtures, or architecture sizes. The paper specifies that weighting and compares the objective combinations, without providing a general law for balancing them.

The resource comparison with wav2vec 2.0 and HuBERT is another place where explanation must remain separate from evidence. Different GPU counts and batch sizes could contribute to the performance gap. The paper does not run a resource-matched experiment that measures their contribution. More computation helping SSAST is a hypothesis instead of a demonstrated recovery of that gap.

Finally, the authors’ average improvement of 60.9% describes their benchmark comparison. It should not be read as a promised gain for a new dataset or as a single accuracy increase. The individual tasks use different metrics and evaluation arrangements, and the strongest supervised baseline still wins on AudioSet-20K.

#### What the reconstruction task does not establish

A reconstructed patch is a prediction of spectrogram features conditioned on visible context. The squared-error loss encourages numerical agreement, but the paper does not show that low reconstruction error alone implies better perceptual quality or richer semantic understanding. Indeed, its objective ablation finds reconstruction alone less effective than discrimination alone.

The identification task has a corresponding boundary. Its candidates come from the same masked recording, so successful identification depends on that controlled choice set. The resulting validation accuracy cannot be interpreted as an unrestricted ability to recover any missing sound.

These qualifications do not weaken the central experimental finding. They locate it correctly: the paired tasks produce a useful initialization for the tested classifiers. Claims about acoustic meaning, human perception, or broader generation would require their own evaluations.

### What came after

The paper’s demonstrated results should be separated from the research directions it leaves open. It does not establish a subsequent line of experiments showing how SSAST behaves with substantially greater pretraining resources, nor does it resolve why square patches favor the evaluated audio tasks while frame-like patches favor speech. Those remain proposed continuations of the work.

The most immediate continuation identified by the authors is a study of scaling. Their size experiments suggest that unlabeled pretraining makes additional architectural capacity more useful. Their resource discussion suggests examining larger batches and more computation. Neither observation supplies the missing large-scale result; each motivates a concrete next experiment.

Another open direction is to explain the input-shape tradeoff more directly. SSAST makes that investigation possible because its objective is not tied to the square geometry inherited from image pretraining. The existing comparisons show that shape matters and that its value depends on the task. Further work would need to separate geometry, masking arrangement, and acoustic structure more tightly to explain why.

The lasting contribution established by SSAST is therefore an experimental foundation: audio Transformers can learn useful starting representations by identifying and reconstructing hidden spectrogram regions, using unlabeled recordings from complementary sources. Its strongest evidence concerns improved downstream classification and the design choices supporting that improvement. Its broader implications remain questions to test, rather than later achievements to assume.

## Cite

Cite as Yuan Gong, Cheng-I Lai, Yu-An Chung and James Glass. 2022. SSAST: Self-Supervised Audio Spectrogram Transformer. Proceedings of the AAAI Conference on Artificial Intelligence.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1609/aaai.v36i10.21315](https://doi.org/10.1609/aaai.v36i10.21315) · [arXiv 2110.09784](https://arxiv.org/abs/2110.09784)

```bibtex
@inproceedings{gong2022ssast,
  title = {{SSAST: Self-Supervised Audio Spectrogram Transformer}},
  author = {Yuan Gong, Cheng-I Lai, Yu-An Chung and James Glass},
  booktitle = {Proceedings of the AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i10.21315},
  eprint = {2110.09784},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1609/aaai.v36i10.21315}
}
```

> 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)
