Learning neural audio features without supervision

Sarthak Yadav, Neil Zeghidour

Abstract

Deep audio classification, traditionally cast as training a deep neural network on top of mel-filterbanks in a supervised fashion, has recently benefited from two independent lines of work. The first one explores "learnable frontends'', i.e., neural modules that produce a learnable time-frequency representation, to overcome limitations of fixed features. The second one uses self-supervised learning to leverage unprecedented scales of pre-training data. In this work, we study the feasibility of combining both approaches, i.e., pre-training learnable frontend jointly with the main architecture for downstream classification. First, we show that pretraining two previously proposed frontends (SincNet and LEAF) on Audioset drastically improves linear-probe performance over fixed mel-filterbanks, suggesting that learnable time-frequency representations can benefit self-supervised pre-training even more than supervised training. Surprisingly, randomly initialized learnable filterbanks outperform mel-scaled initialization in the self-supervised setting, a counter-intuitive result that questions the appropriateness of strong priors when designing learnable filters. Through exploratory analysis of the learned frontend components, we uncover crucial differences in properties of these frontends when used in a supervised and self-supervised setting, especially the affinity of self-supervised filters to diverge significantly from the mel-scale to model a broader range of frequencies.

Introduction

For decades, audio processing has relied on Mel-filterbanks—fixed mathematical transformations designed to mimic human hearing. While effective, these hard-coded features may not be optimal for all machine learning tasks. Recent advancements have introduced "learnable frontends," such as SincNet and LEAF, which replace fixed filters with neural layers that can be optimized for specific tasks. Concurrently, self-supervised learning (SSL) has enabled training on massive unlabeled datasets. This paper investigates whether these learnable frontends can be effectively trained from scratch using SSL and whether traditional priors like the Mel-scale remain beneficial in this context.

Methodology

The study integrates two learnable frontends with the Contrastive Learning for Audio (COLA) framework:

  • SincNet: Learns band-pass filters by optimizing the cutoff frequencies of sinc functions.
  • LEAF: Learns Gabor filters combined with learnable pooling and Per-Channel Energy Normalization (PCEN).
  • SSL Framework (COLA): A contrastive approach that trains the model to identify related audio segments from the same clip.

The frontends feed into an EfficientNetB0 backbone. A critical aspect of the methodology is the initialization experiment, comparing standard Mel-scale initialization against random distributions (Uniform and Truncated Normal).

Visualization of learnable filter shapes for SincNet (top) and LEAF (bottom) frontends.

Results and Discussion

The experiments on AudioSet and SpeechCommandsV2 reveal several key findings:

SSL Synergy with Learnable Features

Learnable frontends benefit significantly more from SSL than from supervised training. On the SpeechCommandsV2 transfer task, the LEAF frontend (Mel-initialized) achieved 75.0% accuracy, a 14% absolute improvement over fixed Mel-filterbanks (61.2%).

The Mel-Scale as a Local Optimum

A surprising discovery is that random initialization outperforms Mel-initialization in the SSL setting. While the Mel-scale is superior for supervised learning, SSL-trained models perform better when initialized randomly. LEAF with uniform initialization reached 76.1% accuracy, and SincNet saw a ~3% improvement when moving from Mel-initialization to random initialization in the SSL setting.

Filter Divergence and Diversity

Analysis of the learned filters shows that SSL-trained models develop much more diverse filter configurations than supervised ones. Unlike supervised models, which tend to stay clustered near their initialization, SSL models "spread out" their filters to cover a broader frequency range than the Mel-scale allows.

Comparison of filter center frequency evolution from initialization to final state for SSL (COLA) and Supervised training across different frontends.

Conclusion

This work demonstrates that learnable frontends are highly effective when paired with self-supervised learning. The finding that random initialization can surpass biologically-inspired priors like the Mel-scale suggests that SSL allows models to discover more optimal, data-driven representations that are not constrained by human auditory models. Future work will explore if these findings generalize to other SSL frameworks and a wider variety of non-speech audio tasks.

Summary updated

BibTeX
@inproceedings{yadav2022learning,
  author = {Sarthak Yadav and Neil Zeghidour},
  title = {{Learning neural audio features without supervision}},
  booktitle = {Interspeech},
  year = {2022},
  url = {https://openreview.net/forum?id=KdcJ6bCjX5},
}
Figure