So our next speaker is Sway Liu from SUNY Albany. The code that you saw, he's going to talk you through, but that defake, that was him and his grad student Lee and our volunteer Barton who did that. And just a short reminder, if you're going to drift in and out of talks, five o'clock AI unwind time. We have some really cool kind of hands-on, you can try some of this stuff yourself from five to seven today. Sway? Thank you very much. All right. All right. All right. Good morning, everybody. This is my first DiveCon, but it has already been very exciting. So we took the full credit of making this movie of Tom Perez. And in doing so, we have seen a lot of videos of DNC chair Tom Perez. My apologies that I can't come to Las Vegas. However, I did want to share with you what we at the DNC are doing to increase awareness. Well, so I'm just saying we have done, we have actually generated several, quite a few videos with different reenactment from Bob to Tom Perez. And this one is actually my personal favorite, because the face is not as stern. And it's quite nice. But this showcase what we mean by deepfake. You see that here, we basically transform the facial expression and the facial movements from one person's face in this particular case, Bob's face, to another person's face, in this case, Tom Perez. So this is what we call deepfake. And this is all done by an algorithm. It's done by an AI algorithm. Now imagine if we have this kind of technology, we can do a lot of things. Some are interesting, some are bad. For instance, we can make Nicolas Cage basically play whatever role he wants to play, be anybody he wants to be. More interestingly, we can make President Obama to sing a song that he may want to sing, but never get the chance to sing for us. Or, we can make Mark Zuckerberg to say something that he will never tell us. I wish I could keep telling you that our mission in life is connecting people, but it isn't. We just want to predict your future behaviors. Spectre showed me how to manipulate you into sharing intimate data about yourself and all those you love for free. The more you express yourself, the more we own you. So, this is the kind of technology that, you know, when we actually work on this project, make a lot of sleeping nights for me, because this is, on the one side, very, very fascinating. On the other side, also very scary, right? Because we have done the ability to put any words into anybody's mouth at any place under any circumstance. So, this is what we call generally deepfake. But as a researcher, as a computer scientist, my interest lies in, you know, not just feeling this is an interesting technical innovation, but also considering its negative social impact, what can we deal with it, right? So, the first thing we actually did, we started working on this problem early on February last year, when only a few news coverage about this phenomenon started. The first thing we did is actually we implemented our own version of the deepfake software, and we keep improving, because it's our belief that only after we understand how this thing is generated, can we actually detect an effective, defensive measure for that. So, before I talk about our detection work, let me go through very quickly, in a sort of non-technical way, how this deepfake works, and some details under the hood. So, the deepfake software starts with a video of one person. In this case, for instance, the video of Bob. So, everything from now on will be automatic, done by the software. So, what it does first is actually run this automatic face detection algorithm to actually locate the face. Once the face is detected, it will be rectified. So, it's a technical term just to say, we make the face in a sort of normalized orientation. And this kind of rectified faces are the faces that a deep neural network can use to generate a new face. And then all the magic happens within this black box of a deep neural network. We just call it a deepfake model. And within this model, there are actually two corresponding neural networks. One is called the encoder, the other is called decoder. The way to understand this is to make analogy of language translation. Now, think about, you have a sentence in English, and you want to translate that English into another language, say Chinese. The way we do the translation is, we understand the sentence first, separate the language itself from the message. And then, we discard the language and reproject the message into another language, in this case, Chinese. So, the message was kept, but the language was changed. The same thing happens here for deepfake. We treat the faces, the identity of the person, as the language we talk about. And the facial expressions are the messages we want to keep. So, this neural network, this encoder and decoder, just does that. So, it actually strips off the identity from the faces and leaves only the essential facial expression into something called the code. That's the thing in between. And the decoder will take the code and interpret it using a different person's identity or different language. Then, you get a face of another person, but with the same expression. Once that's finished, we reverse the transform, extract the original face, and put it back into another video. Then, we get a deepfake video. So, this is what we call a synthesized process. But, to get the neural network, we need to train it. The way of training is, we need a lot of images of both subjects. And then, we just train. This is called self-training, self-regulated training. And the idea is, for the two subjects, they're going to share the same encoder. Because the encoder wants to extract the essential facial expression regardless of identity. And then, we'll just use the encoder and decoder to try to recreate the original face. And then, measure their differences. After rounds and rounds of this training, we'll get this pair of encoder and decoders. So, the two persons will share the same encoder, but each of them will have an individual decoder. Now, the most time-consuming part of this whole process is training. So, what I'm showing you here is a fast-forwarded process of training. As you'll see, when we got the initial neural network, it doesn't have a very good face. But as the training goes forward, I'm actually 5,000 times maximizing this whole process. Because even on a very powerful GPU server, it will still take about 24 to 36 hours to actually generate a decent model here. But once this model is trained, you're basically done. What we do is go for the synthesizer process, provide a video, and then run through the neural network model, generating new faces and make a new video. Now, this kind of face manipulation technology for images or videos actually exists for many years. As we have seen a lot of movies from Hollywood, like Forrest Gump, we have seen this kind of technologies. But what has been changed with this AI, this new technology, new generation of AI, is everything now I'm talking about on this slide can be done completely automatically. So, all you need to do as a user is to buy a powerful computer with GPUs, have access to internet, get many images of the person you want to swap faces with, and then you can just let this algorithm run and go do something else, you know, drink a cup of coffee, watch a movie. Once the training converges, you come back, harvest the model, and you can start making fake videos. Some of those videos I've shown before, most of them, we made them ourselves. We have probably the most crafted deepfake generation code in the world. But we don't publicize it because we're working mostly on the detection side. We understand the potential negative impact of this. But nevertheless, I think this is quite accessible, and everybody potentially can use that, especially the crowd in this room. So, this deepfake phenomenon has got a lot of media coverage ever since the first was spotted in December 2017, when the first round of fake videos, mostly in the form of pornographic videos, was seen on Reddit. Actually, the term deepfake comes from an anonymous hiker on Reddit. Even to this day, we don't know his or her real identity, but the account name is called deepfake. So, ever since that name stuck with this line of technology. So, the first curiosity, because I've been working in this area called the digital media forensics for almost 20 years. So, the first time I saw this phenomenon, the question I asked myself is, can we actually do something to stop the kind of sprite and reestablish some of the trust to the online videos, medias we have, using some of the detection technologies. So, we have been doing this. That's how we started. We started getting our own copy of deepfake code. We started generating some deepfake videos. And then, we tried out a bunch of different methods. So, the first successful detection method, and it also caught a lot of media attention, is one based on a very simple observation. The first round of deepfake videos do not blink a lot. This is what, in Tom's video, he talked about. The reason is that the first generation of deepfake neural network model was trained based on images collected from the internet. So, if you want a small face of Tom Priz, for instance, you go on Google, you do an image search, you get thousands of images of Tom. But the problem there is, those images are mostly official portraits. And when you have portraits photos, you rarely have people close their eyes. Because the photographers will take them down, as they're not good photos. And this kind of bias actually will slip through the training of neural network. It's almost like teaching a baby to recognize apples all the time, and then suddenly you show him an orange. And he will have no idea there is a kind of fruit of orange exists there. Now, this is a simple observation, and we developed a detection algorithm here. We developed a simple algorithm using another deep neural network. We're just looking at the eyes of the subject. And each time the eye blinks, the network actually will give us a signal. It turns out that all the deepfake videos we have seen since June 2018 does not have these characteristics. But there are two messages we learned from this experience. Number one, the other side of synthesis, people from the fake video synthesis, learned very quickly about this. Ever since we put up a paper on archive, we started to get videos and emails from hackers telling us they can actually synthesize blinking eyes. And it's actually not that hard, because the problem is based on the bias of training data. You can simply fix this by inserting images with closed eyes, or just train the neural network with videos. But we also get another important insight here, that is, those fake videos are detectable. It is possible to look for those Achilles heels of the deepfake video generation process to understand how to detect them. And that's what we did subsequently. We want to look for something that's more fundamental, harder to revert, and more intrinsic to the generation pipeline. So the first thing we look for, again, is because we have this code, we revisit the whole synthesis pipeline. And we see that one of the biggest, one of the important stuff there is whenever a new face is generated, it needs to be transformed and put it back into the original, into the video to generate a fake one. And this is because the neural network can only understand face with that standard orientation, while the actual face in the videos or images come from different orientations, different distance to the camera, represented at different sizes of the face. So this needs to be adjusted, and that adjustment actually leaves some tractable marks that can be detected using another deep neural network. And this is exactly what we did. So we developed another deep neural network that is actually only looking for that kind of artifacts from those images. This kind of artifacts actually is visible if the transform is severe. You may see deep fake videos with over smooth skins or some jagged areas near the boundary of the face. Those are actually artifacts of this kind of transform. On the other hand, if we do this more subtly, gently, and do some post-precising to remove those artifacts, it would be not easily noticeable by naked eye, but this algorithm can still pick up that. Another important type of flaws of deep fakes are from geometry. So we know that a real person's face moves with the hat, of course, because face is part of the hat. But when we actually make a fake video, the face is actually grafted on top of the hat. And it doesn't move in the same way. And to actually see this better, we use an estimation of the hat orientation. So basically, there is a technology in computer vision that we can use to estimate, based on a two-dimensional face image, where the hat is pointing to in a three-dimensional space. I'll cut the story short. We use that technology to estimate the orientation of a face. And then for a real image, because as I mentioned, face moves with hat, what we should expect is when we estimate that orientation using only the face part, or use the whole hat, the two directions that the hat is pointing to, estimated this way, should be fairly consistent. If this is a fake face, on the other hand, whenever we turn around from the camera, the face is not generated by first doing a 3D transform and then projected on the 2D camera plane. It was done only by a 2D transform on the image plane and pasted on the hat to synthesize this 3D generation process. So when we actually do that estimation of the height orientation, the two directions will have much better, much bigger differences. Now it turns out that this difference is significant enough whenever we have hat that's moving around away from camera, we can use that to detect if this video is a real video or is a fake video. So based on this kind of artifacts, or this kind of problems of the deepfake generation pipeline, we actually developed a new detection algorithm. So we actually developed a new type of detection algorithm and we actually tried on not only deepfake videos we generated, but also deepfake videos we collected online. So we have our own collection of known deepfake videos downloaded from YouTube and anywhere else, and we tried this and this seemed to work more reliably. And even better, the kind of artifacts I just talked about are more fundamental or intrinsic to the processing production pipeline of deepfakes, and they are much harder to fix. At least we cannot fix them easily by just augmenting our training data set. Now, everything I have talked about so far is about the video deepfakes. And one of the problems is the audio part is a gap. If we actually replace the original video of Bob's voice in the Tom Price video with Tom's real voice, then that will actually make it more effective as a measure of disinformation. So we actually look into this problem and it turns out that... It turns out that audio deepfakes have also made a very fast stride in recent years. So what I have just played is a synthesized audio of podcast host Jay Rogan's voice. Healthy local ingredients, farm fresh ingredients. It's his real voice. If you do not pay a lot of attention to it, you probably will not be able to tell which one is real, which one is not. So this is something we look forward down the years as one of the other important directions to go in terms of detection technology. So I don't have time to go into some of the details, but one of our very recent work presented last month at the conference is targeting this audio deepfakes. We use a special type of stethoscope features, which turns out to be quite effective for detection. And just using a two-dimensional feature characteristics features, we can do an effective classification between real human voice and AI synthesized voices. All right. Now, so far I've been talking about detecting deepfakes, but as Bob mentioned, even we can do this detection in a timely manner, even if we can do this in a very reliable way, still the damage has cost. Once a deepfake video is put on the Internet, the effect is very hard to remove. And fact checking is always lagging behind. So we have to do something more active, I would say more proactive, to stop this whole problem. So this is one of our most recent work on obstructing deepfakes, which means we want to make the generation of deepfake videos harder, more time consuming. It shouldn't be just a matter of getting a big computer, getting a lot of images, and then throw out the computer, let it run for a couple of hours, you can generate those videos. We want this to slow down, we want to sabotage the whole process. So we go back to check this whole production pipeline, and we're trying to figure out if there's a place we can actually do such. It turns out that one of the key steps of all deepfake generation, including some other types of deepfakes, like again, generated images, are all based on the fact that we can use automatic face detection software to get our faces. So when we realize this fact, I feel scary, because it's almost like we're handing all those hackers for free, voluntarily, our data for them to abuse. We upload our images, videos, to YouTube, Instagram, Twitter, Facebook, without knowing that this potentially could be used to make fake videos targeting us. So we want to protect a level of protection for the general users for this kind of attack. And the idea here is to sabotage the face detection stuff. And the technology of face detection has been very sophisticated. Taking off your cell phone, pointing to a scene full of people in a room like this, you'll see all those little white boxes showing up, right? Those are face detection actively working, detecting faces. But those algorithms are algorithms. They do not recognize faces as humans. Eyes will recognize this as a person, this is our eyes, this is our nose, this is our mouth. It recognizes faces based on certain patterns in the image signal. And those certain patterns actually can be disturbed and can be distorted if we can imbibe some kind of invisible pattern noise into the images. And we call those adversary perturbations. The idea is the following. We're going to imbibe this kind of noise, which are generated by an algorithm we recently developed, into an image. Say you want to upload your image or video to YouTube, to some social platform. If this algorithm is implemented there, it will become another little checkbox under the user agreement where you check and say, protect my privacy from automatic face detections. Once you do that, this adversary perturbation noise will be imbibed into that image. Now the interesting thing about this is it actually takes on algorithms, but not human viewers. So this noise I did there is very subtle, so when you share your photo with your friends, they still recognize your face, and they won't see a lot of visual artifacts there. But when this image is presented to a face detector, the face detector will have a lot of trouble to find the face. Either it will not find the face at all, or it will find some places where it looks like the face, but it's actually not. Now if we do this, you can imagine a hacker want to generate deepfake, collecting 5,000s of images of somebody from Facebook, run automatic face detection algorithm on that, and all the faces, most of the faces are wrong or missing from the detection, then the only option is actually go back and do this by hand. And I can tell you, cropping out face by hand, which I did a lot for annotation purposes, is really not a fun job of the world. It's tedious, it's boring, and you get pretty much exhausted after 10 minutes of doing that. So by doing this, we want to protect one layer of protection for the consumers, for the users, from this kind of attack. So here, we have a prototype for this algorithm. Let me see if I can find it. Right, so this is a demo showing that algorithm working. The image on top are the original face detection results. The image in the middle are actually the images with the adversary perturbation. And the very bottom line are the adversary perturbation, but to be able to see that, we actually enhance it by 30 times. Otherwise, you won't even see it. And this also works for videos. Again, so face detection will fail there. Now, I hope in this very short talk, I convinced you that... Well, I think everybody believe this already. AI algorithms will cause a lot of problems down the road, right in the rive of disinformation. And deepfakes can actually cause damage. We have talked a lot about the political consequences of maliciously made deepfake videos. But I also have personal experience working with victims of something called revenge pornography. Those are deepfake videos generated by posting faces of ex-spouse or mostly girlfriend's face onto pornographic video and distributed that. And the kind of psychological damage to the victim is just extreme. So I think there is a real danger there. And there's a lot of damage this kind of technology can cause. So we should take this problem seriously. Now, from the technical side, we have been working very hard to develop detection techniques to give us tools to detect this kind of fake videos. And also, hopefully, slow down the process of making such fake videos. But I don't believe this problem can only be solved with technology. As this crowd of audience in this room knows, this is a complicated problem. Like any complicated disease, it needs a combined solution. We need a solution from technology. We need a solution from the government. We need responsibility from the social platform. We need more user education and coverage from the media. And we also need, even from ordinary users' point of view, to be more aware of this problem and be more vigilant whenever we want to retweet an interesting image or video to our friends. So with that, that's the end of my talk. Thank you very much for your attention. We'll have time for questions? Okay. So, yeah, if there's any questions from the audience. Go ahead. The question is, can this perturbation technology be used in the physical world, right? So like in the hardware. Potentially it can. You can actually, you know, it's possible to print out these patterns. We actually thought about this. This is more like a sci-fi. But you can actually print out some kind of pattern and paste it on your face. This may actually work, but we never tried this. I think it would be difficult because, again, on images you don't have all these distraction factors of lighting condition, you know, face orientation. In concept it's certainly doable because all that matters is what are the signals being seen by the face detection algorithms. I guess the question is, well, there are two parts of the question. The first question is whether we use GAN in this model. The answer is no. We don't use GAN. GAN is a more catchy word, but the problem is GAN is much harder to use and train. It turns out that this deep fake or detection can be done all by just plain CNN, which is easier to work with. The second question is whether there are countermeasures to the detection. I think that will be always the case. It's a cat and mouse kind of game. Whenever we get better in detection, the follower is getting better once they actually know about this. And it's not hard. Because we want to publish our results. We put our paper on archive, we publish in conferences. They actually read the paper. If they're technically capable enough, they can implement some countermeasures. So this actually is the very kind of nature of this kind of work. There's always a sort of competition on both sides. But on the other hand, I do have to say that unfortunately, defaulters have got the upper hand in many cases. Because they are on the side with resources, with support, with incentives. For us, I mean, the only thing we get any recognition is we publish a paper. And even like a couple years ago, this line of research has a lot of trouble getting federal funding. Because it was not deemed as a very important area. But everything has changed so far. DARPA has a media forensic program, which we're part of it. So I think people are taking more, especially people like the audience in this room, taking more attention of this problem. I think the situation will change for better. That's a good question. The question is, will this cause some false positives? When some non-defect related operation was performed on the video. Like just remove a little artifact, like remove a skin imperfection digitally. We haven't really tried that. But my belief is it won't cause a huge problem there. Again, because we're looking for that particular kind of artifacts. And the artifacts we look for at a bigger scale, not just at the local region. The other word to say is, if somebody only defect, only change a part of the face, a small part of the face. This algorithm may not be very effective. Because we look for the whole face. But that's always the case. That's why I think the solution should not only come from technology. Because there are cases we misdetect. There are cases we have false positives. So it's not perfect. But this is an ongoing battle there. Yes, I think definitely. We're starting to... let me repeat the question. The question is, there is a competition between folders and forensic detectors. Is there also a similar competition between this perturbation, this obstruction technique with the folders? And the answer is definitely yes. So this is only for unaware folders. So if they do this without knowing the existence of this technology, then they can do that. But once they know about this, they can certainly do something to remove this kind of adversary perturbations. It's actually fragile. So you can do something like a low-pass filtering. You can remove that. So we are just raising the bar here. We're not trying to eliminate the making of fake videos. Because I think that's not possible. Like Pandora's box, once it's opened, there's no way we can come back. But on the other hand, we do want to raise the bar so that it will not be as easy as somebody just running the software on the computer. One more question. I only have time to take one more question. Go ahead, please. Sorry. So the question is, what I've been discussing here are mostly what I call passive detection techniques. Or protection scheme is also, in some sense, is passive, which means we know only what are fake. We don't know if it's true. To actually guarantee the authenticity of each media, we can do what you suggested. And this is actually a very active line of research called digital watermark. And most recently, people take advantage of the blockchain technology, proposing the idea that you can actually invite something into an image or video, authenticating the maker of the video, the make and model of the camera, and day and time, and all this important meta information that can be used for the authenticity. Now, this idea has been around for almost like 30 years. Ever since DVD becomes a thing, people want to protect copyright, they do this. The problem is, again, there's a scale problem. We have to do this for every... we can do all this with new devices. That probably is not a problem. But to actually add this kind of watermark to all existing devices, that's a huge amount of work. The other thing is, these watermarks are also easy to remove. So it's not a foolproof, a bulletproof solution either. But as I mentioned earlier, I think the solution must be something combined together. We have the digital watermark, we have detection technology, we have the observation technology, we have the detergent measures, we have legislation, we have media coverage. All this together work for the goal to reduce, to sort of control this problem. Thank you very much.