Audio Spoof Detection With Two-Stage Attention Embeddings

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing audio spoof detection models, particularly Vision Transformers (ViTs), require large datasets and significant resources due to their high parameter count, and struggle with out-of-distribution tasks like spoof detection, leading to high equal error rates and inefficiencies.

Innovation Solution

A two-stage contrastive learning framework is employed, utilizing Siamese training with a cross-attention branch to learn discriminative representations for real and fake classes, followed by training a classifier, which generates and separates representation embeddings effectively using a novel loss formulation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a pretrained audio ViT is fine-tuned for spoof detection, then the model can perform classification tasks, but it results in high equal error rate due to out-of-distribution task mismatch

Engineering Contradiction:
Improvespoof detection accuracyVSAvoidtask distribution adaptability
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The patent applies preliminary action by pre-training the audio ViT on a large bonafide-only dataset before fine-tuning for spoof detection. This two-stage training approach (pre-training followed by fine-tuning) allows the model to first learn general audio representations from abundant real audio data, then adapt to the specific spoof detection task. The pre-training phase prepares the model to handle the out-of-distribution nature of spoof detection by establishing a strong baseline understanding of audio patterns.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent employs parameter changes by modifying the training objective and data composition between pre-training and fine-tuning stages. During pre-training, the model learns from bonafide-only data with specific loss functions, then during fine-tuning, the training parameters are adjusted to include spoof samples and task-specific optimization goals. This parameter adaptation allows the model to transition from general audio understanding to specialized spoof detection capabilities.

Inventive Principle:
Principle #35Parameter changes

2Reliability

If existing audio spoof models are used, then spoof detection can be performed, but a relatively large number of parameters are required leading to high resource consumption

Engineering Contradiction:
Improvespoof detection capabilityVSAvoidcomputational resource consumption
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent applies the extraction principle by selectively adapting only the necessary components of the audio ViT for spoof detection rather than training the entire model from scratch. The pre-trained audio ViT provides a fixed foundation, and only specific layers or parameters are fine-tuned for the spoof detection task. This extraction approach reduces the number of trainable parameters significantly while maintaining detection effectiveness.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent uses copying by leveraging the pre-trained audio ViT weights as a starting point for spoof detection. Instead of creating a new model architecture, the approach copies the proven audio processing capabilities of the pre-trained ViT and adapts them to the spoof detection domain. This copying strategy avoids redundant computation and resource consumption while preserving effective audio representation learning.

Inventive Principle:
Principle #26Copying

3Reliability

If a large training dataset is used for audio ViT pre-training, then model performance improves, but significantly more resources are needed for training and running the models

Engineering Contradiction:
Improvemodel performanceVSAvoidtraining data volume
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent applies segmentation by dividing the training process into distinct phases: pre-training on a large bonafide-only dataset, followed by fine-tuning on a smaller spoof detection dataset. This segmentation allows the model to first acquire general audio knowledge from abundant data, then specialize with limited task-specific data. The separation of training stages optimizes resource usage by allocating large data requirements only to the initial pre-training phase.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent uses preliminary action by performing pre-training on a large bonafide dataset before the actual spoof detection fine-tuning. This preliminary phase establishes strong audio representations that transfer to the spoof detection task, reducing the amount of spoof-specific training data needed. The pre-trained model serves as a knowledgeable starting point that requires less data to adapt to the target task.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12411910B2Audio spoof detection using attention-based contrastive learning
Publication Date: 2025.09.09 REALITY DEFENDER INC
  • US12411910B2 patent drawing
  • US12411910B2 patent drawing
  • US12411910B2 patent drawing

AI summary

An exemplary method for detecting fake audios comprises: converting audio data into an image representation of the audio data; providing the image representation of the audio data to a trained machine-learning model, the machine learning model: generating, using a trained self-attention branch, one or more representation embeddings corresponding to the image representation of the audio data; and receiving, using a trained classifier component, the one or more representation embeddings and outputting a classification result. The machine-learning model is trained by: in a first stage, training one or more self- and cross-attention components via contrastive learning, each self- and cross-attention component comprises a first self-attention branch, a second self-attention branch, and a cross-attention branch; and in a second stage, training the classifier component; and providing the classification result.