TL;DR
Modern text-to-speech (TTS) models generate remarkably expressive audio, but they frequently suffer from "speaker drift"—a subtle, gradual shift in a speaker's perceived identity over the course of a single utterance. This paper introduces the first automated framework to detect speaker drift by combining geometric embedding analysis (pairwise cosine similarity) with the perceptual reasoning capabilities of Large Language Models (LLMs).
What Problem Does This Paper Address?
State-of-the-art diffusion-based TTS models excel at long-form speech generation, but they frequently exhibit a frustrating flaw: the voice subtly changes character mid-sentence, even when conditioned on a single speaker prompt. This is known as speaker drift.
Unlike traditional speaker diarization or change detection—which look for abrupt, discrete transitions between different speakers—speaker drift is gradual, continuous, and often imperceptible to simple threshold-based algorithms. Until now, there have been no standardized evaluation protocols or automated tools to detect this phenomenon, making quality assurance difficult for production-level TTS systems.
Methods
The authors propose a reference-free, two-stage pipeline that bridges geometric signal analysis with LLM-based reasoning:
- Acoustic Feature Extraction & Geometry: The audio utterance is split into consecutive segments. A pre-trained model (such as Wav2Vec2) extracts speaker embeddings for each segment. The framework then computes pairwise cosine similarities between adjacent segments, condensing high-dimensional audio data into a compact sequence of numerical similarity scores.
- LLM-Based Reasoning: Instead of feeding raw, high-dimensional embeddings to an LLM (which hits token limits and lacks context), the authors pass the compact sequence of cosine similarity scores into an LLM using a structured prompt template. The LLM then performs binary classification ("drift" vs. "no drift") and provides a textual justification for its choice.
The paper also provides a formal mathematical proof (Theorem 1) showing that a threshold-based classifier using these cosine similarities yields an error bound that decreases exponentially as the separation margin between speakers increases, providing a solid statistical foundation for the method.
Datasets
Because real-world intra-utterance speaker drift is rare and expensive to annotate manually, the authors constructed a controlled synthetic benchmark dataset consisting of 128 samples (balanced with 64 drift and 64 non-drift cases), verified by human annotators:
- Non-drift (Label 0): Segments generated from the exact same speaker.
- Hard Negatives (Label 0): Segments from the same speaker but altered with speed/pitch changes or background noise to test if the model can distinguish true identity drift from superficial acoustic variations.
- Abrupt Drift (Label 1): Discrete cuts between completely different speakers.
- Smooth Morphing (Label 1): Audio-level linear cross-fading between two speakers to simulate realistic, gradual drift.
Key Insights and Ideas
- Relational Features > Raw Embeddings: Feeding LLMs raw or PCA-reduced embeddings performs poorly. However, converting those embeddings into relational metrics (like pairwise cosine similarity) gives the LLMs a highly interpretable signal that unlocks their reasoning capabilities.
- Robustness to Style vs. Identity: By introducing hard negatives (noise, pitch shifts), the authors proved that cosine similarity on robust embeddings captures vocal identity rather than superficial acoustic variations.
- Bridging Geometry and Semantics: The framework elegantly connects low-level geometric signal processing (vectors on a unit sphere) with high-level semantic reasoning (LLM zero-shot classification).
Key Results
The proposed LLM-driven framework significantly outperformed traditional fixed-threshold heuristics and PCA-reduced embedding baselines:
- GPT-4o paired with Wav2Vec2 embeddings achieved the highest performance, reaching an F1 score of 90.7% and an accuracy of 89.5%.
- Other models like Claude-4 (88.2% F1) and DeepSeek-R1 (80.0% F1) also demonstrated strong reasoning capabilities when provided with cosine scores.
- Ablation studies confirmed that using explicit cosine similarity scores consistently beats using compressed PCA embeddings across all tested LLM backbones.
Limitations and Future Work
While this work establishes a strong baseline for speaker drift detection, the authors note a few limitations and areas for future exploration:
- Dataset Scale: The benchmark dataset is relatively small (128 samples), though highly curated and human-verified.
- Segment Granularity: The current approach relies on fixed-length segmentations, which might miss very brief or highly localized drift events.
- Future Directions: The authors plan to extend this framework to multilingual and cross-lingual settings, as well as explore fine-tuning LLMs specifically to increase sensitivity to subtle prosodic and identity cues.
Summary updated