Contrastive Learning of General-Purpose Audio Representations
Paper · 2021 · Aaqib Saeed, David Grangier and Neil Zeghidour
Summary
A recording contains more than the information needed for any particular task. A speech clip carries a voice, words, background sounds, and recording conditions; a music clip carries instruments as well as other acoustic properties. Learning a separate representation for every classification problem requires labeled examples and repeated training. COLA investigates a broader possibility: learn useful audio features from recordings without consulting their labels, then reuse those features for different kinds of sound recognition. Its central question is whether a simple training signal derived from recording identity can support this breadth of transfer.
The training signal comes from pairs of short segments. COLA treats segments drawn from a shared recording as related, while segments taken from separate recordings act as distractors. An encoder converts each segment into a numerical representation. During pretraining, an additional projection stage and a learned similarity function help the system distinguish the related segment from the alternatives. The encoder learns through these comparisons rather than by reconstructing sound or predicting an annotated category. The authors pre-train on AudioSet, using its recordings but ignoring its labels, and subsequently evaluate the resulting features on 9 classification datasets covering speech, music, environmental scenes, and bird sounds.
The results support the usefulness of this deliberately broad training setup. With the encoder held fixed, a trained linear classifier achieves average downstream test accuracy of 74.3%, compared with 29.1% when the same kind of classifier receives features from a randomly initialized fixed encoder. When the authors adapt the complete pretrained network to each downstream task, average test accuracy reaches 85.1%, against 83.9% for supervised training from scratch. The benefit of pretraining appears on every evaluated task except language identification. Comparisons with earlier self-supervised audio systems also favor COLA in the authors’ reported evaluation, while its performance against the speech-oriented TRILL system is described as competitive.
The paper’s contribution is therefore both an empirical result and a useful simplification. Sampling within recordings supplies positive pairs, other batch members supply negatives, and a conventional convolutional encoder supplies the transferable features. Controlled comparisons favor learned bilinear similarity over the tested cosine alternative, and show that larger training batches help only up to a point. These findings establish a strong general audio classification baseline under the reported conditions. They do not establish universal usefulness for every audio task, nor do they show that recording identity always corresponds to the information a future application needs.
Interesting ideas
Let the data supply related views. COLA obtains its positive pairs by drawing segments from a shared recording. This replaces a collection of hand-designed perturbations with a relationship already present in the data. The reusable idea is to look for naturally grouped observations before constructing an elaborate augmentation pipeline. Such grouping can support learning whenever different observations retain useful common information. Its suitability depends on what the grouping preserves: recording membership is convenient, but it can bind together background conditions as well as meaningful sound sources. The borrowed principle is to make that assumption explicit and evaluate what transfers.
Reuse each batch as a comparison set. A segment serving as the positive for its own anchor also serves as a negative for other anchors. This arrangement makes the batch do more work without requiring a separate store of distractor representations. The principle applies wherever learning depends on distinguishing related examples from alternatives: organize computation so that already encoded examples can participate in several comparisons. COLA demonstrates the practical value of that arrangement, while its batch-size study also warns that expanding the comparison set indefinitely is not automatically beneficial.
Separate the learning interface from the exported representation. COLA places a projection head between its encoder and its contrastive similarity calculation, then removes that head for downstream classification. The reusable architectural idea is to distinguish the representation an application receives from the space used to optimize a pretraining objective. That separation permits the training machinery to serve its own purpose without dictating the final application interface. The paper does not isolate the projection head’s individual contribution, so the lesson is a design pattern supported by the complete system rather than a proven claim that this component is always necessary.
Test similarity instead of inheriting it. The authors compare cosine similarity with a learned bilinear function and obtain better downstream results with the latter throughout the reported comparison. A similarity rule is part of the learning system, not a neutral measurement applied after learning. Changing it changes which relationships training rewards. Researchers borrowing contrastive learning for another domain can reuse this question: does the customary similarity function suit the representations being learned? COLA supports investigating that choice, while leaving open whether its preferred answer transfers to a different encoder, dataset, or training regime.
Measure portability with frozen features. Training only a linear classifier over a fixed encoder provides a relatively direct test of whether pretraining has organized useful information into an accessible form. Full adaptation answers a different question: whether pretraining supplies a helpful starting point for supervised learning. COLA evaluates both, making it possible to separate representation reuse from task-specific adaptation. This distinction is valuable whenever a claimed general representation will be used by applications with different training budgets or different permissions to alter shared components.
Evaluate breadth before claiming generality. The downstream collection crosses speaker identity, commands, scenes, birds, musical instruments, broad audio categories, and language identification. These tasks do not ask the same question of a recording. Their variety makes the general-purpose claim more informative than success on closely related speech tasks alone. The idea worth reusing is to define generality through heterogeneous evaluations, including plausible failure cases. COLA’s exception on language identification is useful evidence because it prevents the average improvement from becoming an unsupported promise of improvement everywhere.
Deep dive: Contrastive Learning of General-Purpose Audio Representations
How COLA learns reusable audio features from unlabeled recordings, how its contrastive training works, and what its transfer tests establish. · about 33 minutes to read
How Mova uses it
For Mova, the small transparent language system implemented in Rust, COLA is most useful as a possible design reference for an audio-facing component. The paper does not describe Mova, and there is no basis for claiming that Mova already contains COLA pretraining, an audio encoder, or an evaluated sound-recognition pipeline. The concrete connection is prospective: if Mova gains an interface to recorded sound, the paper offers a way to investigate reusable acoustic features before committing to a separately trained representation for every supported task.
One possible architecture would keep acoustic processing visibly separate from language processing. An audio component could transform short sound segments into vectors, and a small task-specific classifier could turn those vectors into an explicit category decision. Mova could then consume that decision through a documented interface. This follows the separation between COLA’s encoder and its downstream classifier without claiming that a sound vector is already a linguistic analysis. A speaker category, a command category, and an environmental category answer different questions, even if they originate from a shared encoder.
That separation matters for transparency. A compact interface can state what the acoustic component predicts, what training data supports the category set, and how segment-level outputs become a recording-level decision. The encoder’s numerical features would still require empirical validation; they would not become human-readable merely because surrounding software is explicit. The paper offers a reusable feature-learning mechanism, instead of a demonstration that its internal coordinates have individually interpretable meanings. Mova could preserve transparency at component boundaries while acknowledging that the learned acoustic representation itself remains an empirical object.
The frozen-encoder protocol is particularly relevant to such an investigation. Mova could first assess whether a shared representation supports a simple classifier for a chosen audio task. Keeping the encoder fixed would make the experiment easier to interpret: any task-specific fitting would occur in the classifier. If full adaptation were later considered, it should be evaluated separately, because changing the encoder changes the shared acoustic component. COLA’s distinction between these evaluation regimes gives Mova a concrete way to document the difference between reusing features and retraining a larger pipeline.
The pair-generation rule also suggests a research question rather than an immediate implementation prescription. If Mova worked with grouped recordings, segments from the same recording could provide a label-free training relationship. Before adopting that relationship, an experiment would need to establish whether it preserves the distinctions Mova actually needs. A recording can contain several sounds, and a useful acoustic grouping is not automatically a useful linguistic grouping. COLA demonstrates transfer to selected classification tasks; it does not demonstrate that recording-level contrastive learning produces symbolic grammatical categories, textual meanings, or an explanation of spoken content.
A further borrowing would be the evaluation discipline. An audio extension should be tested on the specific categories it exposes to users, with a clear distinction between an unchanged encoder and an adapted one. Recording-level decisions should also state how short-segment predictions are combined. COLA uses prediction averaging for this purpose, providing a concrete procedure Mova could examine. None of this establishes deployment cost or suitability for Mova’s intended runtime. Those would remain separate measurements. The paper supplies an experimental starting point and useful component boundaries, while an actual Rust integration and its behavior would still need to be built and assessed.
The problem and its context
What makes an audio representation reusable?
Audio classification begins with a practical mismatch. A waveform records changing pressure, while a downstream task asks for a category such as a speaker, an instrument family, or an acoustic scene. A representation connects these levels by turning the signal into features from which a classifier can make the requested distinction. If those features must be learned anew for every task, the process repeatedly consumes labeled examples. A reusable representation aims to move some of that learning into a preliminary stage that does not depend on the eventual category set.
The paper places this ambition within self-supervised machine learning. Here, the preliminary learning signal comes from a relationship that can be constructed from the data itself. The system need not receive an annotated answer for each training example. This does not eliminate supervision from the eventual application: COLA’s downstream classifiers still learn from labeled task data. It changes where labels are required. The expensive general feature-learning stage uses recordings without their annotations, and supervised training subsequently connects those features to the categories of interest.
“General-purpose” is therefore a transfer claim. It means that a shared pretrained encoder should support tasks whose labels and acoustic domains differ. It does not mean that the same classifier answers every question about a recording. Speaker recognition and instrument classification still require different output categories and their own supervised fitting. What they may share is an encoder that has already learned useful acoustic distinctions. The paper tests that possibility through a varied downstream collection, instead of assuming that a representation successful on speech will also serve other sounds.
Discrimination instead of reconstruction
The authors organize earlier self-supervised approaches around a useful distinction. Generative encoder–decoder systems learn through reconstructing an input or a related target. Discriminative pretraining instead asks the learner to recognize a related observation among alternatives. Both can create learning signals without task labels, but they require different computations. The paper emphasizes that discriminative training avoids reconstructing the input, which makes it computationally attractive in the setting the authors study.
A newcomer can understand this difference through the output required during training. A reconstruction objective needs a system capable of producing the target representation of sound. A contrastive objective needs scores that distinguish a preferred candidate from distractors. COLA concentrates on the second operation. It learns how segments should be arranged relative to one another, with the expectation that the resulting encoder will preserve information useful for later classification.
Earlier audio research had already explored this direction. Jansen and colleagues used metric learning with a triplet objective, bringing an anchor closer to a positive example while separating it from a negative. Their instance-generation procedure included injected noise, shifts in time and frequency, and sampling within nearby temporal regions. The paper also discusses Shor and colleagues’ speech benchmark, where unsupervised triplet training on an AudioSet subset improved performance on downstream speech classifications. COLA therefore does not introduce the broad idea of learning acoustic features by comparing related and unrelated examples.
Its objection concerns the practical structure of those comparisons. A triplet objective depends strongly on the negative examples selected for training. If distractors are poorly chosen, the training signal may be unhelpful. The authors describe this dependence as a weakness of earlier approaches and seek a procedure that can use many negatives together without carefully mining individual examples. Their alternative draws distractors directly from the current batch, simplifying the sampling machinery.
Why speech alone is not enough
The paper identifies another limitation in the surrounding research: much representation learning for audio had concentrated on speech. The authors name speech-focused work, including wav2vec-related approaches and cross-language pretraining, while acknowledging earlier exceptions that considered a broader audio scope. Their argument is about coverage. A system evaluated only on speech does not establish that its representation also supports animal sounds, environmental scenes, or music.
The distinction matters even within speech. Identifying a speaker asks about a person’s voice, recognizing a command asks about a category of utterance, and identifying a language asks about a different level of organization again. Broad audio evaluation adds further variation. An instrument family and an acoustic scene do not share a label space with a speaker identity. A useful shared representation must retain information that can support these different partitions of recordings.
COLA’s training set helps make this ambition plausible because AudioSet contains diverse kinds of sound. Yet diversity in pretraining data alone is insufficient evidence. The downstream evaluation is necessary to discover whether the learned distinctions transfer. The paper’s contribution combines a broad source of unlabeled recordings with a collection of classification tests that examine several uses of the resulting features.
Borrowing a framework while simplifying the machinery
The authors connect COLA to SimCLR and MoCo in computer vision, as well as CURL in reinforcement learning. These systems form part of the immediate contrastive-learning context. COLA borrows the general strategy of learning through agreement between related observations and disagreement with alternatives, but changes how those observations are produced and managed.
Its positive pairs come from segment sampling within an audio recording. This removes the need to explore a collection of explicit augmentation operations in the reported approach. Its negatives come from separate recordings represented in the same batch. This avoids maintaining an additional memory bank of distractors. These are practical simplifications: the recording provides the relationship for positives, and the batch provides the comparison set.
The authors also distinguish COLA from contrastive predictive coding. COLA does not use preceding latent information to predict future latent information. Its objective depends on whether segments share a source recording, rather than on reconstructing temporal progression. This matters when interpreting what the system is being asked to learn. It may capture features stable across a recording, but the objective does not directly require a representation of event order or a forecast of what sound comes next.
The method, step by step
COLA’s training procedure separates the source of supervision, the acoustic representation, and the eventual task. Recording membership supplies related pairs. A convolutional encoder turns segments into vectors. A projection head and similarity function make those vectors usable for contrastive training. After pretraining, the temporary comparison machinery gives way to a classifier fitted for a downstream dataset.
From recordings to transferable audio features
The steps in order.
Draw an anchor and its related segment
Training begins with recordings rather than category annotations. Within a selected recording, the authors sample segments uniformly at random. A segment becomes the anchor, and another segment from that recording becomes its positive example. “Positive” means that the training objective should favor this candidate when it compares alternatives for the anchor. It does not mean that the pair has been checked against a human-defined sound category.
This is an important distinction. Sharing a recording is an observable relationship that can be obtained without labels. Sharing a speaker, instrument, or scene category is the kind of relationship downstream applications may care about. The method relies on the first relationship being informative enough to help learn features useful for the second. The transfer experiments test that reliance indirectly, through classification accuracy.
The segments need not be generated by perturbing an identical starting segment. Sampling allows them to contain different moments from the same source. The intended benefit is that learning must respond to information that persists or recurs across the recording, rather than merely recognizing an unchanged segment after a known transformation. This is an interpretation of the training pressure, not a measured account of exactly which acoustic factors the encoder uses.
Turn the batch into alternatives
Each anchor must distinguish its own positive segment from candidates belonging to other recordings. COLA obtains those negative candidates from the positive segments already present in the batch. A candidate is therefore useful in different roles: it is the correct match for its associated anchor and a distractor for the remaining anchors.
This arrangement ties the available comparison set to the training batch. The authors explore batch sizes from 256 to 2048. Larger batches expose an anchor to more alternatives during the contrastive calculation, but also change the conditions under which optimization proceeds. The batch-size experiment is consequently central to the method, rather than an incidental implementation detail.
Pair construction is repeated during learning. The authors resample segments as training proceeds and shuffle the recordings again at each epoch. The system is not restricted to a single fixed collection of within-recording pairs or a permanently assigned set of negatives. Across training, a recording can contribute different segment pairs and encounter different distractor recordings.
No separate memory of earlier distractor embeddings is required by this procedure. Every comparison uses representations computed for the current batch. The paper presents that as an efficiency and implementation advantage over approaches maintaining a memory bank. The advantage concerns the organization of contrastive examples; it does not establish a measured runtime or memory budget for every deployment setting.
Convert sound into a frequency–time representation
Before encoding, each segment is transformed into log-compressed mel-filterbank features. This representation describes acoustic energy across frequency bands over time, with a logarithmic compression applied to the values. It gives the encoder a frequency–time array instead of the original waveform.
The analysis window is 25 ms, and successive windows advance with a hop of 10 ms. The representation uses 64 mel-spaced frequency bins spanning 60–7800 Hz. Each segment contains 96 time frames and corresponds to 960 ms of sound. These settings define the local acoustic view from which the encoder must learn.
The two axes have distinct meanings. Frequency bins describe different parts of the acoustic spectrum, while time frames describe successive positions in the segment. Calling this a two-dimensional input does not make sound equivalent to an image; it makes a convolutional architecture developed for images applicable to an array with the required structure. The authors use EfficientNet-B0 on this basis, without modifying its architecture for the mel-filterbank input.
Encode the segment into a transferable vector
The mathematical interface to the encoder is:
h = f(x), x ∈ ℝ^(N×T), h ∈ ℝ^d
Here, x is the segment’s log-compressed mel-filterbank array. N is the number of frequency bins, and T is the number of time frames. The notation ℝ^(N×T) means that x contains real-valued entries arranged along those axes. The function f is the encoder, h is its output representation, and d is the number of coordinates in that representation.
The implementation uses EfficientNet-B0 as f. Global max-pooling over the encoder’s final layer produces h with 1280 coordinates. Pooling reduces the final feature map to a fixed-size vector, which gives downstream classifiers a consistent input interface. The paper’s transfer experiments use this vector instead of the projection-head output.
This distinction determines what pretraining actually delivers. The reusable artifact is an encoder that turns an acoustic segment into h. Recording labels, contrastive candidates, and projection-space comparisons are training machinery around that encoder. They do not need to become part of the downstream classifier’s input format.
Project the representation for contrastive comparison
During pretraining, the encoder output passes through another function:
z = g(h)
The symbol h is the encoder representation defined above. The function g is the projection head, and z is the resulting vector used for contrastive similarity calculations.
The projection head contains a fully connected layer with 512 units, followed by layer normalization and a tanh activation. These operations create the space in which COLA performs its learned comparisons. The head is shallow relative to the encoder, but its role is conceptually separate: it prepares the representation for the pretraining objective.
After pretraining, the authors discard this head. A downstream linear classifier receives h directly. As a result, a useful representation need not be identical to the vector space that makes the contrastive objective easiest to optimize. The architecture permits that distinction, although the reported ablations do not independently establish how much of the final performance comes from retaining this separation.
Learn a bilinear similarity function
COLA assigns a compatibility score to a pair of segments through a learned bilinear function:
s(x, x′) = g(f(x))ᵀ W g(f(x′))
The inputs x and x′ are the acoustic feature arrays for the compared segments. The encoder f and projection head g have the roles already described. The superscript ᵀ denotes transposition, which turns the first projected vector into a row for the multiplication. W is a learned matrix of bilinear parameters. The function s returns the similarity score.
The score depends on the features of both segments and on how W connects their projected coordinates. A high score makes a candidate more competitive when the system chooses among alternatives for an anchor. The objective learns W along with the representation-producing components, so the comparison rule adapts during pretraining.
The authors contrast this choice with cosine similarity, a common alternative in the systems they discuss:
s_cos(x, x′) = g(f(x))ᵀ g(f(x′)) / (‖g(f(x))‖ ‖g(f(x′))‖)
Here, s_cos is the cosine similarity score for segments x and x′. The functions f and g again produce their projected vectors. The transposed multiplication in the numerator is their dot product. The notation ‖·‖ denotes vector length, so the denominator normalizes that dot product by the lengths of both vectors.
Cosine comparison emphasizes the direction of the projected vectors after this normalization. Bilinear comparison instead includes the learned matrix W. The paper does not treat that difference as merely a mathematical preference: it pre-trains with each choice and evaluates the resulting encoders on downstream classifications. For the cosine condition, the authors use temperature τ=0.2 to scale scores before the loss calculation. The reported comparison favors bilinear similarity.
Turn matching into a classification objective
For an anchor, training should raise the score of its positive relative to the scores of negative candidates. The loss is:
L = −log( exp(s(x, x⁺)) / Σ[v ∈ X⁻(x) ∪ {x⁺}] exp(s(x, v)) )
L is the loss for anchor x. The symbol x⁺ identifies its positive segment. X⁻(x) is the set of negative segments used for that anchor, and v ranges over that set together with x⁺. The function s is the learned similarity score. The operation exp exponentiates a score, Σ sums the resulting quantities, and log is the logarithm.
The fraction expresses the positive candidate’s share of the total exponentiated score assigned to all candidates. Taking its negative logarithm makes the loss smaller when the positive receives a larger share. A positive score being high in isolation is therefore insufficient: it must compete successfully with the negatives available in that batch.
This is multi-class cross-entropy applied to matching scores. The classes for this calculation are the candidate segments, rather than semantic sound categories such as an instrument family. That difference explains how the authors can pre-train without AudioSet labels. The training target identifies which candidate shares the anchor’s recording, and the later classification target identifies the category required by a downstream dataset.
The formulation also clarifies the distinction from a triplet objective. COLA places multiple distractors together in the denominator. The learner must distinguish the positive against the available set rather than only respond to a chosen anchor–positive–negative combination. The paper argues that this reduces dependence on carefully selecting individual negative examples.
Pre-train without AudioSet annotations
AudioSet supplies 2 million excerpts, described as 10 seconds each, with annotations spanning over 500 classes. COLA uses the sound recordings and leaves those annotations out of its pretraining objective. The diversity of the source data remains relevant even though its category labels do not enter the loss.
The authors optimize with ADAM at a learning rate of 10^-4 for 500 epochs. Within this procedure, segment pairs are sampled repeatedly and recording order is reshuffled. The batch-size study varies the number of examples participating in the training batch while retaining bilinear similarity.
Calling this stage self-supervised therefore has a precise scope. The acoustic encoder learns without receiving AudioSet’s annotated categories. It does not mean that the complete experimental pipeline contains no labeled data: downstream fitting and evaluation necessarily depend on the target datasets’ categories. The paper’s claim concerns the source of supervision for pretraining.
The authors also announce a released implementation library covering COLA pretraining and downstream adaptation. That release supports their aim of offering a straightforward baseline. It does not replace the need to specify the feature extraction, sampling, and evaluation procedures, since those choices determine what an implementation is actually testing.
Fit a downstream classifier
The first transfer regime fixes the pretrained encoder and learns a linear classifier over its output. “Linear” means that the classifier makes its category scores through a linear mapping of the features. Keeping the encoder fixed limits task-specific learning to that added classifier, making the result informative about the usefulness of the existing representation.
The second regime uses COLA pretraining as the initialization for the full task-specific network. The authors then adapt the encoder and classifier together. This is fine-tuning: supervised training changes previously learned parameters to suit the downstream objective. It asks whether COLA provides a useful starting point, rather than whether its unchanged features are sufficient.
For downstream classifier training, the paper gives a batch size of 64 and learning rate of 10^-3. Training again uses randomly chosen segments lasting 960 ms. The short segment therefore remains the basic training unit even when the eventual decision concerns a longer recording.
Evaluation uses complete sequences. The authors divide a sequence into non-overlapping segments of 960 ms, process them through the encoder and classifier, and average their predictions. This makes the reported recording-level decision depend on evidence across the sequence rather than on a randomly selected evaluation crop. The aggregation occurs over predictions; the paper does not describe it as averaging encoder vectors before classification.
Experiments and results
A shared encoder across different questions
The evaluation examines transfer through 9 downstream datasets. Its breadth is central to the paper’s argument: generality is tested by changing both the recording domain and the kind of label the classifier must predict. The reported metric is downstream test accuracy, expressed as a percentage. The authors discuss both averages across tasks and selected task-specific comparisons.
Speaker identification is evaluated using a LibriSpeech subset containing 100 hours and 251 speakers. The paper also uses a VoxCeleb subset with 1,251 speakers, following the selection used in the earlier speech benchmark. These tasks ask whose voice is present, so success depends on information different from the command categories used elsewhere in the evaluation.
Speech Commands provides keyword-spotting evaluations. Its V1 setting contains 11 command classes, while V2 contains 35. The input examples are described as one second of speech. This task gives the representation a content-related classification requirement, distinct from identifying a speaker.
Environmental and animal audio broaden the test beyond speech. TUT Urban Acoustic Scenes 2018 contains recordings labeled by 10 scene categories. Bird Song Detection, associated with the DCASE 2018 challenge, supplies a binary bird-detection task. A representation useful in both settings must support distinctions that are not captured by a speech-only evaluation.
The remaining datasets add music and language-related questions. MUSAN separates speech, music, and noise into 3 categories. NSynth asks for instrument-family classification over 11 classes of musical-note recordings. Voxforge supplies language identification across six spoken-language categories. These tasks extend the range of what must be accessible from the encoder without changing the basic pretraining procedure.
The value of this collection is not that every task is equally difficult or that an average makes them interchangeable. It is that the same pretraining strategy is assessed against different target distinctions. The experiments ask whether an encoder learned from recording relationships can become useful when a downstream dataset reorganizes sound around its own labels.
What the baselines isolate
The randomly initialized fixed encoder is an important control. Its weights are not shaped by COLA pretraining, but a linear classifier can still be fitted over its outputs. This baseline measures what task fitting can obtain from an untrained feature extractor under the comparison protocol. It prevents all downstream success from being attributed merely to the existence of a convolutional architecture.
The fully supervised baseline asks another question. It trains EfficientNet-B0 directly on a downstream dataset instead of starting from COLA’s pretrained encoder. That comparison tests the benefit of the initialization when task labels are available and the complete network can learn. It is more relevant to a supervised application than comparison with fixed random features alone.
Earlier self-supervised systems provide a further comparison. They test whether COLA improves on previous ways to learn audio features without the downstream category labels. These baselines include triplet-based learning, Audio2Vec variants, and temporal-gap prediction. Their inclusion places the results within the specific representation-learning alternatives discussed by the authors.
These comparisons should be read separately. A frozen-feature advantage over random initialization supports learned representation quality. A fine-tuning advantage over supervised training from scratch supports the usefulness of pretraining as an initialization. An advantage over another self-supervised objective supports the reported system comparison. None of these statements alone establishes the others.
Frozen features carry useful classification information
The clearest aggregate result comes from the linear evaluation protocol. Across the downstream collection, a classifier over fixed COLA features obtains average test accuracy of 74.3%. The corresponding average with a randomly initialized fixed encoder is 29.1%.
Mean downstream test accuracy with fixed encoders across 9 datasets
COLA pre-training produces features that support substantially better linear classification.
The numbers
| System or setting | mean test accuracy % |
|---|---|
| Random fixed encoder | 29.1 |
| COLA fixed encoder (this paper) | 74.3 |
Because the encoder is unchanged during this evaluation, the supervised classifier cannot repair its internal representation through task-specific encoder training. The result therefore provides evidence that pretraining has already organized information useful for the evaluated categories. This is stronger evidence for reusable features than a result obtained only after adapting the entire network.
The result also supports the paper’s emphasis on a shared pretraining stage. The authors do not need to define a different self-supervised objective for each downstream dataset. The same general feature-learning setup supplies an encoder that can be paired with different linear classifiers.
The average nevertheless has a limited interpretation. It summarizes several classification settings with different labels and data. It does not provide a task-by-task account of performance, nor does it identify which acoustic properties account for successful transfer. The paper’s discussion supports a broad aggregate improvement over fixed random features; it does not make that average a probability of success on an arbitrary future task.
Full adaptation benefits from the pre-trained starting point
When the full network is adapted to each downstream task, average test accuracy is 85.1%. Training the supervised architecture from scratch gives an average of 83.9%. The paper reports that COLA initialization helps on every evaluated task except language identification.
Mean downstream test accuracy with full supervised training across 9 datasets
Starting from COLA improves average performance over training the supervised network from scratch.
The numbers
| System or setting | mean test accuracy % |
|---|---|
| Supervised training from scratch | 83.9 |
| COLA followed by fine-tuning (this paper) | 85.1 |
This result answers a practical question left open by frozen linear evaluation. An application may have sufficient labeled data and compute to update the encoder itself. In that situation, useful pretraining should be judged against direct supervised training, rather than only against untrained fixed features. The authors’ reported average favors COLA under this stronger comparison.
The language-identification exception matters. It shows that an overall gain is compatible with a downstream setting where the initialization does not help. A representation can be broadly useful without preserving every distinction equally well or providing the best optimization starting point for every category set.
The paper also characterizes frozen COLA classification as approaching the performance of the fully supervised in-domain convolutional system. That description should be understood alongside the evaluation regimes: approaching a supervised result with a fixed encoder is evidence for portable features, while surpassing a from-scratch result after full adaptation is evidence for transfer-assisted supervised learning. The two claims concern different amounts of task-specific change.
Comparison with earlier self-supervised objectives
The authors compare their embeddings with representations learned through a standard triplet objective and through Audio2Vec’s CBoW and SG variants. They also include TemporalGap. These alternatives differ in what training requires the representation to predict or reconstruct.
In the Audio2Vec comparisons described by the paper, the generative task reconstructs a temporal portion of a log-mel representation from its surrounding content, or works in the reverse direction. TemporalGap predicts separation in time between sampled audio portions. The triplet alternative learns relative distances among an anchor, a related example, and a distractor. COLA instead classifies the matching candidate through its multi-negative contrastive calculation.
The paper reports that COLA’s fixed representations outperform these alternatives throughout the stated comparison. A concrete example is acoustic-scene classification: its discussion gives accuracy of 94% for COLA, compared with 73% for the earlier triplet approach.
Acoustic-scene downstream test accuracy in the reported triplet comparison
COLA features outperform the earlier triplet-based representation on acoustic-scene classification.
The numbers
| System or setting | test accuracy % |
|---|---|
| Earlier triplet representation | 73 |
| COLA representation (this paper) | 94 |
The authors also report an absolute margin of approximately 30% for speech-command and musical-instrument classification in their comparison with prior methods. This statement supplies the magnitude emphasized in the discussion, but not a complete set of individual scores for those tasks. It should therefore remain a reported comparative claim rather than be expanded into reconstructed benchmark rows.
These results matter because the contrastive objective is not evaluated only against reconstruction-free random features. It is compared with other deliberate self-supervised training signals for audio. The reported advantage suggests that the combination of sampling, encoder, projection, and multi-negative comparison is effective under the authors’ evaluation conditions.
A general-audio comparison with a speech-focused system
The authors additionally compare with TRILL-19 on three speech-related tasks. TRILL-19 is identified as the strongest self-supervised system in the cited TRILL work. The paper describes COLA as competitive in this comparison, rather than claiming an unqualified advantage over TRILL everywhere.
The training scope makes the comparison informative. TRILL uses the speech-containing portion of AudioSet, whereas COLA’s pretraining and downstream evaluation cover a broader range of sounds. Competitive performance suggests that this broad setup does not prevent useful speech transfer in the tested settings.
It does not establish that broad pretraining always substitutes for specialization. The comparison concerns the reported speech tasks and the systems as evaluated. Nor does it imply that COLA has been tested on every non-semantic speech benchmark. Its value is narrower and clearer: a general-audio representation remains a credible participant in a comparison with a speech-focused alternative.
What the ablations show
The learned comparison rule matters
The similarity ablation changes how pretraining scores pairs. The authors compare bilinear similarity with cosine similarity, using temperature τ=0.2 for the cosine condition. They then assess the resulting encoders through downstream classifiers. This connects an internal training choice to the usefulness of the exported representation.
Bilinear similarity performs better throughout the reported downstream comparison. That result supports the authors’ decision to use it as the default for the rest of the paper. It also shows why importing an otherwise successful contrastive recipe requires attention to the comparison function. A familiar objective name does not determine the geometry in which its examples compete.
The interpretation should remain at the level the experiment supports. Bilinear scoring includes a learned matrix, while cosine scoring normalizes the vectors before comparing their directions. The ablation shows that the tested bilinear configuration produces more useful features in this setup. It does not isolate a universal reason that cosine must fail, and it does not rule out different cosine temperatures or other training adjustments.
Nor does this comparison turn the bilinear score into a semantic explanation. A high score means that the learned system regards a pair as compatible for its training objective. The downstream tests establish usefulness for classification, but they do not identify which dimensions correspond to a speaker, a sound event, or a recording condition.
More negatives help only within the tested range
The batch-size study keeps bilinear similarity and changes the pretraining batch size. The explored range runs from 256 to 2048. Because negative candidates come from other recordings in the batch, batch size changes the alternatives each anchor encounters during a contrastive update.
The authors report that a batch size of 1024 gives better average downstream representations than smaller batches. This is consistent with the motivation for using many distractors: the matching task can provide a stronger learning signal when an anchor must distinguish its positive from a broader collection of alternatives.
Increasing the batch size to 2048 worsens performance in most cases. The experiment therefore rejects a simple assumption that more in-batch negatives must always improve the resulting representation. The useful setting depends on the full training procedure, and downstream evaluation remains necessary even when a larger batch appears attractive from the objective alone.
This study does not cleanly separate every consequence of batch size. Enlarging a batch changes the comparison set and also changes how examples are grouped during optimization. The reported outcome establishes a practical preference among the tested settings; it does not uniquely attribute the deterioration to a particular mechanism.
Which design choices remain bundled together
The paper’s main controlled design studies concern similarity and batch size. Its baseline comparisons also examine the usefulness of pretraining and the distinction between frozen features and full adaptation. Together, these analyses provide evidence for several important choices in the reported system.
Other components remain part of the combined recipe. The paper does not report an isolated removal of the projection head, a controlled replacement of global max-pooling, or a systematic comparison of segment lengths. It also does not directly compare within-recording sampling against a comprehensive augmentation search under otherwise matched conditions.
That distinction helps calibrate the explanation of why COLA works. The evidence supports the complete system and identifies preferred settings for the tested similarity and batch-size choices. It does not license assigning a separate measured contribution to every architectural component. Some elements are successful ingredients of the recipe without being individually demonstrated causes of its advantage.
Limitations
The authors define a classification scope
The authors frame their contribution around reusable representations for audio classification. Their experiments cover varied categories and recording domains, but the outputs remain classifications. The paper does not claim a demonstrated solution to transcription, sound generation, source separation, or temporal event localization.
That boundary is substantive. A representation can preserve enough information to choose an instrument family while discarding details needed to recreate the waveform. It can support a recording-level category while failing to identify exactly when an event occurred. These are limits a careful reader should infer from the evaluation tasks, rather than failures the authors establish through negative experiments.
The same caution applies to linguistic understanding. Keyword spotting is a classification task over a specified command inventory. It does not on its own establish an ability to represent arbitrary spoken meaning. Speaker and language identification likewise evaluate particular distinctions. The breadth of audio domains should not be converted into an unsupported breadth of language capabilities.
Recording membership is an imperfect relationship
The authors explicitly choose shared recording identity as their source of positive pairs. A careful reader should recognize that this relationship need not coincide with a downstream label. Different moments within a recording can contain different events. Conversely, recordings treated as negatives can contain the same kind of sound.
This creates an inherent gap between the pretraining target and semantic categories. The objective rewards recognizing a related candidate under the sampling procedure, not agreement with every possible human interpretation of the audio. Useful transfer shows that the gap is manageable in the evaluated tasks; it does not show that the gap disappears.
Recording-specific conditions could also contribute to matching. Background characteristics or recording properties may persist across sampled segments. The paper does not isolate how much its encoder relies on these factors compared with the foreground sound information required by downstream tasks. This is an inference about what the objective permits, not an author-reported measurement of a particular shortcut.
The method’s simplicity therefore comes with a clear responsibility for evaluation. Natural grouping removes the need to design positive transformations, but it does not remove the need to check that the learned invariances fit the application. A shared recording is an available supervision signal, rather than a guarantee of semantic equivalence.
Generality is bounded by the evaluated collection
The authors’ broad claim rests on the selected downstream datasets. That collection is meaningfully heterogeneous, yet it remains a finite sample of tasks and recording conditions. A careful reader should treat general-purpose as evidence of cross-task portability within this evaluation, not a certificate of usefulness for every future sound problem.
The language-identification result supplies an explicit qualification from the authors’ own findings. COLA initialization does not improve on training from scratch there, despite improving the reported average and helping the other evaluated tasks. This exception makes clear that pretraining benefits are task dependent.
The comparison with TRILL has a similar boundary. The paper calls COLA competitive on the speech tasks included in that comparison. It does not establish dominance over every speech-oriented representation or every possible training arrangement. The earlier-system comparisons support the reported benchmark conclusions, while leaving broader rankings unsettled.
The aggregate results do not explain every task
The prose reports aggregate accuracies and selected task-specific comparisons, but those values do not reveal the complete pattern of gains and errors. An average can show an overall advantage without identifying which categories are confused or which recording conditions are difficult. The paper’s stated figures should not be expanded into a detailed error profile that it does not establish.
The presented results also do not give uncertainty estimates for the aggregate comparisons. Without reported variation across repeated training runs or comparable uncertainty measures, a reader cannot attach a quantified stability claim to each difference. This is a reporting limit visible in the experimental account, rather than evidence that the observed advantages are necessarily unstable.
Similarly, the phrase general-purpose does not reveal whether the same individual acoustic features support every task. Different classifiers may exploit different parts of the shared vector. The evaluation demonstrates accessibility of useful information through downstream fitting; it does not provide a complete interpretation of the representation’s internal organization.
Simplicity does not establish deployment cost
The authors characterize the approach as lightweight and straightforward to implement, emphasizing its encoder choice and the absence of reconstruction or a negative memory bank. Those are concrete design properties. A careful reader should distinguish them from a measured claim about latency, energy use, or suitability for a constrained device.
Pretraining still involves a large audio collection, repeated epochs, and substantial batch sizes. The paper’s stated optimization settings define that process, but no deployment-specific budget follows from them automatically. A system intended for a particular runtime would need measurements under that runtime’s hardware and input conditions.
The inference procedure also aggregates predictions across segments of a sequence. This is a clear way to classify a complete recording, but its accuracy does not establish behavior for continuously arriving audio or for decisions required before a recording ends. Those application settings would need their own protocols.
The ablations support choices rather than universal laws
The authors explicitly report that bilinear similarity wins their tested comparison and that batch expansion eventually becomes harmful in most cases. These findings are useful, but they are conditional on the architecture, sampling procedure, optimization, and evaluation collection.
A careful reader should therefore avoid treating 1024 as an intrinsically optimal batch size for contrastive audio learning. It is the preferred average setting in the reported study. Likewise, the bilinear result does not establish that every cosine-based alternative is inferior under every configuration.
Finally, the paper demonstrates benefits from the overall recipe without measuring every ingredient independently. That is sufficient for proposing a practical baseline, but it limits causal claims about exactly why the system succeeds. The strongest supported conclusion is that this combination learns transferable classification features, with targeted evidence favoring its similarity rule and a particular region of the tested batch-size range.
What came after
COLA’s later citation record includes AudioLM: a Language Modeling Approach to Audio Generation, from 2022. Its title places it in audio generation through a language-modeling approach, extending the surrounding research conversation beyond the classification-transfer setting evaluated by COLA. The citation establishes that AudioLM engages with COLA as prior work. It does not, on its own, establish that AudioLM uses COLA’s encoder, adopts its positive-pair construction, or trains with its bilinear objective.
The other listed later citation is SSAST: Self-Supervised Audio Spectrogram Transformer, also from 2022. Its title identifies a self-supervised approach to audio spectrograms using a Transformer. That places it near COLA’s central concern of learning useful audio representations without category supervision during pretraining. The available citation information does not specify which COLA ideas SSAST retains, compares against, or replaces, so a more detailed technical inheritance would be unwarranted.
These later works indicate continued attention to self-supervised audio and learned acoustic representations, but they do not establish a documented chain of component reuse. Audio generation and spectrogram representation learning can draw on the same broad motivation while choosing different objectives and architectures. Citing COLA situates it within that developing research area; determining a direct methodological dependency requires evidence beyond the citation itself.
COLA’s independently established contribution remains clear. It shows that a recording-based relationship, a multi-negative contrastive objective, and a conventional convolutional encoder can produce useful features across diverse audio classifications. Its strongest reusable legacy is the combination of a simple baseline with a disciplined transfer evaluation: learn from an available relationship, separate pretraining machinery from exported features, and test usefulness across tasks rather than assuming it from the objective alone.
Cite
Cite as Aaqib Saeed, David Grangier and Neil Zeghidour. 2021. Contrastive Learning of General-Purpose Audio Representations. IEEE International Conference on Acoustics Speech and Signal Processing.
@inproceedings{saeed2021contrastive,
title = {{Contrastive Learning of General-Purpose Audio Representations}},
author = {Aaqib Saeed, David Grangier and Neil Zeghidour},
booktitle = {IEEE International Conference on Acoustics Speech and Signal Processing},
year = {2021},
doi = {10.1109/icassp39728.2021.9413528},
eprint = {2010.10915},
archivePrefix = {arXiv},
url = {https://doi.org/10.1109/icassp39728.2021.9413528}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/saeed-2021-contrastive-learning-general-purpose-audio/
References
- J.B Grill, F. Strub, F. Altché, C. Tallec, P.H. Richemond, E. Buchatskaya, C. Doersch, B.A. Pires, Z.D. Guo, M. G. Azar, et al., “Bootstrap your own latent: A new approach to self-supervised learning,” arXiv preprint arXiv:2006.07733, 2020. our card
- A. Oord, Y. Li, and O. Vinyals, “Representation learning with contrastive predictive coding,” arXiv preprint arXiv:1807.03748, 2018. our card
- J. Devlin, M. Chang, K. Lee, and K. Toutanova, “Bert: Pre-training of deep bidirectional transformers for language understanding,” arXiv preprint arXiv:1810.04805, 2018. our card
- A. Owens and A.A. Efros, “Audio-visual scene analysis with self-supervised multisensory features,” in ECCV, 2018. OpenAlex ↗ · Scholar ↗
- K. Kawakami, L. Wang, C. Dyer, P. Blunsom, et al., “Learning robust and multilingual speech representations,” arXiv preprint arXiv:2001.11128, 2020. OpenAlex ↗ · Scholar ↗
- A. Jansen, M. Plakal, R. Pandya, D.P.W. Ellis, S. Hershey, J. Liu, R.C. Moore, and R.A. Saurous, “Unsupervised learning of semantic audio representations,” in 2018 Proceedings of the ICASSP. IEEE, 2018. OpenAlex ↗ · Scholar ↗
- T. Chen, S. Kornblith, M. Norouzi, and G. Hinton, “A simple framework for contrastive learning of visual representations,” arXiv preprint arXiv:2002.05709, 2020. our card
- Y.A. Chung, C.C. Wu, C.H. Shen, H.Y Lee, and L.S. Lee, “Audio word2vec: Unsupervised learning of audio segment representations using sequence-to-sequence autoencoder,” arXiv preprint arXiv:1603.00982, 2016. OpenAlex ↗ · Scholar ↗
- O. Plchot, L. Burget, H. Aronowitz, and P. Matejka, “Audio enhancing with dnn autoencoder for speaker recognition,” in 2016 Proceedings of the ICASSP. IEEE, 2016. OpenAlex ↗ · Scholar ↗
- M. Meyer, J. Beutel, and L. Thiele, “Unsupervised feature learning for audio analysis,” arXiv preprint arXiv:1712.03835, 2017. OpenAlex ↗ · Scholar ↗
- V. Wan, Y. Agiomyrgiannakis, H. Silen, and J. Vit, “Google's next-generation real-time unit-selection synthesizer using sequence-to-sequence lstm-based autoencoders.,” in INTERSPEECH, 2017, pp. 1143–1147. OpenAlex ↗ · Scholar ↗
- S. Pascual, M. Ravanelli, J. Serrà, A. Bonafonte, and Y. Bengio, “Learning problem-agnostic speech representations from multiple self-supervised tasks,” arXiv preprint arXiv:1904.03416, 2019. our card
- J. Shor, A. Jansen, R. Maor, O. Lang, O. Tuval, F. de Chaumont Quitry Quitry, M. Tagliasacchi, I. Shavitt, D. Emanuel, and Y. Haviv, “Towards learning a universal non-semantic representation of speech,” arXiv preprint arXiv:2002.12764, 2020. OpenAlex ↗ · Scholar ↗
- J. F. Gemmeke, D.P.W. Ellis, D. Freedman, A. Jansen, W. Lawrence, R.C. Moore, M. Plakal, and M. Ritter, “Audio set: An ontology and human-labeled dataset for audio events,” in ICASSP. IEEE, 2017. OpenAlex ↗ · Scholar ↗
- T. Mikolov, K. Chen, G. Corrado, and J. Dean, “Efficient estimation of word representations in vector space,” arXiv preprint arXiv:1301.3781, 2013. our card
- M. Tagliasacchi, B. Gfeller, F. de Chaumont Quitry, and D. Roblek, “Self-supervised audio representation learning for mobile devices,” arXiv preprint arXiv:1905.11796, 2019. OpenAlex ↗ · Scholar ↗
- A. Baevski, S. Schneider, and M. Auli, “vq-wav2vec: Self-supervised learning of discrete speech representations,” arXiv preprint arXiv:1910.05453, 2019. OpenAlex ↗ · Scholar ↗
- M. Rivière, A. Joulin, P.E. Mazaré, and E. Dupoux, “Unsupervised pretraining transfers well across languages,” in ICASSP. IEEE, 2020. OpenAlex ↗ · Scholar ↗
- A. Baevski, H. Zhou, A.R. Mohamed, and M. Auli, “wav2vec 2.0: A framework for self-supervised learning of speech representations,” arXiv preprint arXiv:2006.11477, 2020. our card
- K. He, H. Fan, Y. Wu, S. Xie, and R. Girshick, “Momentum contrast for unsupervised visual representation learning,” in Proceedings of the IEEE/CVF CVPR, 2020. our card
- A. Srinivas, M. Laskin, and P. Abbeel, “Curl: Contrastive unsupervised representations for reinforcement learning,” arXiv preprint arXiv:2004.04136, 2020. OpenAlex ↗ · Scholar ↗
- E. Kharitonov, M. Rivière, G. Synnaeve, Lior Wolf, P.E. Mazaré, M. Douze, and E. Dupoux, “Data augmenting contrastive learning of speech representations in the time domain,” arXiv preprint arXiv:2007.00991, 2020. OpenAlex ↗ · Scholar ↗
- Z. Wu, Y. Xiong, S. Yu, and D. Lin, “Unsupervised feature learning via non-parametric instance-level discrimination,” arXiv preprint arXiv:1805.01978, 2018. OpenAlex ↗ · Scholar ↗
- X. Wang and A. Gupta, “Unsupervised learning of visual representations using videos,” in ICCV, 2015. OpenAlex ↗ · Scholar ↗
- M. Tagliasacchi, B. Gfeller, F. de Chaumont Quitry, and D. Roblek, “Pre-training audio representations with self-supervision,” IEEE Signal Processing Letters, 2020. OpenAlex ↗ · Scholar ↗
- V. Panayotov, G. Chen, D. Povey, and S. Khudanpur, “Librispeech: an asr corpus based on public domain audio books,” in ICASSP, 2015. OpenAlex ↗ · Scholar ↗
- A. Nagrani, J.S. Chung, and A. Zisserman, “Voxceleb: a large-scale speaker identification dataset,” arXiv preprint arXiv:1706.08612, 2017. our card
- P. Warden, “Speech commands: A dataset for limited-vocabulary speech recognition,” arXiv preprint arXiv:1804.03209, 2018. OpenAlex ↗ · Scholar ↗
- T. Heittola, A. Mesaros, and T. Virtanen, “Tut urban acoustic scenes 2018, development dataset,” April 2018. OpenAlex ↗ · Scholar ↗
- D. Stowell, M.D. Wood, H. Pamuła, Y. Stylianou, and H. Glotin, “Automatic acoustic detection of birds through deep learning: the first bird audio detection challenge,” Methods in Ecology and Evolution, 2019. OpenAlex ↗ · Scholar ↗
- D. Snyder, G. Chen, and D. Povey, “Musan: A music, speech, and noise corpus,” arXiv preprint arXiv:1510.08484, 2015. OpenAlex ↗ · Scholar ↗
- J. Engel, C. Resnick, et al., “Neural audio synthesis of musical notes with wavenet autoencoders,” in ICML. PMLR, 2017, pp. 1068–1077. OpenAlex ↗ · Scholar ↗
- K. MacLean, “Voxforge,” Ken MacLean.[Online]. Available: http://www. voxforge. org/home.[Acedido em 2012], 2018. OpenAlex ↗ · Scholar ↗
- M. Tan and Q.V Le, “Efficientnet: Rethinking model scaling for convolutional neural networks,” arXiv preprint arXiv:1905.11946, 2019. our card
- J.L Ba, J.R. Kiros, and G.E. Hinton, “Layer normalization,” arXiv preprint arXiv:1607.06450, 2016. OpenAlex ↗ · Scholar ↗
- D. P Kingma and J. Ba, “Adam: A method for stochastic optimization,” arXiv preprint arXiv:1412.6980, 2014. our card