Enhancing Unsupervised Audio Representation Learning via Adversarial Sample Generation

Yulin Pan, Xiangteng He, Biao Gong, Yuxin Peng, Yiliang LvarXiv 2023 · DOI

Introduction

Standard Convolutional Neural Networks (CNNs) are inherently designed to be "translation invariant," meaning they are optimized to recognize patterns regardless of their spatial coordinates. While this property is highly effective for natural image processing, it presents a significant challenge for audio spectrogram analysis. In a spectrogram, the vertical and horizontal axes represent physical dimensions: frequency (pitch) and time, respectively. Consequently, the semantic meaning of an audio signal is deeply tied to its positional orientation. This paper introduces Adversarial Sample Generation (ASG), a self-supervised learning framework that encourages models to develop sensitivity to these critical positional changes.

Problem Statement

In computer vision, a horizontal flip of a tiger remains a tiger. CNNs exploit this by using pooling layers to discard exact coordinate information in favor of high-level feature extraction. However, audio spectrograms do not share this property. Flipping a speech spectrogram along the time axis reverses the words, destroying their meaning. Similarly, shifting frequency bins can fundamentally alter the perceived identity of a sound source (e.g., changing a male voice to sound like a child's).

Existing self-supervised learning (SSL) methods for audio often treat spectrograms as generic images, applying standard data augmentations that inadvertently ignore this positional sensitivity. The authors argue that this "positional insensitivity" limits the model's ability to learn nuanced audio representations.

Proposed Method: Adversarial Sample Generation (ASG)

The proposed framework utilizes a contrastive learning objective, building upon the SimCLR architecture. The innovation lies in the categorization of data transformations into two distinct groups:

  1. Positive Sample Generation (PDT): These are semantic-preserving augmentations, such as adding white noise, adjusting volume, or simulating room impulse responses. The model is trained to map these variations to nearby points in the latent space.
  2. Adversarial Sample Generation (ASG): This stage introduces "negative" pairs derived from the same original sample through positional transformations that shift semantic meaning. These include Flip along Time (FT), Flip along Frequency (FF), and Scroll along Frequency (SF).
Overview of the ASG framework including positive sample generation, adversarial sample generation, and contrastive learning.

By specifically tasking the model with pushing these adversarial versions away from the original in the latent space, the CNN is forced to attend to the specific directionality and location of visual patterns on the spectrogram.

Experimental Results

The ASG model was pre-trained on large-scale unlabeled datasets, including AudioSet (~1.7M clips) and VGGSound (~200k clips). The learned representations were evaluated across nine downstream tasks spanning speech recognition, speaker identification, keyword spotting, and environmental sound classification.

Performance comparison of the ASG method against state-of-the-art self-supervised and supervised baselines across nine benchmarks.

As shown in the results table, the ASG method achieved state-of-the-art or highly competitive performance across all benchmarks. Notable highlights include:

  • Speaker Identification (voxCeleb1): Achieved 74.7% accuracy in fine-tuned evaluation, a significant leap over the previous SSAST baseline (57.1%).
  • Environmental Sound (ESC-50): Reached 93.2% accuracy, demonstrating that positional sensitivity is vital for natural soundscapes as well as human speech.
  • Keyword Spotting (SCV1): Attained 98.7% accuracy, surpassing previous state-of-the-art results.

Discussion and Conclusion

The core contribution of this work is the "Anti-Invariance" principle. While traditional deep learning seeks invariants, effective audio representation requires the opposite: a deep understanding of how position dictates meaning. Ablation studies confirmed that temporal directionality (FT) is a primary feature for distinguishing complex sounds. Furthermore, the self-supervised ASG model outperformed a fully supervised ResNet-50 on tasks like speaker identification by a margin of 18.6%, highlighting the power of well-designed self-supervision. Future work may explore temporal scaling (time-stretching) and the application of these adversarial principles to Audio Transformer architectures.

Summary updated

BibTeX
@misc{pan2023enhancing,
  author = {Yulin Pan and Xiangteng He and Biao Gong and Yuxin Peng and Yiliang Lv},
  title = {{Enhancing Unsupervised Audio Representation Learning via Adversarial Sample Generation}},
  year = {2023},
  eprint = {2303.08561},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.08561},
}
Figure