---
title: "Two-Branch Recurrent Network for Isolating Deepfakes in Videos"
description: "How a two-branch recurrent network detects deepfake videos through frequency-sensitive features, compact natural-face representations…"
canonical: "https://research.elamur.ai/free/en/papers/masi-2020-two-branch-recurrent-network-isolating/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/masi-2020-two-branch-recurrent-network-isolating/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2020](https://md.research.elamur.ai/free/en/papers/2020/) / Two-Branch Recurrent Network for Isolating Deepfakes in Videos

# Two-Branch Recurrent Network for Isolating Deepfakes in Videos

Paper · 2020 · Iacopo Masi, Aditya Killekar, Royston Marian Mascarenhas et al.

**Authors:** Iacopo Masi, Aditya Killekar, Royston Marian Mascarenhas, Shenoy Pratik Gurudatt and Wael AbdAlmageed · **Year:** 2020 · **Venue:** Lecture notes in computer science · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**429** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W3048341421) · Lecture notes in computer science · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [DOI 10.1007/978-3-030-58571-6_39](https://doi.org/10.1007/978-3-030-58571-6_39)
- [arXiv 2008.03412](https://arxiv.org/abs/2008.03412)
- [OpenAlex](https://openalex.org/W3048341421)

## Deep dive: Two-Branch Recurrent Network for Isolating Deepfakes in Videos

How a two-branch recurrent network detects deepfake videos through frequency-sensitive features, compact natural-face representations, and video-level tests. · about 35 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

A viewer may see nothing unusual in a convincing face replacement, even though subtle traces of its generation remain. Detecting those traces becomes harder when a video is compressed, when its faces differ from the training material, or when a detector must avoid falsely accusing authentic recordings. This paper investigates those problems through a video detector that combines complementary image features, information across frames, and a training objective designed around the difference between natural and manipulated faces.

The architecture has parallel branches. A color branch preserves information about the face’s visible appearance. A frequency-sensitive branch applies a Deep Laplacian of Gaussian operation to intermediate feature maps, reducing broad visual content and emphasizing residual patterns at several scales. The branches are fused before further feature extraction. A bidirectional long short-term memory network, or LSTM, then processes sequences of aligned faces. Its output represents a short stretch of video rather than an isolated image.

The other central contribution concerns the arrangement of these representations. Ordinary binary classification asks a network to distinguish authentic and fake examples, but does not explicitly require authentic examples to occupy a compact region. The authors instead establish a fixed reference center from natural training sequences. Their loss encourages natural sequences to remain inside an inner boundary and manipulated sequences to move beyond an outer boundary. At inference, distance from that center becomes the manipulation score. The intended benefit is a clearer separation around the natural-face region, especially where a detector must operate with few false alarms.

The experiments cover FaceForensics++, abbreviated FF, Celeb-DF, and the DFDC preview dataset. On FF, the paper reports video-level area under the receiver operating characteristic curve, or AUC, increasing from 92% for Xception to 99% for the proposed approach under medium compression, designated c23. Under stronger compression, c40, the corresponding figures are 86% and 91%. Cross-dataset experiments train the detector on FF and assess it elsewhere. The authors report favorable transfer to Celeb-DF and useful performance on DFDC preview, although the numerical detail available for those comparisons is uneven. Their DFDC analysis also shows why selecting a threshold on validation data and evaluating it on a separate test set matters.

The paper’s conclusion is therefore encouraging but bounded. Its architecture and loss improve the reported detection results, and its evaluation puts substantial weight on video decisions and low false alarm rates. It does not establish a dependable solution for unrestricted deployment across the web. The authors explicitly acknowledge that performance at very low false alarm rates still needs considerable improvement. The lasting contribution is an integrated way to suppress distracting face content, organize authentic examples around a common reference, and judge detection quality under operating conditions that ordinary accuracy can conceal.

### Ideas worth borrowing

Preserve complementary evidence. The frequency branch deliberately removes information that the color branch retains. This is useful because a residual representation can expose traces of manipulation while discarding visual context that might still help recognition. Keeping the branches separate initially gives each a distinct role, while later fusion lets the detector learn how to use their evidence together. The reusable principle is to avoid forcing a single representation to perform incompatible jobs. In another detection problem, an engineer could preserve the ordinary input alongside a representation designed to expose anomalies, then test whether their combination improves decisions.

Put the transformation inside the learned pipeline. The Deep LoG operation acts on feature maps within the architecture rather than serving only as a preprocessing filter on the original image. Its Gaussian filters are fixed, but learned processing surrounds them, and a learned point-wise operation adapts the resulting channels. This arrangement joins a specific signal-processing assumption with end-to-end optimization. Elsewhere, the same design principle could make a known diagnostic transformation available without requiring the rest of a system to accept its output unchanged. The important question is whether the transformation exposes evidence relevant to the task, which requires controlled comparison.

Give the ordinary class a clear geometry. The proposed loss treats natural faces as the reference population and manipulated faces as departures from it. Natural examples are encouraged towards a shared region, while fake examples need only remain outside a larger boundary. This is an attractive design when the anomalous class contains many different causes and appearances. It avoids requiring all anomalies to resemble one another. A researcher could investigate the same arrangement in another authenticity task, provided that the supposedly ordinary population is sufficiently well represented and its meaningful variation is not mistakenly treated as abnormal.

Stop applying pressure after the boundary is satisfied. Natural sequences incur no compactness penalty once they fall inside the inner radius. Manipulated sequences incur no separation penalty once they exceed the outer radius. These stopping conditions matter: the objective does not demand that every authentic example collapse onto the center or that fake examples travel indefinitely outward. The broader lesson is that a loss can express sufficient separation rather than unbounded improvement along a convenient mathematical direction. That can be useful wherever additional compression or separation would impose a stronger requirement than the application needs.

Sample according to the source of variation. A video contains many closely related frames, so a large collection of frame sequences can give a misleading impression of training diversity. The authors define an epoch around videos: each video supplies a randomly chosen sequence. Their rationale is that differences between videos are greater than differences within the same video. This suggests a general sampling principle for grouped data. When examples share a speaker, document, recording session, or source object, training batches should account for those relationships rather than treating every extracted fragment as equally independent.

Measure the part of the curve that matters. A detector can achieve a favorable overall AUC while remaining weak at the false alarm rates an application requires. The authors therefore examine true acceptance at specified false acceptance rates and area measures restricted to the low false alarm region. This belongs to the broader problem of [evaluation and benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/): a metric should reflect the decision being made. The reusable idea is to identify the costly error regime before choosing the headline score, then report enough of the operating curve to reveal tradeoffs that an average conceals.

Separate threshold selection from final assessment. The DFDC experiments distinguish parameters selected on validation data from parameters selected to match a desired recall directly on the test set. That distinction makes deployment uncertainty visible. A threshold that produces the intended recall during validation may behave differently on new material. For another detection system, reporting both the validation-selected result and a test-adjusted operating point can clarify what the score represents. The former measures a transfer procedure; the latter characterizes an operating point available after examining test behavior.

### How Mova uses it

Mova is a small, transparent language system written in Rust. This paper studies visual evidence in face videos, so its image-processing machinery does not directly supply a language component. There is no established Mova implementation of the paper’s architecture or loss to describe. The useful connections are possible design adaptations, and they should remain clearly distinguished from demonstrated capabilities.

A first possible adaptation concerns transparent rejection. The paper turns a representation into a score by measuring its distance from a fixed reference center. Mova could investigate a similar arrangement for a narrowly defined language decision: establish the characteristics of accepted examples, preserve an explicit reference, and expose how far a new example departs from it. That would make the scoring rule inspectable. It would not, on its own, make the score a reliable measure of truth, grammaticality, safety, or any other language property. Each proposed use would require its own definition of acceptable material and its own evidence.

The boundary structure is also relevant. An inner region of accepted variation and an outer boundary for known counterexamples could give Mova a way to distinguish ordinary variation from stronger evidence of mismatch. The paper’s loss provides a concrete example of how to train such a distinction without requiring every accepted example to become identical. For language, however, legitimate variation may have several quite different forms. A single central region would be a hypothesis to test, rather than a property that can be assumed from the face-detection results.

A second possible adaptation is architectural separation. The visual detector preserves appearance information while giving another branch the job of reducing broad content and exposing residual evidence. Mova could borrow that division of responsibilities when two kinds of language evidence deserve separate inspection. One component might retain the ordinary linguistic representation while another measures a specifically defined inconsistency. This is an analogy about system organization. The paper does not establish a language equivalent of its frequency filter, and there is no reason to treat visual frequency artifacts as interchangeable with linguistic irregularities.

The strongest immediate lesson for Mova concerns evaluation. A small system that makes explicit accept-or-reject decisions should be assessed where its errors matter. Overall accuracy can hide poor behavior on an uncommon but consequential case, just as the paper’s imbalanced authentic-versus-fake setting can reward a trivial prediction strategy. Mova could therefore report false acceptance and false rejection behavior for a defined task, examine threshold sensitivity, and preserve the distinction between validation choices and final testing. These are proposed evaluation practices, not results already obtained for Mova.

Sampling by source offers another practical connection. If Mova learns from related passages, treating every passage as an independent training example could overrepresent a narrow source. The paper’s video-based sampling suggests examining diversity at the level that generated the examples. For text, the appropriate grouping would depend on the actual task and data. The transferable insight is to make that grouping explicit, then evaluate whether it changes generalization.

Finally, the paper reinforces a limit central to [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/). A simple decision score and a clear training objective help explain how a system reaches a decision, but they do not necessarily identify the evidence that makes a particular input suspicious. The authors themselves leave a stronger explanation mechanism for future work. If Mova adopts a distance-based detector, its transparency should include what the reference population contains, how the representation is constructed, and what the threshold means. A visible distance alone would explain the decision rule more readily than the underlying linguistic judgment.

### The problem and its context

#### Detecting traces beneath a convincing appearance

The paper begins from a change in the effort required to manipulate faces. Manual face replacement in still images could demand substantial editing work. The authors describe a subsequent shift towards accessible applications that automate convincing face substitutions, including video. Their concern is that a viewer can see a recognizable person apparently performing or saying something that the person never did.

This makes authenticity detection different from ordinary recognition. A face detector asks whether a face is present. An identity system asks whose face it resembles. A manipulation detector asks whether the visible face sequence was produced through an alteration process. An authentic-looking face can therefore be a difficult case precisely because its appearance succeeds at the goals of detection and recognition.

The authors place this problem within media forensics. Earlier image forgery research already examined splicing and other alterations, but the paper argues that face manipulation in video requires attention to its own data and evaluation conditions. The input is sequential, the generated face must be integrated into a recording, and a detector intended to inspect large volumes of material cannot casually label genuine videos as fake.

There is also a distinction between the subject’s visible identity and the traces of synthesis. A network that focuses heavily on the broad structure of a face might learn correlations that work in the training collection without identifying manipulation itself. The paper’s frequency-sensitive branch responds to this concern by reducing global facial content and emphasizing residual patterns. Its compactness loss addresses a related issue in the final representation: authentic faces should define a stable reference region despite their visible differences.

#### How the available benchmarks shaped the task

The authors describe early face-forensics datasets as relatively small or constrained. DF-TIMIT uses 32 subjects drawn from VidTIMIT, with an emphasis on weaknesses in face detection and recognition. UADFV offers approximately 50 authentic videos and 50 fake videos. These collections provide focused tests, but the paper presents them as limited foundations for learning and evaluating broader manipulation detection.

FaceForensics++ expands the setting. The paper describes a collection containing 1.8 million manipulated frames produced through different manipulation procedures. Its experiments use Deepfakes, FaceSwap, Face2Face, and NeuralTextures. That variety matters because a detector can otherwise succeed by recognizing the peculiarities of a single generation process.

The paper also discusses Google’s Deepfake Detection contribution and the release of DFDC preview. Their relevance is partly a matter of scale and partly a matter of evaluation. The DFDC setting draws attention to video-level decisions and to performance under demanding false alarm conditions. This shifts the question from whether individual frames can be separated to whether an entire recording can be handled reliably.

Celeb-DF supplies another pressure on evaluation: perceived realism. The authors describe earlier benchmark manipulations as visibly less convincing than some material circulating online. Celeb-DF was introduced to provide more realistic examples. The paper gives its collection size as 5,369 videos with 2.1M frames. Testing an FF-trained detector on this dataset asks whether the learned evidence transfers beyond the training collection’s particular appearance and synthesis conditions.

These datasets serve different purposes in the argument. FF supports training, compression comparisons, and architectural ablations. Celeb-DF probes transfer to another collection with challenging manipulations. DFDC preview adds a validation-and-threshold procedure intended to resemble the uncertainty of applying a detector to unseen material. Their results should be read in light of those distinct roles.

#### Earlier detection strategies

The paper groups prior detection approaches by the evidence they use. One family looks for meaningful inconsistencies in faces or behavior. The examples include person-specific classification from facial action units and head movement, missing blinking in early deepfakes, inconsistent head pose, and visual evidence associated with warping or stitching a substituted face into an image.

These methods make a recognizable diagnostic assumption. A generated face may violate an expectation about movement, geometry, or the way an image was assembled. Such evidence can be informative, but the assumption is tied to the behavior or artifact being measured. The present paper takes a more learned approach to the feature representation while still incorporating a specific assumption about frequency traces.

Another family learns to distinguish manipulation directly from training examples. The authors identify Xception as a widely used baseline and discuss an Inception-derived approach designed to capture evidence at different visual scales. They also mention encoder-decoder systems with multiple tasks and approaches based on capsule networks. The relevant contrast is how much of the evidence is specified in advance and how much is learned through the detection objective.

The two-branch idea itself has a predecessor. Han and colleagues used separate streams for color information and steganalysis features, combining them late and training with a triplet-based objective. The present paper’s distinction is more specific than simply having parallel branches. It introduces an internal multi-scale filtering operation, fuses the representations before downstream processing, and supervises the final sequence representation through a fixed-center radial loss.

The authors also connect their work to detection of entirely synthesized face images. Research on GAN fingerprints asks whether generation procedures leave identifiable traces. The paper shares an interest in artifacts, but its target is manipulated face sequences in videos, and its architecture explicitly joins color-domain and frequency-sensitive representations.

#### Why the decision regime matters

The authors object to treating ordinary accuracy as a sufficient measure of success. In an imbalanced collection, the majority class can dominate that score. More fundamentally, an application that examines many genuine recordings may need a very low false alarm rate even if a less restrictive threshold gives higher overall detection.

This motivates their emphasis on true acceptance rate, false acceptance rate, and restricted portions of the receiver operating characteristic curve. Those measures ask how much useful detection remains when false alarms are constrained. The paper’s architecture and objective are therefore tied to an operational question: can authentic sequences occupy a sufficiently stable region that the detector can reject manipulated material without often rejecting genuine recordings?

### The method, step by step

#### From a video to a sequence representation

The method begins with faces extracted from a video. Faces are aligned so that changes in their location and orientation do not dominate the input. The implementation uses dlib for alignment and falls back to the method associated with Bulat and Tzimiropoulos if that fails. When several faces are detected, the largest is selected.

This preprocessing defines the scope of the detector. It analyzes a selected face sequence rather than every potentially meaningful region of the recording. The alignment step also means that the recurrent network receives a more standardized stream than raw video frames. The subsequent architecture can concentrate on differences within those aligned face crops.

The paper represents an input window as follows:

```
I ∈ ℝ^(H × W × 3 × F)
```

I denotes a sequence of aligned face images. H and W are the image height and width. The dimension 3 corresponds to the color channels, and F is the number of frames in the sequence. The sequence is the basic input unit used to learn and score manipulation.

The desired output is an embedding:

```
Φ(I) ∈ ℝ^D
```

Φ denotes the complete representation extractor, including its temporal processing, and D denotes the dimensionality of its output space in this general formulation. An embedding is a numerical representation in which the training objective can organize examples according to the detection task.

The main implementation uses sequences with F set to 10. During inference, the sequence is assembled by taking 1 frame over 7, reflecting the sampling used for sequential learning on FF. These are choices about how the recording is observed. They do not imply that every frame receives an independent temporal decision.

From aligned faces to a video score The steps in order.

#### Parallel branches with different responsibilities

The input enters separate DenseBlock branches with independent parameters. The color branch performs ordinary learned processing of the face image. The other branch includes the Deep LoG operation, which reduces smooth content in its feature maps and emphasizes residual structure.

Their outputs are spatially aligned. At fusion, each feature map has a resolution of 28 × 28 and 128 channels. This compatibility matters because the architecture combines features at corresponding locations rather than treating each branch as a finished classifier.

Fusion uses point-wise convolution with two groups. A point-wise convolution combines channels at a spatial position. The grouped arrangement divides the filters so that different groups refine and merge the available information independently. The paper’s recurrent ablations later report a benefit from this grouped configuration.

After fusion, the representation passes through three downstream DenseBlocks. Transitional processing follows the DenseBlocks except for the block immediately before the temporal stage. The ordinary final classification layer is removed. Instead, global average pooling reduces the spatial feature map to a descriptor of dimensionality 1024.

This pooling step converts a spatial representation into a feature vector suitable for sequence processing. It does not itself decide whether a face is fake. The decision score is constructed only after the recurrent representation has been learned under the proposed loss.

Each DenseLayer ends with dropout applied at a probability of 0.2. The authors use it to reduce overfitting. In this setting, overfitting is particularly important because a feature extractor may otherwise rely too strongly on regularities specific to the available training videos.

#### What Deep LoG does

The motivation for Deep LoG comes from synthesis artifacts. The authors cite earlier work connecting manipulation to medium- and high-frequency traces. They also point to reconstruction with pixel-wise squared error, which can favor smooth facial detail, and to upsampling in generation pipelines.

Their response is to give a branch access to multi-scale residual information. The operation smooths feature maps, changes their scale, restores them to a compatible resolution, and subtracts the resulting smooth content from the original features. A learned channel transformation then prepares the output for the next layer.

```
x′ = w₁×₁(x − up(down(w̄_N₂D x)))
```

x is the input feature tensor, and x′ is the resulting tensor. w̄_N₂D denotes fixed Gaussian filtering weights. down and up denote downsampling and upsampling across the chosen scales. The subtraction forms the residual between the incoming features and the smoothed, rescaled version. w₁×₁ is the learned point-wise transformation used to adapt the channel dimension.

The multi-scale operation uses S = 3. Its channel transformation is summarized by the paper as:

```
K → S K → K′
```

K is the number of input channels. S K is the internal channel depth after the multi-scale expansion. K′ is the number of channels required at the output. The learned point-wise operation maps the expanded representation into that output space.

The fixed filters and learned layers have different roles. The Gaussian filters implement the intended smoothing operation rather than learning an arbitrary replacement. The surrounding network learns which incoming features and outgoing combinations help discriminate manipulation. Consequently, the frequency branch is more structured than an unconstrained parallel network but more adaptable than a fixed filter applied only to raw pixels.

The subtraction is also central. The authors contrast their use of a skip connection with work that uses related structures to improve training or remove adversarial noise. Here, the connection removes broad content from the features. The branch is intended to highlight what remains after that content is suppressed.

The feature-map visualization supports this description qualitatively. The paper compares aligned responses from the branches and reports stronger edge-centered activity in the LoG branch, while the color branch retains more of the face’s overall structure. The displayed maps are normalized to [0,1]. This illustrates distinct responses, although it does not prove that every highlighted edge is a manipulation trace.

#### Learning at different rates

The authors do not update every part of the feature extractor with the same learning rate. Earlier processing is changed more cautiously, while later processing can adapt more quickly. This reflects the fact that much of the architecture begins with ImageNet-pretrained parameters, while the detection task requires adaptation to a different purpose.

```
μ_L = μ · 1/(2^L)
```

μ is the global learning rate. μ_L is the rate assigned at the relevant DenseBlock level, indexed by L. The decay schedule controls how strongly different parts of the architecture change during training.

The Deep LoG branch’s specified DenseBlock and the fusion processing are exceptions to the ordinary decay arrangement. The fusion parameters use the global rate μ because they must learn to accommodate the frequency-sensitive information. The purpose is to preserve useful initial features while allowing the new interaction between branches to adapt.

The main setup uses Adam with a global rate of 1e-03 and weight decay of 1e-06. The rate is reduced three times, each reduction using a factor of 10. A reduction is triggered when validation loss fails to improve for 50 stratified epochs.

The convolutional architecture begins from ImageNet-pretrained weights. LSTM parameters are initialized from a uniform distribution. The distinction matters when interpreting the fixed reference center: the center is calculated before task-specific optimization, using an architecture whose components do not all begin with the same kind of initialization.

#### Sampling videos rather than redundant fragments

The paper’s stratified epoch takes a randomly selected sequence from every training video. This responds to a practical property of the data: fragments from the same video are frequently more similar than fragments from different videos.

A naive sample of sequences could repeatedly draw closely related windows from a recording. Such a batch would contain many inputs but less diversity than its size suggests. Video-based sampling instead makes the source recording an explicit unit in the training procedure.

The authors also rebalance the multi-manipulation training data. They describe FF labels as having a 1:4 imbalance. Natural examples are oversampled twice, while examples from each manipulation are randomly undersampled by a factor of two. This operates alongside the loss’s class-wise normalization; the sampling changes what is presented, while the normalization changes how presented examples contribute to the objective.

#### Adding temporal information

After spatial processing, a bidirectional LSTM combines information across the face sequence. It processes temporal context in opposing directions and concatenates the resulting outputs. The recurrent component is trained jointly with the feature extractor, so its loss can change the earlier visual features.

In the main setup, the pooled descriptor has dimensionality 1024, and the LSTM uses D = 128. Because the directional outputs are concatenated, the final loss operates on a representation described as 2D. This is more specific than the method section’s general use of D for an embedding dimension. The important implementation point is that the radii must match the actual concatenated representation.

Temporal processing is therefore integrated with the geometric objective. The LSTM is not merely appended to a frozen image classifier. The whole system learns representations whose sequence-level distances should distinguish natural and manipulated faces.

#### Establishing a fixed natural-face reference

Before task-specific training, the authors compute a center c by averaging the encodings of natural training sequences. The encodings come from the complete architecture, including its branches and bidirectional temporal stage.

The center is then held fixed. Training moves the representation of each sequence relative to that reference; it does not continually move the reference to follow the examples. This simplifies the geometry of the objective and distinguishes it from approaches that learn separate, changing centers for several classes.

The intended arrangement contains an inner region for natural sequences and an outer exclusion boundary for manipulated sequences. The loss does not demand that every natural example equal c. It allows variation inside the inner region. Similarly, it does not require the manipulated population to form a compact cluster.

The loss is:

```
ℒ = (1/|Ω_nat|) Σᵢ∈Ω_nat max(0, ‖Φ(Iᵢ) − c‖₂ − r⁻) + (1/|Ω_man|) Σⱼ∈Ω_man max(0, r⁺ − ‖Φ(Iⱼ) − c‖₂)
```

ℒ is the training objective. Ω is a mini-batch of sequences, and Ω_nat and Ω_man select its natural and manipulated examples. Vertical bars around either set denote its number of elements. Iᵢ and Iⱼ are individual input sequences, Φ gives their learned representations, and c is the fixed center. The notation ‖·‖₂ denotes Euclidean distance. r⁻ is the inner radius, and r⁺ is the outer radius. max selects the larger of its arguments.

For a natural sequence, the first term becomes positive only when its representation lies beyond the inner radius. Its penalty is the amount by which it exceeds that radius. Once the representation is inside, that example receives no further pressure from the natural-sequence term.

For a manipulated sequence, the second term becomes positive when its distance is smaller than the outer radius. It therefore pushes a fake example away from the natural center until the example lies beyond the required boundary. Past that point, the term stops rewarding additional outward movement.

The radii must satisfy:

```
0 < r⁻ < r⁺
```

r⁻ and r⁺ are positive, and the outer radius must exceed the inner radius. This gives the training objective distinct acceptance and exclusion boundaries.

Their radial separation is:

```
m = r⁺ − r⁻
```

m denotes the imposed margin. It expresses the gap between the regions assigned to natural and manipulated sequences.

Each class contribution is divided by the number of examples from that class in the batch. The purpose is to reduce the effect of unequal class counts on the objective. This does not establish equal performance across every source or type of face; it concerns how the two labeled categories contribute to training.

The main recurrent setup uses r⁻ = 0.042 and r⁺ = 1.638, selected together through validation. In the non-recurrent ablation with D = 1024, the radii are 2.5 and 97.5. The paper emphasizes that these choices depend on representation dimensionality. They are not universal constants that can be moved unchanged into another feature space.

#### Why use this objective?

The authors connect their loss to Deep SVDD, which encourages compact representations for a reference class. Their formulation adds supervised manipulated examples and explicit radial margins. It therefore uses known attacks while retaining an asymmetric view of the classes: natural sequences should share a bounded region, while manipulated sequences may remain diverse.

The formulation also resembles metric-learning objectives, but it avoids selecting pairs or triplets. Every example is compared with the same fixed center. This simplifies the comparison structure without eliminating the need for meaningful negative examples or careful validation.

The difference from binary cross-entropy concerns what is explicitly required of the representation. A classifier can separate training labels without making authentic examples compact. The proposed loss makes compactness and radial exclusion part of the objective itself. The authors argue that this should be especially useful near the low false alarm region, where overlap in score distributions becomes consequential.

#### Scoring sequences and videos

At inference, a sequence receives the following score:

```
s(I) = ‖Φ(I) − c‖₂
```

s(I) is the manipulation score for sequence I. Φ(I) is its representation, and c is the same fixed reference center used during training. Larger distance indicates stronger evidence of manipulation according to the detector.

This score is a distance, not an established probability of fakery. A threshold turns it into a decision, and the appropriate threshold depends on the desired operating point and validation conditions.

For video-level evaluation, the authors average the scores within a recording. They use that aggregation for competing methods as well. Thus, the reported video decision combines multiple local observations, while the temporal stage already combines evidence within each short sequence.

### Experiments and results

#### What is evaluated

The experiments examine both matched-dataset performance and transfer. FF supplies the main training and ablation setting. Celeb-DF and DFDC preview assess how an FF-trained detector behaves under different data conditions.

For FF, the authors’ sampling protocol selects 270 frames per video for training, while validation and testing each use 110 frames per video. They train separate detectors for c23 and c40, the medium- and high-compression settings. Training includes natural faces and the manipulation categories used in the benchmark.

Cross-dataset testing uses the detector trained on FF with the manipulation categories at c40. The paper does not describe retraining that detector on Celeb-DF. For DFDC preview, it explicitly separates parameter selection from retraining: the detector’s learned weights are retained, while sequence-count and threshold choices are validated for that evaluation.

Results are reported at frame and video levels. Because the proposed system consumes sequences, the authors attempt to make comparisons fair by matching the number of observations used to construct the receiver operating characteristic curve, or ensuring that competing systems have seen the same amount of data. This is important when a sequence-based approach is compared with an image-based detector.

#### Reading the metrics

A receiver operating characteristic curve describes how detection changes as the threshold varies. TAR measures acceptance of the target detection category at an operating point, while FAR captures false acceptance. In this application, the paper uses these measures to assess manipulation detection under limits on false alarms.

Overall AUC summarizes the curve across its full range. The paper also uses standardized partial AUC, abbreviated pAUC, and its proposed truncated measure, tAUC. Both focus attention on a restricted false alarm region instead of allowing high-false-alarm behavior to dominate the interpretation.

The paper defines the operating region as:

```
ℱ_τ = {0, …, FAR_τ}
```

ℱ_τ denotes the set of false acceptance operating points considered up to the cutoff FAR_τ. τ identifies the selected cutoff.

Its truncated area measure is expressed as:

```
tAUC_τ = (Σᵢ∈ℱ_τ TARᵢ)/|ℱ_τ|
```

TARᵢ is the true acceptance rate at operating point i. |ℱ_τ| is the number of considered operating points. tAUC_τ summarizes acceptance within the restricted region rather than over the complete curve.

The experiments examine cutoffs including 1% and 10%. These are different operating requirements, so scores associated with them should remain distinct. A result at the broader cutoff does not establish the same quality at the stricter cutoff.

#### FF under medium compression

The main comparison includes Xception and DSP-FWA. The paper reports several metrics and emphasizes that the proposed system generally improves on Xception, including nearly all of the frame-level measures discussed for c23.

The clearest numerical comparison in the main results concerns video-level AUC:

FF c23 comparison on video-level AUC The proposed detector achieves the higher video-level AUC under medium compression.

**The numbers**

| System or setting | AUC % |
| --- | --- |
| Xception | 92 |
| Proposed two-branch recurrent detector (this paper) | 99 |

These figures concern a matched setting: training and evaluation use FF under the specified compression condition. They support a claim about the proposed system’s performance on that benchmark, not a claim that arbitrary online videos can be detected at the same rate.

Video aggregation is part of the result. A recording can contain some frames whose evidence is weak, while its average score remains informative. The comparison therefore reflects the complete evaluation pipeline, including the way local scores become a video score.

The authors also state that their approach obtains the strongest binary classification accuracies across the manipulation categories and compression settings when trained jointly on the manipulations. Exact accuracy values for those comparisons are not given in the accompanying discussion, so they should not be reconstructed from the AUC results.

#### FF under high compression

The c40 setting tests the detector with lower image quality. The paper reports reduced performance in general, which is consistent with its explanation that strong compression makes the evidence harder to recover.

FF c40 comparison on video-level AUC The proposed detector retains an advantage under high compression, while both systems perform below their medium-compression results.

**The numbers**

| System or setting | AUC % |
| --- | --- |
| Xception | 86 |
| Proposed two-branch recurrent detector (this paper) | 91 |

The important comparison is conditional on image quality. The proposed approach improves the reported AUC within each compression setting, but the stronger compression setting remains more difficult. The frequency-sensitive design therefore does not make the detector independent of the quality of its visual input.

The paper reports improvements in low false alarm video metrics as well. Those measures matter because the AUC comparison alone cannot show how the advantage is distributed along the curve. The available numerical discussion is more detailed for overall video AUC than for every restricted metric.

#### Why accuracy can flatter a weak detector

The FF evaluation contains 140 authentic videos and 560 manipulated videos. The authors point out that predicting fake for every sample would achieve 80% accuracy. They also note a similar imbalance at the frame level.

This example explains their objection to accuracy without requiring a sophisticated failure case. A system could receive a seemingly substantial percentage while failing to identify authentic material at all. The score would reflect the label distribution rather than a useful authenticity judgment.

The paper does still report classification accuracy for comparison with earlier work. Its argument is that accuracy should be accompanied by metrics that reveal false alarms and operating thresholds. The benchmark’s class balance makes that additional reporting essential to interpretation.

#### Transfer to Celeb-DF

The Celeb-DF experiment evaluates the FF-trained detector on 518 test videos. The training setting uses FF’s manipulation categories at c40. This is a transfer experiment instead of a fresh fit to the target collection.

The authors report the strongest AUC among the compared methods on Celeb-DF and a clear advantage on the low false alarm measures discussed at frame and video levels. They also compare with DSP-FWA, whose training strategy they characterize as self-supervised.

The numerical discussion does not supply the proposed detector’s exact Celeb-DF AUC. A separate reported figure, 93.18 %, belongs to AUC on the FF Deepfakes class in the cross-dataset comparison’s accompanying caption. It should not be mistaken for a Celeb-DF result. The distinction matters because the experiment is intended to show target-dataset transfer while preserving useful performance on the source benchmark.

Qualitative examples help explain what the transfer result does and does not mean. The detector correctly handles a good-quality natural sequence in spite of having learned from highly compressed FF material. It also recognizes a manipulated sequence that the authors describe as visually convincing.

The failures are equally informative. The authors suggest poor illumination as a possible explanation for one natural sequence being misclassified. They suggest strong facial hair, potentially absent from the training material, as a possible cause of another error. These are hypotheses attached to examples, not controlled demonstrations that either factor causes failure.

#### Transfer to DFDC preview

DFDC preview contains approximately 5,250 videos covering manipulated and authentic recordings. The authors retain the FF-trained detector and tune evaluation parameters through five-fold cross-validation, with 20% of the training portion retained for validation.

The selected parameters are the number of sequences examined and the distance threshold. Selection maximizes log-weighted precision, written log(wP), with α = 100 while trying to maintain a desired recall. Recall describes how much of the target class is recovered. The paper evaluates desired recall settings R₁₀%, R₅₀%, and R₉₀%.

The evaluation distinguishes “valid,” “test-from-valid,” and “test.” The first reports the selected validation behavior. The second applies validation-selected parameters to test data. The third searches for parameters that match the intended recall directly on the test set.

At the R₁₀% test operating point, the authors report slightly worse precision than Xception. At R₉₀%, they report log(wP) moving from -4.041 for the comparison to -3.548 for their approach. This is an advantage at the high-recall setting, not evidence of superiority at every threshold.

Using validation-selected parameters, their detector obtains log(wP) of -3.721 with recall of 0.943. This result is useful because the parameters were chosen before final test evaluation. It also illustrates the authors’ warning: the recall reached on new data need not equal the recall targeted during validation.

The DFDC experiment therefore contributes more than another benchmark score. It shows that representation transfer and operating-point transfer are separate issues. A detector can preserve useful ranking or separation while its selected threshold behaves differently on the target distribution.

### What the ablations show

#### Training choices and compactness under c40

The first ablation examines the spatial feature extractor without LSTM processing or stratified sampling. It uses only the color stream and FF at c40. This isolates a simpler setting before the authors introduce the complete two-branch recurrent architecture.

The baseline is a reimplementation of the DenseNet encoder associated with Sabir and colleagues, with temporal processing removed. The compared configurations use a global learning rate of 1e-04. Since the representation dimension is D = 1024, the loss radii are set to 2.5 and 97.5.

The authors then investigate layer-dependent learning rates, dropout, and the proposed loss. Their description uses “+ft” for the updating-rate arrangement, “+drop” for dropout, and “+loss” for the new objective. These are training and supervision changes to the RGB-only extractor, rather than evidence about the frequency branch.

The numerical account emphasizes performance at the strict cutoff:

FF c40 RGB-only ablation on tAUC at the 1% FAR cutoff The reported ablation progression favors the proposed training configuration and compactness objective in the low false alarm region.

**The numbers**

| System or setting | tAUC % |
| --- | --- |
| Binary-cross-entropy baseline | 57 |
| Configuration using the proposed loss (this paper) | 76 |

The paper attributes the improvement to the loss’s wider separation and reports that ordinary cross-entropy overfits quickly. A careful reading also keeps the ablation sequence in view: optimization and dropout are part of the progression described around the result. The quoted values should not be turned into an unsupported estimate of the loss’s effect under every otherwise fixed condition.

The baseline is already competitive at tAUC₁₀%, but the authors report degradation when the operating regime becomes stricter. This is exactly the kind of behavior an overall score can obscure. The ablation’s significance lies in where the improvement occurs, not merely in the existence of a higher score.

#### What the second branch adds

The c23 ablation begins from the successful combination of layer-wise optimization, dropout, and the proposed loss. It then compares the single-branch and two-branch arrangements.

This order matters. The frequency branch is assessed on top of an already improved training setup, rather than against a weakly trained baseline. The comparison asks whether complementary frequency-sensitive evidence adds value after other design choices have been addressed.

The paper reports a benefit from the two-branch structure, but the numerical discussion does not provide the full setting-by-setting values. The justified conclusion is therefore qualitative: the authors’ controlled branch comparison favors combining the streams under c23. It does not establish an exact contribution that can be carried into every other compression or transfer condition.

The feature-map examples provide a separate kind of support. They show that the branches respond differently, with the LoG side emphasizing edges and the color side retaining broader structure. This helps explain the intended division of labor. It does not independently measure how much those visual differences improve detection.

#### Choices inside the recurrent architecture

Adding an LSTM changes the representation and optimization substantially, so the authors repeat the check on layer-dependent updating. They report that the first comparisons in the recurrent ablation continue to support the strategy.

They also compare ways of combining the directional outputs and vary the hidden representation size. The best reported configuration uses a hidden node size of 128 and concatenation of the bidirectional outputs. This supports the specific recurrent configuration selected for the main system.

Another comparison examines grouped fusion between the color and LoG branches. Dividing the convolutional filters into two groups is reported as beneficial. The result concerns how the complementary features are merged, rather than whether parallel branches alone are sufficient.

These analyses show that the complete approach depends on several coordinated choices. Its reported performance should be attributed to the evaluated system, with the ablations providing evidence about particular decisions. There is no single experiment in the numerical discussion that establishes the contribution of every component across every dataset.

#### What the representation visualizations establish

The paper visualizes the learned space with t-SNE and compares score distributions under cross-entropy and the proposed loss. Natural faces appear more concentrated with the new objective, while manipulated examples occupy more peripheral regions. The authors also observe clusters associated with individual manipulated videos.

The score-distribution plots connect that geometry to the intended decision regime. The paper describes cross-entropy scores for genuine faces as spreading toward the manipulated population, creating ambiguity near difficult thresholds. Its distance-based objective is presented as producing a cleaner separation around the reference population.

These visualizations support the mechanism the loss was designed to encourage. They remain descriptive analyses. A projection cannot preserve every property of a high-dimensional space, and a favorable distribution on the examined test set does not guarantee that unfamiliar authentic material will occupy the same region.

### Limitations

#### The authors’ stated limits

The authors explicitly stop short of claiming readiness for unrestricted web-scale detection. They conclude that substantial improvement is still needed when false alarms must be very rare. This qualification is central to the paper because the evaluation itself argues that ordinary accuracy and whole-curve AUC are insufficient for demanding deployment.

They identify data augmentation and additional external natural-face data as near-term directions. These proposals acknowledge that the learned reference population may benefit from broader coverage and more varied training conditions. They are future experiments, not improvements already established by the reported results.

The authors also propose an explanation mechanism that would not require pixel-level manipulation supervision. Its placement in future work is important. The current system produces a score and offers feature visualizations, but it does not yet provide the stronger explanation facility they envision.

The Celeb-DF discussion offers concrete possible failure sources. Poor lighting may cause an authentic sequence to be rejected, while facial hair may interfere with detecting a manipulated sequence. The authors present these as possible explanations, so they should not be treated as verified causal findings.

#### Generalization remains conditional

A careful reader should distinguish successful transfer from a general guarantee. The cross-dataset experiments use an FF-trained detector on named target collections. They demonstrate behavior under those transfers. They do not cover every manipulation process, every recording condition, or every future change in synthesis.

The manipulated examples used during training come from a limited set of generation procedures. The loss allows fake examples to remain diverse in the representation space, which is a useful structural choice. Yet known negative examples still shape what the network learns to move outside the boundary. An unseen manipulation may not produce the same diagnostic evidence.

Natural variation presents the complementary risk. The architecture encourages authentic sequences to occupy a compact region. If a legitimate appearance or recording condition is poorly represented during training, it may fall far from the center and receive a high manipulation score. The qualitative discussion makes this concern tangible, but the experiments do not comprehensively map the authentic population’s coverage.

The reported sensitivity to compression also limits generalization. The detector improves on the baseline under both tested settings, but results remain lower at c40. The paper therefore supports robustness relative to its comparisons, not immunity to changes in image quality.

#### The geometric score has a specific meaning

Distance from the center is the score the system learns to associate with manipulation. It is not a direct measurement of how much of a face has been altered. Nor does the paper establish that a given distance corresponds to a calibrated probability across datasets.

The reference center is calculated before task-specific training and remains fixed. That makes the objective explicit and constrains optimization, but it also gives the result a dependence on the initial representation and the natural sequences used to define the center. The paper does not establish that this center construction is uniquely suitable among possible alternatives.

The radii also require validation. Their reported settings change with representation dimensionality, and the authors emphasize that they must be chosen together. A researcher adopting the loss cannot assume that the recurrent radii apply to an unrelated architecture or embedding space.

The loss’s separate class averages address a particular form of imbalance. They prevent the class with more batch examples from automatically dominating through count alone. They do not establish balanced errors across identities, appearance conditions, or other subsets. Those would require their own analyses.

#### Preprocessing and aggregation constrain the decision

The system operates on aligned, selected faces. If several faces are present, choosing the largest gives the detector a clear input policy, but it also narrows what the resulting score describes. The evaluation does not establish exhaustive detection of manipulation affecting any person anywhere in a recording.

The use of alignment introduces another dependency. The fallback procedure can help obtain an aligned face when the first approach fails, but the paper does not supply a comprehensive breakdown of how preprocessing quality affects the final detector. The architecture’s input should therefore be understood as a processed face sequence, not an arbitrary unstructured video.

Averaging scores produces a video-level decision from local observations. That is a consistent evaluation choice, and the authors apply it to competing methods. It nevertheless summarizes the recording. The reported results do not establish precise temporal localization of altered segments or show how the method behaves under every mixture of authentic and manipulated content within a video.

Similarly, the main temporal setup uses a particular sequence length and inference sampling interval. These settings support the reported experiments. The paper’s discussion does not establish that the same choices are optimal for every kind of motion, recording length, or manipulation timing.

#### The comparisons have reporting boundaries

Some strong comparative statements are supported by discussion instead of a full numerical account. This is especially relevant for Celeb-DF, where the authors describe leading AUC and low false alarm performance without giving every corresponding value in the surrounding text. The reader can report the direction of the authors’ comparison, but should not invent the missing magnitudes.

The DFDC “test” results also require careful interpretation. Parameters adjusted to achieve a target recall on the test set characterize that test operating point after observing its behavior. They are less representative of a deployed procedure than the separate test-from-validation evaluation.

The paper itself highlights the uncertainty introduced by transferring a threshold. Desired recall during validation does not guarantee the same recall on test material. This is a practical limit even when the learned detector is not retrained.

Finally, the work does not establish computational suitability for every application. It combines parallel visual processing, downstream feature extraction, face alignment, and bidirectional temporal computation. The discussion does not supply a complete latency or resource comparison. Detection quality alone cannot answer whether the full pipeline fits a particular deployment budget.

### What came after

No specific later study can be identified from the available citation record for this discussion. A claim that another work adopted the two-branch design, extended the compactness loss, or confirmed its transfer behavior would therefore go beyond the evidence.

The paper’s own future directions are clear. The authors propose examining augmentation and additional natural-face data, then developing an explanation mechanism without requiring pixel-level manipulation labels. These directions follow directly from the method’s remaining uncertainties: how well its natural reference population covers authentic variation, how it behaves under unfamiliar input conditions, and how a suspicious score can be connected to intelligible evidence.

Those proposals also define useful questions for assessing any continuation of the approach. Does broader authentic training material reduce false alarms on difficult genuine sequences? Does a modified representation preserve separation under new manipulations and compression conditions? Can an explanation identify relevant evidence without merely displaying strong activations? The paper leaves those as open questions. Its demonstrated contribution remains the evaluated combination of complementary visual branches, temporal processing, fixed-center supervision, and an assessment centered on the demanding low false alarm regime.

## Cite

Cite as Iacopo Masi, Aditya Killekar, Royston Marian Mascarenhas, Shenoy Pratik Gurudatt and Wael AbdAlmageed. 2020. Two-Branch Recurrent Network for Isolating Deepfakes in Videos. Lecture notes in computer science.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1007/978-3-030-58571-6_39](https://doi.org/10.1007/978-3-030-58571-6_39) · [arXiv 2008.03412](https://arxiv.org/abs/2008.03412)

```bibtex
@inproceedings{masi2020two,
  title = {{Two-Branch Recurrent Network for Isolating Deepfakes in Videos}},
  author = {Iacopo Masi, Aditya Killekar, Royston Marian Mascarenhas, Shenoy Pratik Gurudatt and Wael AbdAlmageed},
  booktitle = {Lecture notes in computer science},
  year = {2020},
  doi = {10.1007/978-3-030-58571-6\_39},
  eprint = {2008.03412},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1007/978-3-030-58571-6_39}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
