SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2103.02406 · CVPR · 2021

Multi-attentional Deepfake Detection

Dongdong Chen, Weiming Zhang, Nenghai Yu, Wenbo Zhou, Hanqing Zhao, Tianyi Wei

arXiv · PDF · Open in the Atlas

Code that ran

20 of 25 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (10 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 0 violated it and 14 have no contract verdict; 3 failures of our instrument; 5 no recorded run), measured 2026-11-21; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2103.02406.json · badge: /api/ran/2103.02406.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
yoctta/multiple-attention marked official in Papers with Code
Papers with Code archive
20 ran · 5 no recorded run
FunctionStatusWhere it lives
AttentionMap Ran
ran on a synthesized input · constructed an object; no result was computed
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("43d9801d323877e5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

AttentionPooling Ran
ran on a synthesized input
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("020e1d7ced206b80")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Auxiliary_Loss_v2 Ran
ran on a synthesized input · constructed an object; no result was computed
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("ee64f50e0c084ee1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Block Ran
ran on a synthesized input · constructed an object; no result was computed
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("9bf22d4f451ed68d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Conv2dDynamicSamePadding Ran
ran on a synthesized input · constructed an object; no result was computed
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("fac9df854d8f28ec")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Conv2dStaticSamePadding Ran
ran on a synthesized input · constructed an object; no result was computed
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("1d6d41efbaa4e76e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Identity Ran
ran on a synthesized input · constructed an object; no result was computed
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("552d3aca78645318")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

MBConvBlock Ran
ran on a synthesized input · constructed an object; no result was computed
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("12770455a6977457")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

MemoryEfficientSwish Ran
ran on a synthesized input
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("216a33b331a90731")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

SeparableConv2d Ran
ran on a synthesized input · constructed an object; no result was computed
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("e62c4554809ce2bc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Swish Ran
ran on a synthesized input
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("0fb7ab180e596005")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

SwishImplementation Ran
ran on a synthesized input · constructed an object; no result was computed
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("6fca2143a077d04e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Texture_Enhance_v2 Ran
ran on a synthesized input
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("8e7280a7aaf78ae0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

drop_connect Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("2dd5dfa94542911e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

efficientnet Ran
ran; our contract draft was wrong, not the code
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("257c1c1e61218873")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

efficientnet_params Ran
ran, honoured the contract we drafted
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("0d2081257b75b978")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_same_padding_conv2d Ran
ran; our contract draft was wrong, not the code
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("4c8a17dc9214affe")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

round_filters Ran
ran, honoured the contract we drafted
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("826e2e91d6a9ec09")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

round_repeats Ran
ran, honoured the contract we drafted
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("4d8e794b593d34a0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

xception Ran
ran on a synthesized input · constructed an object; no result was computed
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("a4916d92d14f412b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BlockDecoder Not yet run
unverified (harvested, no recorded run)
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("43fa0c458613b03f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

EfficientNet Not yet run
unverified (harvested, no recorded run)
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("1bf7777ed9460905")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

MAT Not yet run
unverified (harvested, no recorded run)
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("ed884b31a2f023a3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_model_params Not yet run
unverified (harvested, no recorded run)
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("3872570123f9e3ae")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_pretrained_weights Not yet run
unverified (harvested, no recorded run)
yoctta/multiple-attention/models/MAT.py
pointer only (licence: NONE) · get_code("5545a1c79e2818b2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoctta/multiple-attention when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 25 samples lifted from this paper's linked repositories, 25 carry a function identity and 0 do not. Of the 25 distinct functions with an identity, 15 are also present in other papers whose code we hold (13 with at least one paper dated earlier, 14 the same month, 8 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
round_filters
brick of this paper's assembly: helper
31 other papers
10 dated earlier, 1 the same month, 20 later · 3 only as an assembly brick
1808.08127 (2018-08)
Recalibrating Fully Convolutional Networks with Spatial and Channel 'Squeeze & Excitation' Blocks
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
1911.09070 (2019-11)
EfficientDet: Scalable and Efficient Object Detection
and 28 more not named here
round_repeats
brick of this paper's assembly: helper
30 other papers
10 dated earlier, 1 the same month, 19 later · 3 only as an assembly brick
1808.08127 (2018-08)
Recalibrating Fully Convolutional Networks with Spatial and Channel 'Squeeze & Excitation' Blocks
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
1911.09070 (2019-11)
EfficientDet: Scalable and Efficient Object Detection
and 27 more not named here
drop_connect
brick of this paper's assembly: helper
15 other papers
7 dated earlier, 1 the same month, 7 later · 2 only as an assembly brick
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
1911.09070 (2019-11)
EfficientDet: Scalable and Efficient Object Detection
1912.06218 (2019-12)
YOLACT++: Better Real-time Instance Segmentation
and 12 more not named here
Swish
brick of this paper's assembly: helper
10 other papers
4 dated earlier, 1 the same month, 5 later · 7 only as an assembly brick
1505.04597 (2015-05)
U-Net: Convolutional Networks for Biomedical Image Segmentation
1612.03144 (2016-12)
Feature Pyramid Networks for Object Detection
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
and 7 more not named here
MemoryEfficientSwish
brick of this paper's assembly: helper
7 other papers
2 dated earlier, 1 the same month, 4 later · 4 only as an assembly brick
1612.03144 (2016-12)
Feature Pyramid Networks for Object Detection
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
2103.11703 (2021-03)
Model-based 3D Hand Reconstruction via Self-Supervised Learning
and 4 more not named here
get_same_padding_conv2d
brick of this paper's assembly: helper
5 other papers
1 dated earlier, 1 the same month, 3 later · 1 only as an assembly brick
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
2103.11703 (2021-03)
Model-based 3D Hand Reconstruction via Self-Supervised Learning
2108.11250 (2021-08)
YOLOP: You Only Look Once for Panoptic Driving Perception
and 2 more not named here
Conv2dDynamicSamePadding
brick of this paper's assembly: helper
4 other papers
1 dated earlier, 1 the same month, 2 later · 2 only as an assembly brick
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
2103.11703 (2021-03)
Model-based 3D Hand Reconstruction via Self-Supervised Learning
2201.04021 (2022-01)
Optimization Planning for 3D ConvNets
and 1 more not named here
SwishImplementation
brick of this paper's assembly: helper
3 other papers
2 dated earlier, 1 the same month · 3 only as an assembly brick
1612.03144 (2016-12)
Feature Pyramid Networks for Object Detection
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
2103.11703 (2021-03)
Model-based 3D Hand Reconstruction via Self-Supervised Learning
BlockDecoder
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 the same month · 2 only as an assembly brick
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
2103.11703 (2021-03)
Model-based 3D Hand Reconstruction via Self-Supervised Learning
Conv2dStaticSamePadding
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 the same month · 1 only as an assembly brick
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
2103.11703 (2021-03)
Model-based 3D Hand Reconstruction via Self-Supervised Learning
Identity
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 the same month · 1 only as an assembly brick
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
2103.11703 (2021-03)
Model-based 3D Hand Reconstruction via Self-Supervised Learning
efficientnet
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 the same month · 2 only as an assembly brick
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
2103.11703 (2021-03)
Model-based 3D Hand Reconstruction via Self-Supervised Learning
get_model_params
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 the same month
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
2103.11703 (2021-03)
Model-based 3D Hand Reconstruction via Self-Supervised Learning
MBConvBlock
brick of this paper's assembly: helper
1 other paper
1 the same month
2103.11703 (2021-03)
Model-based 3D Hand Reconstruction via Self-Supervised Learning
SeparableConv2d
brick of this paper's assembly: helper
1 other paper
1 later · 1 only as an assembly brick
2203.12208 (2022-03)
Self-supervised Learning of Adversarial Example: Towards Good Generalizations for Deepfake Detection

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-21.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Face forgery by deepfake is widely spread over the internet and has raised severe societal concerns. Recently, how to detect such forgery contents has become a hot research topic and many deepfake detection methods have been proposed. Most of them model deepfake detection as a vanilla binary classification problem, i.e, first use a backbone network to extract a global feature and then feed it into a binary classifier (real/fake). But since the difference between the real and fake images in this task is often subtle and local, we argue this vanilla solution is not optimal. In this paper, we instead formulate deepfake detection as a fine-grained classification problem and propose a new multi-attentional deepfake detection network. Specifically, it consists of three key components: 1) multiple spatial attention heads to make the network attend to different local parts; 2) textural feature enhancement block to zoom in the subtle artifacts in shallow features; 3) aggregate the low-level textural feature and high-level semantic features guided by the attention maps. Moreover, to address the learning difficulty of this network, we further introduce a new regional independence loss and an attention guided data augmentation strategy. Through extensive experiments on different datasets, we demonstrate the superiority of our method over the vanilla binary classifier counterparts, and achieve state-of-the-art performance. The models will be released recently at https://github.com/yoctta/ multiple-attention.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2103.02406")
get_code_for_paper("2103.02406")
have("2103.02406")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2103.02406.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2103.02406.svg)](https://syntology.ai/paper/2103.02406)

Connect an agent — have() is free.