Contrastive Learning of General-Purpose Audio Representations
About
We introduce COLA, a self-supervised pre-training approach for learning a general-purpose representation of audio. Our approach is based on contrastive learning: it learns a representation which assigns high similarity to audio segments extracted from the same recording while assigning lower similarity to segments from different recordings. We build on top of recent advances in contrastive learning for computer vision and reinforcement learning to design a lightweight, easy-to-implement self-supervised model of audio. We pre-train embeddings on the large-scale Audioset database and transfer these representations to 9 diverse classification tasks, including speech, music, animal sounds, and acoustic scenes. We show that despite its simplicity, our method significantly outperforms previous self-supervised systems. We furthermore conduct ablation studies to identify key design choices and release a library to pre-train and fine-tune COLA models.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Musical Instrument Classification | NSynth | Accuracy63.4 | 75 | |
| Keyword Spotting | Google Speech Commands v1 (test) | Accuracy71.7 | 68 | |
| Audio Classification | SPC V2 | Accuracy62.4 | 65 | |
| Speaker Identification | VoxCeleb1 | Accuracy29.9 | 58 | |
| Keyword Spotting | Google Speech Commands Google12 V2 (test) | Accuracy62.4 | 22 | |
| Musical Instrument Classification | NSynth (test) | Accuracy63.4 | 17 | |
| Speaker Identification | VOX1 (test) | Accuracy0.377 | 14 | |
| Spoken command recognition | SPCV2 (test) | Accuracy95.5 | 13 | |
| Acoustic Scene Classification | Acoustic scenes (test) | Accuracy94 | 5 | |
| Audio Classification | Birdsong detection (test) | Accuracy77 | 5 |