Receptive Field Regularization Techniques for Audio Classification and Tagging with Deep Convolutional Neural Networks

Khaled Koutini, Hamid Eghbal-zadeh, Gerhard WidmerarXiv 2021 · DOI

TL;DR

Deep CNNs borrowed from computer vision often perform poorly on audio tasks because their receptive fields are excessively large, leading to severe overfitting on spectrograms. This paper introduces systematic techniques to regularize both the Maximum and Effective Receptive Fields of CNNs, demonstrating that carefully constrained receptive fields allow simple models trained from scratch to outperform complex, heavily pre-trained architectures.

What Problem Does This Paper Address?

In computer vision, the dominant trend is to build deeper convolutional neural networks (CNNs) to achieve better performance. Deeper networks naturally possess a larger Receptive Field (RF)—the spatial window of the input image that a single neuron can "see."

When researchers port these successful vision architectures (like ResNet or DenseNet) to the audio domain by treating audio spectrograms as images, they often run into generalization issues. This paper addresses why: audio spectrograms possess different structural properties than natural images. While a massive RF helps a vision model capture global context, an excessive RF in an audio model causes it to overfit to spurious global patterns rather than focusing on localized acoustic features.

Methods

The authors propose two main approaches to control and regularize the receptive field without sacrificing network depth:

  1. Controlling Maximum RF (CP_ResNet / CP_DenseNet): The authors introduce a hyperparameter ($\rho$) that systematically replaces standard $3 \times 3$ convolutional filters with $1 \times 1$ filters in deeper layers. Because $1 \times 1$ filters do not expand the receptive field, this allows precise calibration of the maximum RF size. This technique can also be applied independently to the time ($\rho_t$) and frequency ($\rho_f$) dimensions using rectangular filters.
  2. Filter Damping for Effective RF (ERF): Even if a network has a large theoretical maximum RF, its Effective Receptive Field (the input pixels that actually impact the output) might be smaller. The authors introduce a novel filter damping method. During training, the convolutional weights are element-wise multiplied by a damping matrix that weakens the influence of the spatially outermost weights. This acts as a localized inductive bias without altering the network's architectural topology.
Fig. 1. The ERF in white, the maximum RF in green, and our estimates Et and Ef in red, for a ResNet with a Maximum RF of 241 × 241 trained on the DCASE‘18 dataset.

Datasets

The methods were evaluated across three distinct audio classification and tagging tasks using the following benchmarks:

  • TAU Urban Acoustic Scenes 2018 & 2019 (DCASE'18, DCASE'19): Used for acoustic scene classification (e.g., identifying if an audio clip was recorded in a park, street, or metro station).
  • MediaEval-MTG-Jamendo: A large-scale dataset used for music emotion and theme detection (57 possible tags).
  • OpenMIC-2018: A crowd-sourced, noisy multi-label dataset used for polyphonic musical instrument recognition (20 instrument classes).

Key Insights and Ideas

  • The Overfitting Frontier: As the Maximum RF increases, training loss continuously drops, but testing loss begins to degrade sharply once the RF exceeds a certain threshold. An unregularized deep network easily fits the training data but fails to generalize to unseen audio clips.
Fig. 2. Training loss vs. testing loss of a CNN with different Max RFs. The increase of the testing loss with larger Max RF indicates overfitting.
  • Frequency Sensitivity: Audio classification performance is highly sensitive to the RF size along the frequency dimension. As long as the frequency RF is constrained to an optimal range, expanding the RF along the time dimension has a negligible impact on performance.
  • It's the RF, Not the Parameter Count: By utilizing grouped convolutions (which alter parameter counts without changing the spatial RF), the authors proved that model performance correlates directly with the spatial RF size, rather than the number of parameters or model capacity.

Key Results

  • Optimal RF Size: Across all three audio tasks, the optimal Maximum RF consistently fell within the narrow window of $100 \times 100$ to $200 \times 200$ pixels.
Fig. 3. Testing accuracy of CP Dense and CP ResNet on DCASE‘18. The Max RF size of the network over both time and frequency dimensions (x-axis) ranges from 23 × 23 to 551 × 551
  • State-of-the-Art Performance: RF-regularized models achieved top ranks in the DCASE 2019 and MediaEval 2019 challenges. Remarkably, these simple, regularized CNNs trained from scratch outperformed complex ensembles utilizing RNNs, self-attention mechanisms, and massive models pre-trained on external datasets like AudioSet or ImageNet.
  • Damping Success: Filter damping successfully mitigated overfitting in large-RF networks, widening the range of viable architectural configurations and providing a robust tool for domain adaptation.

Limitations and Future Work

  • Architectural Scope: The study focuses primarily on fully-convolutional networks operating on 2D time-frequency spectrogram representations. The impact of RF regularization on raw 1D audio waveforms or newer Transformer-based audio architectures (like Audio Spectrogram Transformers) remains unexplored.
  • Hyperparameter Tuning: The damping factors ($m_f, m_t$) and filter-swapping thresholds ($\rho$) currently require manual tuning per dataset, suggesting a need for future work into learned or automated receptive field adaptation schedules.

Summary updated

Abstract

In this paper, we study the performance of variants of well-known Convolutional Neural Network (CNN) architectures on different audio tasks. We show that tuning the Receptive Field (RF) of CNNs is crucial to their generalization. An insufficient RF limits the CNN's ability to fit the training data. In contrast, CNNs with an excessive RF tend to over-fit the training data and fail to generalize to unseen testing data. As state-of-the-art CNN architectures-in computer vision and other domains-tend to go deeper in terms of number of layers, their RF size increases and therefore they degrade in performance in several audio classification and tagging tasks. We study well-known CNN architectures and how their building blocks affect their receptive field. We propose several systematic approaches to control the RF of CNNs and systematically test the resulting architectures on different audio classification and tagging tasks and datasets. The experiments show that regularizing the RF of CNNs using our proposed approaches can drastically improve the generalization of models, out-performing complex architectures and pre-trained models on larger datasets. The proposed CNNs achieve state-of-the-art results in multiple tasks, from acoustic scene classification to emotion and theme detection in music to instrument recognition, as demonstrated by top ranks in several pertinent challenges (DCASE, MediaEval).

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
DCASE-2019 · DCASE 2019 acoustic scene classificationChen et al.Overall accuracy85.2 %Acoustic Scene Classification · split: test · evaluation=seen and unseen cities
Source quote
L461: Chen et al.~\cite{chen2019dcaseasc} │ 86.7 % │ 77.9 % │ 85.2 %
BibTeX
@misc{koutini2021receptive,
  author = {Khaled Koutini and Hamid Eghbal-zadeh and Gerhard Widmer},
  title = {{Receptive Field Regularization Techniques for Audio Classification and Tagging with Deep Convolutional Neural Networks}},
  year = {2021},
  eprint = {2105.12395},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.12395},
}

Loading related content...

Figure