Contrastive Learning from Synthetic Audio Doppelgängers

MIT
* These authors contributed equally.
ICLR 2025

Abstract

Learning robust audio representations currently demands extensive datasets of real-world sound recordings. By applying artificial transformations to these recordings, models can learn to recognize similarities despite subtle variations through techniques like contrastive learning. However, these transformations are only approximations of the true diversity found in real-world sounds, which are generated by complex interactions of physical processes, from vocal cord vibrations to the resonance of musical instruments. We propose a solution to both the data scale and transformation limitations, leveraging synthetic audio. By randomly perturbing the parameters of a sound synthesizer, we generate audio doppelgängers—synthetic positive pairs with causally manipulated variations in timbre, pitch, and temporal envelopes. These variations, difficult to achieve through transformations of existing audio, provide a rich source of contrastive information. Despite the shift to randomly generated synthetic data, our method produces strong representations, competitive with real data on standard audio classification benchmarks. Notably, our approach is lightweight, requires no data storage, and has only a single hyperparameter, which we extensively analyze. We offer this method as a complement to existing strategies for contrastive learning in audio, using synthesized sounds to reduce the data burden on practitioners.

Examples

Example 1

Source 1
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50

Example 2

Source 2
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50

Example 3

Source 3
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50

Example 4

Source 4
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50

Example 5

Source 5
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50

Example 6

Source 6
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50

Example 7

Source 7
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50

Example 8

Source 8
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50

Example 9

Source 9
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50

Example 10

Source 10
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50

Example 11

Source 11
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50

Example 12

Source 12
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50

Example 13

Source 13
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50

Example 14

Source 14
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50

Example 15

Source 15
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50

Example 16

Source 16
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50

Example 17

Source 17
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50

Example 18

Source 18
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50

Example 19

Source 19
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50

Example 20

Source 20
A δ=0.01
A δ=0.05
A δ=0.10
A δ=0.25
A δ=0.50
B δ=0.01
B δ=0.05
B δ=0.10
B δ=0.25
B δ=0.50