Over-Parameterization and Generalization in Audio Classification

Khaled Koutini, Hamid Eghbal-zadeh, Florian Henkel, Jan Schlüter, Gerhard WidmerarXiv 2021

TL;DR

In the world of audio classification, bigger isn't always better—at least not in the way you might think. This paper demonstrates that widening a neural network significantly improves its ability to generalize to new recording devices, whereas increasing depth often hurts performance by expanding the model's receptive field too far.

What Problem Does This Paper Address?

A major hurdle in Acoustic Scene Classification (ASC)—identifying if an audio clip was recorded in a park, a subway, or a kitchen—is "device mismatch." A model trained on high-quality studio microphone data often fails miserably when deployed on a budget smartphone. Different microphones introduce non-linear distortions, varying frequency responses, and different dynamic ranges, as seen in the spectrogram differences in Figure 2.

Figure 2. Spectrograms of the same audio recorded with two dif- ferent devices.

While the "double descent" phenomenon suggests that over-parameterized models (those with far more parameters than data points) generalize better in vision and NLP, this hasn't been thoroughly explored for audio. The authors investigate whether simply adding more parameters helps audio models handle unseen devices, and specifically, whether it matters how you add those parameters (width vs. depth).

Methods

The researchers used a state-of-the-art ResNet variant as their baseline and scaled it using four distinct strategies:

  1. Width ($W$): Increasing the number of channels in each layer.
  2. Depth ($D$): Adding more residual blocks with $3 \times 3$ convolutions (which increases the Receptive Field).
  3. Depth without RF increase ($K$): Adding residual blocks with $1 \times 1$ convolutions (increasing parameters without changing the Receptive Field).
  4. Width with Sparsification: Widening the network but using pruning (random or magnitude-based) to keep the total parameter count identical to a smaller model.

They also tested a "Frequency-Damped" version of the ResNet. This architecture applies an inductive bias that restricts the Effective Receptive Field (ERF) along the frequency axis, preventing the model from "looking" too far across the spectrogram.

Datasets

The study utilizes the TAU Urban Acoustic Scenes 2020 Mobile dataset. This is a benchmark for ASC that includes:

  • 64 hours of audio from 10 different environmental scenes.
  • Recordings from 12 European cities.
  • Data from 3 real devices (A, B, and C) and 6 simulated devices.
  • Experimental Setup: Models were trained only on "Device A" and tested on both "Seen" (Device A) and "Unseen" (Devices B, C, and simulated) hardware.

Key Insights and Ideas

  • Width is King for Generalization: Increasing the width of the network consistently improved accuracy on unseen devices. Interestingly, this benefit appeared even when the performance on the seen device had already plateaued.
  • The Depth Trap: Simply adding more $3 \times 3$ layers (increasing depth) actually degraded performance on unseen devices. The authors attribute this to an oversized Receptive Field; the model starts focusing on global spectrogram patterns that are too specific to the training device, rather than the local acoustic events that define a scene.
  • Architecture Over Raw Power: The "Width with Sparsification" experiment yielded a major "aha" moment: a wide, sparse network generalizes better than a narrow, dense network, even when they have the exact same number of parameters. This suggests that the capacity to learn diverse features (provided by width) is more important for robustness than the total number of weights.

Key Results

The quantitative results highlight a clear winner in the scaling wars. As shown in Figure 1, increasing width (the blue line) leads to a steady climb in accuracy on unseen devices, while increasing depth (the red line) causes performance to plummet.

Test accuracy comparison: Width scaling (blue) improves generalization to unseen devices, while depth scaling (red) hurts it.
  • Width Boost: Scaling the width parameter $W$ from 32 to 512 resulted in a 10% absolute increase in accuracy on unseen devices.
  • Damping Works: The Frequency-Damped models consistently outperformed standard ResNets across all scaling settings, confirming that controlling the Receptive Field is crucial for audio.
  • Sparsity Robustness: Wide models maintained their generalization edge even with extreme pruning. A model widened to $W=512$ and then pruned to 98.4% sparsity still performed better on unseen devices than the dense $W=64$ baseline.
The effect of width on accuracy for both seen and unseen devices.

Limitations and Future Work

While the paper provides a clear prescription for building robust audio models (go wide, stay shallow, and control your RF), some questions remain:

  • Computational Efficiency: While sparse wide models are parameter-efficient, they can be computationally expensive to train and may require specialized hardware to realize speedups during inference.
  • Theoretical Link: The authors show a correlation between the Effective Receptive Field (ERF) and generalization, but a more formal theoretical framework linking these concepts in the audio domain is still needed.
  • Other Domain Shifts: This study focused specifically on device mismatch. It remains to be seen if width-scaling provides similar protection against other types of shifts, such as different weather conditions or varying background noise levels.

Summary updated

BibTeX
@misc{koutini2021over,
  author = {Khaled Koutini and Hamid Eghbal-zadeh and Florian Henkel and Jan Schlüter and Gerhard Widmer},
  title = {{Over-Parameterization and Generalization in Audio Classification}},
  year = {2021},
  eprint = {2107.08933},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.08933},
}
Figure