Speech Watermarking with Discrete Intermediate Representations

Shengpeng Ji, Ziyue Jiang, Jialong Zuo, Minghui Fang, Yifu Chen, Tao Jin, Zhou Zhao · DOI

Abstract

DiscreteWM is a novel speech watermarking framework that embeds hidden data into the discrete latent space of a vector-quantized autoencoder. By manipulating the modular arithmetic (parity) of discrete token IDs, it achieves a superior balance of robustness and imperceptibility, supporting high-capacity encoding (up to 150 bps) and 22x faster detection than previous state-of-the-art methods.

Introduction

The rapid advancement of zero-shot text-to-speech (TTS) and instant voice cloning technologies has introduced significant security risks, including fraud and identity theft. Speech watermarking serves as a proactive defense mechanism, embedding a digital signature within audio to verify its authenticity. Traditional deep-learning watermarking methods typically operate in continuous latent spaces. However, these methods often face a difficult three-way trade-off between imperceptibility (audio quality), robustness (survival against distortions), and capacity (data density). Furthermore, continuous-space models are often computationally expensive, requiring sliding-window detection that limits real-time applicability.

Comparison of traditional continuous space watermarking versus the proposed discrete scheme.

Methodology: Discrete Latent Space Watermarking

DiscreteWM addresses these challenges by shifting the watermarking process into a discrete latent space. The framework is built upon two primary components: a robust discrete space and a specialized injection mechanism.

1. Robust Discrete Space Construction

The system utilizes a Vector-Quantized Variational Autoencoder (VQ-VAE) to map continuous speech signals into discrete tokens. To ensure these tokens remain stable under distortion, the model is trained using a "mask-infilling" objective. This process requires the decoder to reconstruct missing speech segments based on the surrounding context, effectively teaching the model to handle information loss.

2. Watermark Injection via the Manipulator

Rather than simple substitution, DiscreteWM employs a Transformer-based Manipulator to embed bits. The Manipulator learns the probability distribution of tokens and selects the most likely token that satisfies a specific modular arithmetic rule—specifically, parity. For instance, an even-numbered ID might represent a "0" bit, while an odd-numbered ID represents a "1". This approach ensures that the modifications are "natural" and minimize perceptual degradation.

Detailed architecture of the DiscreteWM embedding and extraction pipeline, highlighting the VQ Encoder and Manipulator modules.

3. Detection and Localization

The extraction process involves two key modules:

  • Localizer: Identifies specific frames within an audio clip that contain watermarks.
  • Restorer: Recovers the hidden bits (parity) from the reconstructed speech, even after the audio has undergone significant distortion.
  • Statistical Verification: A Z-test aggregates frame-wise results to provide high-confidence utterance-level detection, crucial for identifying AI-generated content.

Experimental Results

The model was trained on the LibriTTS dataset and evaluated against state-of-the-art voice cloning models like NaturalSpeech 2 and Mega-TTS 2.

  • Robustness: DiscreteWM achieved an average Bit Error Rate (BER) of 0.28% across various distortions (e.g., MP3 compression, Gaussian noise), significantly outperforming the previous state-of-the-art, WavMark (2.58%).
  • Audio Quality: The system maintained a high PESQ score of 4.45, indicating near-transparent audio quality.
  • Efficiency: The frame-wise detection architecture is 22.1x faster than traditional sliding-window methods.
  • Capacity: The framework supports flexible encoding rates ranging from 1 to 150 bits per second (bps).

Conclusion

DiscreteWM demonstrates that discrete tokens are inherently more robust to noise than continuous values. By leveraging the "power of parity" within a discrete latent space, the framework provides a highly efficient and flexible solution for proactive AI detection and metadata embedding. Future work will focus on analyzing the underlying codebook vector space and integrating diffusion-based architectures to further enhance reconstruction quality.

Summary updated

BibTeX
@inproceedings{ji2025speech,
  author = {Shengpeng Ji and Ziyue Jiang and Jialong Zuo and Minghui Fang and Yifu Chen and Tao Jin and Zhou Zhao},
  title = {{Speech Watermarking with Discrete Intermediate Representations}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i23.34600},
}
Figure