[Paper Review] Low-rank Adaptation Method for Wav2vec2-based Fake Audio Detection
This paper proposes Low-Rank Adaptation (LoRA) for efficient fine-tuning of wav2vec2 in fake audio detection, freezing pre-trained weights and injecting low-rank matrices to reduce trainable parameters by 99.49% while maintaining near-global fine-tuning performance (EER: 1.18% on 8s audio). LoRA significantly improves training efficiency with lower memory and faster convergence, outperforming global fine-tuning and adapter methods.
Self-supervised speech models are a rapidly developing research topic in fake audio detection. Many pre-trained models can serve as feature extractors, learning richer and higher-level speech features. However,when fine-tuning pre-trained models, there is often a challenge of excessively long training times and high memory consumption, and complete fine-tuning is also very expensive. To alleviate this problem, we apply low-rank adaptation(LoRA) to the wav2vec2 model, freezing the pre-trained model weights and injecting a trainable rank-decomposition matrix into each layer of the transformer architecture, greatly reducing the number of trainable parameters for downstream tasks. Compared with fine-tuning with Adam on the wav2vec2 model containing 317M training parameters, LoRA achieved similar performance by reducing the number of trainable parameters by 198 times.
Motivation & Objective
- To address the high computational and memory cost of fine-tuning large pre-trained wav2vec2 models for fake audio detection.
- To explore efficient parameter-efficient fine-tuning methods like LoRA in the context of self-supervised speech models for spoof detection.
- To reduce training time and hardware requirements without sacrificing detection performance.
- To evaluate the effectiveness of LoRA compared to global fine-tuning and adapter-based methods on the ASVspoof2019 benchmark.
Proposed method
- Freeze all pre-trained wav2vec2 model weights and inject trainable low-rank matrices (B ∈ ℝ^{d×r}, A ∈ ℝ^{r×k}) into the query (Wq) and value (Wv) projection matrices of the Transformer layers.
- Update the model output as h = h + BAx, where ΔW = BA is a low-rank approximation of the weight update, with r ≪ d.
- Train only the low-rank matrices A and B while keeping the original weights W fixed, drastically reducing the number of trainable parameters.
- Apply LoRA to the query and value matrices (Wq and Wv) of the multi-head attention mechanism, as these showed superior performance in ablation studies.
- Use rank r = 2 as the optimal setting, balancing performance and parameter efficiency.
- Evaluate the method on the ASVspoof2019 dataset with varying input lengths (1s to 8s) and batch sizes to assess robustness and efficiency.
Experimental results
Research questions
- RQ1Can LoRA effectively reduce the number of trainable parameters in wav2vec2 for fake audio detection while preserving performance?
- RQ2How does LoRA compare to global fine-tuning and adapter-based methods in terms of detection accuracy and training efficiency?
- RQ3What is the optimal rank r for LoRA in the context of fake audio detection using wav2vec2?
- RQ4How does input audio length affect the performance and memory requirements of LoRA-fine-tuned models?
- RQ5Does applying LoRA to specific attention matrices (e.g., Wq, Wv) yield better results than applying it to all matrices?
Key findings
- LoRA reduced the number of trainable parameters by 99.49% compared to global fine-tuning, achieving an EER of 1.18% on 8-second audio inputs.
- The performance of LoRA decreased by only 0.17% compared to global fine-tuning, demonstrating near-parity in accuracy with drastically reduced parameter count.
- LoRA training time was significantly faster than global fine-tuning—46 seconds vs. 97 seconds for a 1-second audio input with batch size 16.
- LoRA enabled larger batch sizes (up to 8 for 4s audio) without memory overflow, while global fine-tuning failed at batch size 4.
- Applying LoRA to the query and value matrices (Wq and Wv) yielded better performance than applying it to all matrices or only key matrices.
- Increasing input length from 1s to 8s improved EER from 10.27% to 1.18%, but also increased memory usage, highlighting a trade-off between performance and efficiency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.