[Paper Review] Self-supervised audio representation learning for mobile devices
This paper proposes self-supervised audio representation learning methods—Audio2Vec (inspired by Word2Vec) and TemporalGap—designed for deployment on mobile devices. By leveraging temporal context in spectrograms, these models learn general-purpose audio embeddings that achieve strong performance on downstream tasks like speech and music detection, approaching fully supervised models in accuracy while enabling privacy-preserving training via federated learning on-device.
We explore self-supervised models that can be potentially deployed on mobile devices to learn general purpose audio representations. Specifically, we propose methods that exploit the temporal context in the spectrogram domain. One method estimates the temporal gap between two short audio segments extracted at random from the same audio clip. The other methods are inspired by Word2Vec, a popular technique used to learn word embeddings, and aim at reconstructing a temporal spectrogram slice from past and future slices or, alternatively, at reconstructing the context of surrounding slices from the current slice. We focus our evaluation on small encoder architectures, which can be potentially run on mobile devices during both inference (re-using a common learned representation across multiple downstream tasks) and training (capturing the true data distribution without compromising users' privacy when combined with federated learning). We evaluate the quality of the embeddings produced by the self-supervised learning models, and show that they can be re-used for a variety of downstream tasks, and for some tasks even approach the performance of fully supervised models of similar size.
Motivation & Objective
- To develop self-supervised audio representation learning methods suitable for deployment on mobile devices during both inference and training.
- To exploit temporal context in spectrograms to learn general-purpose audio embeddings without requiring labeled data.
- To enable privacy-preserving model training on mobile devices using federated learning by learning from real user data distributions.
- To evaluate the transferability and performance of learned embeddings across diverse downstream audio tasks.
- To demonstrate that small encoder architectures can achieve performance close to fully supervised models on mobile platforms.
Proposed method
- Proposes Audio2Vec, a self-supervised task inspired by Word2Vec, where a target spectrogram slice is reconstructed from past and future context slices (CBoW) or vice versa (skip-gram).
- Introduces TemporalGap, a contrastive learning task that estimates the temporal distance between two randomly sampled audio segments from the same clip.
- Uses small, efficient encoder architectures to ensure feasibility for on-device inference and training, with model size and FLOPs optimized for mobile deployment.
- Employs a two-stage evaluation: first, the pre-trained encoder is used as a fixed feature extractor; second, the encoder is fine-tuned with task-specific layers to assess transferability.
- Applies knowledge distillation and model quantization techniques to further optimize models for mobile deployment.
- Evaluates models on diverse downstream tasks including speech command recognition, language identification, music detection, and speaker identification.
Experimental results
Research questions
- RQ1Can self-supervised learning methods based on temporal context in spectrograms produce general-purpose audio representations suitable for mobile deployment?
- RQ2How well do Audio2Vec and TemporalGap perform compared to fully supervised models on downstream audio tasks when using small encoder architectures?
- RQ3Does training on diverse, uncurated datasets like AudioSet yield better representations than training on more homogeneous datasets like LibriSpeech?
- RQ4To what extent can on-device training with federated learning be enabled using these self-supervised models?
- RQ5How effective is fine-tuning the deeper layers of the encoder in recovering performance close to fully supervised models?
Key findings
- Audio2Vec (skip-gram) achieved 0.46 accuracy on Speech Commands and 0.78 on TUT Urban Acoustic Scenes 2018 when using a larger encoder, approaching the performance of fully supervised models.
- TemporalGap showed strong performance on music detection (0.97 accuracy) and speaker identification (0.71 accuracy) with the standard encoder, though accuracy dropped significantly when trained on LibriSpeech.
- Training on AudioSet led to consistently better downstream performance than training on LibriSpeech, with a 21% drop in accuracy for TemporalGap and a 44% drop for TripletLoss on Speech Commands.
- Fine-tuning the last two layers of the Audio2Vec (skip-gram) encoder recovered most of the accuracy gap with fully supervised models, despite these layers accounting for only 20% of FLOPs.
- Increasing the encoder size by a factor of 4 improved accuracy across all tasks, with Audio2Vec (skip-gram) achieving 1.00 accuracy on language and speaker recognition tasks.
- The proposed methods enable high-quality representation learning without labeled data, making them suitable for on-device training via federated learning while preserving user privacy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.