Inside the world of AI that forges beautiful art and terrifying deepfakes

Generative adversarial networks, or GANs, are fueling creativity—and controversy. Here’s how they work.