Introduction
Self-supervised learning (SSL) has revolutionized representation learning by leveraging unlabeled data through pretext tasks. A dominant paradigm in SSL is contrastive learning, which encourages models to be invariant to specific data augmentations. For instance, in audio processing, a model might be trained to produce identical representations for an original clip and its pitch-shifted counterpart. While this inductive bias is beneficial for tasks like speech recognition—where the semantic content remains the same regardless of pitch—it can be detrimental for tasks like speaker identification or emotion detection, where pitch is a critical discriminatory feature.
The fundamental challenge is that "one size does not fit all." The optimal set of invariances depends heavily on the downstream task. Heggan et al. propose MT-SLVR (Multi-Task Self-Supervised Learning for Transformation In(Variant) Representations), a framework designed to learn flexible representations that capture both invariant and transformation-sensitive features simultaneously.
The MT-SLVR Framework
MT-SLVR addresses the limitations of fixed inductive biases by employing a multi-task objective. Instead of forcing the model to ignore all augmentations, the framework partitions the learning process into two complementary goals:
- Contrastive Loss ($\mathcal{L}_{Cont}$): This objective follows standard SSL practices (e.g., SimCLR or SimSiam) to encourage the model to be invariant to a set of augmentations.
- Multi-Label Augmentation Prediction (MLAP) Loss ($\mathcal{L}_{MLAP}$): This is a predictive task where the model must identify which specific transformations—such as time masking, noise addition, or frequency shifting—were applied to the input. This encourages the model to be sensitive (variant) to those changes.
By combining these losses, MT-SLVR creates a feature space that preserves information typically discarded by purely contrastive models.
Architectural Specialization via Adapters
To implement this multi-task approach without a massive increase in computational overhead, the authors utilize a shared ResNet-18 backbone augmented with parameter-efficient adapters. These lightweight modules allow the model to specialize its features for the different objectives. The researchers explored three primary configurations:
- MT-Bn: Task-specific Batch Normalization layers.
- MT-Series: Adapters placed in series with the residual blocks.
- MT-Parallel: Adapters placed in parallel with the residual blocks.
The researchers found that the MT-Parallel configuration was the most effective. It added approximately 20% more parameters compared to the backbone but provided the necessary flexibility for the model to bifurcate its representation into invariant and variant components.
Experimental Setup and Benchmarking
The model was pre-trained on the Balanced AudioSet, a diverse collection of approximately 60 hours of audio. To evaluate the versatility of the learned representations, the authors utilized a comprehensive suite of 10 few-shot classification tasks. This suite included the MetaAudio benchmark and three additional speech-focused datasets to better test the model's versatility:
- General Audio: ESC-50 (environmental sounds), NSynth (musical instruments), FDSKaggle18 (mixed audio), Watkins Marine Mammal Sounds, and BirdCLEF 2020.
- Speech and Speaker ID: VoxCeleb1 (speaker identification), SpeechCommandsV2 (keyword spotting), Crema-D (emotion recognition), Speech Accent Archive, and Common Voice (language identification).
Results and Discussion
MT-SLVR demonstrated superior performance across the board, consistently outperforming single-task baselines that relied solely on contrastive or predictive learning.
- Superior Ranking: The MT-Parallel model achieved the highest average rank across all 10 datasets. In a SimCLR-based framework, MT-Parallel reached an average rank of 1.9, significantly better than the 3.9 rank of the contrastive-only baseline.
- SimSiam Integration: The improvements were even more pronounced when using SimSiam, where MT-Parallel achieved a dominant average rank of 1.1.
- Feature Flexibility: Analysis of the learned representations confirmed that the multi-task approach successfully partitioned the feature space. The contrastive "head" developed high invariance, while the predictive "head" remained sensitive to transformations. This allows a simple linear classifier in a downstream task to "pick" the most relevant features, whether they are invariant or variant.
Conclusion
MT-SLVR provides a robust solution to the "invariance trade-off" in self-supervised learning. By learning both invariant and transformation-sensitive features through a parameter-efficient multi-task framework, it offers a versatile representation suitable for a wide array of audio and speech tasks. While the current study focuses on the audio domain, the underlying principle of balancing invariance and sensitivity holds significant potential for other fields, such as computer vision, where the relevance of specific transformations is equally task-dependent.
Summary updated