SWIFT: A Handcrafted, Arithmetic-Minimal FPGA Engine for Real-Time Audio Deepfake Detection
Organizations: Department of Information Technology, Indian Institute of Engineering Science and Technology, Shibpur, Howrah, West Bengal 711103, India · School of VLSI Technology, Indian Institute of Engineering Science and Technology, Shibpur, Howrah, West Bengal 711103, India
Abstract
Generative voice cloning threatens voice-based authentication, yet current deepfake detectors rely on power-hungry, high-precision models unsuited to edge hardware. We present SWIFT (Streaming Whiten-Integer Forensic Trust-Engine), a handcrafted detector that works in the high-frequency noise domain where synthesis artifacts concentrate. A first-order integer high-pass residual drives nine families of fixed-point descriptors, among them integer lifting-wavelet cepstral quantiles, Mahalanobis anomaly distances, Poincaré phase-space geometry, and phase jitter, fused by calibrated gradient-boosted trees and a sparse L1-regularised meta-learner. Under leakage-controlled nested cross-validation, with one shared preprocessing chain for real and fake audio, this reference model reaches accuracy of up to 99.86% and an Equal Error Rate (EER) as low as 0.03% across eight benchmarks. Its integer front-end and a fixed-point linear classifier run on the programmable logic of a PYNQ-Z2 (Zynq-7020) board, with a 7.85 microseconds per-frame datapath latency (127.4k frames/s) at 1.734 W and 11.2% LUT utilisation. Integer-only audio deepfake feature extraction is thus feasible at the edge without pretrained neural models or floating-point units.
Figures & tables
| # | Feature Family | Dim. | Target |
| 1 | DWT cepstral quantiles | 104 | Wavelet boundary disc. |
| 2 | Noise Mahalanobis anomaly | 10 | Distribution shift |
| 3 | Noise Poincaré geometry | 24 | Phase-space disruption |
| 4 | Noise phase jitter | 10 | Trajectory micro-var. |
| 5 | Local relational anomaly | 10 | Within-clip non-stat. |
| 6 | Token periodicity flux | 8 | Frame-rate rhythm |
| Stage | Runs on | Arithmetic |
| Noise residual (Eq. ( 1 )), integer lifting DWT, cross-multiplexing, | PL | Integer add/shift |
| Linear classifier (SWIFT-HW) | PL | Fixed-point MAC |
| Weight loading, DMA, control, score read-back | PS (Cortex-A9) | – |
| Families 2–9 | Software | Q15 fixed point |
| LightGBM, Platt, fusion; all training | Software | Floating point |
| Transform (on Noise Residual) | Accuracy (%) | AUC | EER (%) |
| Short-Time Fourier Transform | 97.50 | 0.9986 | 1.67 |
| Mel-Frequency Cepstral Coefficients | 75.83 | 0.8600 | 23.33 |
| Constant-Q Transform | 56.67 | 0.6594 | 40.00 |
| Integer Lifting DWT (ours) | 99.78 | 0.9995 | 0.05 |
| Classifier | Accuracy (%) | Recall (%) | F1-Score (%) | AUC | EER (%) |
| SVM (RBF) | 89.71 | 91.06 | 89.71 | 0.9685 | 10.42 |
| MLP (3-layer) | 92.96 | 93.48 | 92.96 | 0.9761 | 7.18 |
| Random Forest | 82.45 | 82.78 | 82.45 | 0.9070 | 17.49 |
| XGBoost | 88.51 | 88.98 | 88.51 | 0.9559 | 11.42 |
| LightGBM (single) | 88.62 | 89.00 | 88.62 | 0.9576 | 11.30 |
| SWIFT (ours) | 99.78 | 99.66 | 99.95 | 0.9995 | 0.05 |
| Dataset | Type | Samples | Accuracy (%) | Recall (%) | F1-Score (%) | AUC | EER (%) |
| Audeter | TTS/codec | 15,228 | 99.68 | 99.65 | 99.79 | 0.9896 | 0.29 |
| MLAAD | TTS/codec | 18,000 | 99.86 | 99.91 | 99.84 | 0.9898 | 0.12 |
| CodecFake | TTS/codec | 94,242 | 99.29 | 99.16 | 99.29 | 0.9889 | 0.66 |
| ShiftySpeech | TTS/codec | 281,945 | 99.78 | 99.66 | 99.95 | 0.9995 | 0.05 |
| WaveFake | GAN | 104,800 | 90.42 | 89.56 | 90.40 | 0.9235 | 1.54 |
| LibriTTS | GAN | 20,929 | 99.52 | 99.35 | 99.55 | 0.9992 | 0.03 |
| Methodology | Type | Benchmark | Accuracy (%) | Recall (%) | F1-Score (%) | AUC | EER (%) |
| WavLM+MFA [ 15 ] | SSL | ASVspoof 2019 LA | 91.84 | 90.92 | 91.37 | 0.8470 | 0.52 |
| XLS-R+CL [ 16 ] | SSL | ASVspoof 2019 LA | 93.42 | 92.78 | 93.10 | 0.8517 | 0.46 |
| W2V2-AASIST+SAM [ 17 ] | SSL | CodecFake | 92.84 | 91.97 | 92.53 | 0.9416 | 0.62 |
| CNN+MFCC [ 18 ] | CNN | Fake-or-Real | 89.67 | 88.95 | 89.31 | 0.7597 | 0.31 |
| Proposed | DSP+Stack | ShiftySpeech | 99.78 | 99.66 | 99.95 | 0.9995 | 0.05 |
| Slice LUTs | Registers | DSPs | PL latency per frame | Throughput (frames/s) | Power |
| 5,968 (11.22%) | 8,647 (8.13%) | 42 (19.09%) | 7.85 s | 127.4k | 1.734 W |
| Classifier | Accuracy (%) | AUC | EER (%) |
| Linear, 26 BinDCT features, floating point | 98.80 | 0.9921 | 0.35 |
| SWIFT-HW: linear, int16/int32 (deployed) | 98.45 | 0.9904 | 0.42 |
| Software reference ensemble (192 features) | 99.78 | 0.9995 | 0.05 |
Audio Deepfake Detection
Audio deepfake detection identifies synthetic, cloned, or manipulated speech and other audio to support authentication and media forensics.
See all 219 papers