A partial deepfake replaces a few words inside an otherwise genuine recording, for example turning "I did not" into "I did." Current detectors learn from labeled partial fakes what a forged frame or a splice point looks like. They score well on the corpus they were trained on and fail on new ones. One detector drops from 7.61% to 43.25% error when moved to a new corpus built with different voice-cloning engines and different crossfades. The deeper problem is that its score scale shifts, so a threshold chosen in the lab stops meaning anything (Robust Localization of Partially Fake Speech). We propose to stop asking a model for an absolute "fake" score. Instead, we ask the recording to calibrate itself. We cut the test recording into short pieces and reassemble them in many deliberately wrong orders, which gives splices we know are artificial. A small frozen model scores how "seamed" each reassembly sounds. We then solve a linear system that separates each piece's own oddness from the compatibility between each pair of pieces. A genuine adjacency comes out strongly compatible. A forged seam comes out looking like our deliberately broken ones, and the reference for "broken" is measured on the same speaker, channel, and room.
The trick comes from computational magnetism. There, the strengths of interaction between magnetic atoms (the "exchange couplings" $J_{ij}$ of a Heisenberg spin model) cannot be read off directly. Physicists compute total energies of several artificially imposed spin arrangements (all aligned, alternating, striped) and invert the resulting overdetermined linear system to isolate each coupling from the constant and on-site terms (Electronic structures of ternary iron arsenides; α-FeTe and α-FeSe bicollinear order; RbFe(MoO4)2). We borrow the method itself, not the spin analogy as decoration. Designed configurations plus a least-squares inversion remove nuisance offsets that otherwise swamp the quantity of interest. In forensics, those nuisance offsets are exactly what shifts across domains.
Core Claim
Our central claim is that splice-point localization becomes robust across domains when it is posed as estimating recording-specific pairwise couplings. We contrast this with the usual approach of classifying frames against a globally learned threshold. The couplings are estimated from probe reassemblies of the test recording itself. Let a recording be cut into segments $1,\dots,N$ of roughly 200 ms. For a probe configuration $c$, meaning an ordered chain of segments, a frozen seam scorer returns an energy $E(c)$. We model this energy as
$$E(c) = E_0 + \sum_{a \in c} h_a + \sum_{(a,b)\ \text{adjacent in}\ c} J_{ab},$$
where $E_0$ is a recording-level offset, $h_a$ is segment $a$'s intrinsic oddness (noise, a plosive, a laugh), and $J_{ab}$ is the seam cost of placing $b$ right after $a$. The same form, with random chains of three to five segments, handles offsets, while the scorer's raw boundary score does not. With a few hundred chains per recording the system is overdetermined. We solve it with ridge least squares.
The quantities we care about are the original adjacencies $J_{i,i+1}$. We compare them against the empirical distribution of $J_{ab}$ for non-adjacent pairs, all of which are known artificial seams from the same recording. The decision statistic is a within-recording rank, so it needs no transferable threshold.
Longer-range terms $J_{i,i+2}$ and $J_{i,i+3}$ are the analogue of the next-nearest couplings that decided the FeTe ground state. They are estimated by also probing chains that skip one or two segments. These terms target "truth-for-truth" splices, where a real word from another recording of the same speaker is inserted. Such a word may join its neighbours smoothly and still be weakly compatible with the wider context through channel and prosody. Final spans come from the lowest-energy assignment of real/fake labels under an Ising-type energy built from the fitted couplings. The inserted span shows up as an island weakly bound to everything around it. We then refine each flagged boundary to frame resolution with the scorer.
Relation to Prior Work
The strongest current localizers learn boundaries end to end from partial fakes. CFPRF pairs a frame-level network, which uses difference-aware and boundary-aware features, with a proposal refinement head. 3-Tracer adds multi-window inter-frame difference branches. BA-TFD+ adapts video object-detection proposals to audio-visual streams. BAM predicts boundaries to restrict attention. All four learn a fixed global mapping from features to "fake." We do not train on partial fakes at all, and we make every decision relative to the recording.
The motivating evidence comes from three sources. Robust Localization of Partially Fake Speech documents the threshold and score drift. LlamaPartialSpoof shows failure when the crossfade function changes, and on forged spans under 20% of the utterance. The survey names truth-for-truth tampering as open.
One constraint shapes the design. Luong et al. found that adding bona fide audio hurts detectors, while spliced examples help. Our scorer is therefore trained only on seams, which we create by splicing bona fide speech with a randomized family of fade shapes, lengths, and loudness steps. It never sees vocoder output.
The closest use of spin models in machine learning is Ising on the Graph. It minimizes a hand-specified Ising energy to subsample graph nodes. It does not infer couplings from designed probes, and it does not address temporal signals. The physics literature also supplies a caution. The FeRh study shows that fitted couplings inherit the biases of the energy function that produced them. The analogue here is that our couplings are only as good as the seam scorer, so we test two different frozen encoders under the scorer.
Research Program
We would build four components. The first is a lightweight seam scorer. It uses a frozen WavLM front end and a small head, and it is trained to detect whether a 1–2 s window contains a splice. Training data are bona fide speech from the PartialSpoof bona fide portion, spliced with randomized fades.
The second is the probe designer. It samples chains so that every original adjacency and every sampled non-adjacent pair appears in several configurations, which keeps the design matrix well conditioned. We would study the design as the physicists do, asking which configuration sets best identify $J_{i,i+1}$ versus which merely add rows.
The third is the solver and the energy-minimizing labeler. The fourth is an analysis of cost versus accuracy as a function of the number of probes. Each probe is one short forward pass, so a few hundred probes per utterance is feasible offline, but it matters for any deployment claim.
Baselines
The naive reference point is the same seam scorer applied directly to each original adjacency, with a single threshold fixed on the in-domain development set. This is the "do nothing clever" system. Everything we add must beat it.
The key ablation isolates the inversion. It uses the same scorer and the same raw boundary scores, but standardizes them within each recording (a z-score per utterance) before thresholding. If our method only matches this ablation, the physics-derived inversion adds nothing beyond per-recording normalization, and we would report the idea as reducing to that. A second ablation removes the $J_2$ and $J_3$ terms to test their role on truth-for-truth splices.
The strongest existing competitor is CFPRF. It has published in-domain and out-of-domain numbers on exactly this shift. Luong et al. report 7.61% in-domain EER and 43.25% EER on LlamaPartialSpoof (Robust Localization of Partially Fake Speech). The LlamaPartialSpoof authors report that the best PartialSpoof-trained model reaches 24.49% EER there (LlamaPartialSpoof). We would retrain CFPRF from its public setup on PartialSpoof with the same WavLM front end and a matched tuning budget. We would also give it one advantage we give ourselves: per-utterance score standardization. This ensures the comparison is not won by normalization alone.
For in-domain context we also cite 3-Tracer's 57.28% localization mAP on PartialSpoof and 99.27% on HAD (3-Tracer). On LAV-DF we cite BA-TFD+'s [email protected] of 96.30 but [email protected] of only 4.44 (ControlNet/LAV-DF).
Beating the field means two things on LlamaPartialSpoof. At a threshold fixed in-domain, we must achieve lower EER and higher F1 than 24.49% EER and than the retrained, normalized CFPRF. And on PartialSpoof we must lose no more than a few points of in-domain accuracy.
Why not just…?
Why not just smooth frame-level predictions with a median filter or a conditional random field? A random field of this kind is a probabilistic model over label sequences. Its transition costs are one global matrix learned in training, so it inherits the same shifting emission scores that cause the threshold trap. Smoothing also blurs the short spans that matter most. We include a WavLM frame classifier with a learned linear-chain random field as a baseline. The 0–20% duration bucket of LlamaPartialSpoof will show whether our per-recording couplings hold up where smoothing fails.
Why not just normalize a detector's scores per recording? This is the real threat, and it is why the within-recording z-score ablation exists and why we also apply it to CFPRF. Our argument for the inversion is that a raw boundary score mixes seam cost with each neighbouring segment's own oddness. The fitted $h_a$ terms remove this mixture, and plain normalization cannot. If the ablation matches us on out-of-domain EER and on the short-span bucket, we concede the point.
Why not just train CFPRF with heavy augmentation, including many crossfade shapes? Luong et al. report that augmentations such as MaskedSpec gave inconsistent benefits. We still run CFPRF trained with our randomized fade family, which isolates whether our gain comes from the fade diversity rather than the self-calibration.
Why not check the transcript with a language model? Attacks generated with LlamaPartialSpoof's pipeline produce fluent, plausible sentences. We note the ASR-plus-LLM approach as complementary rather than competing.
Proposed Experiments
We train the seam scorer on spliced bona fide PartialSpoof audio only. We evaluate on PartialSpoof (in-domain), HAD (cross-lingual), LlamaPartialSpoof (new engines and fades), and the audio-only manipulations of LAV-DF. Metrics are segment-level EER, F1 at the in-domain threshold following Luong et al.'s recommendation, and proposal AP at IoU thresholds of 0.5, 0.75, and 0.95. We report the gap between in-domain and out-of-domain fixed-threshold F1 as the headline robustness number.
We also construct a truth-for-truth test set. Its source is the bona fide LibriTTS-derived utterances underlying LlamaPartialSpoof. We use forced-alignment word timestamps to swap in the same speaker's words from other utterances, using the same fade family. No existing localizer has a reported number on this set.
Three checks are decisive. First, fixed-threshold F1 on LlamaPartialSpoof must beat both the within-recording z-score ablation and normalized CFPRF. Second, removing $J_2$ and $J_3$ must cost accuracy on the truth-for-truth set but not on vocoder splices; otherwise the long-range terms are unjustified. Third, the ranking of methods must survive swapping WavLM for a second frozen encoder, which is the FeRh-style sensitivity test. Failing the first check would mean the magnetism-derived inversion is not worth its cost, and we would say so.
References
- Robust Localization of Partially Fake Speech: Metrics, Models, and Out-of-Domain Evaluation
- Electronic structures of ternary iron arsenides AFe2As2 (A = Ba, Ca, or Sr)
- First-Principles Calculations of the Electronic Structure of Tetragonal<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mi>α</mml:mi></mml:math>-FeTe and<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mi>α</mml:mi></mml:math>-FeSe Crystals: Evidence for a Bicollinear Antiferromagnetic Order
- First-principles study of multiferroic<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi mathvariant="normal">RbFe</mml:mi><mml:mo>(</mml:mo><mml:mi mathvariant="normal">MoO</mml:mi><mml:msub><mml:mrow/><mml:mn>4</mml:mn></mml:msub><mml:mo>)</mml:mo><mml:msub><mml:mrow/><mml:mn>2</mml:mn></mml:msub></mml:math>
- Coarse-to-Fine Proposal Refinement Framework for Audio Temporal Forgery Detection and Localization
- 3-Tracer: A Tri-level Temporal-Aware Framework for Audio Forgery Detection and Localization
- Glitch in the matrix: A large scale benchmark for content driven audio-visual forgery detection and localization
- Enhancing Partially Spoofed Audio Localization with Boundary-aware Attention Mechanism
- LlamaPartialSpoof: An LLM-Driven Fake Speech Dataset Simulating Disinformation Generation
- Manipulated Regions Localization For Partially Deepfake Audio: A Survey
- Ising on the Graph: Task-Specific Graph Subsampling via the Ising Model
- Pitfalls of exchange–correlation functionals in description of magnetism: Cautionary tale of the FeRh alloy
- Can LLMs Help Localize Fake Words in Partially Fake Speech?