Domain Generalization with Relaxed Instance Frequency-wise Normalization for Multi-device Acoustic Scene Classification

Byeonggeun Kim, Seunghan Yang, Jangho Kim, Hyunsin Park, Juntae Lee, Simyung Chang

Abstract

While using two-dimensional convolutional neural networks (2D-CNNs) in image processing, it is possible to manipulate domain information using channel statistics, and instance normalization has been a promising way to get domain-invariant features. Unlike image processing, we analyze that domain-relevant information in an audio feature is dominant in frequency statistics rather than channel statistics. Motivated by our analysis, we introduce Relaxed Instance Frequency-wise Normalization (RFN): a plug-and-play, explicit normalization module along the frequency axis which can eliminate instance-specific domain discrepancy in an audio feature while relaxing undesirable loss of useful discriminative information. Empirically, simply adding RFN to networks shows clear margins compared to previous domain generalization approaches on acoustic scene classification and yields improved robustness for multiple audio-devices. Especially, the proposed RFN won the DCASE2021 challenge TASK1A, low-complexity acoustic scene classification with multiple devices, with a clear margin, and this work is extended version of the work.

Introduction

Deep neural networks are notoriously brittle when encountering data from unseen sources, a challenge known as Domain Generalization (DG). In audio processing, this often manifests as a "device gap," where models trained on high-quality recordings fail when deployed on budget hardware due to unique microphone frequency responses. Most modern audio models utilize 2D-CNNs borrowed from computer vision, where domain information (like image style) is typically captured in channel statistics. This paper challenges the assumption that image-centric normalization techniques are optimal for audio spectrograms.

Motivation: Analyzing Domain Information

The researchers began by analyzing where domain-relevant information resides in audio features compared to images. Using Mutual Information (MI) estimation, they compared frequency-wise, temporal, and channel-wise statistics across different network depths.

Mutual Information (MI) analysis comparing audio (ASC) and images (PACS). In audio, domain information is dominant in frequency statistics, whereas in images, it is more prominent in channel statistics.

As shown in the analysis, for audio spectrograms (ASC), frequency-wise statistics maintain high mutual information with the domain throughout the network layers. In contrast, for raw images (PACS), channel-wise statistics are more indicative of the domain. This suggests that for audio, normalization should target the frequency axis rather than the channel axis to effectively strip away device-specific distortions.

Relaxed Instance Frequency-wise Normalization (RFN)

Based on these insights, the authors proposed Relaxed Instance Frequency-wise Normalization (RFN). This module performs two key steps:

  1. Instance Frequency-wise Normalization (IFN): Instead of normalizing across channels, the model normalizes across the frequency dimension for each sample, directly targeting the device's frequency response.
  2. Relaxation: Recognizing that the frequency axis also contains task-critical information (e.g., pitch), the authors introduced a "relaxation" hyperparameter $\lambda$. RFN is defined as a weighted average: $RFN(x) = \lambda \cdot LN(x) + (1 - \lambda) \cdot IFN(x)$, where $LN$ is Layer Normalization. This balances noise removal with signal preservation.
t-SNE visualization of frequency-wise vs. channel-wise statistics. Frequency-wise statistics (left) clearly cluster by domain/device, while channel-wise statistics (right) do not.

The effectiveness of focusing on the frequency axis is visually confirmed via t-SNE plots. Frequency-wise statistics clearly cluster by domain (device), whereas channel-wise statistics do not, proving that frequency statistics are the primary carriers of domain information in audio.

Key Results

The authors validated RFN across three distinct audio tasks, demonstrating its versatility:

  • Acoustic Scene Classification (ASC): RFN was the "secret sauce" for winning the DCASE2021 Challenge Task 1A. It improved accuracy on unseen devices by over 10% compared to standard baselines.
  • Keyword Spotting (KWS): RFN provided a ~4% accuracy boost, particularly when training data was scarce.
  • Speaker Verification (SV): The technique reduced the Equal Error Rate (EER) from 14.5% to 13.4%, helping the model focus on voice characteristics rather than the recording medium.

Conclusion

RFN offers a simple, plug-and-play solution for domain generalization in audio by shifting normalization to the frequency axis. By "relaxing" the normalization, models can ignore device bias without losing the characteristic shape of the sound. Future work will explore how these concepts translate to Transformer-based architectures and further optimize hyperparameter tuning for edge devices.

Summary updated

BibTeX
@inproceedings{kim2022domain,
  author = {Byeonggeun Kim and Seunghan Yang and Jangho Kim and Hyunsin Park and Juntae Lee and Simyung Chang},
  title = {{Domain Generalization with Relaxed Instance Frequency-wise Normalization for Multi-device Acoustic Scene Classification}},
  booktitle = {Interspeech},
  year = {2022},
  url = {https://openreview.net/forum?id=lcEs3p1n0b},
}
Figure