Deepfakes rely on advanced machine learning architectures, primarily Generative Adversarial Networks (GANs). A GAN consists of two neural networks working against each other: