AI & ML November 8, 2026

How Do Deepfakes Work?

A 10-minute read

Deepfakes use one neural network to capture a face's expression and another to repaint it with a target's identity. Voice fakes need only seconds of audio.

No single frame gives a deepfake away, and nothing in the finished video is a recording of the person being impersonated. A deepfake is re-rendered frame by frame rather than filmed, so what betrays it is never one bad pixel but a pattern spread across many frames: a face that flickers between them, lighting that does not match the neck, a blink that arrives on the wrong beat. That is why the contest between the people making them and the people trying to catch them has never settled.

The short answer

Deepfakes work by separating the performance of a face from the identity behind it. One network compresses a face into a compact description of its geometry and expression, and a second network, trained on the person being faked, paints that description back into an image wearing the target’s features. The same idea applies to sound, where a model learns a voice from a short sample and then generates or converts speech in it, which is why a convincing audio fake needs no footage at all and only a few seconds of recording.

The full picture

The two halves of a face swap

The machinery underneath is an autoencoder, and neural networks of this shape are the same idea used for compression in many other fields. One half, the encoder, takes an image and reduces it to a compact internal representation, a kind of latent space where the essential geometry of a face lives without the details of who it belongs to. The other half, the decoder, takes that representation and rebuilds a picture from it.

Deepfake pipelines exploit this by splitting the identity from the performance. A shared encoder learns to strip any face down to a reusable description. A separate decoder is then trained on the specific person being faked, so that when it receives the description of a face making expressions, it paints in the target’s own features instead. The target’s identity is superimposed on the underlying facial and body structure of the original footage rather than the whole frame being replaced, which is why the background, the clothing and the lighting survive intact. The FaceShifter architecture is a modern example of this arrangement, with an attribute encoder feeding a generator that adaptively blends identity and expression, plus a second refinement pass that repairs the region around occlusions.

Teaching the decoder to look real

A plain autoencoder produces a blurry, averaged version of a face, because the average of many examples of a mouth is a smudge. The fix that made deepfakes credible was the generative adversarial network, or GAN. Two networks are trained against each other. The generator produces fake images, and the discriminator is given real photographs and tries to label which is which. When the discriminator catches a fake, the generator adjusts. The discriminator adjusts in response. Both improve, and the generator converges on images that are hard to distinguish from real ones.

This is a zero-sum game, and it is the reason the offense has stayed ahead of the defense for so long. A detector that finds a specific artifact teaches the generator exactly where to hide that artifact. The history of deepfake research describes the effect bluntly: any time a defect is determined, it can be corrected.

Reenactment: putting expressions on a face

Swapping identities and moving expressions are two different problems, and researchers attacked the second one first. The 1997 “Video Rewrite” system took footage of a person speaking and made them mouth words from a different audio track, learning the connection between sounds and face shape. The 2016 Face2Face system, described in the original paper, pushed this to real time on an ordinary webcam: it tracks expression on both the target video and a live performer, transfers the deformation between them, and re-renders the result so it blends with the real-world lighting of the original scene.

That distinction matters for how you read a fake. A reenactment video keeps the target’s real face and gives it someone else’s expressions. A swap video keeps the target’s real body and gives it someone else’s face. The 2017 “Synthesizing Obama” project is the canonical demonstration of the first kind, and the celebrity face swaps that flooded Reddit in 2017 are the canonical demonstration of the second.

Voice cloning

Audio deepfakes split three ways, and only one of them is the one people usually picture. Replay attacks splice in a recording of the real voice. Synthetic systems generate speech from text, and they follow a classic pipeline: a text analysis module turns the script into linguistic features, an acoustic model predicts how the target speaker would sound those features, and a vocoder turns that prediction into a raw waveform. Audio deepfake research traces the arc from WaveNet, the first network to generate convincing raw audio across many speakers, to systems that clone a specific person from a short sample.

The third mode is voice conversion. It takes real speech and re-renders it in another person’s voice, changing style, intonation and timbre while leaving the words and the language exactly as they were. For a phone call that difference is practical: a conversion pipeline transforms an existing recording rather than generating speech from scratch, so nothing has to be written and scripted first. A 2024 survey of deepfake speech detection catalogs a field built mostly around English text-to-speech, while the broader review of voice cloning notes that detection research on Chinese, Spanish, Hindi and Arabic remains thin, and that models trained on English lose accuracy when tested on other languages and unfamiliar accents. A scam that lands in a language the detector was never built for is harder to catch automatically.

Where the tells come from

No deepfake is perfect, and the failures are systematic enough to be worth understanding. A survey of the field grouped the recurring problems into five categories. Generalization is the need for lots of footage: early models wanted hours of the target before they looked good. Paired training is the need for matched examples of an input and its desired output, which is laborious and does not scale across identities. Identity leakage is the driver bleeding into the output, so the performer controlling the face starts to show through. Occlusions break things, because a hand, a hair, a pair of glasses, or a closed mouth that hides the teeth all create artifacts.

Temporal coherence is the one that matters most for video. A generator working on one frame has no context for what came before, so faces flicker and jitter from frame to frame. Early models gave themselves away with irregular blinking and with the lighting on the face not matching the lighting on the neck. The FaceForensics++ benchmark, which contains more than 1.8 million manipulated images, showed that when video is compressed for the web, those artifacts largely disappear, so a detector that only looks for low-level traces starts to fail. What works better is knowing something specific about how faces and lighting behave, which is also why facial recognition systems and deepfake generators end up in the same literature.

The detector’s losing battle

Meta assembled the DeepFake Detection Challenge dataset with more than 100,000 clips shot from 3,426 paid actors, all of whom consented to have their likenesses altered, and the dataset paper concedes that deepfake detection remains extremely difficult and unsolved. The winning model of that competition was about 65 percent accurate on a holdout set of 4,000 videos. The pattern behind that number is general rather than incidental: detectors learn the fingerprints of the generators they were trained on, and a 2024 survey of deepfake generation and detection reports that state of the art detectors fail to generalize to deepfakes made by generators they have never seen.

That is why the serious responses have moved away from trying to out-guess the fake. C2PA content credentials attach cryptographic provenance to media so a viewer can check where a file came from. In April 2026, Zoom partnered with Tools for Humanity on a feature called World ID Deep Face, which confirms a participant is human in real time by cross-referencing an orb-captured biometric signature, an on-device selfie and the live video frames, and marking verified callers with a badge. Authentication that the person is present beats guessing whether the pixels are real.

Why it matters

In January 2024, a finance employee at the Hong Kong branch of the engineering firm Arup was persuaded to join a video conference call. Everyone on the call looked and sounded real: the CFO, several colleagues, all rendered as deepfakes in real time. The employee, who had initially been suspicious of the call, made 15 wire transfers to five different accounts. The fraud surfaced a week later when the employee contacted headquarters. The MIT AI Risk Database records the loss at roughly $25 million, and notes that the employee overrode a correct instinct in the face of a convincing face and voice. It was not the first time: in 2019 the chief executive of a UK energy firm was impersonated by voice and ordered to transfer 220,000 euros to a Hungarian bank account.

The scale of the fraud economy around this is large enough to distort other numbers. The Better Business Bureau puts deepfake scam losses at an estimated $12 billion globally, and reporting cited in the deepfake overview projects $40 billion within three years and $58.3 billion by 2030 as fraud-as-a-service operations scale, with the average loss per criminal incident now exceeding $500,000. The FBI’s Internet Crime Complaint Center published a public service announcement in December 2024 warning that generative AI lets criminals build plausible material faster than the errors that used to give them away, and its advice is stubbornly low-tech: agree on a secret phrase with your family, hang up and call back on a number you already have, and listen for a tone that does not match the person.

The deeper shift is that people will have less reason to believe anything, whether or not they believe any particular fake. Legal scholars call this the liar’s dividend, and the California Law Review survey that named the term describes it as flowing, perversely, in proportion to the success of public education about deepfakes: the better people get at spotting fakes, the easier it becomes for the guilty to call authentic evidence fake. A survey of 1,403 UK adults published in 2024 found 15 percent reporting exposure to a harmful deepfake, 90.4 percent concerned about their spread, and only 8 percent having used the tools themselves, while most said they were not confident in their own ability to detect one. Article 50 of the EU AI Act now requires deployers of systems that generate deepfake content to disclose that it has been manipulated, which is a disclosure rule rather than a detection rule, and arguably the only kind that scales.

Common misconceptions

“You can tell by looking carefully. The eyes and the teeth give it away.” Those cues were real, but they belonged to specific early generators, and they were patched within months. A study of human detection of deepfakes with 15,016 participants found that ordinary viewers identified sampled manipulated videos correctly 66 to 72 percent of the time, while the leading computer vision model reached 80 percent on those same videos and 65 percent across the full holdout set of 4,000. The same study found that showing people the model’s answer helped when the model was right and made them worse when it was wrong, which is a caution about automated scoring tools as much as about deepfakes.

“A deepfake is a video file.” Most of the damage is done without video at all. Voice conversion can clone a specific person from as little as three seconds of audio, and a call is all that is needed. And the classic viral clips people argue about are often not deepfakes at all: the widely shared footage of Nancy Pelosi appearing drunk was a real speech, slowed down and pitch-shifted, which is a shallowfake, a trick that needed no machine learning whatsoever.

“Once detection tools get good enough, the problem is solved.” Detection is a moving goalpost because it is an arms race, not a measurement. Detectors learn the fingerprints of the generators they were trained against, so they degrade against anything new, and the winning model of the DeepFake Detection Challenge managed only about 65 percent accuracy on its own holdout set. Meanwhile the liar’s dividend does not need a detector to work at all, because it operates by making people doubt real evidence rather than by convincing them of fake evidence.

Key terms

Autoencoder: A neural network in two halves that learns to compress an input into a small internal representation and then reconstruct it from that representation, the way a deepfake pipeline compresses a face and rebuilds it. Latent space: The compressed internal representation a network works in. In a deepfake it holds facial geometry and expression with the identity stripped out, which is what lets one face be swapped for another. Generative adversarial network: Two networks trained against each other, one producing images and one judging them, so the generator keeps improving until the discriminator can no longer reliably tell the difference. Face reenactment: Driving the face in one video with the expressions of a person in another, rather than replacing the identity. Reenactment and face swapping are separate techniques with separate failure modes. Temporal coherence: The requirement that consecutive frames agree with each other. When a generator has no context for the preceding frames, faces flicker and jitter. Voice conversion: Taking existing speech and re-rendering it in another person’s voice while leaving the words and the language untouched. Liar’s dividend: The advantage convincing fakes give to people who want to deny that authentic evidence is authentic, because the burden of proof shifts to the innocent.

Common questions

Can you spot a deepfake by looking for odd blinking or blurry teeth?

Not reliably. Those cues belonged to specific early generators and were patched quickly. A study with 15,016 participants found people were between 66 and 72 percent accurate on sampled manipulated videos, against 80 percent for the leading computer vision model, which managed only 65 percent across the full 4,000-video holdout set.

How much material does a deepfake need?

Audio and video need very different amounts. Voice cloning can produce a convincing imitation of a specific person from as little as three seconds of audio. Early face-swap models needed hours of footage of the target before they looked good.

Are deepfakes detectable?

Partly, and not durably. Detectors trained on one family of generators routinely fail when they meet a generator they have not seen, which is why detection is described as a moving goalpost. For an individual the practical answer is verification outside the video itself, such as a family password or a callback to a known number.

Is a deepfake the same thing as an AI-generated image?

No. An AI-generated image is synthesized from scratch by a model that learned what images look like in general. A deepfake is usually a hybrid: it takes real frames and re-renders the face inside them, so the body, the background and the lighting are genuine while the face is not.

Do deepfakes make real video evidence worthless?

They make it contestable. Legal scholars call this the liar's dividend. Once the public knows convincing fakes exist, someone facing damaging authentic evidence can dismiss it as AI-generated, and the cost of proving authenticity falls on the person who did nothing wrong.

That's the distilled version.