Continual Learning for Fake Audio Detection

Haoxin Ma, Jiangyan Yi, Jianhua Tao, Ye Bai, Zhengkun Tian, Chenglong Wang · DOI

TL;DR

This paper introduces Detecting Fake Without Forgetting (DFWF), a continual learning framework designed to protect audio anti-spoofing models from "catastrophic forgetting." By combining knowledge distillation with a novel Positive Sample Alignment (PSA) loss, the researchers enable models to learn new spoofing attacks incrementally without losing their ability to detect previous ones, achieving up to an 81% relative reduction in error rates compared to standard fine-tuning.

What Problem Does This Paper Address?

In the cat-and-mouse game of fake audio detection, new spoofing attacks (like advanced voice conversion or speech synthesis) emerge constantly. Traditionally, researchers handle new data in two ways:

  1. Retraining from scratch: This is computationally expensive and requires keeping all historical data, which is often impossible due to storage limits or privacy regulations.
  2. Fine-tuning: While fast, this leads to catastrophic forgetting. As the model learns to detect a new type of attack, its performance on older, previously learned attacks plummets.

The authors aim to bridge this gap by creating a model that can learn over time—maintaining a "memory" of past threats while adapting to new ones.

Methods

The proposed DFWF method is a regularization-based continual learning approach. It modifies the standard training loss function by adding two key constraints:

  • Learning without Forgetting (LwF): This uses knowledge distillation. When training on new data, the model tries to keep its output probabilities similar to those of the "original" (pre-update) model. This encourages the network to retain the decision boundaries it previously learned.
  • Positive Sample Alignment (PSA): This is the paper's novel contribution. The authors observe that while "fake" audio varies wildly depending on the attack method, "genuine" speech is relatively consistent. PSA uses cosine distance to ensure that the embeddings (internal representations) of genuine speech remain stable between the old and new versions of the model.

The backbone architecture used for these experiments is a Light Convolutional Neural Network (LCNN), which processes 60-dimensional linear frequency cepstral coefficients (LFCC) as input.

Figure 1: Difference between continual learning methods and fine-tuning. Blue and yellow region is the parameter configu- ration region of source and target models correspondingly. If using the fine-tuning strategy (solid arrow), the results of pa- rameter optimization will easily fall into the region deviation from the source, while continual learning methods (dotted ar- row) can learn the parameters in the overlapping region.

Datasets

The researchers evaluated their method using the ASVspoof 2019 dataset, the gold standard for audio anti-spoofing. They focused on two main subsets:

  • Logical Access (LA): 19 types of synthetic speech and voice conversion attacks.
  • Physical Access (PA): 27 acoustic environments and 9 replay configurations.

To simulate real-world scenarios, they created sequential training tasks (e.g., learning LA attacks first, then PA attacks, or learning four specific LA attack types one after another).

Key Insights and Ideas

  • The "Genuine" Anchor: The most clever insight is treating genuine speech as a stable anchor. By forcing the model to keep its representation of "real" voices consistent (via PSA), the model is less likely to drift significantly when it encounters a new "fake" distribution.
  • Transfer Order Matters: The researchers found that starting with a model trained on LA data provided a better foundation for learning PA data than vice versa. This suggests that the diversity of synthetic attacks in LA creates a more robust initial feature space.
  • Visualizing the "Forgetting": Using t-SNE plots, the authors show that fine-tuning causes old attack clusters to bleed into the "genuine" cluster. DFWF successfully keeps these clusters separated, mimicking the behavior of a model trained on all data simultaneously.
Figure 3: The t-SNE visualization of all training data embed- dings that are extracted by different models. LCNN-BASE is trained only on LA subset. LCNN-FT is finetuned on PA subset based on LCNN-BASE. LCNN-DFWF is trained on PA by the propoesd DFWF method based on LCNN-BASE. LCNN-MC is train on mixed data of LA and PA subsets. The color red repre- sents genuine speech. The color blue represents spoofing speech of LA attack. The color green represents spoofing speech of PA attack.

Key Results

  • Massive Error Reduction: In a sequence of four different LA attacks, DFWF achieved a relative reduction in Average Equal Error Rate (AvgEER) of 81.63% compared to standard fine-tuning.
  • Stability: As the number of attack types increased, the error rate for fine-tuning exploded (from ~0.8% to ~43.7%), while DFWF remained stable (staying around 8%).
  • Approaching the Upper Bound: DFWF's performance was remarkably close to Multi-Condition (MC) training—the "ideal" scenario where the model is retrained on all data at once. This is impressive because DFWF achieves this without needing access to the old data.
Figure 2: Performance comparison under incremental increase of spoofing types: results show the AvgEER% over the sequen- tial training of LA attacks (A13 →A17 →A10 →A19) and PA attacks (bbbBB →cccCC →aaaAC →abcAA). FT means fine-tuning model. MC means multi-condition training model. AvgEER when the number of attacks equals to i means the average performance on current and previous data at the i-th training step.

Limitations and Future Work

  • Not a Total Replacement for Retraining: DFWF still performs slightly worse than retraining on the full mixed dataset (Multi-Condition training). The authors acknowledge that MC represents the theoretical upper limit of performance.
  • Hyperparameter Sensitivity: The method relies on balancing coefficients ($\alpha$ and $\beta$) and a temperature parameter ($T$) for distillation, which may require tuning for different tasks.
  • Future Directions: The authors suggest exploring more advanced continual learning methods, such as dynamic architecture approaches (which grow the network) or replay-based methods, to further close the gap with full retraining.

Summary updated

BibTeX
@misc{ma2021continual,
  author = {Haoxin Ma and Jiangyan Yi and Jianhua Tao and Ye Bai and Zhengkun Tian and Chenglong Wang},
  title = {{Continual Learning for Fake Audio Detection}},
  year = {2021},
  eprint = {2104.07286},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.07286},
}
Figure