Robustness of Neural Architectures for Audio Event Detection

Juncheng B. Li, Shuhui Qu, Florian MetzearXiv 2022 · DOI

TL;DR

This paper investigates how different neural network architectures (CNNs vs. Transformers) handle noisy audio for sound event detection, finding that Transformers are generally more robust to various noise types like occlusions and Gaussian noise. The study highlights that understanding these architectural differences is crucial for building more reliable audio recognition systems.

What Problem Does This Paper Address?

Traditional audio recognition systems often rely on "front-end" noise suppression techniques. However, these methods aren't perfect, and noise can still impact downstream models. This paper aims to understand how different neural network architectures inherently handle noise without relying on pre-processing. Specifically, it focuses on Acoustic Event Detection (AED) – identifying sounds in an audio stream – and explores how models like Convolutional Neural Networks (CNNs) and Vision Transformers (ViTs) perform under various noise conditions. The core question is whether the distinct inductive biases of these architectures lead to predictable differences in their robustness to noise.

Methods

The researchers compared four distinct neural network architectures:

  • CNN+Transformer: A hybrid model combining convolutional layers with transformer blocks.
  • CRNN: A combination of Convolutional Neural Networks and Recurrent Neural Networks (specifically BiGRUs).
  • ResNet50: A well-established deep convolutional neural network.
  • AST/ViT (Audio Spectrogram Transformer): A transformer-based model adapted for audio spectrograms.

They introduced several types of noise to the audio data to test model robustness:

  • Natural Occlusions: Simulating intermittent noise by masking portions of the audio in the time domain. This included both continuous and intermittent masking patterns.
  • Strong Label Masking: Using precise temporal labels to mask out the exact moments of known sound events, testing how models rely on surrounding context.
  • Gaussian Noise: Adding continuous noise, applied both directly to the audio waveform before feature extraction and directly to the log-Mel spectrogram features.
  • Adversarial Perturbations: Generating "worst-case" noise by creating small, imperceptible perturbations to the input features (log-Mel spectrograms) designed to fool the models. They used both L2 and L-infinity norm attacks.

Datasets

  • AudioSet: The primary dataset used for evaluation. It's a large, weakly-labeled dataset containing 10-second YouTube video clips annotated with 527 types of sound events. The paper specifically uses the evaluation set.
  • Strongly-labeled AudioSet: A subset of AudioSet with temporally precise labels, used for the "strong label masking" experiments.

Key Insights and Ideas

  • Transformers Show Superior Noise Robustness: Across various noise types (occlusion, Gaussian, adversarial), Transformer-based models (AST/ViT) consistently outperformed CNN-based models in terms of performance metrics like mAP (mean Average Precision).
  • Inductive Biases Matter: The paper strongly suggests that the inherent differences in how CNNs (locality, translation invariance) and Transformers (global self-attention) process information directly influence their robustness. Transformers' ability to model global correlations seems to provide an advantage.
  • Occlusion Reveals Architectural Differences: The way models react to temporal masking (occlusion) can reveal their underlying structure. For instance, if noise spans longer than a CNN's receptive field, it causes a significant performance drop, which could be used to infer architecture.
  • Intermittent Noise is Tricky: For intermittent masking, there appears to be a "magic number" for the masking interval (around 0.125s-0.25s) where performance drops dramatically, suggesting a limit to what models can "remember" or bridge.
  • Adversarial Attacks Highlight Vulnerabilities: While Transformers are generally more robust, all models suffer under adversarial attacks. The paper notes that models lacking explicit temporal dependency modeling (like ResNet) are particularly vulnerable.
  • Context is Key in AED: Masking out precisely labeled events still leaves models with significant performance, indicating they leverage a substantial amount of surrounding audio context.

Key Results

  • Occlusion: AST/ViT models showed the highest mAP under various occlusion scenarios, often outperforming others by a significant margin. For example, under "Every 0.25s Occlusion," AST/ViT achieved 0.052 mAP, while CRNN achieved 0.067 mAP, and ResNet and CNN+Trans were much lower.
  • Gaussian Noise: ViTs were more susceptible to 1D Gaussian noise, while CRNN and CNN+Transformers were more affected by 2D Gaussian noise.
  • Adversarial Perturbations: AST/ViT models were again more robust. For L2 attack, AST/ViT had 0.164 mAP, while ResNet dropped to 0.011 mAP.
  • Overall: The paper concludes that AST/ViT architectures are comparatively more robust than the other three types of neural architectures against various types of noises.

Limitations and Future Work

  • Mechanism of Robustness: The paper acknowledges that the exact mechanism behind the observed robustness of ViT/AST models is still unknown and is an area for active investigation.
  • AUC/d-prime Variations: The authors note that AUC and d-prime metrics for ViT models showed significant differences compared to other models, which could cast doubt on their robustness and warrants further study.
  • Explanation of Behaviors: While the paper presents experimental results, further work is needed to fully explain the observed behaviors through output distribution changes and weight visualizations, as mentioned in the abstract.
  • Real-world Noise: The study focuses on controlled noise types. Future work could explore more complex, real-world noise scenarios.

Summary updated

BibTeX
@misc{li2022robustness,
  author = {Juncheng B. Li and Shuhui Qu and Florian Metze},
  title = {{Robustness of Neural Architectures for Audio Event Detection}},
  year = {2022},
  eprint = {2205.03268},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.03268},
}
Figure