Abstract
The Audio Spectrogram Convolution Attention (ASCA) model bridges the gap between data-hungry Transformers and data-scarce audio tasks. By utilizing a hybrid "C-C-C-T" (Convolution-Convolution-Convolution-Transformer) architecture, ASCA achieves state-of-the-art performance on small-scale datasets like BirdCLEF2023 without requiring massive pre-training.
Introduction
In specialized fields such as bioacoustics or submarine acoustics, researchers often operate in data-scarce environments. While Transformer models have revolutionized audio recognition, their performance typically depends on millions of pre-training samples. Without such "Big Data," Transformers often fail to generalize as effectively as traditional Convolutional Neural Networks (CNNs).
The core challenge lies in capturing both local, translation-invariant features—where CNNs excel—and long-range global dependencies—the primary strength of Transformers—within a limited data regime. ASCA seeks to identify the optimal architectural balance to provide the necessary inductive biases for small-scale audio processing.
Methodology
ASCA is derived from the CoAtNet architecture, adapted specifically for audio spectrogram analysis. The model's primary innovation is its five-stage hybrid pipeline.
Hybrid Architecture (C-C-C-T)
The model employs a C-C-C-T structure: three initial stages of convolutional blocks (specifically MBConv modules with Squeeze-Excitation) followed by a final Transformer stage. This configuration ensures that the model retains the "translational equivalence" of CNNs—crucial for recognizing sounds regardless of their temporal position—while still benefiting from global attention in the final layers.
Technical Enhancements
- Relative Self-Attention: ASCA utilizes relative positional encoding rather than absolute encoding, allowing it to better capture the relative temporal and frequency relationships within the spectrogram.
- Optimized Normalization: Empirical results indicated that Batch Normalization significantly outperforms alternative methods in low-data audio contexts.
- Data Augmentation: To maximize information extraction from limited samples, the authors employed a combination of Mixup, stochastic masking, and background noise injection.
Experimental Setup
The model was evaluated across several diverse benchmarks to prove its generalizability:
- BirdCLEF2023: 16,942 recordings of 264 bird species.
- AudioSet (Balanced): 56,246 samples across 527 classes.
- VGGSound: A large-scale video-audio dataset.
- UCR: A collection of time-series datasets.
Key Insights
Ablation studies revealed several critical findings regarding model design for small datasets:
- Inductive Bias is Essential: Pure Transformers lack the inherent biases of CNNs. By maintaining three convolutional stages, ASCA preserves these biases, which is vital when the dataset is too small for the model to learn them autonomously.
- The C-C-C-T Sweet Spot: Moving to the Transformer stage earlier (e.g., a C-C-T-T structure) resulted in performance degradation. The additional convolutional layers serve as a more robust feature extractor for small-scale data.
- Optimal Window Size: A 16x16 partition window in the self-attention stage was found to be the optimal balance for capturing global information without sacrificing fine-grained detail.
Results
ASCA consistently outperformed established models such as AST, EfficientNet, and PANNs across multiple benchmarks.
As shown in the table above, ASCA achieved 81.2% accuracy on BirdCLEF2023, surpassing the MAST model (80.8%) and AST (80.6%). It also demonstrated superior performance on AudioSet (Balanced) with a 35.1% mAP and reached 94.2% accuracy on the UCR benchmark.
Conclusion
ASCA demonstrates that a carefully balanced hybrid architecture can overcome the data-intensive requirements of pure Transformer models. By prioritizing inductive bias through a C-C-C-T structure, ASCA provides a powerful tool for audio classification in resource-constrained domains. Future work will explore extending this architecture to more complex tasks such as audio source separation and real-time environmental monitoring.
Summary updated