TL;DR
This paper introduces Dynamic MobileNetV3s (DyMNs), a new family of efficient audio models that bridge the performance gap between lightweight CNNs and heavy Transformers. By integrating dynamic components like dynamic convolutions and coordinate attention, DyMNs achieve state-of-the-art audio tagging performance while requiring up to 100x fewer computations than popular Transformer models.
What Problem Does This Paper Address?
In recent years, Audio Spectrogram Transformers (ASTs) have dominated the audio domain, especially when pre-trained on massive datasets like AudioSet. However, their quadratic computational complexity makes them difficult to deploy on resource-constrained devices like smartphones. While efficient CNNs (like MobileNetV3) are much faster, they typically lag behind Transformers in raw performance.
The authors tackle this "efficiency vs. performance" trade-off. They ask: Can we increase the capacity of efficient CNNs to match Transformers without sacrificing their low-latency benefits?
Methods
The authors build upon the MobileNetV3-Large architecture and transform its standard "inverted residual" blocks into Dynamic Inverted Residual Blocks.
The core innovation lies in three "dynamic" components that adapt their operations based on the input audio:
- Dynamic Convolution (Dy-Conv): Instead of fixed weights, it uses a linear combination of multiple kernels, weighted by input-dependent coefficients.
- Dynamic ReLU (Dy-ReLU): A non-linear activation function that adapts its slope and intercept based on the input.
- Coordinate Attention (CA): A sophisticated attention mechanism that captures long-range dependencies across both time and frequency dimensions.
To keep things efficient, they introduce a Context Generation Module (CGM). Instead of each component calculating its own input statistics, the CGM computes shared time and frequency embeddings once per block, which then parameterize all dynamic operations.
Finally, they use Transformer-to-CNN Knowledge Distillation. They train their DyMN models to mimic the outputs of a powerful ensemble of 9 PaSST (Patchout FaSt Spectrogram Transformer) models, effectively "distilling" the Transformer's knowledge into the efficient CNN.
Datasets
- Pre-training: AudioSet, a massive dataset of ~2 million 10-second YouTube clips with 527 event classes.
- Downstream Evaluation:
- OpenMic-2018: Polyphonic musical instrument recognition.
- ESC-50: Environmental sound classification.
- FSD50K: General-purpose sound event tagging.
- TAU Urban Acoustic Scenes 2020: Acoustic scene classification (DCASE challenge).
Key Insights and Ideas
- Dynamic beats Static: Adding input-dependent processing significantly boosts performance (up to 7% over static baselines) with negligible increases in inference-time MACs (Multiply-Accumulate operations).
- Shared Context is Key: Sharing a single context generation step across multiple dynamic components within a block is a highly efficient way to increase model capacity.
- Frequency Matters: The authors found that for audio, attention over frequency bins is generally more important than attention over time frames, though using both (via Coordinate Attention) yields the best results.
- Scaling Efficiency: Scaling a network by adding dynamic components is more parameter- and computation-efficient than simply making the network wider or deeper.
Key Results
The results are striking: DyMNs don't just catch up to Transformers; they often surpass them.
- AudioSet Performance: The largest model, DyMN-L, achieves 49.0 mAP on AudioSet. This outperforms the popular PaSST-S Transformer (47.1 mAP) and even the state-of-the-art BEATs model (48.6 mAP).
- Extreme Efficiency: DyMN-L achieves this while requiring less than 5% of the MACs of BEATs and less than 3% of the MACs of PaSST-S.
- Downstream Versatility: DyMNs consistently outperform their static counterparts across all tested downstream tasks, showing that the pre-trained dynamic features generalize exceptionally well.
Limitations and Future Work
- Parameter Count: While MACs (computational cost) remain very low, dynamic components do increase the total number of parameters. For example, DyMN-L has about 40M parameters, which is more than its static counterpart but still less than many high-performing Transformers.
- Teacher Gap: While DyMNs outperform a single PaSST teacher, they haven't yet matched the performance of the full 9-model PaSST ensemble (49.5 mAP) used for distillation.
- Future Directions: The authors suggest exploring even more lightweight dynamic architectures and further optimizing the distillation process to close the remaining gap with large ensembles.
Summary updated