An Efficient Temporary Deepfake Location Approach Based Embeddings for Partially Spoofed Audio Detection

Yuankun Xie, Haonan Cheng, Yutian Wang, Long YearXiv 2023

TL;DR

The authors introduce Temporal Deepfake Location (TDL), a novel framework designed to pinpoint exact frame-level forged segments within partially spoofed audio. By combining an embedding similarity module with dynamic temporal convolutions, TDL achieves state-of-the-art detection performance while using only 40% of the parameters required by traditional baseline models.

What Problem Does This Paper Address?

Most audio deepfake detection (ADD) systems operate at the utterance level—they try to determine whether an entire audio clip is real or fake. However, a more insidious and low-cost attack vector is partial spoofing (PS). In a partial spoofing scenario, an attacker takes a completely genuine voice recording and alters only a few key words (like names, dates, or places) using text-to-speech or voice conversion technologies.

Detecting these localized edits requires fine-grained, frame-level analysis. Existing ADD architectures (like LCNN or BLSTM) struggle with this because they lack mechanisms specifically tailored to map out and isolate the precise boundaries between real and fake speech segments.

Methods

The proposed Temporal Deepfake Location (TDL) framework splits the task into a robust front-end feature extractor and a highly specialized back-end localization network.

Fig. 1. The entire structure of our proposed Temporal Deepfake Location (TDL) method.
  1. W2V2 Front-End: The model utilizes a pre-trained, frozen Wav2Vec2 (specifically wav2vec2-XLS-R-300M) model. Because it is trained on massive amounts of genuine speech across 128 languages, its hidden states provide a rich representation of what "real" speech should sound like.
  2. Embedding Similarity Module (ESM): To clearly separate real and fake features, the ESM projects the Wav2Vec2 features into a lower-dimensional space and applies a custom triplet-like cosine similarity loss. This loss forces genuine frames to cluster together and fake frames to cluster together, while pushing the real and fake clusters far apart.
  3. Temporal Convolution Operation (TCONV): Instead of standard convolutions that treat all neighboring frames equally, TCONV uses the similarity matrix generated by the ESM as a local attention mask. It dynamically weights neighboring frames during the convolution process, allowing the network to be highly sensitive to sudden temporal transitions (i.e., the exact moment a spoofed segment begins or ends).

Datasets

The model was trained and evaluated on two primary datasets:

  • ASVspoof2019PS (19PS): Derived from the standard ASVspoof2019 Logical Access database, this dataset features frame-level labels at a 160ms resolution. The frame-level data is relatively balanced (~48% to 53% fake frames depending on the split).
  • LAV-DF: A multi-modal temporal forgery dataset used strictly for cross-dataset evaluation to test the model's ability to generalize. Unlike 19PS, LAV-DF is highly unbalanced, containing only about 10% fake frames.

Key Insights and Ideas

  • The "Real = 1, Fake = 0" Advantage: The authors experimented with different label configurations and found that setting real frames to 1 and fake/padding frames to 0 yielded significantly better results than the reverse. By treating fake and padding frames identically, the model is forced to model the compact distribution of genuine speech (similar to one-class learning), making anomalies easier to spot.
  • Feature Quality Trumps Backbone Architecture: Swapping traditional acoustic features (like LFCC) for self-supervised Wav2Vec2 features dropped the Equal Error Rate (EER) of a standard baseline model from 16.21% to 9.87%, proving that robust self-supervised pre-training is crucial for cross-domain deepfake detection.
  • Efficiency via Selective Attention: By using the local attention mask to guide the temporal convolutions, TDL avoids processing irrelevant global context, drastically reducing the model's parameter footprint.

Key Results

The TDL framework achieved top-tier performance across both in-domain and cross-domain evaluations:

  • In-Domain (19PS): TDL achieved an EER of 7.04%, outperforming the standard LCNN-BLSTM baseline (9.87% with W2V2) and a recent 5gMLP architecture (9.24%).
  • Cross-Domain (LAV-DF): When trained on 19PS and tested on the unbalanced LAV-DF dataset, TDL maintained a strong 11.23% EER, demonstrating superior generalization compared to baselines.
  • Model Complexity: TDL achieves these results with only 8.7 million parameters, which is just 40.5% of the size of the LCNN-BLSTM baseline (21.5 million parameters).

Limitations and Future Work

The authors do not include a dedicated section on limitations or explicit future work. However, the text implies that handling highly unbalanced cross-dataset scenarios (such as the transition from 19PS to LAV-DF) remains a steep challenge, as evidenced by the performance drop from 7.04% to 11.23% EER. Future iterations might focus on improving domain adaptation techniques to close this cross-dataset gap.

Summary updated

Abstract

Partially spoofed audio detection is a challenging task, lying in the need to accurately locate the authenticity of audio at the frame level. To address this issue, we propose a fine-grained partially spoofed audio detection method, namely Temporal Deepfake Location (TDL), which can effectively capture information of both features and locations. Specifically, our approach involves two novel parts: embedding similarity module and temporal convolution operation. To enhance the identification between the real and fake features, the embedding similarity module is designed to generate an embedding space that can separate the real frames from fake frames. To effectively concentrate on the position information, temporal convolution operation is proposed to calculate the frame-specific similarities among neighboring frames, and dynamically select informative neighbors to convolution. Extensive experiments show that our method outperform baseline models in ASVspoof2019 Partial Spoof dataset and demonstrate superior performance even in the crossdataset scenario.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Model complexity comparisonTDLParameters8,718 thousands-12793 vs baselinePartially Spoofed Audio Detection
Source quote
L187: TDL │ 8,718
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
Model complexity comparisonLCNN-BLSTM baselineParameters21,511 thousandsPartially Spoofed Audio Detection
Source quote
L188: LCNN-BLSTM │ 21,511
BibTeX
@misc{xie2023efficient,
  author = {Yuankun Xie and Haonan Cheng and Yutian Wang and Long Ye},
  title = {{An Efficient Temporary Deepfake Location Approach Based Embeddings for Partially Spoofed Audio Detection}},
  year = {2023},
  eprint = {2309.03036},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.03036},
}

Loading related content...

Figure