Listen

Description

Deepfakes are an AI technology that makes it look like someone said or did something they never actually said or did. Youโ€™ve probably seen a few online. These videos may look real, but they are completely fake. Behind this technology is a powerful deep learning model called a Generative Adversarial Network, or GAN for short.

To me, GANs work like a fascinating game, especially the way theyโ€™re trained. Come with me, let me explain.

A GAN is made up of two networks:

They act like two players in a cat and mouse game, each one trying to outsmart the other.

At first, the Discriminator is trained on real data (the training data). Once it has a good understanding of what real data looks like, the Generator is brought in.

Now hereโ€™s the fun part. The Generator is not trained with the real data. Instead, it is given some random noise (just numbers) as input. Its challenge is to turn that random noise into something so realistic that it fools the Discriminator into thinking it is real data.

๐—ฆ๐—ผ, ๐—ต๐—ผ๐˜„ ๐—ฑ๐—ผ๐—ฒ๐˜€ ๐˜๐—ต๐—ฒ ๐—ด๐—ฒ๐—ป๐—ฒ๐—ฟ๐—ฎ๐˜๐—ผ๐—ฟ ๐—ฒ๐˜ƒ๐—ฒ๐—ป๐˜๐˜‚๐—ฎ๐—น๐—น๐˜† ๐—ฝ๐—ฟ๐—ผ๐—ฑ๐˜‚๐—ฐ๐—ฒ ๐—ฑ๐—ฎ๐˜๐—ฎ ๐˜๐—ต๐—ฎ๐˜ ๐—น๐—ผ๐—ผ๐—ธ๐˜€ ๐—ฟ๐—ฒ๐—ฎ๐—น ๐—ฒ๐—ป๐—ผ๐˜‚๐—ด๐—ต?

Thatโ€™s the beauty of the setup. Every time the Discriminator catches a fake, the Generator learns from that mistake and tries again. The Discriminator gets better at spotting fakes, and the Generator gets better at creating more convincing ones. They both improve by competing with each other.

---------------

Pre-order my book "AI, Machine Learning, Deep Learning: From Novice to Pro" here: https://a.co/d/4cRP3oM