Manuscript Offprint
arXiv:2610.36768The Content Leash: Mitigating Degenerate Solutions in Invertible Speaker Anonymization
Nirjon Mobarak Talukder, Rafid Ahmed,
Mohammad Ishrak Abedin, and Abu Raihan Mostofa Kamal
Department of Computer Science and Engineering
Islamic University of Technology, Dhaka, Bangladesh
Email: {nirjonmobarak, rafidahmed, ishrakabedin, raihan.kamal}@iut-dhaka.edu
Abstract—Voice anonymization aims to protect a speaker's identity while preserving the linguistic content of speech, enabling voice data to be shared and processed with reduced privacy risk. This work focuses on reversible voice anonymization, where the original voice can be recovered by an authorized user rather than being permanently discarded. However, existing approaches can achieve apparent speaker anonymization by degrading the speech itself, while their effectiveness may also depend on the speaker-verification representation used during training. This creates a need for methods that protect speaker identity without sacrificing speech intelligibility and that remain effective against unseen speaker verifiers. We introduce content-preserving training constraints to improve the privacy-utility trade-off by preventing anonymization from being achieved primarily through speech degradation. We further introduce a verifier-generalization strategy that incorporates a stronger speaker-verification representation during training, improving anonymization robustness beyond the verifier used in the original training setup. The resulting approach maintains intelligible speech, strengthens anonymization, and preserves reliable voice restoration, with evaluation on unseen speakers and held-out speaker verification models. On 38 unseen speakers, the approach raises the attacker's equal error rate from a measured floor of 2.8% to 26.3%, and to 27.9% against a held-out verifier, with 11.8% word error rate and 94.9% speaker similarity on key-based restoration. These improvements advance reversible voice anonymization toward practical privacy-preserving speech applications, where anonymized speech can be safely processed or shared while the original voice remains recoverable under authorized conditions.
Index Terms—speaker anonymization, voice privacy, invertible neural networks, knowledge distillation, speaker verification
I. INTRODUCTION
Speech carries the identity of the speaker as well as the words. Any system that stores or transmits recordings therefore stores a biometric identifier. Speaker anonymization removes that identifier while keeping the linguistic content usable, and it has become an active research area through the VoicePrivacy challenges [1], [2].
Most published systems are one-way. Once a recording is anonymized the original voice is gone. This blocks legitimate uses such as a medical review, a legal dispute or a fraud investigation, where an authorized party must be able to recover the original speaker. Rano [3] addresses this with a conditional invertible neural network (cINN): the same network anonymizes in the forward direction and restores in the inverse direction, conditioned on a pseudo-speaker embedding derived from a secret key.
This paper reports a paper-guided re-implementation of Rano and three modifications motivated by our experimental observations. Our contributions are:
• We observe a degenerate solution in our re-implementation of the published training objective, where the triplet loss can be satisfied through severe spectrogram degradation rather than meaningful speaker transformation. A controlled experiment demonstrates this behavior under the evaluated configuration.
• We add two constraints on the anonymized spectrogram, an anchor loss and a range loss, that mitigate the observed shortcut and substantially improve speech intelligibility in our experiments.
• We observe that an anonymizer trained against a lightweight mel-domain verifier does not fool an independent verifier, and reduce this gap by distilling ECAPA-TDNN into a mel-domain verifier.
• We report every metric against a measured floor, add a held-out verifier, seed the pseudo-speaker keys and report variance, and evaluate only on speakers absent from all training data.
Invertible networks. Normalizing flows build bijective mappings from affine coupling layers [10], [11], and conditional variants make the mapping depend on side information [12]. Rano [3] applies a cINN to anonymization so that the forward and inverse directions share one parameter set, which makes restoration exact rather than learned. Our work starts from that design and examines what its training objective does and does not constrain.
Distillation. Knowledge distillation transfers the behavior of a trained network to another [13]; similarity-preserving distillation matches the pairwise similarity structure of a batch rather than individual outputs [14]. We use both terms to move a waveform-domain speaker verifier into the mel domain.
III. BACKGROUND
A. Restorable anonymization with a cINN
Let be the log-mel spectrogram of an utterance and a conditional invertible network. A key is mapped by an anonymization condition generator (ACG) to a pseudo-speaker embedding . The forward pass produces the anonymized spectrogram , and the inverse pass with the same key recovers up to floating-point precision. Restoration is therefore a property of the architecture rather than something the network learns, which is what separates this family from one-way anonymization. We measure a round-trip mean squared error of about on the spectrogram.
B. The published objective
Training uses two losses. The consistency loss requires that conditioning on the speaker's own embedding leaves the spectrogram unchanged,
where is the embedding of the true speaker produced by a frozen speaker verification network , and MSE averages the squared error over all elements. The triplet loss drives anonymization,
where is the embedding of the anonymized spectrogram, is the pseudo-speaker embedding, is a margin and is the cosine distance. The total objective is .
IV. METHOD
A. The degenerate solution
Equation (1) constrains , a separate forward pass conditioned on the true speaker. Equation (2) constrains , the embedding of the anonymized spectrogram. Neither penalizes changes to beyond its speaker embedding, as illustrated in Fig. 1.
This creates a potential shortcut: the anonymization objective does not directly constrain the content of . In our controlled experiment, optimization converged to a degenerate solution in which the triplet loss decreased despite severe speech degradation. The consistency loss remained low throughout, because it constrains a pass conditioned on the true speaker embedding rather than the anonymized output itself.
B. Modification 1: content-preserving losses
Anchor loss. The mean squared error between the anonymized and the original spectrogram,
pulls back toward X. Linguistic content lives in the spectrogram, so bounding the distance limits how much the content can change. This sets up a deliberate tension: the triplet loss pushes the spectrogram to change and the anchor pulls it back, and the equilibrium is the privacy–utility operating point, selectable through .
Range loss. A hinge on the dynamic range of the original utterance,
where and are the per-utterance minimum and maximum of X. The term is exactly zero while stays inside the envelope of the original and grows linearly outside it. It is not redundant with the anchor: the anchor penalizes all deviation, including the moderate movement that anonymization needs, whereas the range loss is indifferent inside the envelope and penalizes only excursions outside it. Values far outside the envelope are out of distribution for the vocoder; in the worst run we observed, spectrogram values above 88 produced non-finite audio in the spectrogram-inversion path.
The complete objective is
where is a log-determinant regularizer, is the Jacobian of the forward pass, is the number of elements it is summed over, and . It penalizes both expansion and contraction of volume, which keeps the inverse pass numerically well conditioned.
C. Modification 2: an ECAPA-distilled training verifier
An anonymizer can only learn to hide what its training verifier can see. Following the original design, our re-implementation first used a lightweight mel-domain verifier , a time-delay encoder trained on the same corpora. A model trained against it drove the cosine similarity between anonymized and original embeddings in its own space to -0.09, that is, past orthogonal, while an independent ECAPA-TDNN [15] still linked the same audio to the true speaker at 18.35% equal error rate.
Training directly against ECAPA-TDNN is not practical: it consumes waveforms while the anonymizer produces spectrograms, so a vocoder would be required inside every training step. We therefore distill ECAPA-TDNN into a mel-domain verifier . The same speech crop is given to both networks in their own input format, ECAPA-TDNN stays frozen, and is trained with

Fig. 1. The training objective viewed as constraints on the anonymized spectrogram . The consistency loss acts on a second forward pass conditioned on the true speaker embedding s and never sees . The triplet loss acts only on the speaker embedding of . Neither penalizes changes to its content (red). The two proposed losses act on directly (blue).
where N is the batch size, is the ECAPA-TDNN embedding, is the embedding, both of unit length, g is a linear read-out that matches the two dimensionalities, and H and E stack the embeddings of the batch as rows. The first term aligns each utterance individually. The second term, which follows similarity-preserving distillation [14], matches the pairwise cosine similarities inside 's own 256-dimensional space. We expect the second term to matter most, because the triplet loss later operates on while g is discarded after distillation; we did not ablate the two terms separately.
Replacing the training verifier requires retraining the ACG, because it generates conditions inside the verifier's embedding space. Pairing a new verifier with an old ACG makes the triplet loss compare incompatible spaces.
D. Modification 3: evaluation methodology
Four protocol choices are applied throughout. Every metric is reported beside a measured floor, obtained by running the same metric on unmodified speech, because an equal error rate is uninterpretable without knowing how the verifier performs on clean audio. A held-out verifier from a different architecture family, never used in any training stage, is reported alongside the primary verifier. The pseudo-speaker keys are drawn from a seeded generator and results are reported as a mean and standard deviation over three seeds; unseeded keys hid a two-point spread in our early results. Finally, evaluation uses only speakers absent from every training corpus, verified programmatically.
V. EXPERIMENTAL SETUP
Data. The verifier, the ACG and the anonymizer are trained on VCTK [16] and the train-clean-100 subset of LibriTTS [17], split 85/15 at utterance level; the held-out 15% is used only for validation and checkpoint selection. Evaluation uses 303 utterances from 38 speakers of LibriTTS test-clean, verified disjoint from all training data. Up to eight utterances per speaker were drawn at random with a fixed seed, keeping only utterances with a reference transcript and speakers with at least four such utterances. The vocoder used for the main results is fine-tuned on VCTK only, so no component of that system has processed the evaluation speakers during training.
Model. The anonymizer is a cINN with 12 conditional coupling blocks (26.5 M parameters) operating on 80-band log-mel spectrograms at 22.05 kHz with a hop of 256 and a window of 1024. The ACG has 8 coupling blocks. and share the same architecture, a time-delay network with attentive statistics pooling [18] producing 256-dimensional embeddings. Waveforms are synthesized with HiFi-GAN [19], fine-tuned for 30k steps from public universal weights so that it matches the anonymizer's mel configuration.
Training. Distillation runs for 30k steps (AdamW [20], learning rate , batch 64, ), the ACG for 80k steps, and the anonymizer for 52k steps from random initialization with , , followed by 12k warm-started steps with the final weights , , , , and . The reported system is the checkpoint at step 8k of the second stage. Training used one RTX 6000 Ada; evaluation and vocoder fine-tuning used one RTX 4060.
Metrics and attack model. Privacy is the equal error rate (EER) of cosine scoring with ECAPA-TDNN. The attacker enrolls on original speech and is unaware that the test speech has been anonymized, which corresponds to the ignorant attacker of the VoicePrivacy challenges [2]. Every anonymized utterance is scored against every original utterance, including the anonymized and original versions of the same utterance, giving 2,417 genuine and 89,392 impostor trials; the floor repeats the procedure with original speech on both sides and
TABLE I ABLATION OF THE TWO PROPOSED LOSSES. BOTH ARMS SHARE INITIALIZATION, DATA, BATCH SIZE AND STEP COUNT, AND ARE EVALUATED ON A 50-UTTERANCE SUBSET OF THE EVALUATION SET (10 SPEAKERS, ONE KEY SEED), WHERE THE ASR FLOOR IS 2.01% WER. REAL LOG-MEL VALUES ON THIS DATA REACH ABOUT 10.2. BOTH ARMS USE THE EARLIER VOCODER (SEE SECTION VII).
| EER (%) | WER (%) | mel MSE | max mel | triplet loss | |
|---|---|---|---|---|---|
| Losses off | 41.60 | 117.58 | 6.551 | 12.4 | 0.0039 |
| Losses on | 21.20 | 8.29 | 1.338 | 8.5 | 0.163 |
| Starting point | — | — | 1.294 | 9.2 | — |
excludes the self-pairs. One key is drawn per speaker and used for all of that speaker's utterances. A ResNet verifier from SpeechBrain [21] trained on VoxCeleb [22] is held out and never used in training. Intelligibility is the word error rate (WER) of Whisper large-v3 [23]. Restoration quality is Sim, the cosine similarity between ECAPA-TDNN embeddings of the original and the restored waveform.
VI. RESULTS
A. Evidence of a degenerate solution
Table I is the central experiment. Both arms start from the same checkpoint and train for 3,000 further steps on identical data with identical batch size; the only difference is whether the two proposed losses are active.
Removing the two losses makes the model look better on the privacy metric: 41.60% EER, approaching the 47.8% reported in the original work. It reaches that value while the speech is destroyed, at 117.58% WER, which exceeds 100% because the recognizer hallucinates insertions into what is effectively noise. The mechanism is visible in the statistics: five times the spectrogram distortion of the control, and a maximum value of 12.4 where real speech on this data reaches about 10.2. The triplet loss meanwhile collapses to 0.0039, so by the published objective this model is excellent.
In our implementation, degrading the spectrogram was the cheapest way for the optimizer to satisfy the triplet term, so the objective as realized here did not merely permit content degradation but favored it. We note two limits on this observation. No official implementation of the original method is available, so differences in architecture, initialization or training schedule between our re-implementation and the original cannot be ruled out as contributing factors. The word error rate of 11.9% reported in the original work also indicates that the released model does not exhibit this behavior. We therefore present this as a property we observed in the evaluated configuration, not as a defect of the published method.
B. Verifier transfer
Holding and fixed and changing only the training verifier, yields EER at WER while the ECAPA-distilled yields EER at WER. The privacy gain of 21.2 points is therefore not free at this anchor weight: intelligibility degrades sharply, which is why the reported system raises to 1.0 and trades part of that gain back for usable speech. Both runs were measured on an earlier protocol that used seen speakers and a Griffin-Lim vocoder, so the absolute values are not comparable with Table II; the comparison between them is matched.
TABLE II MAIN RESULTS ON 38 UNSEEN SPEAKERS AND 303 UTTERANCES. FLOORS ARE MEASURED ON CLEAN AUDIO. EER IS THE MEAN AND STANDARD DEVIATION OF THREE SEEDED RUNS.
| Metric | Floor | Ours | McAdams | Rano [3] |
|---|---|---|---|---|
| EER, ECAPA (%) | 2.83 | 8.44 | 47.81 | |
| EER, ResNet (%) | 2.08 | 27.86 | 6.37 | — |
| WER (%) | 2.48 | 11.75 | 3.61 | 11.91 |
| (%) | 94.90 | 94.90 | n/a | 87.75 |
Rano [3] values are taken from the original publication and were not reproduced under this protocol; its own reported floors are 3.20% EER and 6.58% WER. The Sim floor is the similarity of a vocoder round trip on unmodified speech, the ceiling any restoration can reach.
On the evaluation speakers, which no training stage saw, reaches a cosine alignment of with ECAPA-TDNN, against 0.878 measured on training batches at the end of distillation. The pairwise similarity matrices of the two verifiers correlate at 0.766 on the same utterances, with a mean absolute difference of 0.085. This is consistent with findings on the transferability of attacks between a surrogate and a target model [24], [25].
C. Main results
Table II gives the final system against the McAdams baseline [9] and the figures reported for Rano. The system raises the attacker's error rate from to , a factor of 9.3, at WER against a floor of . Restoration recovers speaker similarity with fully synthesized phase, which equals the measured floor of a vocoder round trip on unmodified speech: the inverse pass itself costs nothing measurable, and restoration quality is bounded by the vocoder alone.
Two properties are worth separating. Against the McAdams baseline the trade is explicit: roughly 8 points of word error rate spent for roughly 18 points of equal error rate, plus invertibility, which that baseline cannot provide at any operating point. Relative to the published Rano results, our system reports a lower ECAPA-TDNN EER and a higher restoration similarity. The two WER values are close in absolute terms, but each should be read against its own floor: Rano reports against a floor of , and we report against , so the cost of anonymization is larger in our system. Because Rano was independently re-implemented and the evaluation protocols differ, these published values are not a controlled baseline comparison. The matched ablation in Table I provides the direct evidence for the effect of the proposed constraints.
The held-out ResNet reports against ECAPA-TDNN's , and it is the stronger verifier of the two, with the lower clean floor. Neither the speakers nor this verifier
TABLE III RESTORATION QUALITY WITH AN INCORRECT KEY, OVER 303 UTTERANCES. FOR INCORRECT KEYS, LOWER IS BETTER. A FLAT RESPONSE DENIES AN ATTACKER A SEARCH GRADIENT. THESE RUNS USE THE EARLIER VOCODER (SEE SECTION VII).
| Case | mean | Ours (%) | Rano [3] (%) |
|---|---|---|---|
| Correct key | 0.00 | 95.28 | 87.75 |
| 0.14 | 4.09 | 12.78 | |
| 0.24 | 4.41 | 9.49 | |
| 0.35 | 4.30 | 4.66 |
The two distance measures are not the same quantity and the rows are aligned only by bin label: we use the Euclidean distance between unit-norm conditions, whereas [3] uses the cosine distance between keys sampled from Gaussian noise. The Rano column is shown for reference, and the comparison should be read as a trend rather than a matched measurement.
were seen during training, so the privacy result is not an artifact of optimizing against the evaluation verifier.
D. Key security
Table III measures restoration with an incorrect key at a controlled distance between the correct and the incorrect condition. With any incorrect key the recovered similarity falls to about 4%. For reference, the mean ECAPA-TDNN similarity between utterances of different speakers on this evaluation set is 7.66% (sd 8.98), so an incorrect key leaves the restored audio no closer to the original speaker than an unrelated recording.
The flat response matters more than the absolute values. If restoration quality improved as a guessed key approached the correct one, an attacker could try a key, measure how speaker-like the output is, and refine. The reported figures for the original system rise from 4.66% to 12.78% as the wrong key gets closer, which gives such a gradient. Our system stays near 4.2% at every distance we tested, so a failed attempt reveals nothing about how close it was.
VII. LIMITATIONS
Our equal error rate is bounded by distillation fidelity. reproduces ECAPA-TDNN only approximately, at a cosine alignment of 0.730 on held-out speakers, and anonymization pressure beyond that point optimizes into the region where the two disagree, which buys no measurable privacy while still costing intelligibility. The evaluation covers 38 speakers from a single corpus and one attack model, an ignorant attacker; informed attackers retrained on anonymized speech are not tested. We report EER, WER and restoration similarity, but not the voice distinctiveness and pitch correlation used in the VoicePrivacy challenges, so our results are not directly comparable with challenge submissions. Restoration is evaluated on the anonymized spectrogram rather than on the anonymized audio, so a deployment would need lossless storage of that representation. The ablation removes both proposed losses together, uses a single seed on a 50-utterance subset, and therefore does not separate their individual contributions.
The results also mix two vocoders. Tables I and III were measured with a HiFi-GAN fine-tuned on VCTK and Lib- riTTS test-clean, whose fine-tuning data therefore included the evaluation utterances, while Table II uses a vocoder fine-tuned on VCTK alone. Repeating the main evaluation with each vocoder changed the equal error rate by 0.43 points and the restoration similarity by 0.38 points, both inside the seed-to-seed spread, so the two sets of numbers are comparable; we report the figures separately rather than merging them.
VIII. CONCLUSION
In our paper-guided re-implementation, the published training objective exhibited a degenerate solution in which a high speaker-verification error rate coincided with severely degraded intelligibility: 41.6% EER at 117.6% WER. An anchor loss and a range loss on the anonymized spectrogram mitigated this behavior in the evaluated configuration, bringing word error rate to 8.3% under matched conditions. Distilling a waveform-domain verifier into the mel domain reduced a second gap, between fooling the training verifier and fooling an independent one, and was worth 21 points of equal error rate at matched settings, at a cost in intelligibility that the anchor weight then trades back. The resulting system reaches equal error rate against a floor of 2.8%, with 11.8% word error rate and 94.9% restoration similarity, and shows a flat response of about 4% to incorrect keys at every distance tested.
REFERENCES
[1] N. Tomashenko et al., “The VoicePrivacy 2020 challenge: Results and findings,” Computer Speech & Language, vol. 74, p. 101362, 2022.
[2] ——, “The VoicePrivacy 2022 challenge evaluation plan,” arXiv preprint arXiv:2203.12468, 2022.
[3] J. Wang, X. Zhang, and X. Qu, “Rano: Restorable speaker anonymization via conditional invertible neural network,” in Proc. International Joint Conference on Neural Networks (IJCNN), 2025, pp. 1–8.
[4] D. Snyder, D. Garcia-Romero, G. Sell, D. Povey, and S. Khudanpur, "X-vectors: Robust DNN embeddings for speaker recognition," in Proc. IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2018, pp. 5329–5333.
[5] B. M. L. Srivastava et al., “Design choices for x-vector based speaker anonymization,” in Proc. Interspeech, 2020, pp. 1713–1717.
[6] H. Turner, G. Lovisotto, and I. Martinovic, “Speaker anonymization with distribution-preserving x-vector generation for the VoicePrivacy challenge 2020,” in Proc. Interspeech, 2020.
[7] J. M. Perero-Codosero, F. M. Espinoza-Cuadros, and L. A. Hernández-Gómez, “X-vector anonymization using autoencoders and adversarial training for preserving speech privacy,” Computer Speech & Language, vol. 74, p. 101351, 2022.
[8] L. Sun, K. Li, H. Wang, S. Kang, and H. Meng, “Phonetic posteriorgrams for many-to-one voice conversion without parallel data training,” in Proc. IEEE International Conference on Multimedia and Expo (ICME), 2016.
[9] J. Patino, N. Tomashenko, M. Todisco, A. Nautsch, and N. Evans, "Speaker anonymisation using the McAdams coefficient," in Proc. Interspeech, 2021, pp. 1099–1103.
[10] L. Dinh, J. Sohl-Dickstein, and S. Bengio, “Density estimation using Real NVP,” in Proc. International Conference on Learning Representations (ICLR), 2017.
[11] D. P. Kingma and P. Dhariwal, “Glow: Generative flow with invertible convolutions,” in Advances in Neural Information Processing Systems (NeurIPS), 2018.
[12] L. Ardizzone, C. Lüth, J. Kruse, C. Rother, and U. Köthe, “Guided image generation with conditional invertible neural networks,” arXiv preprint arXiv:1907.02392, 2019.
[13] G. Hinton, O. Vinyals, and J. Dean, “Distilling the knowledge in a neural network,” arXiv preprint arXiv:1503.02531, 2015, nIPS 2014 Deep Learning Workshop.
[14] F. Tung and G. Mori, “Similarity-preserving knowledge distillation,” in Proc. IEEE/CVF International Conference on Computer Vision (ICCV), 2019, pp. 1365–1374.
[15] B. Desplanques, J. Thienpondt, and K. Demuynck, “ECAPA-TDNN: Emphasized channel attention, propagation and aggregation in TDNN based speaker verification,” in Proc. Interspeech, 2020, pp. 3830–3834.
[16] J. Yamagishi, C. Veaux, and K. MacDonald, “CSTR VCTK corpus: English multi-speaker corpus for CSTR voice cloning toolkit (version 0.92),” 2019.
[17] H. Zen, V. Dang, R. Clark, Y. Zhang, R. J. Weiss, Y. Jia, Z. Chen, and Y. Wu, “LibriTTS: A corpus derived from LibriSpeech for text-to-speech,” in Proc. Interspeech, 2019, pp. 1526–1530.
[18] K. Okabe, T. Koshinaka, and K. Shinoda, “Attentive statistics pooling for deep speaker embedding,” in Proc. Interspeech, 2018.
[19] J. Kong, J. Kim, and J. Bae, “HiFi-GAN: Generative adversarial networks for efficient and high fidelity speech synthesis,” in Advances in Neural Information Processing Systems (NeurIPS), 2020.
[20] I. Loshchilov and F. Hutter, “Decoupled weight decay regularization,” in Proc. International Conference on Learning Representations (ICLR), 2019.
[21] M. Ravanelli, T. Parcollet, P. Plantinga, A. Rouhe, S. Cornell, C. Subakan et al., “SpeechBrain: A general-purpose speech toolkit,” arXiv preprint arXiv:2106.04624, 2021.
[22] A. Nagrani, J. S. Chung, and A. Zisserman, “VoxCeleb: A large-scale speaker identification dataset,” in Proc. Interspeech, 2017.
[23] A. Radford, J. W. Kim, T. Xu, G. Brockman, C. McLeavey, and I. Sutskever, “Robust speech recognition via large-scale weak supervision,” in Proc. International Conference on Machine Learning (ICML), ser. PMLR, vol. 202, 2023, pp. 28492–28518.
[24] N. Papernot, P. McDaniel, I. Goodfellow, S. Jha, Z. B. Celik, and A. Swami, “Practical black-box attacks against machine learning,” in Proc. ACM Asia Conference on Computer and Communications Security (ASIA CCS), 2017.
[25] A. Demontis, M. Melis, M. Pintor, M. Jagielski, B. Biggio, A. Oprea, C. Nita-Rotaru, and F. Roli, “Why do adversarial attacks transfer? Explaining transferability of evasion and poisoning attacks,” in Proc. 28th USENIX Security Symposium, 2019.