Physics-Gauged Magnetic Graphs for Phase-Aware Spoof Detection

A recording of a voice is a pile of waves. Each wave's phase, meaning its position in its cycle, should advance by a predictable amount from one short-time Fourier frame to the next. A replayed or vocoded signal breaks that bookkeeping in small ways. Room reflections smear phase across time. Loudspeakers distort it unevenly across frequency. Neural vocoders often get the relationship between a fundamental and its harmonics slightly wrong. Current detectors mostly throw this structure away or ask a generic network to rediscover it. Real-valued CNNs read phase as a separate image channel. Spectrogram graph models use undirected, real-valued edges. Directed-graph networks from the graph-learning literature attach a single arbitrary rotation to every edge.

We propose to build the expected phase relations directly into a complex-valued graph operator over a high-resolution spectrogram. Nodes are complex STFT coefficients. Each edge carries the rotation that wave physics predicts between its two endpoints. A clean, coherent source is then "smooth" on this graph, and spoofing artifacts show up as roughness that a complex-valued graph network can filter and classify. Two kinds of edges carry the physics. Temporal edges encode the phase advance between consecutive frames. Harmonic edges encode the coupling between a bin and its integer multiples, hundreds of bins away on a 2048-point spectrum, where local convolutions cannot easily reach.

Core Claim

The magnetic Laplacian, a Hermitian graph operator that encodes edge direction as a complex phase, works well for directed graphs (MagNet; sMGC). In those papers the edge phase is a hand-tuned constant $2\pi q$ that only marks which way an edge points. Our claim is that for wave data the edge phase should not be a hyperparameter. It should be the physically predicted phase offset, which acts like a "gauge" that removes the expected rotation before nodes are compared. With that choice, the operator's low-frequency eigenvectors correspond to physically coherent sound, and its high-frequency content isolates the incoherence that replay and synthesis introduce.

Concretely, for node signal $x$ (complex STFT values, or phasors derived from them) the operator penalizes

$$E(x) = \sum_{(u,v)} w_{uv}\,\big|x_v - e^{i\theta_{uv}}x_u\big|^2 .$$

Here $w_{uv}\ge 0$ is an edge weight and $\theta_{uv}$ is the predicted phase offset. For a temporal edge at bin $f$, $\theta = 2\pi f R/N$, with hop size $R$ and FFT size $N$. This is the phase-vocoder advance of a stationary sinusoid centred on that bin.

Because $\theta_{vu} = -\theta_{uv}$, the operator is Hermitian, so it keeps the real spectrum and orthonormal eigenbasis that make spectral filtering stable. That stability is lost with general asymmetric operators (Koke).

What is new is the source of the phases, which come from the signal model rather than a global charge. A second novelty is the inclusion of non-local harmonic edges. Prior audio graphs lack both. SIGNL builds spectral and temporal graphs, but they are real, undirected and phase-free. Prior magnetic networks never touch continuous wave data.

Research Program

Graph and features. The input is a 2048-point linear STFT. This resolution is chosen because Jung et al. showed that moving a magnitude CNN-GRU from 512 to 2048 bins cut ASVspoof 2019 physical-access EER from 7.83% to 3.07% on development data.

Temporal edges link $(t,f)$ to $(t+1,f)$ with the vocoder phase described above.

Harmonic edges need a different treatment. The raw phase relation between a fundamental and its $k$-th harmonic depends on unknown initial phases, but the relation between their per-frame phase increments does not. We therefore attach a second node channel, the demodulated increment phasor

$$p_{t,f} = \exp\!\big(i(\psi_{t+1,f}-\psi_{t,f}-2\pi fR/N)\big),$$

where $\psi$ is STFT phase. For a coherent harmonic source this satisfies $p_{t,kf}\approx p_{t,f}^{\,k}$. Harmonic edges compare $p_{t,kf}$ against the $k$-th power of $p_{t,f}$, for $k$ up to a small $K$ such as 6. The network computes the powers as a fixed lift, so the operator stays linear in the lifted features.

Edge weights. These come from local magnitude, so silent bins do not dominate. This addresses the warning that linear spectra let high-frequency noise swamp the signal (DCASE 2020 focusing).

Network. The operator is sparse, with roughly $1 + K$ edges per node, and its connectivity is fixed per FFT configuration. Filtering is done with complex Chebyshev polynomials as in MagNet, so no eigendecomposition is needed, and each layer costs about as much as a small complex convolution. We use complex weights in the manner of DCCRN and phase-preserving modReLU activations as in PHALAR, trained with Wirtinger gradients (Real-Valued Backpropagation is Unsuitable for CVNNs).

Learned corrections. Each edge gets a small learned phase correction, initialized at zero. This lets the model refine the physics prior, much as Dune learns complex edge rotations. If depth beyond a few hops is needed, we substitute Dune-style unitary layers, which that paper trains past 100 layers.

Readout and analysis. The readout pools per-band graph-energy statistics and complex features into a real classifier. We will also measure the energy $E(x)$ of untrained, physics-gauged signals directly. If the gauge is right, bona fide and replayed speech should already separate in this quantity before any learning. That check tells us whether the prior carries information on its own.

Baselines

Trivial reference points. The first is the ASVspoof 2019 challenge baseline, CQCC-GMM, at 11.04% EER as reported by Jung et al.. The second is a single-number detector that thresholds the untrained graph energy $E(x)$. If the full model barely beats that threshold, the network adds little over the prior.

Strongest high-resolution single system. This is the 2048-bin magnitude CNN-GRU of Jung et al.. It reports 1.76% EER on the physical-access evaluation set, and its magnitude-phase-PSD primary submission is reported at 2.45%. It is the most direct competitor because it uses the same resolution and already exploits phase, only as an independent real channel. We reimplement it on the identical STFT configuration and give it the same tuning budget as our model.

Challenge reference. The best overall physical-access system in ASVspoof 2019, T28, reaches 0.39% EER and 0.0096 t-DCF. That is an ensemble, so we report it as a ceiling rather than a like-for-like target.

Deepfake reference. For ASVspoof 2021 DF, the reference is SIGNL, with 7.21% EER using full labels and 7.88% with 5% labels. It is the only existing spectral-graph detector, though it builds on Wav2Vec2 features. We compare against it both as published and in a variant matched to our STFT input.

Ablations isolating the key ingredient. All of these keep architecture and parameter count fixed. The first sets every edge phase to zero, giving a real, undirected graph. The second uses a constant charge $q$ selected on development data, which is MagNet's operator. The third learns edge phases from scratch with no physics initialization. The fourth drops the harmonic edges, leaving temporal edges only.

What counts as success. Beating the matched 2048-bin CNN-GRU and the residual-feature CNN described below on evaluation-set EER and t-DCF, across three seeds, with non-overlapping confidence intervals. In addition, the physics-phase variant must beat both the zero-phase and constant-$q$ ablations.

Why not just…?

Why not just feed demodulated phase features (instantaneous frequency, group delay, the phasor $p$) to the 2048-bin CNN? This is the most serious threat. For temporal coherence it may well capture everything our temporal edges do. We therefore include exactly this as a baseline, using the same $p$ channel and the same CNN-GRU. The graph is only justified by what local convolutions cannot see: harmonic coupling between bins hundreds of positions apart. If the temporal-only graph ties with the residual-feature CNN, but the harmonic graph beats it, the contribution is the non-local physics edges. If the residual-feature CNN matches the full model, we will report that the gain lies in the gauge-fixed features rather than the graph, and we will recommend the cheaper model.

Why not just use a complex CNN like DCCRN's encoder on the STFT? Complex convolution binds amplitude and phase correctly, but only over local grid patches. DCCRN itself degrades under severe reverberation, which scatters phase non-locally. We train a DCCRN-style complex encoder with a classification head, matched in parameters, on the same input. The test that settles it is the gap on the large-room, long-reverberation configurations of ASVspoof 2019 physical access.

Why not just use an off-the-shelf directed or magnetic GNN on a spectrogram graph? The constant-$q$ ablation is precisely this. On wave data, a single uniform rotation carries no information about frequency-dependent phase advance. If it matches physics phases, our central claim is false, and the ablation is built to show that directly.

Why not just use a large self-supervised front end? SIGNL shows this is strong on deepfakes, so we do not claim to beat it on DF. Instead we test whether adding our graph features on top of its encoder reduces EER. That would indicate the phase physics is complementary to learned speech representations.

Proposed Experiments

Primary benchmark. ASVspoof 2019 physical access, because replay through rooms and loudspeakers is where phase coherence should break most clearly. We report EER and t-DCF on the evaluation set, which contains unseen replay configurations. We also break results down by room size and reverberation time, to test whether gains concentrate where non-local phase scattering is strongest.

Secondary benchmarks. ASVspoof 2019 logical access probes vocoder artifacts, where harmonic edges should matter most. ASVspoof 2021 DF tests robustness to codecs, where lossy compression may corrupt phase. PHALAR reports that phase pooling fails on low-bitrate audio, so a degradation here is a plausible negative outcome that we will report.

Transfer check. DCASE 2020 Task 2 provides a check on transient machine sounds. Here the reference is the linear-spectrogram focusing method at 85.79% average AUC and 68.01% pAUC (DCASE 2020 focusing). This tests whether a locally defined phase gauge survives non-periodic signals, which is exactly where PHALAR's global Fourier pooling breaks.

Decisive checks. Three results matter most. First, physics phases must outperform constant-$q$ and zero phases at equal capacity. Second, harmonic edges must add accuracy beyond the residual-feature CNN. Third, the untrained graph energy must separate bona fide from replayed speech above chance on the development set. If all three fail, the idea is wrong. If only the third succeeds, the result is a cheap physics feature, not a new architecture. We will also report wall-clock cost against the matched CNN-GRU, since Jung et al. flag the cost of high-resolution ensembles as a deployment barrier.