In 2012, Ivana Chingovska, André Anjos, and Sébastien Marcel at the Idiap Research Institute in Switzerland released a face dataset called REPLAY-ATTACK. The paper's abstract states that fooling a face recognition system takes nothing more than a photo of the user. LBP abstract
They recruited 50 people, recorded each of them in front of a laptop camera, and then attacked with those people's photos and videos. Some attacks were photos printed on A4 paper, some were photos and videos played on an iPhone 3GS screen, and some were high-resolution versions played on an iPad. They tried a face recognition system with its threshold set at the equal error rate on the development set, and slightly more than 82% of the attacks were accepted as the genuine user. LBP §V-B
First, let's see what these attacks look like. From left to right, the columns show a live person, a printed photo, phone playback, and tablet playback. The top row has a plain background under fluorescent light; the bottom row has a cluttered background under natural light.
The defense proposed in the same paper looked at local texture in the face image, with an error rate of about 15% on the test set. LBP Table V
In 2025, I-FAS, from Baidu and the Institute of Automation, Chinese Academy of Sciences, put a multimodal large language model to work on the same task. On a cross-dataset benchmark, where the test dataset never appears during training, it reported an error rate of 0.32%. I-FAS Table 1
The two numbers were measured differently and cannot be compared directly. Still, judging by the trend, the problem looks almost solved.
This article follows the site's 44 paper notes on face anti-spoofing to see how that error rate came down. Part of the drop came from new cues—texture, heartbeat, depth, infrared, even sound waves. Part came from better models and pretraining. And part has to do with where the error rate was measured.
The seven stages cover, in order, texture, heartbeats, sensors, deep learning, cross-domain generalization, large pretrained models, and digital attacks with language models.
The last section looks back at how these error rates were measured.
Photos and Screens: Look at Texture
Two years before REPLAY-ATTACK, Xiaoyang Tan and colleagues at Nanjing University of Aeronautics and Astronautics tackled the simplest case at ECCV 2010. With only one image taken by a webcam, they had to decide whether it showed a real person or a photo. SLRBD
They started from how light falls on an object. For an ideal diffuse surface, brightness can be written as
is the surface reflectance, and is the angle between the surface normal and the light. A real face has a nose, eye sockets, and cheeks, and the normal differs from point to point. A photo is a flat plane whose normal is nearly the same everywhere, so its brightness varies mostly with the direction of the light source. The authors decomposed the image into reflectance and illumination, then handed them to a sparse low-rank bilinear logistic regression to tell the two apart. SLRBD §2
The top row is a live person, and the bottom row a photo of the same person. From left to right are the original image, the estimated illumination , the estimated reflectance , and the spectra of the original and filtered images.
The NUAA database they built for this used cheap webcams bought at an electronics mall. They recorded 15 people in three sessions about two weeks apart, changing the location and lighting each time. SLRBD §3.1
REPLAY-ATTACK took another route. The authors reasoned that real skin and a three-dimensional face absorb, reflect, scatter, and refract light in ways that paper, photo paper, and screens do not, so the captured texture should differ. LBP §IV The tool they used to describe texture was LBP (local binary pattern).
LBP compares the brightness of each pixel with its 8 surrounding neighbors. A neighbor that is brighter than the center, or equally bright, gets a 1; a darker one gets a 0. Going around the ring gives 8 bits, which together form a code between 0 and 255. Take the 3×3 patch in the figure below, whose center is 65. Going clockwise from the upper left, the four neighbors above, upper right, right, and lower right are brighter; the four at upper left, left, lower left, and below are darker. The 8 bits are 01111000, which is 120 in decimal.
Codes that switch between 0 and 1 at most twice around the ring are called uniform patterns. There are 58 of them, and the 120 above is one; all other codes go into a single bin, so the histogram has 59 bins. REPLAY-ATTACK scaled each face to 64×64, counted how often each code appeared to get a 59-dimensional histogram, and passed it to an SVM for classification. The HTER on the test set was 15.16%. LBP §IV, Table V
The paper also did something that later turned out to matter a great deal. It split the 50 people into three non-overlapping groups, with 360, 360, and 480 videos in the training, development, and test sets, and spelled out what each set was for: LBP §III
The training set is used to train the classifier, and the development set to estimate when to stop training; the test set is used only to report error rates and performance curves.
The threshold works the same way. It is chosen on the development set, and HTER is computed on the test set. The authors learned this the hard way when they applied their method to NUAA. NUAA has only a training set and a test set, so the development data for choosing the threshold had to be carved out of the training set. The method did very well on that development data and noticeably worse on the test set. From this they stressed that anti-spoofing databases need protocols that clearly separate training, development, and testing. LBP §V
We will come back to this rule in the last section.
Masks: Look for a Heartbeat
Photos and screens have something in common. They are both flat. The methods so far, whether they look at reflections or at texture, rely on this to some degree. In 2013, Nesli Erdogmus and Sébastien Marcel at Idiap took that premise away. 3DMAD
They had 17 people each take one frontal and two profile photos and uploaded them to a website called ThatsMyFace. The site reconstructed a 3D face model from the photos and printed it as a full-color, wearable hard-resin mask, with holes left for the eyes and nostrils. Both the mask attacks and the real faces were recorded with a Kinect, capturing color images and depth at the same time. The 76,500 frames in total make up the 3DMAD dataset. 3DMAD §III-B
On the left is the earlier Morpho data, with a live person on top and a masked one below, each shown as a grayscale image, a depth map, and a 3D model. In the middle are paper-craft masks, and on the right are the 17 hard-resin masks of 3DMAD.
Whether a mask could fool face recognition varied widely. Success rates for individual masks ranged from 0% to 98.4%. The same mask, No. 11, succeeded 96.68% of the time against a recognition system that looked at 2D images, but only 7.52% of the time against one that looked at depth maps. 3DMAD §VI-A A convincingly printed appearance and an accurate shape are two separate things.
These masks could not escape texture, though. Computing LBP on blocks of the face and classifying with LDA gave an HTER of only 0.12% on 2D images. 3DMAD §VI-B Color printed on resin is still a long way from the texture of skin.
Masks will keep getting more realistic. One cue has nothing to do with how a mask looks, and that is the heartbeat.
With each heartbeat, the blood volume under the facial skin changes slightly, and the color the skin reflects fluctuates by a tiny amount, most visibly in the green channel. Measuring this fluctuation from a distance with an ordinary camera is called rPPG (remote photoplethysmography). With a mask on, the camera sees the mask; the skin is covered.
In 2016, Xiaobai Li and colleagues at the University of Oulu in Finland applied it to anti-spoofing. They took the mean green-channel brightness from the center of the face as a signal over time, moved it into the frequency domain, and used the spectrum's maximum and signal-to-noise ratio to decide whether a heartbeat was present. CFrPPG §2
Picture three 10-second green-channel signals. The real face has a heartbeat of 72 beats per minute; the mask has only noise; the third is also a mask, but the hand holding the phone shakes 1.5 times per second. In the frequency domain, the real face has a clear peak at 72 beats per minute, while the noise-only mask's strongest frequency lands at an arbitrary place, with a much lower peak. The third signal is the problem. A hand shaking 1.5 times per second, or 90 times per minute, falls right inside the heart-rate range, and a peak taller than the real face's pops up in the spectrum. (The signals in the figure below are synthetic; the amplitude and noise levels are only for illustration.)
In 2018, Si-Qi Liu, Xiangyuan Lan, and Pong C. Yuen at Hong Kong Baptist University took on exactly this case. They pointed out that the periodic shaking of a handheld camera can be mistaken for a heartbeat and let an attack through, while a real person's expressions and movements can contaminate the pulse signal and get the person rejected. Their CFrPPG first learns a spectral template of the heartbeat from the signals of several larger facial regions, using noise spectra taken from the background as negative examples, so that the template responds to the heartbeat and hardly at all to global shaking. It then measures how well the signal from each small facial region matches this template and uses that as the liveness feature. CFrPPG §3–4
These are three kinds of rPPG signals actually measured in the paper. In each group, the signal is on the left and the spectrum on the right, and the green facial region marks where the signal was taken.
They compared texture and heartbeat on two mask datasets. HKBU-MARsV2 has 12 people; half of its masks come from ThatsMyFace, and half are high-quality masks from REAL-f. The numbers are test-set HTER: CFrPPG Table 1–2
| Method | 3DMAD | HKBU-MARsV2 |
|---|---|---|
| Multi-scale LBP (texture) | 4.22% | 24.0% |
| Global rPPG (Li et al., 2016) | 13.3% | 16.1% |
| CFrPPG | 6.82% | 4.42% |
On 3DMAD, texture actually beats the heartbeat. On HKBU-MARsV2, whose masks are more realistic, texture's error rate rises to 24.0%, while CFrPPG's is 4.42%.
Look at More Kinds of Signals
As the cues visible to the eye grow less reliable, let the machine look at more kinds of signals the eye cannot see.
In 2019, Anjith George and colleagues at Idiap released the WMCA dataset. It records four channels at once—color, depth, near-infrared, and thermal—with 72 people and 1,679 presentations. Besides prints and replays, the attacks include mannequin heads, paper masks, silicone masks, rigid masks, transparent masks, and prop glasses worn on the face. WMCA §I, §IV
The top row is a live person, and the bottom row an attack with a silicone mask; the four columns are color, depth, near-infrared, and thermal. Compare the color column first, then look to the right.
Their MC-CNN feeds all four channels into a LightCNN pretrained for face recognition and retrains only the lower layers. When every attack type appears in the training set, the test-set ACER is 0.3%. WMCA Table VI
Remove one attack type entirely from the training data and keep it only in the test set, and the results change. With mannequin heads or printed photos held out, the error rate is 0. With prop glasses held out, 84.27% of the glasses attacks are accepted as real people, and the ACER is 42.14%. WMCA Table VII The glasses cover only a small part of the face; the rest is a real person, and that is mostly what all four channels see. The thresholds in this table were chosen on the development set at a BPCER of 1%.
In 2020, CeFA, from the Institute of Automation, Chinese Academy of Sciences, raised the subject count to 1,607. It has three modalities, RGB, depth, and infrared, covers three ethnic groups, and includes both 2D and 3D attacks. It was the first anti-spoofing dataset with ethnicity labels, and its protocols specifically test how models perform across ethnicities. CeFA abstract
Compare RGB, Depth, and IR for the same face across the row, then read down through the attacks and capture conditions.
Depth and infrared need extra sensors, which an ordinary phone's front camera may lack. Every phone, however, has a speaker and a microphone.
In 2019, Bing Zhou and colleagues at Stony Brook University had the phone's earpiece emit nearly inaudible sound waves, using them like light to “illuminate” the user's face. They extracted features from the echoes and combined them with the image features from face recognition to make the decision. The echo depends on the face's three-dimensional shape and material, which photos and videos have a hard time imitating. VA-FAS abstract
In 2022, Chenqi Kong and colleagues at City University of Hong Kong scaled this approach up. Their Echo-Spoof dataset has 30 volunteers, four Android phones, three phone-to-face distances of 25, 35, and 45 cm, and more than 250,000 acoustic signals in total. The emitted signal is sampled at 44.1 kHz and consists of nine chirps in three sweep ranges that together cover 12 kHz to 21 kHz; each chirp has a bandwidth of 5 kHz. Echo-FAS §III–IV
The top half shows the usual approach, in which the front camera captures the face and hands it to a model that looks at images. The bottom half is Echo-FAS, where the speaker emits sound waves and the microphone records the echo. In both, the attacker simply holds a photo in front of the phone.
When the phone is 35 cm from the face, the sound travels 70 cm there and back; at 343 meters per second, the echo arrives about 2.04 ms later, roughly 90 samples at a 44.1 kHz sampling rate.
Different parts of the face, such as the nose and the mouth, are at different distances from the phone, so their echoes arrive with different delays. What the microphone receives is several echoes with different delays layered on top of one another, and that set of delays records the shape of the face. A photo is flat, so its echoes come back almost all at once. With a 5 kHz bandwidth, two reflecting surfaces must be at least 3.43 cm apart to be told apart. Echo-FAS §IV-B
Echo-FAS can also work alongside a model that looks at images. In the paper's multimodal experiments, adding sound raised the AUC from 93.48 to 99.08. Echo-FAS §I
In 2024, AFace, from Ocean University of China and other institutions, went a step further. The authors pointed out that existing acoustic methods perform well only at a fixed distance and cannot stop 3D-printed heads. AFace uses an iso-depth model to link echoes to facial structure, considers how biological materials affect echo energy, and compensates automatically for the distance between the user and the phone. In experiments with 40 volunteers, its average accuracy was 96.9%. AFace abstract
Let the Network Find the Cues
Back to a single RGB camera. In 2017, OULU-NPU, from the University of Oulu and Northwestern Polytechnical University, moved the data onto phones. It has 55 people, 6 phones priced from 250 to 600 euros, and three sessions with different lighting and backgrounds, 4,950 videos in all. Its four protocols test a change of session, a change of attack instrument, an unseen phone, and all three at once. Subjects 1 to 20 form the training set, 21 to 35 the development set, and 36 to 55 the test set. OULU-NPU competition report §2
With enough data, a convolutional network can learn the cues by itself. Trained only on the two classes of real and fake, though, a network easily learns things it shouldn't. The authors of CDCN wrote in 2020 that networks trained with binary cross-entropy tend to pick up arbitrary patterns such as screen bezels instead of features of the attack itself. CDCN §1 A common fix is pseudo-depth supervision. A real face gets an estimated depth map as its target, and an attack gets an all-black map, so the network has to draw the face's three-dimensional shape to tell real from fake.
CDCN, a paper by Zitong Yu and colleagues at the University of Oulu, keeps depth supervision and also replaces the convolution itself. The authors say the idea came from LBP. Where LBP compares each neighbor with the center, central difference convolution (CDC) subtracts the center from each neighbor and then multiplies by learned weights:
lies between 0 and 1 and sets how much the difference term counts; is ordinary convolution. CDCN Equation 3
The minus sign in the middle turns the neighborhood values into differences from the center before the convolution weights and aggregates them.
Take the same 3×3 patch we used for LBP, pair it with an illustrative set of 3×3 weights, then brighten the whole patch by 30 to simulate a change of lamp; CDC uses .
After the whole patch brightens, the difference between each neighbor and the center stays the same, so the LBP code is still 120 and the central difference term is still 0.7. Ordinary convolution gains 30 times the weight sum of 0.5, going from 33.2 to 48.2. CDC contains only 30% ordinary convolution, so it gains just 4.5.
This small example shows only that the difference term is insensitive to a uniform change in brightness; real lighting changes are far more complicated than adding a constant. In the paper's ablation on OULU-NPU Protocol 1, the ACER is 3.8% with and 1.0% with ; CDCN++, which adds neural architecture search, brings it down to 0.2%. CDCN §4.3, Table 4
The paper opens with a figure that makes the same point. The two print attacks come from different lighting and cameras, and the red boxes mark the local patches being examined. The middle shows features from ordinary convolution, and the right shows CDC features.
Cross-dataset results improved too, but the two directions differ a lot. Training on CASIA-MFSD and testing on Replay-Attack, LBP has an HTER of 47.0% and CDCN++ 6.5%. The other way around, training on Replay-Attack and testing on CASIA-MFSD, LBP gets 39.6% and CDCN++ 29.8%. CDCN Table 7
In 2022, Zitong Yu and colleagues wrote the field's first survey centered on deep learning. They identified a pattern. Pixel-wise supervised methods such as CDCN do very well within a dataset but worse in cross-dataset tests with multiple sources, and ResNet with binary cross-entropy shows the opposite. The survey also cautions that on OULU-NPU, the gap between an ACER of 0.4% and 0.8% is already small; this benchmark is close to saturation. FAS Survey §5
The data side kept growing too. In 2020, CelebA-Spoof, from SenseTime, Beijing Jiaotong University, and the Chinese University of Hong Kong, offered 10,177 people and 625,537 images from 8 scenes and more than 10 sensors, labeled with 10 attack types plus 40 facial attributes inherited from CelebA. The authors found that using these semantic labels as auxiliary tasks helps the model generalize better than binary real/fake classification or geometric maps alone. CelebA-Spoof abstract
Another route is to pull out the traces an attack leaves behind. STDN, from Michigan State University, decomposes an attack image into “spoof traces” at multiple scales, such as color shifts, mask edges, and moiré patterns. Removing the traces recovers the corresponding live face, and pasting them onto another face synthesizes new attack samples. STDN abstract
The four examples are replay, print, makeup, and a 3D mask. In each, from left to right, are the input image, the extracted spoof trace, and the live face recovered after removing the trace, with zoomed-in details alongside.
Around the same time, Disentangle-FAS split images into liveness features and content features; DualStage used two-stage training to make the disentanglement more stable and to detect unseen attack types; and DSDG used a VAE to separate identity from attack pattern and generate new combinations in bulk.
Switch to Another Phone
The two directions in that CDCN table already hint at the field's biggest headache. A model can learn one dataset well, but switch to another dataset, which means switching cameras, lighting, backgrounds, and attack instruments, and the error rate jumps.
From around 2019, cross-domain research commonly used a benchmark of four datasets: OULU-NPU (O), CASIA-MFSD (C), Replay-Attack (I), and MSU-MFSD (M). Each time, three are used for training and the remaining one for testing, written as O&C&I→M, O&M&I→C, and so on. All four datasets date from 2012 to 2017, and their attacks are only prints and replays.
Traditional methods struggle on this benchmark. Multi-scale LBP has an HTER of 29.76% on O&C&I→M and 54.28% on O&M&I→C. IDA, a method that looks at image distortion, gets 66.67% on O&C&I→M, worse than random guessing. SSDG Table 5
So what exactly breaks when the dataset changes? Picture a simplified case. Suppose that on the phones used in training, the model's scores for live faces cluster around 0.75 and those for attacks around 0.35. On a new phone with different image quality, both sets of scores drop, the live scores by 0.2 and the attack scores by 0.15. The order of live faces and attacks stays the same; only the position changes.
The same model and the same new-phone scores produce two very different HTERs.
Following the rules and choosing the threshold on the development set gives 0.55, which lands right in the middle of the new phone's live scores. Half the real users are shut out, and the HTER is 26.4%. If we choose the threshold with the new phone's labels, it drops to 0.38, and the HTER is only 4.6%. AUC looks only at the order of live faces and attacks, regardless of the threshold, and it is 0.993.
In deployment, the new phone's labels are unavailable, so the second number can only be computed in a paper. We will come back to this experiment in the last section.
From 2020 on, most cross-domain methods have worked on the same question—how to keep the feature space separable on unseen datasets, with the split falling in the same place.
SSDG: Live Faces Together, Attacks Apart
In 2020, Yunpei Jia and colleagues at the Institute of Computing Technology, Chinese Academy of Sciences, proposed SSDG. They noticed that live faces from different datasets resemble one another, while attacks are all over the place, because each dataset uses different attack instruments and capture methods. Forcing every attack into one cluster as well is hard to do. So they pulled only the live features from all datasets together, letting attacks spread out across datasets while staying clustered within each dataset. That is what “single-side” means. SSDG §3
Colors mark the data source, and dots and crosses mark fake and real faces; compare which points are grouped together on each side.
On O&C&I→M, MADDG from 2019 scores 17.69%; SSDG with the same backbone scores 16.67%, and with ResNet-18, 7.38%. SSDG Table 5 The authors themselves note that switching the backbone brings a significant improvement. In the tables that follow, the backbone often changes along with the method itself.
Drop the Dataset Labels, or Pull Style Apart
SSDG needs to know which dataset each image comes from. D²AM, from 2021, argued that data collected in practice is often mixed together, and that “dataset” itself may not be the best way to divide it. It clusters the data automatically with features extracted by instance normalization, treats the clusters as pseudo dataset labels, and trains with meta-learning. D²AM abstract
In 2022, SSAN, from Beijing University of Posts and Telecommunications and Kuaishou, split features into content and style. It shuffles and recombines the content and style of different images, then uses contrastive learning to keep the liveness-related style and suppress the dataset-related style. SSAN abstract IADG, from 2023, considered dataset-level alignment too coarse and instead applies asymmetric whitening to each image, removing style-sensitive feature correlations. IADG abstract HPDR, from 2024, places features in hyperbolic space and replaces direct alignment with hierarchical relations among prototypes. HPDR abstract
SA-FAS: One Line That Works in Every Domain
In 2023, SA-FAS, from Google, the University of Wisconsin–Madison, and Michigan State University, took a different view. Most earlier methods tried to knead all the datasets into a single lump. The authors observed that however well that works on the training data, the features still shift on an unseen dataset, and the decision boundary goes off with them. SA-FAS §1
So rather than forcing the datasets to mix, they let them stay apart, but require the direction from live to attack to be the same within every dataset. When the direction is consistent, the same dividing line cuts correctly on every dataset. SA-FAS Figure 1 Compare this with the small experiment above, where the new phone's scores shifted to the left as a whole. If the shift happened only along a direction unrelated to real versus fake, the line chosen on the development set would still cut in the right place.
The top half is the common approach, which kneads different datasets together. The bottom half is SA-FAS, where the datasets stay separate but the arrows from live to attack point in the same direction in each one. The boxes on the right list which cues the classifier relies on.
On O&C&I→M, SA-FAS scores 5.95%, SSAN 6.67%, IADG 5.41%, and HPDR 4.58%. SA-FAS Table 1, IADG Table 1, HPDR Table 1
Start from the New Data
Another group of methods does more than work harder at training time; they also make use of data from the new setting.
CDFTN, from 2022, does domain adaptation, with unlabeled images from the new setting in hand. It separates liveness features from content features, then pairs the liveness features of the source data with the content of the target setting to synthesize labeled artificial samples for training. CDFTN abstract UDG-FAS, from 2023, goes further and uses no labels at all. It learns from large numbers of unlabeled face images, cutting faces into patches, rotating them, and reassembling them so the model avoids simply memorizing identities. UDG-FAS abstract 3A-TTA, from the same year, adjusts the model after deployment while it runs inference, using the model's own predictions as pseudo-labels while keeping it from forgetting what it originally learned. 3A-TTA abstract
There is also a very practical angle. Face authentication systems usually record a few images of the user's real face at enrollment. Personalized-FAS, from 2022, takes these enrollment images as input as well. It builds two benchmarks, CelebA-Spoof-Enroll and SiW-Enroll, on top of CelebA-Spoof and SiW, to see whether a model can use “what this person usually looks like” as a reference. Personalized-FAS abstract
Switch to Large Pretrained Models
Once Vision Transformers arrived, the cross-domain numbers dropped another notch.
DiVT, from 2023, uses the lightweight MobileViT as its backbone and adds two loss functions. One pulls real faces from all datasets together, and the other groups each attack type into a single class across datasets. DiVT abstract The authors come from National Taiwan University, National Cheng Kung University, National Tsing Hua University, and other schools, and one of them works at E.SUN Financial Holding; face anti-spoofing has long been a concern for the financial industry. On O&C&I→M, DiVT scores 2.86%. DiVT Table 1
S-Adapter, from the same year, freezes a pretrained ViT and inserts only small adapter modules into it. These modules organize tokens into local histograms. The authors say the design follows LBP's approach of taking local features first and then collecting them into a histogram, which is less sensitive to lighting changes. A Gram matrix also suppresses style differences between datasets. Its O&C&I→M result is 3.43%. S-Adapter §III, Table II
The same year, MBZUAI in the United Arab Emirates proposed FLIP, which switched to CLIP weights. CLIP is trained on large numbers of image–text pairs and encodes images and text into the same vector space. The authors found that simply initializing the ViT with CLIP's image encoder and fine-tuning it directly already gave the best average cross-domain HTER of the time. FLIP §4.2
Going one step further, FLIP drops the classification head and uses text as the classifier. It prepares two sets of descriptions—for example, “This is an example of a real face” for live faces, and “This is an example of a spoof face” and “A printout shown to be a spoof face” for attacks—and encodes them all as vectors. An image is assigned to whichever set its vector is closer to. FLIP Table 1, §3.3 FLIP-MCL, which adds multimodal contrastive learning, scores 4.95% on O&C&I→M and averages 3.01% over the four settings. FLIP Table 2
Two points about FLIP's experimental setup deserve a close look first. First, it follows ViTAF from 2022 in adding CelebA-Spoof to the training data; compared with SSDG's generation, which used only three datasets, that is a great deal more training data. Second, the authors average every experiment over five random seeds and point out that most earlier work reported only the single best run. FLIP §4.1, Appendix B
In 2024, CFPL-FAS, from the Institute of Automation, Chinese Academy of Sciences, and other institutions, drew on BLIP-2's Q-Former, using two lightweight Transformers to learn two sets of prompts, for content and for style, from the image, with no hand-written class descriptions. It scores 3.09% on O&C&I→M, and 1.43% when CelebA-Spoof is likewise added to training. CFPL-FAS Table 1
Here are the O&C&I→M results reported by each paper, side by side:
Reading down, color and year change almost in step. Much of the drop came along with the backbone and pretraining, from ResNet-18 to ViT, then to CLIP and large language models.
Modalities beyond images moved to Transformers too. MA-ViT sends multiple modalities into a ViT through a single branch and can make a decision at test time from any one modality. M²A²E designs asymmetric masked-autoencoder pretraining for RGB, infrared, and depth, then fine-tunes with small adapter modules. MMDG tackles two multimodal headaches, sensors that become unreliable in new environments and training that leans too heavily on one modality. FM-CLIP brings CLIP to the setting where “there are multiple modalities in training, but not necessarily at test time.” MA-ViT abstract, M²A²E abstract, MMDG abstract
Digital Attacks and Talking Models
Every attack so far needed some object placed in front of the camera. Digital attacks don't. Deepfake face swaps and adversarial examples tamper with the image directly. The two kinds of attack are often studied separately, yet a deployed system may run into both at once.
The SHIELD paper compiled a table of samples that shows both kinds of attack at a glance. On the left is a real person; the top row shows six physical attacks, and the bottom row shows faces generated or altered with diffusion models and GANs.
The anti-spoofing challenge at CVPR 2024 put both kinds of attack into one dataset, UniAttackData. It has 1,800 people, each with 2 physical attacks and 12 digital attacks, for 28,706 videos in total. In the development phase, 136 teams took part, and 13 made it to the final round. FAS-Challenge §1, §3
First place went to PD-FAS, from Meituan and other institutions. Its main technique is data augmentation, processing live images into simulated attack samples. For physical attacks, it overlays color shifts and moiré patterns to simulate printing and re-capture; for digital attacks, it simulates the traces left by face swapping. So during training, the model has already seen these “unseen” attacks. Its final scores were APCER 3.75%, BPCER 0.93%, and ACER 2.34%. PD-FAS abstract La-SoftMoE, from the same year, argued that the feature distributions of the two kinds of attack are too scattered to share a common feature space, so it placed mixture-of-experts layers inside CLIP, letting different groups of parameters handle different regions. La-SoftMoE abstract
Meanwhile, multimodal large language models had learned to look at an image and talk about it. Researchers began to ask, can models like GPT-4V spot an attack?
SHIELD, from 2024, quizzed GPT-4V, Gemini, and other models with true/false and multiple-choice questions covering three modalities, RGB, infrared, and depth, as well as physical attacks and deepfakes. The authors concluded that these models already have some zero-shot reasoning ability for telling real from fake. SHIELD §1 They also designed a multi-attribute chain of thought that has the model check item by item. For face anti-spoofing, there are five attributes: SHIELD Table 2
- Local consistency and sharpness of pixels
- Whether the overall shape of the facial features is consistent
- Depth and three-dimensionality
- Gloss and reflections
- Whether there are edges of a phone screen or paper
Reflections, three-dimensionality, the edges of screens and paper—the items on this list are almost exactly the cues the papers of the previous decade and more had been watching.
I-FAS, from 2025, recast anti-spoofing as visual question answering. It first generates text describing the spoof cues in each training image, then trains the model to answer real or fake first and explain afterward, with a loss function weighted toward the former. I-FAS abstract That is where the 0.32% from the opening comes from; its average over the four settings is 1.33%. I-FAS Table 1
I-FAS also ran a harder test, training only on CelebA-Spoof and testing on 11 datasets that include 3D masks, makeup, and attacks made of new materials. The average HTER over the 11 datasets is 11.30% for I-FAS and 18.73% for FLIP. I-FAS Table 2 The same method averages 1.33% in leave-one-out tests on the four older datasets; trained only on CelebA-Spoof and tested on 11 datasets, it averages 11.30%.
FaceShield, from the same year, built 10,000 pretraining samples and 45,000 instruction-tuning samples so the model can judge real or fake, name the attack type, explain its reasons, and point out where on the face the attack is. FaceShield abstract
These are FaceShield's four kinds of answer. Top left judges real or fake, middle left names the attack type, and the bottom marks where the attack is; the reasoning on the right cites lighting, the shape of the facial features, three-dimensionality, and screen edges item by item.
InstructFLIP, from National Taiwan University, splits instructions into content and style. Content instructions ask about the attack itself, and style instructions ask about lighting and camera quality. It also trains only on CelebA-Spoof; its average HTER over seven datasets is 12.68%, against 18.82% for FLIP-MCL under the same conditions. InstructFLIP Table 2
Looking Back: Where Were the Error Rates Measured?
On the four older datasets, 1.33%; on eleven datasets, 11.30%. The two tests differ in both training and test data, so the gap cannot be put down to a single cause. Numbers like O&C&I→M, however, also depend on one more thing, namely the epoch and the threshold at which the error rate is measured.
The SA-FAS paper has a passage on this. Its main table follows SSDG's convention and reports “the training snapshot with the lowest test error,” for example the 16th epoch. The authors considered this to fluctuate heavily on the test set and to hide the real performance you get without access to the test set, so they made a separate table that takes the mean of the last 10 epochs after convergence. SA-FAS §4.2
Each cell gives HTER, AUC, and TPR in that order, with the standard deviation in small type at the upper right. To compare with the main table, start with the HTER in the OCI→M column.
Putting the HTER from the two tables side by side:
With the same methods and the same data, changing how the number is taken moves SSDG-R on O&C&I→M from 7.38% to 14.65%, and SSAN-R from 6.67% to 21.79%. SA-FAS itself goes from 5.95% to 14.36%, though under this measurement it is still the best in all four settings.
Why does picking a snapshot make such a difference? Even if a model's true error rate were the same at every epoch, a test set of only a few hundred videos would make the measured number bounce up and down. Suppose a model's true error rate is 10% at every epoch, and the test set has 40 live videos and 80 attack videos, and simulate the measurements over 30 epochs.
The model has not changed at all. Just picking the lowest of 30 measurements takes the error rate from about 10% to 6.2%.
This convention is written into the official code. After every epoch, SSDG's training script evaluates on the test data of the target dataset, finds the equal-error-rate threshold on that same data, computes HTER with that threshold, and saves the model with the lowest HTER as the best model. SSDG code FLIP's training script follows the same process. Each seed returns the lowest test HTER seen during training, and the five seeds are then averaged. FLIP code FLIP dealt with the problem of “picking the best run,” but the epoch and the threshold are still picked on the test set.
In other words, in the earlier threshold experiment, “choosing the threshold with the new phone's labels” is exactly what this convention does, and so is picking the lowest point in the epoch experiment.
In 2025, researchers from the Federal University of Paraná in Brazil and the identity verification company unico took this on directly at the SIBGRAPI conference's work-in-progress workshop. They add one more dataset as a validation set, for example SiW, use it to pick the epoch and the threshold, and look at the test set only after all training has finished. For SA-FAS and GAC-FAS, another method from 2024, the HTER changes as follows. The left of each arrow is picked on the test set, and the right is picked with SiW, in %; changes for the worse are marked red and changes for the better green: Almeida et al. Table III
| Test dataset | SA-FAS | GAC-FAS |
|---|---|---|
| OULU-NPU | 12.13 → 13.81 | 10.52 → 7.91 |
| Replay-Attack | 9.00 → 21.50 | 5.00 → 8.55 |
| CASIA-FASD | 14.00 → 26.67 | 12.22 → 9.14 |
| MSU-MFSD | 11.43 → 11.43 | 7.92 → 7.31 |
(These are their own reruns; the numbers left of the arrows are not exactly the same as in the original papers.)
SA-FAS roughly doubles on Replay-Attack and CASIA-FASD, while GAC-FAS actually improves in three of the four. After the switch to a validation set, some methods lose a lot and others are barely affected, and a single table makes it hard to know in advance which kind you are looking at.
They also tested the models trained on the four older datasets on WFAS, a dataset collected from the web with 469,920 people and 17 attack types. Both SA-FAS and GAC-FAS land at ACERs between 28% and 33%. Almeida et al. Table IV
Someone actually warned about this long ago. In their 2013 3DMAD manuscript, Erdogmus and Marcel wrote that reporting the best performance or AUC on the test set can be very misleading, and that generalization should be taken as seriously as discriminative power. 3DMAD §VI-B
Back to 2012
Looking back over the whole route, the drop in error rates came roughly from a few sources:
- New cues: texture stops photos and early masks; when masks got realistic, the heartbeat took over; when RGB alone was not enough, depth, infrared, and thermal were added, or researchers simply switched to sound waves.
- New convolutions and supervision: CDC puts LBP's central difference into convolution, and pseudo-depth supervision forces the network to look at the shape of the face.
- Cross-domain design: gather live faces and spread attacks apart, separate out style, and make the direction from live to attack consistent in every dataset.
- Large pretrained models: from ResNet-18 to ViT and CLIP, then to multimodal large language models, the O&C&I→M numbers fell along with each new backbone.
- How it was measured: part of the drop came from picking thresholds and epochs on the test set.
For that last one, the 2012 REPLAY-ATTACK paper had already written down the answer. The training set is for training, the development set is for deciding when to stop, and the test set is only for reporting the error rate.
That 82% of attacks would probably all be stopped today. As for whether the 0.32% is accurate, that will have to be measured on another test set, one nobody has peeked at.
