TL;DR
SCRAPS (Speech Contrastive Representations of Acoustic and Phonetic Spaces) adapts OpenAI’s CLIP framework to the speech domain, learning a shared latent space directly between phonetic sequences and acoustic realizations (mel-spectrograms). By bridging the gap between what is written phonetically and how it sounds, SCRAPS enables zero-shot capabilities for downstream speech tasks, including accelerating Text-to-Speech (TTS) training convergence and performing text-less intelligibility evaluations.
What Problem Does This Paper Address?
In speech technology, aligning the phonetic domain (the discrete units of speech sounds) with the acoustic domain (the continuous audio waveform or spectrogram) is a foundational challenge.
- In Speech Generation (TTS), poor alignment leads to unnatural prosody and low intelligibility.
- In Speech Recognition (ASR), models frequently struggle with background noise disentanglement and long-tail vocabulary.
While contrastive learning models like CLAP (Contrastive Language-Audio Pretraining) have successfully bridged text and audio, they operate on a semantic level—matching audio clips to high-level textual descriptions (e.g., "a dog barking"). They do not capture the fine-grained relationship between specific spoken phonemes and their exact acoustic representations. Other models use images as an intermediate bridge, introducing irreducible alignment errors. SCRAPS addresses this gap by directly optimizing a shared space between phonetics and acoustics end-to-end.
Methods
SCRAPS mirrors the classic CLIP architecture but swaps out the modalities for speech components:
- Phonetic Encoder: Processes a sequence of phonemes derived from a Grapheme-to-Phoneme (G2P) processor.
- Acoustic Encoder: Processes log-mel spectrograms extracted from the corresponding audio clips.
Each encoder consists of a Transformer backbone (3 layers, 8 attention heads) to capture contextual relationships, topped with an LSTM dynamic integrator. Because speech and text inputs have dynamic, mismatched lengths, the forward-rolling LSTM integrates these representations into a fixed $D$-dimensional vector ($D=1024$).
Crucially, the LSTMs across both encoders share weights. This architectural choice forces the time-dependent latent vectors into a unified space, allowing the underlying transformer backbones to be extracted later as rich, standalone pre-trained modules. The entire system is optimized using a symmetric cross-entropy contrastive loss over minibatches.
Datasets
- Primary Training Dataset: A massive, proprietary dataset containing 60,000 hours of de-identified US English speech. The data reflects real-world conditions, featuring untrained speakers, unnormalized pauses, background noise, and overlapping concurrent speech.
- Open-Source Evaluation Baseline: To ensure reproducibility and benchmarking, the authors evaluated SCRAPS on the public Common Voice test set (~16k utterances), comparing its performance against OpenAI's Whisper base model.
Key Insights and Ideas
- Asymmetric Sensitivity and Robustness: A robust speech model should be highly sensitive to changes in content (phonemes) but highly resilient to changes in style or environment (noise). SCRAPS achieves this balance naturally: it drastically penalizes mismatched phonemes while ignoring heavy background noise.
- Implicit Length Verification via Positional Encodings: One of the most surprising findings occurred during acoustic corruption tests. Even when the input spectrogram was replaced with 100% pure Gaussian noise, the model performed significantly better than random guessing. The authors hypothesize that the acoustic transformer extracts duration information purely from the positional encodings, determining if the audio track's length is physically feasible for the given phonetic sequence.
- Pre-trained Embeddings for Faster TTS: By replacing a standard end-to-end phonetic encoder with a frozen pre-trained SCRAPS phonetic backbone, a downstream TTS model can bypass the difficult early phase of learning alignments, significantly accelerating training.
Key Results
- Phonetic Sensitivity: The model is highly sensitive to text accuracy; replacing just 20% of the phonemes at random caused the SCRAPS alignment score to drop in 91.06% of evaluation cases.
- Acoustic Robustness: The model maintains an AUC-ROC near 1.0 even under severe audio degradation, experiencing only a 10% performance drop when audio was mixed with 75% Gaussian noise.
- TTS Convergence Speedup: When utilizing the pre-trained SCRAPS phonetic encoder within an autoregressive multi-speaker TTS model, the initial error drop occurred 250,000 training steps earlier than the baseline model, achieving identical final intelligibility at a fraction of the compute time.
- Text-less Intelligibility Metric: On the Common Voice dataset, SCRAPS scores demonstrated a significant Pearson correlation of -0.60 with Whisper base perplexity, proving it can serve as a cheap, text-less filter to automatically discard low-quality or corrupted audio samples.
Limitations and Future Work
While SCRAPS shows immense promise, the authors note a few limitations:
- Search Complexity: Using SCRAPS directly as an ASR decoder or a speech generator requires evaluating pairwise combinations across large vocabularies, making the inference search process computationally expensive.
- Audio-to-Audio Domain Gap: When used as a text-less metric to compare two audio files directly (e.g., source audio vs. voice-converted audio), SCRAPS occasionally misclassifies highly intelligible samples due to minor acoustic variations, as it wasn't explicitly trained on audio-audio pairs.
Future Directions: The authors suggest exploring SCRAPS as a frozen, fully differentiable loss function to directly optimize speech synthesis models for intelligibility, as well as leveraging it to automatically clean up and assure transcription quality in massive, uncurated web-scale speech datasets.
Summary updated