arXiv:2609.03107cs.SDSep 2026

Manuscript Offprint

arXiv:2609.03107

CRAW: Codec Robust Audio Watermarking

David Chernin, Ethan Fetaya

Abstract

Recent advances in generative speech models have made it increasingly difficult to distinguish authentic from synthetic audio, enabling new forms of fraud and misinformation. Audio watermarking offers a promising defense by embedding an imperceptible signal into generated speech that can later be detected to verify its provenance. However, recent studies have shown that existing post-hoc watermarking methods fail under neural codecs and denoisers, transformations routinely applied during real-world storage, transmission, and processing, severely limiting their practical utility. Here we introduce CRAW, a codec-robust audio watermarking framework that jointly improves robustness against neural re-synthesis while maintaining high perceptual quality. CRAW combines distortion-aware training with an attention-based pooling mechanism, inference-time perceptual masking, and an error-correcting code to recover the fidelity lost during robust training. Experiments demonstrate that CRAW achieves state-of-the-art robustness against neural codecs, denoisers, and vocoders while maintaining perceptual quality comparable to existing post-hoc watermarking methods. The code is available at https://github.com/DavidC1212/craw.

1 Introduction

Recent advancements in voice cloning, the ability to generate speech that impersonates a specific speaker, have enabled increasingly convincing synthetic speech, but have also been misused for fraud and the spread of misinformation (Shaaban et al. 2023). As these systems become more capable, reliably distinguishing authentic recordings from AI-generated speech has become an important challenge with significant societal implications. One promising approach is audio watermarking, which embeds an imperceptible signal into generated speech that can later be detected to verify its provenance. This can be done during generation or post-hoc on a given audio sample.

For watermarking to be practical, the embedded signal must remain detectable after the audio undergoes both malicious modifications and benign processing. In practice, audio is rarely stored or transmitted in its original form: voice calls, video conferencing, and online platforms routinely process speech using codecs, denoisers, and other enhancement models before delivery. Recent work by O'Reilly et al. (2025) demonstrated that although existing

post-hoc watermarking methods remain robust to many traditional distortions, such as waveform dropout and time stretching, they fail almost completely under neural codecs and denoisers. This exposes a substantial gap between benchmark performance and real-world deployment.

In this work, we address this limitation with CRAW (Codec Robust Audio Watermarking), a post-hoc watermarking framework designed specifically to withstand neural re-synthesis attacks while preserving perceptual audio quality. Building on TimbreWatermark (Liu et al. 2024a), we first strengthen the training distortion layer, which distorts the audio signal before it reaches the detector during training, by incorporating neural codec re-synthesis and other realistic attacks, substantially improving robustness to these transformations. However, training against this broader attack distribution introduces a significant degradation in perceptual fidelity.

CRAW addresses this robustness-fidelity trade-off through four complementary components. First, we broaden the training distortion layer to include neural codec resynthesis, closing the codec-robustness gap at a cost to fidelity. Second, we replace TimbreWatermark's uniform temporal averaging with an attention-based pooling mechanism inspired by Q-Former (Li et al. 2023), allowing the embedding and detection to be more targeted. Third, we introduce an inference-time masking strategy that selectively removes the watermark from spectrogram regions that contribute most to perceptual degradation, measured by PESQ, recovering much of the lost audio quality. Finally, we incorporate an error-correcting code to compensate for the robustness reduction introduced by masking, producing a watermarking system that simultaneously achieves high robustness and high perceptual fidelity. Concretely, our contributions are:

  • We introduce CRAW, a post-hoc audio watermarking framework designed for robustness against neural codecs, denoisers, vocoders, and other neural re-synthesis attacks that significantly degrade existing watermarking methods.
  • We propose an attention-based pooling mechanism, inspired by Q-Former, that substantially improves perceptual fidelity while maintaining robustness.

• We introduce a fidelity-aware inference strategy combining perceptual-gradient masking with error-correcting codes to recover audio quality without sacrificing robustness.

• We demonstrate through extensive experiments that CRAW achieves state-of-the-art robustness across a wide range of neural and traditional distortions while maintaining perceptual quality comparable to existing watermarking methods.

References (33)