Abstract
Neural codec language models enable high-quality discrete speech synthesis, yet their inference remains vulnerable to token-level artifacts and distributional drift that degrade perceptual realism. Rather than relying on preference optimization or retraining, we propose MSpoof-TTS, a training-free inference framework that improves zero-shot synthesis through multi-resolution spoof guidance. We introduce a Multi-Resolution Token-based Spoof Detection framework that evaluates codec sequences at different temporal granularities to detect locally inconsistent or unnatural patterns. We then integrate the spoof detectors into a hierarchical decoding strategy, progressively pruning low-quality candidates and re-ranking hypotheses. This discriminator-guided generation enhances robustness without modifying model parameters. Experiments validate the effectiveness of our framework for robust and high-quality codec-based speech generation.
Introduction
Modern zero-shot text-to-speech (TTS) systems, such as VALL-E, treat speech synthesis as a language modeling task by predicting discrete codec tokens. However, these models often suffer from distributional drift. During training, models observe ground-truth ("golden") sequences, but during inference, they generate tokens autoregressively based on their own previous, potentially flawed, outputs. This leads to accumulated errors, audible artifacts, and unnatural repetitions. MSpoof-TTS addresses this by providing a "plug-and-play" guidance mechanism during generation, avoiding the need for expensive retraining or complex reinforcement learning.
Methodology
The MSpoof-TTS framework introduces two core innovations: a multi-resolution detection system and a hierarchical sampling strategy.
Multi-Resolution Token-based Spoof Detection
Instead of evaluating final audio waveforms, MSpoof-TTS utilizes five Conformer-based discriminators trained to identify "fake" patterns directly in the discrete token space. These detectors operate across multiple scales:
- Temporal Scales: Contiguous segments of 10, 25, and 50 tokens are analyzed to capture both local glitches and broader structural inconsistencies.
- Structural Scales: "Skip-sampled" sequences (e.g., every 2nd or 5th token) are evaluated to detect rhythmic or periodic irregularities that might be missed by contiguous analysis.
Hierarchical Spoof-Guided Sampling
The decoding process is transformed into a multi-stage pruning and re-ranking pipeline. During generation, the system generates candidate continuations and prunes those flagged by the 10-token detector. Surviving candidates are extended and pruned again using the 25-token detector. Finally, an aggregate score from the 50-token and skip-sampled detectors is used for a final re-ranking.
Additionally, the framework employs Entropy-Aware Sampling (EAS), which uses a memory buffer to intelligently penalize repetitive tokens, improving upon standard heuristic methods.
Token-Level Analysis
A key insight of this work is that the statistical discrepancy between real and synthetic speech is manifest in the discrete token space. As shown in the t-SNE visualization below, "golden" tokens and synthetic tokens form distinct clusters, indicating that artifacts are detectable long before the tokens are synthesized into audio.
Experimental Results
MSpoof-TTS was evaluated on LibriSpeech and the challenging TwistList benchmark.
- Perceptual Quality: On LibriSpeech, the HierEAS strategy achieved a NISQA score of 4.602, significantly outperforming the baseline (4.462) and nearing ground-truth quality (4.620).
- Robustness: On TwistList, a dataset of phonetically dense tongue twisters, the method maintained high intelligibility while significantly improving perceptual quality scores compared to standard sampling methods.
- Human Evaluation: Subjective tests confirmed that human listeners preferred the hierarchical strategies for both naturalness and overall quality, without sacrificing speaker identity.
Conclusion
MSpoof-TTS demonstrates that the quality of frozen, pre-trained TTS models can be significantly enhanced through intelligent, training-free guidance during inference. By leveraging multi-resolution spoof detectors, the system effectively prunes unnatural generation paths. Future work will focus on reducing the computational overhead of running multiple discriminators and exploring the application of this multi-resolution approach to other discrete-token generation tasks like music or video synthesis.
Summary updated