1 00:00:03,660 --> 00:00:06,460 I am very happy to have this opportunity to communicate with you in DEF CON. 2 00:00:08,080 --> 00:00:10,600 I want to talk to you about the area of AI security that I have been studying. 3 00:00:12,240 --> 00:00:14,780 Those of you who are going to the bathroom, don't worry, take your time. 4 00:00:15,060 --> 00:00:16,400 This PPT will take a long time. 5 00:00:19,960 --> 00:00:22,180 Next, I will briefly introduce our team. 6 00:00:22,520 --> 00:00:24,860 We are the security lab under Baidu Security Department. 7 00:00:26,240 --> 00:00:34,220 My team mainly studies the areas related to AI security, including AI model defense and AI model protection. 8 00:00:36,200 --> 00:00:38,620 Baidu Security Department has opened a lot of open source software. 9 00:00:38,820 --> 00:00:41,360 Here are a few of the most important ones. 10 00:00:41,620 --> 00:00:44,080 One is the ADVBOX introduced this time. 11 00:00:44,080 --> 00:00:46,560 It is actually a tool box for AI model security. 12 00:00:47,340 --> 00:00:50,380 What Mr. Ma just introduced is the T-shirt that can be hidden. 13 00:00:51,080 --> 00:00:53,680 Including the face changer that we talked about later, 14 00:00:53,820 --> 00:00:54,840 it is all based on this tool box. 15 00:00:54,860 --> 00:00:58,500 If you are interested, you can download this tool box and play with it. 16 00:00:58,640 --> 00:01:01,840 The mainstream deep learning models should all support it. 17 00:01:01,840 --> 00:01:05,140 It is also the only AI model attack box that supports PIDO. 18 00:01:05,360 --> 00:01:07,440 The rest are MesaLog and MesaLink. 19 00:01:07,680 --> 00:01:11,680 The other one is OpenRASP, which we have used a lot. 20 00:01:11,680 --> 00:01:12,500 It is also developed by our team. 21 00:01:13,040 --> 00:01:15,720 It is a next-generation WAF engine. 22 00:01:17,680 --> 00:01:19,220 Next, I will briefly introduce myself. 23 00:01:21,400 --> 00:01:24,440 My ID is Douge, and my real name is Liu Yan. 24 00:01:24,440 --> 00:01:25,840 When I first came up with this name, 25 00:01:26,080 --> 00:01:28,440 I had a simple understanding. 26 00:01:29,740 --> 00:01:32,580 All the girls in the university are good at getting married. 27 00:01:32,580 --> 00:01:34,940 All the boys in the university are not bad at getting married. 28 00:01:35,020 --> 00:01:37,080 So I named myself Douge. 29 00:01:37,640 --> 00:01:40,960 I am the person in charge of the AI model team. 30 00:01:41,840 --> 00:01:44,160 I used to study a lot about the security of the outside world. 31 00:01:44,440 --> 00:01:46,160 In recent years, I have been studying some areas related to AI security. 32 00:01:48,060 --> 00:01:49,260 I have written some books for myself. 33 00:01:50,120 --> 00:01:51,600 I am an experienced author. 34 00:01:51,960 --> 00:01:53,060 I have read some books. 35 00:01:53,060 --> 00:01:54,200 If you are interested, you can have a look. 36 00:01:54,840 --> 00:01:56,720 Of course, our team is still recruiting. 37 00:01:57,020 --> 00:02:00,160 If you are interested in joining our team to study the security of AI, 38 00:02:00,260 --> 00:02:01,100 you can scan my QR code. 39 00:02:02,800 --> 00:02:06,680 Today, we are going to talk about how to attack the cloud with a black box. 40 00:02:09,720 --> 00:02:11,000 How do we understand this problem? 41 00:02:11,720 --> 00:02:13,620 We know that in the early days, 42 00:02:13,960 --> 00:02:15,300 our AI models were all local. 43 00:02:15,840 --> 00:02:17,860 For example, some AI models on our mobile phones 44 00:02:17,860 --> 00:02:19,260 can detect human faces and voices. 45 00:02:20,080 --> 00:02:22,760 But training a model and operating a model 46 00:02:23,860 --> 00:02:25,260 requires a lot of time and energy. 47 00:02:25,260 --> 00:02:26,740 Therefore, the most popular way 48 00:02:26,740 --> 00:02:29,280 is to put my AI model directly on the cloud. 49 00:02:29,720 --> 00:02:31,480 This way, I can use a lot of mobile devices. 50 00:02:32,860 --> 00:02:35,520 Many developers can also use our AI capabilities directly. 51 00:02:35,520 --> 00:02:38,300 They do not need to deploy a set of AI framework locally. 52 00:02:38,300 --> 00:02:39,380 Here are some simple examples. 53 00:02:39,560 --> 00:02:40,400 For example, your audio box. 54 00:02:40,560 --> 00:02:42,540 The content of what you say to the audio box 55 00:02:42,540 --> 00:02:45,120 or other applications you have developed 56 00:02:45,120 --> 00:02:46,380 can be analyzed using the cloud API. 57 00:02:47,320 --> 00:02:49,340 You can analyze what content is in the picture 58 00:02:49,340 --> 00:02:51,320 and what image is in the image. 59 00:02:52,120 --> 00:02:53,040 This is a cloud application. 60 00:02:53,060 --> 00:02:53,860 This is a cloud AI API. 61 00:02:54,360 --> 00:02:55,600 Today, we are going to talk about 62 00:02:55,600 --> 00:02:59,060 how to attack the cloud AI API 63 00:02:59,060 --> 00:03:00,140 with a black box. 64 00:03:00,560 --> 00:03:02,100 The general idea is that 65 00:03:02,100 --> 00:03:03,460 for example, I want to throw a picture 66 00:03:03,460 --> 00:03:05,040 into the cloud to predict. 67 00:03:05,240 --> 00:03:08,060 I add a certain disturbance on the picture 68 00:03:08,060 --> 00:03:10,660 to see if I can deceive the cloud API. 69 00:03:11,120 --> 00:03:11,860 For example, 70 00:03:12,120 --> 00:03:15,300 if I normally throw a picture of a cat, 71 00:03:15,300 --> 00:03:17,380 it returns me a cat probability, 72 00:03:17,520 --> 00:03:18,420 for example, 0.99. 73 00:03:18,960 --> 00:03:22,500 If I carefully add some disturbance 74 00:03:22,500 --> 00:03:22,740 on this picture, 75 00:03:23,060 --> 00:03:24,340 it may turn into something else. 76 00:03:24,680 --> 00:03:25,720 For example, a baked bread machine. 77 00:03:25,960 --> 00:03:28,000 This is an approximate structure. 78 00:03:29,560 --> 00:03:30,880 Next, we will briefly introduce 79 00:03:30,880 --> 00:03:32,480 different attack modes. 80 00:03:32,980 --> 00:03:34,200 In the attack AI model, 81 00:03:34,660 --> 00:03:36,800 the simplest mode is the white box attack. 82 00:03:37,020 --> 00:03:38,360 The so-called white box attack 83 00:03:38,360 --> 00:03:39,920 is what I know about the entire AI model. 84 00:03:41,200 --> 00:03:42,760 Whether it is its network structure 85 00:03:42,760 --> 00:03:44,380 or even the parameters of each layer, 86 00:03:44,380 --> 00:03:45,520 I know them all. 87 00:03:45,520 --> 00:03:49,300 And I can visit its input without any restrictions. 88 00:03:49,300 --> 00:03:50,380 This is a very important point. 89 00:03:50,380 --> 00:03:52,220 Therefore, the white box attack 90 00:03:52,220 --> 00:03:54,120 is relatively less difficult. 91 00:03:56,000 --> 00:03:57,100 A little bit more difficult 92 00:03:57,100 --> 00:03:59,000 is the so-called black box attack. 93 00:03:59,200 --> 00:04:01,420 First of all, I don't know 94 00:04:01,420 --> 00:04:03,120 what the model of my attack looks like. 95 00:04:03,120 --> 00:04:04,340 I don't know its structure 96 00:04:04,340 --> 00:04:05,520 or parameters. 97 00:04:06,300 --> 00:04:07,460 The only thing I can do 98 00:04:07,460 --> 00:04:10,760 is to visit its input without any restrictions. 99 00:04:10,880 --> 00:04:12,920 Of course, this is a relatively broad condition. 100 00:04:13,260 --> 00:04:14,700 What we can introduce later 101 00:04:14,700 --> 00:04:15,620 is that when attacking the cloud, 102 00:04:16,280 --> 00:04:19,480 it is actually a special black box attack, 103 00:04:20,380 --> 00:04:20,720 which is even more difficult. 104 00:04:21,000 --> 00:04:22,380 In addition to that, 105 00:04:22,460 --> 00:04:24,380 I don't know the structure of the model 106 00:04:24,380 --> 00:04:25,140 or its parameters. 107 00:04:25,440 --> 00:04:27,100 I even have to go through 108 00:04:27,100 --> 00:04:29,080 an unknown pre-processing process. 109 00:04:29,280 --> 00:04:30,440 For example, a picture that I recognize 110 00:04:30,440 --> 00:04:33,540 may be erased, stretched, 111 00:04:34,180 --> 00:04:36,000 or a picture that has been taken out of the middle. 112 00:04:36,000 --> 00:04:36,800 This will all happen. 113 00:04:37,880 --> 00:04:39,860 There is also a very important point. 114 00:04:39,960 --> 00:04:41,040 When I visit the cloud, 115 00:04:41,300 --> 00:04:42,320 I visit it through the network. 116 00:04:42,740 --> 00:04:48,380 Therefore, my visits to it 117 00:04:48,380 --> 00:04:49,820 will also be limited. 118 00:04:50,040 --> 00:04:51,200 Therefore, it is very difficult 119 00:04:51,200 --> 00:04:51,660 to attack the cloud. 120 00:04:53,340 --> 00:04:54,080 What will this cause? 121 00:04:55,600 --> 00:04:57,680 It will give us a feeling of error. 122 00:04:57,680 --> 00:04:59,160 I thought that if I put the model 123 00:04:59,160 --> 00:05:00,140 on the cloud, 124 00:05:00,420 --> 00:05:01,860 it would be much safer than putting it in the local area. 125 00:05:02,780 --> 00:05:04,100 It seems to be logical. 126 00:05:05,340 --> 00:05:07,280 But we will prove later 127 00:05:07,280 --> 00:05:09,420 that this wrong sense of security exists. 128 00:05:11,560 --> 00:05:12,240 By the way, 129 00:05:12,280 --> 00:05:13,320 the picture just now 130 00:05:14,320 --> 00:05:15,960 seems to be the picture 131 00:05:15,960 --> 00:05:17,920 that Mr. Duan introduced 132 00:05:17,920 --> 00:05:18,460 at the conference. 133 00:05:18,620 --> 00:05:19,680 The meaning of this picture 134 00:05:19,680 --> 00:05:23,280 is that as a intellectual, 135 00:05:23,680 --> 00:05:26,360 he has a duty to expose the dark side of society. 136 00:05:26,500 --> 00:05:27,840 Of course, this is a big deal. 137 00:05:27,900 --> 00:05:28,380 For me, 138 00:05:28,580 --> 00:05:30,260 as a security worker, 139 00:05:30,560 --> 00:05:32,020 we actually have a duty 140 00:05:32,020 --> 00:05:33,620 to expose the existence of loopholes. 141 00:05:33,620 --> 00:05:35,920 Because you only accept the existence of loopholes 142 00:05:35,920 --> 00:05:38,080 to be able to really push loopholes to repair. 143 00:05:41,580 --> 00:05:43,000 Next, we will introduce 144 00:05:43,000 --> 00:05:44,240 the form of black-and-white attack. 145 00:05:45,960 --> 00:05:47,020 Because it is black-and-white, 146 00:05:47,080 --> 00:05:48,500 we don't know the structure of the model, 147 00:05:48,580 --> 00:05:49,000 we don't know the parameters. 148 00:05:49,420 --> 00:05:51,580 Therefore, the most natural idea 149 00:05:51,580 --> 00:05:52,900 is that we can only attack it 150 00:05:52,900 --> 00:05:55,020 by constantly trying. 151 00:05:55,400 --> 00:05:57,820 Therefore, the simplest and most common 152 00:05:57,820 --> 00:05:58,560 way of black-and-white attack 153 00:05:58,560 --> 00:05:59,760 is to make an appointment. 154 00:06:00,540 --> 00:06:03,120 Our understanding of the structure of the model 155 00:06:03,120 --> 00:06:05,760 comes from my continuous attacks 156 00:06:05,760 --> 00:06:07,640 or my continuous visits. 157 00:06:07,920 --> 00:06:09,300 During many visits, 158 00:06:09,600 --> 00:06:11,920 I constantly understand the structure of the model 159 00:06:11,920 --> 00:06:13,100 and even its parameters. 160 00:06:15,960 --> 00:06:16,780 However, when I attack it, 161 00:06:17,060 --> 00:06:18,360 I have to go through many visits. 162 00:06:19,080 --> 00:06:21,300 Therefore, based on the attack of the visit, 163 00:06:21,300 --> 00:06:23,300 I need a large number of visits 164 00:06:23,300 --> 00:06:24,940 to master the structure of the model. 165 00:06:25,220 --> 00:06:26,600 A simple example is that 166 00:06:26,600 --> 00:06:29,360 if I want to generate a low resolution attack image, 167 00:06:29,540 --> 00:06:31,100 I may need thousands of visits. 168 00:06:31,440 --> 00:06:34,020 If I want to generate a high resolution image, 169 00:06:34,220 --> 00:06:35,100 I may need 170 00:06:35,100 --> 00:06:37,460 tens of thousands of visits 171 00:06:37,460 --> 00:06:38,400 or even millions of visits. 172 00:06:39,200 --> 00:06:40,380 Here is an example. 173 00:06:41,420 --> 00:06:42,660 In a paper, 174 00:06:42,660 --> 00:06:44,620 the success rate of the attack 175 00:06:44,620 --> 00:06:46,200 is 95%. 176 00:06:46,200 --> 00:06:47,660 However, every visit 177 00:06:47,660 --> 00:06:49,200 requires 100,000 visits. 178 00:06:51,140 --> 00:06:52,840 This leads to two problems. 179 00:06:53,040 --> 00:06:53,580 One is that 180 00:06:53,580 --> 00:06:55,280 the number of visits is so large 181 00:06:55,280 --> 00:06:57,460 that the cloud API 182 00:06:57,460 --> 00:06:58,480 limits the number of visits. 183 00:06:59,020 --> 00:07:01,500 The other reason is that 184 00:07:01,500 --> 00:07:02,140 it is very expensive. 185 00:07:02,240 --> 00:07:02,440 Why? 186 00:07:02,740 --> 00:07:04,880 Because every visit is charged. 187 00:07:05,240 --> 00:07:06,760 Usually, a visit costs 188 00:07:06,760 --> 00:07:09,180 tens of thousands of visits. 189 00:07:09,180 --> 00:07:09,920 If a visit costs 190 00:07:09,920 --> 00:07:10,360 tens of thousands of visits, 191 00:07:10,380 --> 00:07:11,580 a visit costs 192 00:07:11,580 --> 00:07:13,280 tens of thousands of visits. 193 00:07:13,420 --> 00:07:13,900 Therefore, 194 00:07:14,040 --> 00:07:15,260 such visits are slow 195 00:07:15,260 --> 00:07:16,300 and cost-effective. 196 00:07:17,140 --> 00:07:17,760 For example, 197 00:07:17,760 --> 00:07:18,180 if you want to attack 198 00:07:18,180 --> 00:07:19,960 10,000 or 10,000 photos, 199 00:07:20,160 --> 00:07:20,840 you can imagine 200 00:07:20,840 --> 00:07:22,220 how much it costs. 201 00:07:23,140 --> 00:07:23,620 Therefore, 202 00:07:23,780 --> 00:07:24,340 we think that 203 00:07:45,340 --> 00:07:47,080 a visit costs 204 00:07:47,080 --> 00:07:50,800 tens of thousands of visits. 205 00:07:54,100 --> 00:07:54,400 However, 206 00:07:54,480 --> 00:07:57,280 if you want to attack 207 00:07:57,280 --> 00:07:59,100 10,000 or 10,000 photos, 208 00:08:00,960 --> 00:08:01,420 you can imagine 209 00:08:01,420 --> 00:08:02,140 how much it costs. 210 00:08:02,160 --> 00:08:02,180 Therefore, 211 00:08:02,200 --> 00:08:02,300 if you want to attack 212 00:08:02,300 --> 00:08:03,000 10,000 or 10,000 photos, 213 00:08:03,020 --> 00:08:03,300 you can imagine 214 00:08:03,640 --> 00:08:04,080 how much it costs. 215 00:08:04,080 --> 00:08:04,200 Therefore, 216 00:08:05,980 --> 00:08:06,740 if you want to attack 217 00:08:33,920 --> 00:08:36,720 10,000 or 10,000 218 00:08:36,720 --> 00:08:38,440 It's a little bit smaller, but you can take a look at it. 219 00:08:38,680 --> 00:08:41,740 This row of trees is the model A that I mentioned before, 220 00:08:41,740 --> 00:08:43,820 which is the open source model that we already have in our hands. 221 00:08:44,580 --> 00:08:48,360 We will generate our counter samples for this row of trees. 222 00:08:49,940 --> 00:08:52,840 The horizontal row is the model that we are going to attack. 223 00:08:53,320 --> 00:08:56,380 In fact, you can see that there are five models that we have in our hands, 224 00:08:56,380 --> 00:08:57,300 and there are five models that we are going to attack. 225 00:08:58,480 --> 00:08:59,860 We can see this row of shoes. 226 00:08:59,860 --> 00:09:04,200 This is the probability that all of our values can be successfully identified. 227 00:09:05,380 --> 00:09:08,080 The higher the probability, the more our attack will fail. 228 00:09:08,660 --> 00:09:11,280 The lower the probability, the more our attack will succeed. 229 00:09:11,440 --> 00:09:14,520 Because the purpose of my attack is to make your model identify errors. 230 00:09:14,940 --> 00:09:19,060 You can see that the horizontal row, for example, the first row, 231 00:09:19,120 --> 00:09:22,560 the source of the attack is resnet 152, and the target is also 152. 232 00:09:22,580 --> 00:09:25,740 My attack success rate is close to 100%, which means that my recognition rate is 0. 233 00:09:26,220 --> 00:09:27,460 I will repeat this point again. 234 00:09:27,600 --> 00:09:30,320 The lower the value, the higher the success rate of your attack. 235 00:09:30,880 --> 00:09:33,340 You can see that if it is my conscious model, 236 00:09:33,340 --> 00:09:34,860 it is exactly the same as my attacked model. 237 00:09:36,200 --> 00:09:38,740 Basically, it can be said that 100% of the attack can be broken. 238 00:09:39,260 --> 00:09:40,580 But if we look at it diagonally, 239 00:09:40,600 --> 00:09:44,000 we can see that it is the same as using Resonant 152 to attack other models. 240 00:09:44,760 --> 00:09:46,340 Its recognition rate is also very low. 241 00:09:47,000 --> 00:09:48,460 This actually reveals one point. 242 00:09:48,480 --> 00:09:50,240 When we are learning to move or attacking, 243 00:09:50,940 --> 00:09:52,320 the closer the structure of the model is, 244 00:09:52,800 --> 00:09:54,120 the higher my attack success rate will be. 245 00:09:57,540 --> 00:09:58,920 But what kind of problem does moving learning have? 246 00:09:59,960 --> 00:10:03,240 As you can see, these open source models that I have in my hand, 247 00:10:03,340 --> 00:10:04,660 all of them are doing image classification, 248 00:10:04,960 --> 00:10:07,920 and they are all doing 1,000 imaginate classifications. 249 00:10:08,560 --> 00:10:11,780 In fact, if I am also attacking this kind of image classification, 250 00:10:11,940 --> 00:10:13,340 and I am also attacking this kind of imaginate, 251 00:10:13,820 --> 00:10:16,100 in the same way, my attack success rate is very high. 252 00:10:16,360 --> 00:10:17,600 But in real life, 253 00:10:18,680 --> 00:10:20,840 for example, if I want to attack a picture review, 254 00:10:21,080 --> 00:10:23,360 or a car review service, 255 00:10:24,020 --> 00:10:27,640 I basically can't get so many open source models to attack. 256 00:10:27,960 --> 00:10:30,640 So this is a must-have for learning. 257 00:10:30,960 --> 00:10:33,320 I must be able to master enough open source models in my hand. 258 00:10:35,100 --> 00:10:35,580 So this is a must-have for learning. 259 00:10:35,580 --> 00:10:35,980 What is the other point? 260 00:10:36,700 --> 00:10:39,360 Although you can see that the attack success rate of this table is relatively high, 261 00:10:39,580 --> 00:10:40,780 but in the real process, 262 00:10:41,020 --> 00:10:43,600 you can actually find that the efficiency of other models' attacks is not that high. 263 00:10:43,700 --> 00:10:46,420 This effect is a more classic experimental effect. 264 00:10:47,620 --> 00:10:50,780 In other words, moving learning has a great effect, 265 00:10:51,040 --> 00:10:52,540 but in the actual work, 266 00:10:52,780 --> 00:10:55,340 it does have some influence in it. 267 00:10:57,320 --> 00:10:59,780 Next, I will talk about our attack method. 268 00:11:00,280 --> 00:11:02,160 What is our ideal situation? 269 00:11:02,800 --> 00:11:03,320 What is our ideal situation? 270 00:11:03,320 --> 00:11:06,060 First of all, I can attack the cloud API. 271 00:11:06,500 --> 00:11:07,220 On the other hand, 272 00:11:07,420 --> 00:11:10,760 I hope that my attack task can be customized at will. 273 00:11:10,980 --> 00:11:13,620 For example, I can attack cats and dogs, 274 00:11:13,680 --> 00:11:15,620 or I can attack you to identify cattle and pigs, 275 00:11:15,720 --> 00:11:17,440 or I can identify BMW and Mercedes-Benz. 276 00:11:17,760 --> 00:11:19,760 I hope that my attack task can be changed. 277 00:11:20,180 --> 00:11:20,760 Of course, 278 00:11:22,160 --> 00:11:24,120 careful students can pay attention to 279 00:11:24,120 --> 00:11:26,040 the topic we talked about before, 280 00:11:26,040 --> 00:11:27,900 which is to attack another type of image recognition. 281 00:11:28,120 --> 00:11:30,700 But in my national environment, 282 00:11:31,000 --> 00:11:32,640 we have to talk about something that can be broadcast on TV. 283 00:11:33,320 --> 00:11:34,640 We can't talk about something that can't be broadcast on TV. 284 00:11:34,880 --> 00:11:36,000 So, in this example, 285 00:11:36,440 --> 00:11:37,620 we are talking about how to attack 286 00:11:39,060 --> 00:11:40,200 cats and dogs in image recognition. 287 00:11:40,800 --> 00:11:42,180 In fact, in the same way, 288 00:11:42,280 --> 00:11:43,820 we can also attack car recognition 289 00:11:43,820 --> 00:11:45,280 and other image recognition. 290 00:11:46,000 --> 00:11:47,960 The next point is to introduce our attack. 291 00:11:48,360 --> 00:11:50,040 We have proposed a new attack method. 292 00:11:50,200 --> 00:11:52,700 This method is based on a kind of replacement learning. 293 00:11:53,160 --> 00:11:53,860 On the other hand, 294 00:11:54,020 --> 00:11:55,240 we have an improvement point. 295 00:11:55,260 --> 00:11:56,440 For replacement model learning, 296 00:11:56,840 --> 00:11:58,520 we are based on a kind of R2DL technology. 297 00:11:59,060 --> 00:12:00,300 How to understand this problem? 298 00:12:01,320 --> 00:12:02,480 I have introduced it before. 299 00:12:02,480 --> 00:12:04,080 Whether it is based on searching 300 00:12:04,080 --> 00:12:04,980 or moving, 301 00:12:05,500 --> 00:12:06,440 there are all kinds of 302 00:12:06,440 --> 00:12:06,960 For example, 303 00:12:07,220 --> 00:12:23,740 how to reduce the number of attacks. 304 00:12:23,740 --> 00:12:26,420 If I have a model similar to the cloud, 305 00:12:27,460 --> 00:12:29,060 I can't attack it directly. 306 00:12:29,180 --> 00:12:30,720 My attack speed is very low. 307 00:12:30,720 --> 00:12:32,100 So, there will be an idea of 308 00:12:32,100 --> 00:12:32,800 this kind of replacement attack. 309 00:12:33,800 --> 00:12:35,100 The first to propose a replacement attack 310 00:12:35,100 --> 00:12:37,920 should be the 2018 World Final. 311 00:12:38,100 --> 00:12:39,060 It will be more famous. 312 00:12:39,220 --> 00:12:40,380 We also borrowed this idea 313 00:12:40,380 --> 00:12:41,340 to use a replacement attack. 314 00:12:41,660 --> 00:12:43,120 But our improvement point is 315 00:12:43,120 --> 00:12:44,140 the training process of our replacement model. 316 00:12:45,420 --> 00:12:46,680 In their paper, 317 00:12:46,900 --> 00:12:48,620 it requires a lot of training data. 318 00:12:48,900 --> 00:12:50,060 But in our case, 319 00:12:50,300 --> 00:12:50,980 after our experiment, 320 00:12:51,240 --> 00:12:52,200 we actually only get, 321 00:12:52,380 --> 00:12:52,600 for example, 322 00:12:52,680 --> 00:12:54,200 100 or even only 50 pictures. 323 00:12:54,400 --> 00:12:56,120 We can restore a function 324 00:12:56,120 --> 00:12:59,100 that is basically the same model as the cloud. 325 00:12:59,140 --> 00:13:00,700 This benefits our R2DL technology. 326 00:13:03,020 --> 00:13:04,480 Compared to the black box search, 327 00:13:04,700 --> 00:13:06,360 it requires thousands of times, 328 00:13:06,380 --> 00:13:06,820 hundreds of times, 329 00:13:06,820 --> 00:13:07,660 or even millions of times of search. 330 00:13:07,980 --> 00:13:10,240 Our search actually only happens twice. 331 00:13:10,720 --> 00:13:12,020 One time is the process of marking. 332 00:13:13,040 --> 00:13:13,840 For example, 333 00:13:14,000 --> 00:13:15,780 after I have collected enough pictures in my hand, 334 00:13:15,940 --> 00:13:17,680 I will first go to the cloud to search. 335 00:13:18,060 --> 00:13:19,000 It will tell me 336 00:13:19,000 --> 00:13:19,860 if this is a cat or a dog. 337 00:13:19,920 --> 00:13:20,920 This is the first time. 338 00:13:20,960 --> 00:13:21,660 This is the process of marking. 339 00:13:22,200 --> 00:13:23,640 The second time is the process of my attack. 340 00:13:24,140 --> 00:13:24,700 I attack the cloud directly 341 00:13:24,700 --> 00:13:25,680 with the sample I generated. 342 00:13:26,620 --> 00:13:27,380 So, on average, 343 00:13:27,520 --> 00:13:29,200 we only search twice 344 00:13:29,200 --> 00:13:29,520 for each picture. 345 00:13:30,280 --> 00:13:30,680 So, 346 00:13:30,680 --> 00:13:32,840 the other improvement is that 347 00:13:33,660 --> 00:13:35,540 our attack is more universal. 348 00:13:36,260 --> 00:13:37,060 It is not dependent on 349 00:13:37,060 --> 00:13:40,940 having the same open source model 350 00:13:40,940 --> 00:13:41,160 in your hand. 351 00:13:41,400 --> 00:13:41,840 Of course, 352 00:13:41,860 --> 00:13:42,880 we can see that 353 00:13:42,880 --> 00:13:43,200 for example, 354 00:13:43,260 --> 00:13:45,040 we have to complete 355 00:13:45,040 --> 00:13:46,620 a thousand different image models 356 00:13:46,620 --> 00:13:46,700 for Imaginate. 357 00:13:47,200 --> 00:13:47,900 But for example, 358 00:13:47,920 --> 00:13:49,100 we will introduce later 359 00:13:49,100 --> 00:13:50,200 such as attacking a cat or a dog, 360 00:13:50,280 --> 00:13:51,080 attacking a BMW, 361 00:13:51,360 --> 00:13:51,680 and so on. 362 00:13:52,760 --> 00:13:53,460 At present, 363 00:13:53,460 --> 00:13:55,420 we do not have this open source model in our hands. 364 00:13:55,420 --> 00:13:56,360 But based on our technology, 365 00:13:56,620 --> 00:13:57,360 we can also attack. 366 00:13:57,860 --> 00:13:58,400 This is our 367 00:13:58,400 --> 00:13:59,220 relatively general 368 00:13:59,220 --> 00:14:00,200 learning advantage. 369 00:14:02,260 --> 00:14:02,660 OK. 370 00:14:02,780 --> 00:14:03,160 Next, 371 00:14:03,400 --> 00:14:03,820 I will introduce 372 00:14:03,820 --> 00:14:05,020 our entire attack process. 373 00:14:05,300 --> 00:14:06,360 The attack process is very simple. 374 00:14:06,480 --> 00:14:06,880 There are two steps. 375 00:14:06,920 --> 00:14:07,420 The first step is 376 00:14:07,420 --> 00:14:08,680 the training of the replacement model. 377 00:14:09,300 --> 00:14:10,000 The second step is 378 00:14:10,000 --> 00:14:10,440 to generate the sample. 379 00:14:13,520 --> 00:14:13,920 Next, 380 00:14:14,100 --> 00:14:14,600 I will introduce 381 00:14:14,600 --> 00:14:15,720 how we choose 382 00:14:15,720 --> 00:14:17,940 a better replacement model. 383 00:14:18,740 --> 00:14:19,900 There are thousands of high-rise buildings 384 00:14:19,900 --> 00:14:20,260 together. 385 00:14:20,540 --> 00:14:20,740 But 386 00:14:21,220 --> 00:14:22,140 we still have to stand 387 00:14:22,140 --> 00:14:23,000 on the shoulders of our predecessors. 388 00:14:23,160 --> 00:14:23,560 So, 389 00:14:23,680 --> 00:14:24,540 what we use is 390 00:14:24,540 --> 00:14:25,160 the model of Imaginate 391 00:14:25,160 --> 00:14:25,700 that has been pre-trained. 392 00:14:26,660 --> 00:14:27,900 What is our general understanding? 393 00:14:28,480 --> 00:14:29,020 It is that 394 00:14:29,020 --> 00:14:29,200 the model of Imaginate 395 00:14:29,880 --> 00:14:30,480 is relatively good 396 00:14:30,480 --> 00:14:31,540 in terms of image separation. 397 00:14:33,300 --> 00:14:34,120 It is also 398 00:14:34,120 --> 00:14:34,840 feature selection. 399 00:14:37,260 --> 00:14:37,860 So, 400 00:14:38,020 --> 00:14:38,820 the four models 401 00:14:38,820 --> 00:14:39,200 on the right 402 00:14:39,200 --> 00:14:41,080 can be selected. 403 00:14:41,320 --> 00:14:41,660 For example, 404 00:14:41,760 --> 00:14:41,940 from 405 00:14:42,780 --> 00:14:43,380 ResNet152 406 00:14:43,380 --> 00:14:43,680 or 407 00:14:43,680 --> 00:14:44,400 the following 408 00:14:44,400 --> 00:14:45,280 are all fine. 409 00:14:45,500 --> 00:14:46,180 These four 410 00:14:46,180 --> 00:14:46,920 functions are similar. 411 00:14:47,200 --> 00:14:47,620 You can choose 412 00:14:47,620 --> 00:14:48,200 whatever you want. 413 00:14:48,220 --> 00:14:49,020 We choose 414 00:14:49,020 --> 00:14:49,520 the one in the middle, 415 00:14:49,980 --> 00:14:51,560 which is ResNet152. 416 00:14:56,780 --> 00:14:57,380 Then, 417 00:14:57,380 --> 00:14:58,260 the whole process 418 00:14:58,260 --> 00:14:58,480 of learning 419 00:14:58,480 --> 00:15:00,340 is relatively simple. 420 00:15:00,660 --> 00:15:01,560 We will simplify 421 00:15:01,560 --> 00:15:02,280 our attack process 422 00:15:02,900 --> 00:15:04,240 into two categories of problems. 423 00:15:04,400 --> 00:15:04,780 For example, 424 00:15:04,940 --> 00:15:05,640 a cat 425 00:15:05,640 --> 00:15:06,560 or not a cat. 426 00:15:07,200 --> 00:15:07,680 Similarly, 427 00:15:07,920 --> 00:15:08,600 you can also use 428 00:15:08,600 --> 00:15:09,260 for example, 429 00:15:09,280 --> 00:15:10,120 you want to attack 430 00:15:10,120 --> 00:15:10,580 an image 431 00:15:10,580 --> 00:15:10,920 category 432 00:15:10,920 --> 00:15:11,540 of car identification, 433 00:15:11,800 --> 00:15:12,440 such as 434 00:15:12,440 --> 00:15:13,660 BMW and Benz. 435 00:15:13,860 --> 00:15:15,120 You can simplify it 436 00:15:15,120 --> 00:15:15,280 into 437 00:15:15,280 --> 00:15:16,600 BMW or not BMW. 438 00:15:16,900 --> 00:15:17,740 Simplify its problem 439 00:15:17,740 --> 00:15:18,020 is enough. 440 00:15:19,120 --> 00:15:19,760 In addition, 441 00:15:19,920 --> 00:15:20,840 because we are 442 00:15:20,840 --> 00:15:21,660 a category 2 problem, 443 00:15:22,000 --> 00:15:22,980 we can change 444 00:15:22,980 --> 00:15:23,900 the output of our model 445 00:15:23,900 --> 00:15:25,000 to 2. 446 00:15:26,300 --> 00:15:27,360 We need to 447 00:15:27,380 --> 00:15:28,600 improve the model 448 00:15:28,600 --> 00:15:29,460 based on 449 00:15:31,500 --> 00:15:31,960 ResNet152 450 00:15:31,960 --> 00:15:32,040 which is 451 00:15:32,380 --> 00:15:32,840 So, 452 00:15:32,920 --> 00:15:33,460 we just need to 453 00:15:33,460 --> 00:15:34,000 tweak the model. 454 00:15:34,420 --> 00:15:34,880 However, 455 00:15:34,980 --> 00:15:35,800 what we need to emphasize 456 00:15:35,800 --> 00:15:36,600 is that 457 00:15:36,600 --> 00:15:37,440 we need to tweak 458 00:15:37,440 --> 00:15:38,340 every layer 459 00:15:38,340 --> 00:15:38,460 of the model. 460 00:15:39,320 --> 00:15:39,920 In fact, 461 00:15:40,860 --> 00:15:41,200 it is not convenient 462 00:15:41,200 --> 00:15:41,320 the characteristics 463 00:15:41,320 --> 00:15:42,180 of the common model. 464 00:15:42,640 --> 00:15:43,880 It only cares about 465 00:15:43,880 --> 00:15:44,880 the last pre-connected layer. 466 00:15:46,480 --> 00:15:47,360 This is a 467 00:15:48,020 --> 00:15:48,480 normal 468 00:15:50,900 --> 00:15:51,740 model prediction 469 00:15:51,740 --> 00:15:52,060 process. 470 00:15:52,340 --> 00:15:52,940 For example, 471 00:15:52,960 --> 00:15:53,240 if I throw 472 00:15:53,240 --> 00:15:53,860 a cat's picture 473 00:15:53,860 --> 00:15:54,960 into the neural network, 474 00:15:55,380 --> 00:15:56,240 it will output 475 00:15:56,240 --> 00:15:56,900 two values. 476 00:15:57,000 --> 00:15:57,800 One is the probability 477 00:15:57,800 --> 00:15:58,240 that you are a cat, 478 00:15:58,580 --> 00:15:59,140 and the other is 479 00:15:59,140 --> 00:16:00,040 the probability of other teams. 480 00:16:00,640 --> 00:16:01,040 Normally, 481 00:16:01,240 --> 00:16:02,020 we can know that 482 00:16:02,020 --> 00:16:02,660 it should be a cat 483 00:16:02,660 --> 00:16:03,720 and the probability is 0.99. 484 00:16:07,040 --> 00:16:08,480 In our model training process, 485 00:16:08,680 --> 00:16:09,360 another point is 486 00:16:09,360 --> 00:16:10,020 very different 487 00:16:10,720 --> 00:16:11,160 from the general 488 00:16:11,160 --> 00:16:11,640 physical learning, 489 00:16:12,240 --> 00:16:12,900 is that 490 00:16:12,900 --> 00:16:14,200 we do not take 491 00:16:14,200 --> 00:16:15,060 a large number of pictures 492 00:16:15,060 --> 00:16:16,120 to the cloud 493 00:16:16,120 --> 00:16:16,680 to check the shadow, 494 00:16:16,920 --> 00:16:18,160 so that we can train 495 00:16:18,160 --> 00:16:19,200 a model locally. 496 00:16:19,540 --> 00:16:20,140 In fact, 497 00:16:20,340 --> 00:16:20,820 we just need to take 498 00:16:20,820 --> 00:16:21,540 our attack sample. 499 00:16:21,780 --> 00:16:22,300 For example, 500 00:16:22,300 --> 00:16:23,200 I want to take 501 00:16:23,200 --> 00:16:24,140 my 50 pictures 502 00:16:24,140 --> 00:16:24,940 of cats 503 00:16:24,940 --> 00:16:25,240 to generate 504 00:16:25,240 --> 00:16:25,800 an attack sample. 505 00:16:26,080 --> 00:16:26,580 Then, 506 00:16:26,680 --> 00:16:27,400 I just need to take 507 00:16:27,400 --> 00:16:28,020 these 50 cats 508 00:16:28,020 --> 00:16:28,460 to train. 509 00:16:28,940 --> 00:16:29,940 Instead of taking 510 00:16:30,580 --> 00:16:31,620 1,000 cats 511 00:16:31,620 --> 00:16:32,720 and 1,000 dogs 512 00:16:32,720 --> 00:16:32,860 in other training methods, 513 00:16:32,860 --> 00:16:33,560 we can restore 514 00:16:33,560 --> 00:16:35,260 a complete model locally. 515 00:16:35,260 --> 00:16:36,220 This is a different 516 00:16:36,220 --> 00:16:37,240 place for us. 517 00:16:38,060 --> 00:16:38,560 OK. 518 00:16:38,700 --> 00:16:39,640 The next point 519 00:16:39,640 --> 00:16:40,060 we will introduce 520 00:16:40,060 --> 00:16:40,700 is the whole 521 00:16:40,700 --> 00:16:41,360 training process. 522 00:16:42,260 --> 00:16:42,760 Here, 523 00:16:42,780 --> 00:16:43,100 we introduce 524 00:16:43,100 --> 00:16:44,260 the bidding process. 525 00:16:44,480 --> 00:16:44,640 First, 526 00:16:44,860 --> 00:16:46,260 we initialize 527 00:16:46,260 --> 00:16:46,700 our database. 528 00:16:47,120 --> 00:16:48,160 We solve 529 00:16:48,160 --> 00:16:49,000 the problem of a cat 530 00:16:52,300 --> 00:16:52,780 with a certain number 531 00:16:52,780 --> 00:16:53,920 of pictures of cats. 532 00:16:54,520 --> 00:16:55,340 The other part 533 00:16:55,340 --> 00:16:56,120 is the picture 534 00:16:56,120 --> 00:16:56,460 that is not a cat. 535 00:16:56,780 --> 00:16:57,380 It can be an elephant, 536 00:16:57,580 --> 00:16:57,960 a pig, 537 00:16:58,060 --> 00:16:58,340 a dog, 538 00:16:58,420 --> 00:16:59,040 or even a car. 539 00:16:59,300 --> 00:16:59,820 It doesn't matter. 540 00:17:00,400 --> 00:17:01,020 This way, 541 00:17:01,020 --> 00:17:01,420 we get 542 00:17:01,420 --> 00:17:02,660 an initialized database. 543 00:17:03,420 --> 00:17:03,860 Then, 544 00:17:03,980 --> 00:17:04,400 we take 545 00:17:04,400 --> 00:17:05,380 this initialized database 546 00:17:05,380 --> 00:17:06,780 to the cloud 547 00:17:06,780 --> 00:17:07,320 to search. 548 00:17:08,460 --> 00:17:08,940 The cloud 549 00:17:08,940 --> 00:17:09,640 will return 550 00:17:09,640 --> 00:17:10,500 a result to me. 551 00:17:10,500 --> 00:17:11,280 It tells me 552 00:17:11,280 --> 00:17:12,280 that from the perspective 553 00:17:12,280 --> 00:17:12,660 of the cloud, 554 00:17:12,660 --> 00:17:13,420 this is a cat 555 00:17:13,420 --> 00:17:14,060 and not a cat. 556 00:17:14,140 --> 00:17:15,240 So naturally, 557 00:17:15,460 --> 00:17:16,580 we use this result 558 00:17:16,580 --> 00:17:16,900 to mark 559 00:17:16,900 --> 00:17:17,280 our image. 560 00:17:18,200 --> 00:17:19,260 The so-called mark 561 00:17:19,260 --> 00:17:20,120 is to connect 562 00:17:20,120 --> 00:17:20,720 our image 563 00:17:20,720 --> 00:17:22,020 with an object. 564 00:17:23,680 --> 00:17:24,520 In this way, 565 00:17:24,560 --> 00:17:24,940 we complete 566 00:17:24,940 --> 00:17:25,760 the bidding process. 567 00:17:26,100 --> 00:17:27,160 After the bidding process, 568 00:17:27,740 --> 00:17:28,520 we get 569 00:17:28,520 --> 00:17:30,300 an initialized database 570 00:17:30,300 --> 00:17:30,580 called 571 00:17:30,580 --> 00:17:31,040 SEP. 572 00:17:32,600 --> 00:17:33,560 We use 573 00:17:33,560 --> 00:17:35,060 this initialized database 574 00:17:35,060 --> 00:17:35,780 to restore 575 00:17:36,500 --> 00:17:37,460 a model 576 00:17:37,460 --> 00:17:37,580 that is close 577 00:17:37,580 --> 00:17:37,720 to the cloud 578 00:17:37,720 --> 00:17:38,780 in our local area. 579 00:17:39,060 --> 00:17:40,340 This is the process 580 00:17:40,340 --> 00:17:41,220 of completing 581 00:17:41,220 --> 00:17:42,140 a local training. 582 00:17:46,900 --> 00:17:48,860 This process is quite annoying. 583 00:17:49,040 --> 00:17:49,960 You don't have to worry about it. 584 00:17:49,980 --> 00:17:50,540 Let me introduce 585 00:17:50,540 --> 00:17:51,420 what it means. 586 00:17:53,280 --> 00:17:54,700 In a neural network, 587 00:17:54,980 --> 00:17:55,280 there are usually 588 00:17:55,280 --> 00:17:56,240 a lot of parameters. 589 00:17:56,760 --> 00:17:57,400 There may be 590 00:17:57,400 --> 00:17:57,940 tens of thousands, 591 00:17:57,980 --> 00:17:58,200 millions, 592 00:17:58,420 --> 00:17:59,100 or even hundreds of millions 593 00:17:59,100 --> 00:17:59,300 of parameters. 594 00:18:00,360 --> 00:18:01,320 One parameter 595 00:18:01,320 --> 00:18:01,840 that is considered 596 00:18:02,960 --> 00:18:03,560 by the public 597 00:18:03,560 --> 00:18:04,340 is that 598 00:18:04,340 --> 00:18:06,080 if the number 599 00:18:06,080 --> 00:18:06,180 of parameters 600 00:18:06,180 --> 00:18:06,520 in my model 601 00:18:06,520 --> 00:18:06,820 is smaller 602 00:18:06,820 --> 00:18:08,800 and the size 603 00:18:08,800 --> 00:18:09,620 of the model 604 00:18:09,620 --> 00:18:09,840 is smaller, 605 00:18:10,020 --> 00:18:11,160 then my roughness 606 00:18:11,160 --> 00:18:11,660 will be better. 607 00:18:11,940 --> 00:18:12,420 Why? 608 00:18:12,420 --> 00:18:12,640 For example, 609 00:18:13,360 --> 00:18:14,380 the so-called roughness 610 00:18:14,380 --> 00:18:14,860 means that 611 00:18:14,860 --> 00:18:15,560 if my error 612 00:18:15,560 --> 00:18:17,000 changes slightly, 613 00:18:17,260 --> 00:18:18,360 it won't affect 614 00:18:18,360 --> 00:18:19,740 my prediction 615 00:18:19,740 --> 00:18:20,160 too much. 616 00:18:20,300 --> 00:18:21,200 In the same way, 617 00:18:21,220 --> 00:18:22,200 if the parameters 618 00:18:22,200 --> 00:18:23,360 in my model 619 00:18:24,260 --> 00:18:25,020 are relatively 620 00:18:25,020 --> 00:18:25,560 small 621 00:18:25,560 --> 00:18:25,900 and relatively 622 00:18:25,900 --> 00:18:26,300 small, 623 00:18:26,360 --> 00:18:27,700 then the interference 624 00:18:28,370 --> 00:18:29,120 in my model 625 00:18:29,120 --> 00:18:29,820 will also be 626 00:18:29,820 --> 00:18:30,180 relatively small. 627 00:18:30,280 --> 00:18:30,820 So, 628 00:18:30,900 --> 00:18:31,480 my model 629 00:18:31,480 --> 00:18:31,800 will also be 630 00:18:31,800 --> 00:18:32,180 more rough. 631 00:18:32,420 --> 00:18:33,000 This is what 632 00:18:33,000 --> 00:18:33,600 everyone thinks. 633 00:18:34,660 --> 00:18:35,200 So, 634 00:18:35,420 --> 00:18:35,900 the meaning 635 00:18:35,900 --> 00:18:36,400 of our formula 636 00:18:37,440 --> 00:18:38,480 is that 637 00:18:38,480 --> 00:18:39,200 in addition to 638 00:18:42,420 --> 00:18:42,740 training it, 639 00:18:42,800 --> 00:18:43,360 I will also 640 00:18:44,220 --> 00:18:45,060 approximate it 641 00:18:45,060 --> 00:18:46,080 to make its parameters 642 00:18:46,080 --> 00:18:46,840 as small as possible. 643 00:18:50,280 --> 00:18:51,880 The last part 644 00:18:51,880 --> 00:18:51,940 of this formula 645 00:18:51,940 --> 00:18:52,660 actually shows that 646 00:18:52,660 --> 00:18:53,920 I will approximate 647 00:18:53,920 --> 00:18:54,280 the size 648 00:18:54,280 --> 00:18:54,800 of the parameters 649 00:18:54,800 --> 00:18:55,440 in my model. 650 00:18:56,060 --> 00:18:57,040 The way to do this 651 00:18:57,040 --> 00:18:58,420 is usually called 652 00:18:58,420 --> 00:18:59,240 the L2 punishment 653 00:18:59,240 --> 00:19:00,060 or the L1 punishment. 654 00:19:00,240 --> 00:19:00,920 It doesn't matter. 655 00:19:01,100 --> 00:19:02,140 The so-called L1 punishment 656 00:19:02,140 --> 00:19:02,700 actually makes 657 00:19:02,700 --> 00:19:03,640 the size 658 00:19:03,640 --> 00:19:04,000 of each parameter 659 00:19:04,000 --> 00:19:04,560 in our model 660 00:19:04,560 --> 00:19:04,700 smaller. 661 00:19:05,080 --> 00:19:05,820 I hope that 662 00:19:05,820 --> 00:19:06,180 the number 663 00:19:06,180 --> 00:19:06,440 of models 664 00:19:06,440 --> 00:19:06,680 in our model 665 00:19:06,680 --> 00:19:07,200 is as small as possible. 666 00:19:07,380 --> 00:19:08,260 The L2 punishment 667 00:19:08,260 --> 00:19:08,360 is actually 668 00:19:08,360 --> 00:19:09,000 to approximate 669 00:19:09,000 --> 00:19:09,540 from an OG leader. 670 00:19:10,560 --> 00:19:11,400 You don't have to 671 00:19:11,400 --> 00:19:12,020 think too much about this. 672 00:19:13,380 --> 00:19:13,920 In general, 673 00:19:14,040 --> 00:19:14,900 the principle is that 674 00:19:14,900 --> 00:19:17,360 we add an approximate 675 00:19:17,360 --> 00:19:17,500 number 676 00:19:17,500 --> 00:19:17,660 in the process 677 00:19:17,800 --> 00:19:18,820 After adding an approximate number, 678 00:19:19,060 --> 00:19:19,600 we can make 679 00:19:19,600 --> 00:19:20,100 the parameters 680 00:19:20,100 --> 00:19:20,620 of our model 681 00:19:20,620 --> 00:19:21,240 as small as possible. 682 00:19:23,080 --> 00:19:23,960 Another point 683 00:19:23,960 --> 00:19:24,400 is that 684 00:19:24,400 --> 00:19:25,340 our R2DL 685 00:19:25,340 --> 00:19:27,060 has played a role 686 00:19:27,140 --> 00:19:27,640 In fact, 687 00:19:27,740 --> 00:19:28,140 what we used 688 00:19:28,140 --> 00:19:31,380 is a function 689 00:19:35,980 --> 00:19:36,420 of automatic 690 00:19:36,420 --> 00:19:37,480 It is not the last day 691 00:19:38,880 --> 00:19:39,760 of the project 692 00:19:39,760 --> 00:19:40,840 that tells you 693 00:19:40,840 --> 00:19:41,220 that the project 694 00:19:41,220 --> 00:19:41,720 is not good 695 00:19:41,720 --> 00:19:42,540 and what you need 696 00:19:42,540 --> 00:19:43,320 to do to improve it. 697 00:19:45,460 --> 00:19:46,520 What would a good boss 698 00:19:46,520 --> 00:19:46,840 do? 699 00:19:47,240 --> 00:19:49,640 At a critical moment 700 00:19:49,640 --> 00:19:50,060 in a project, 701 00:19:50,100 --> 00:19:50,600 for example, 702 00:19:50,720 --> 00:19:51,340 in demand analysis, 703 00:19:51,600 --> 00:19:52,140 development, 704 00:19:52,400 --> 00:19:53,100 and testing, 705 00:19:53,420 --> 00:19:53,880 it will show you 706 00:19:53,880 --> 00:19:54,700 the key times 707 00:19:54,700 --> 00:19:55,800 and see 708 00:19:56,640 --> 00:19:57,640 if you can run 709 00:19:57,640 --> 00:19:57,960 the course. 710 00:19:58,220 --> 00:19:59,180 This is a simple 711 00:19:59,180 --> 00:19:59,540 understanding. 712 00:19:59,980 --> 00:20:00,900 When we train 713 00:20:00,900 --> 00:20:01,340 neural networks, 714 00:20:01,820 --> 00:20:02,260 there will also be 715 00:20:02,260 --> 00:20:02,640 this problem. 716 00:20:02,960 --> 00:20:03,960 How to understand it? 717 00:20:07,620 --> 00:20:08,780 This green dot 718 00:20:08,780 --> 00:20:09,640 is not very obvious. 719 00:20:10,420 --> 00:20:11,040 For example, 720 00:20:11,180 --> 00:20:12,180 in a normal 721 00:20:12,180 --> 00:20:13,360 training model process, 722 00:20:13,640 --> 00:20:14,600 I only care about 723 00:20:14,600 --> 00:20:15,860 the output of your model 724 00:20:15,860 --> 00:20:16,340 and the deviation 725 00:20:16,340 --> 00:20:17,920 of my expected prediction value. 726 00:20:18,860 --> 00:20:19,440 For example, 727 00:20:19,460 --> 00:20:20,140 if a cat is thrown in, 728 00:20:20,320 --> 00:20:21,140 you may predict that it is a dog. 729 00:20:21,220 --> 00:20:22,000 I will tell you 730 00:20:22,000 --> 00:20:22,880 that your boss 731 00:20:22,880 --> 00:20:23,420 predicted it wrong. 732 00:20:23,600 --> 00:20:23,880 You give me 733 00:20:23,880 --> 00:20:24,440 to change your parameters. 734 00:20:24,740 --> 00:20:26,320 This is the most common process. 735 00:20:26,640 --> 00:20:27,480 And what we do 736 00:20:27,480 --> 00:20:28,120 is that 737 00:20:29,220 --> 00:20:31,340 in some important stages 738 00:20:31,340 --> 00:20:31,560 of model training, 739 00:20:31,580 --> 00:20:32,800 I will correct 740 00:20:32,800 --> 00:20:34,420 the error of your model. 741 00:20:35,700 --> 00:20:36,880 When it is realized, 742 00:20:37,300 --> 00:20:37,740 it is actually 743 00:20:37,740 --> 00:20:38,650 the most important 744 00:20:39,940 --> 00:20:41,020 output points 745 00:20:41,020 --> 00:20:41,100 of my neural network. 746 00:20:41,120 --> 00:20:42,160 I will check 747 00:20:42,160 --> 00:20:42,420 the deviation 748 00:20:42,420 --> 00:20:42,620 of your model 749 00:20:42,620 --> 00:20:43,180 and the value 750 00:20:43,180 --> 00:20:44,020 of your model. 751 00:20:44,620 --> 00:20:45,680 By doing this, 752 00:20:46,140 --> 00:20:47,000 I can train 753 00:20:47,000 --> 00:20:47,880 my model better. 754 00:20:48,280 --> 00:20:49,300 The intuitive feeling 755 00:20:49,300 --> 00:20:49,840 is that 756 00:20:49,840 --> 00:20:50,620 others may need 757 00:20:50,620 --> 00:20:51,600 1000 cats 758 00:20:51,600 --> 00:20:52,420 to train 759 00:20:52,420 --> 00:20:53,620 a model 760 00:20:53,620 --> 00:20:53,840 like a cloud 761 00:20:53,840 --> 00:20:54,720 locally. 762 00:20:55,200 --> 00:20:56,600 But we may only need 763 00:20:56,600 --> 00:20:57,340 50 cats 764 00:20:57,340 --> 00:20:57,940 to train. 765 00:20:58,580 --> 00:20:59,560 Because our boss 766 00:20:59,560 --> 00:21:00,220 is good enough. 767 00:21:00,220 --> 00:21:00,680 Just like Mr. Ma. 768 00:21:04,480 --> 00:21:05,160 Just now, 769 00:21:05,200 --> 00:21:05,420 I introduced 770 00:21:05,420 --> 00:21:07,180 how to train 771 00:21:07,180 --> 00:21:08,580 a better model 772 00:21:08,580 --> 00:21:08,800 locally. 773 00:21:09,100 --> 00:21:09,660 Of course, 774 00:21:09,760 --> 00:21:10,600 after we finish this step, 775 00:21:10,720 --> 00:21:11,500 we can think that 776 00:21:11,500 --> 00:21:12,600 we have already trained 777 00:21:12,600 --> 00:21:13,840 a model 778 00:21:13,840 --> 00:21:15,000 that is almost 779 00:21:15,000 --> 00:21:15,860 completely similar 780 00:21:15,860 --> 00:21:16,240 to the cloud function 781 00:21:16,800 --> 00:21:17,760 What is the second step? 782 00:21:18,280 --> 00:21:19,140 We transform 783 00:21:19,140 --> 00:21:19,240 the process of attacking 784 00:21:19,240 --> 00:21:19,740 a black box 785 00:21:19,740 --> 00:21:21,480 into a white box. 786 00:21:21,540 --> 00:21:23,480 We attack this model 787 00:21:23,480 --> 00:21:23,760 locally 788 00:21:23,760 --> 00:21:24,120 to generate 789 00:21:24,120 --> 00:21:24,500 a counter sample. 790 00:21:25,140 --> 00:21:25,640 Next, 791 00:21:25,840 --> 00:21:26,300 we will introduce 792 00:21:26,300 --> 00:21:27,000 some improvements 793 00:21:27,000 --> 00:21:27,900 in the white box 794 00:21:27,900 --> 00:21:28,420 of our algorithm. 795 00:21:30,560 --> 00:21:31,340 We know 796 00:21:31,340 --> 00:21:32,120 that when we generate 797 00:21:35,800 --> 00:21:36,600 some interference 798 00:21:36,600 --> 00:21:36,920 on the picture, 799 00:21:36,920 --> 00:21:37,540 or when we add 800 00:21:37,540 --> 00:21:37,960 some disturbance, 801 00:21:38,340 --> 00:21:38,960 its classification 802 00:21:38,960 --> 00:21:39,680 will be wrong. 803 00:21:39,980 --> 00:21:40,740 At the same time, 804 00:21:40,780 --> 00:21:41,280 if we change 805 00:21:41,280 --> 00:21:41,580 this picture 806 00:21:41,580 --> 00:21:42,900 to a pixel point, 807 00:21:43,120 --> 00:21:43,960 it will not affect 808 00:21:43,960 --> 00:21:44,400 the difference 809 00:21:44,400 --> 00:21:44,560 between people. 810 00:21:46,340 --> 00:21:46,880 For example, 811 00:21:46,940 --> 00:21:47,560 if it is still a cat, 812 00:21:47,640 --> 00:21:48,220 if we change 813 00:21:48,220 --> 00:21:49,140 a few pixel points, 814 00:21:49,280 --> 00:21:50,300 our model 815 00:21:50,300 --> 00:21:50,720 will be identified 816 00:21:50,720 --> 00:21:51,020 as a dog. 817 00:21:51,260 --> 00:21:52,360 The important point 818 00:21:52,360 --> 00:21:52,720 is that 819 00:21:52,720 --> 00:21:52,820 first, 820 00:21:53,080 --> 00:21:53,640 if we change 821 00:21:53,640 --> 00:21:54,300 some pixel points, 822 00:21:54,920 --> 00:21:55,720 the machine 823 00:21:55,720 --> 00:21:56,220 will be wrong. 824 00:21:56,340 --> 00:21:57,340 The second point is that 825 00:21:57,340 --> 00:21:57,500 people 826 00:21:57,500 --> 00:21:59,020 will not be affected 827 00:21:59,020 --> 00:21:59,180 by this. 828 00:21:59,180 --> 00:21:59,800 It is still a cat. 829 00:22:00,260 --> 00:22:00,620 Now, 830 00:22:00,620 --> 00:22:01,300 the main point is 831 00:22:01,300 --> 00:22:02,180 how to make 832 00:22:02,180 --> 00:22:02,780 our machine 833 00:22:02,780 --> 00:22:03,440 identify the error. 834 00:22:04,500 --> 00:22:05,160 As you can see, 835 00:22:05,280 --> 00:22:06,040 in our definition 836 00:22:06,040 --> 00:22:06,660 of this loss function, 837 00:22:07,400 --> 00:22:08,520 what we dislike 838 00:22:08,520 --> 00:22:09,260 is that there are 839 00:22:09,260 --> 00:22:09,460 more formulas. 840 00:22:09,980 --> 00:22:10,800 I will try to use 841 00:22:10,800 --> 00:22:11,100 the language 842 00:22:11,100 --> 00:22:11,620 that everyone can understand 843 00:22:11,620 --> 00:22:12,960 to make it more transparent. 844 00:22:14,880 --> 00:22:15,580 As you can see, 845 00:22:15,700 --> 00:22:16,200 the first one, 846 00:22:16,880 --> 00:22:17,240 classLoss, 847 00:22:17,900 --> 00:22:18,480 is actually 848 00:22:19,100 --> 00:22:19,820 our definition 849 00:22:19,820 --> 00:22:20,400 of this loss function. 850 00:22:20,540 --> 00:22:20,940 We hope that 851 00:22:20,940 --> 00:22:21,700 after the modification 852 00:22:21,700 --> 00:22:22,220 of the picture, 853 00:22:22,220 --> 00:22:23,420 we can try 854 00:22:23,420 --> 00:22:24,220 to cheat the model 855 00:22:24,220 --> 00:22:25,020 of this loss function. 856 00:22:25,020 --> 00:22:25,740 It is a classification error. 857 00:22:27,600 --> 00:22:28,700 The second point 858 00:22:28,700 --> 00:22:29,000 is that 859 00:22:29,000 --> 00:22:29,740 we have an improvement 860 00:22:29,740 --> 00:22:30,100 here. 861 00:22:30,720 --> 00:22:32,360 At the same time, 862 00:22:32,420 --> 00:22:33,280 we also hope that 863 00:22:33,280 --> 00:22:33,820 in the output of 864 00:22:33,820 --> 00:22:34,720 our neural network 865 00:22:34,720 --> 00:22:35,100 collection, 866 00:22:35,600 --> 00:22:36,340 its deviation 867 00:22:36,340 --> 00:22:37,280 will be as large as possible. 868 00:22:37,340 --> 00:22:37,900 Later, 869 00:22:37,940 --> 00:22:38,420 we will introduce 870 00:22:38,420 --> 00:22:38,580 the significance 871 00:22:38,580 --> 00:22:39,580 of this larger deviation. 872 00:22:42,380 --> 00:22:42,940 Here, 873 00:22:43,060 --> 00:22:43,320 we introduce 874 00:22:43,320 --> 00:22:44,320 the loss function. 875 00:22:44,640 --> 00:22:45,080 In fact, 876 00:22:45,340 --> 00:22:46,260 its main purpose 877 00:22:46,260 --> 00:22:47,080 is to make 878 00:22:47,080 --> 00:22:47,600 our classification 879 00:22:47,600 --> 00:22:48,100 to be wrong. 880 00:22:48,480 --> 00:22:49,280 And the logic 881 00:22:49,280 --> 00:22:50,080 of our futureMap 882 00:22:50,080 --> 00:22:51,520 actually hopes that 883 00:22:51,520 --> 00:22:52,280 our attack sample 884 00:22:54,220 --> 00:22:54,600 will have better 885 00:22:54,600 --> 00:22:54,960 resolution 886 00:22:54,960 --> 00:22:54,980 resolution. 887 00:22:55,480 --> 00:22:56,420 How to understand 888 00:22:56,420 --> 00:22:56,600 this? 889 00:22:57,460 --> 00:22:58,700 The second point 890 00:22:58,700 --> 00:22:58,820 is that 891 00:22:58,820 --> 00:22:59,840 FusionLoss hopes that 892 00:22:59,840 --> 00:23:02,100 we can cheat 893 00:23:02,100 --> 00:23:03,220 model A 894 00:23:03,220 --> 00:23:03,860 and at the same time 895 00:23:03,860 --> 00:23:06,660 cheat model B 896 00:23:06,660 --> 00:23:06,800 at the same time 897 00:23:07,980 --> 00:23:08,540 OK, 898 00:23:08,660 --> 00:23:09,300 you can see 899 00:23:09,300 --> 00:23:09,700 the point 900 00:23:09,700 --> 00:23:09,940 behind us. 901 00:23:10,860 --> 00:23:11,740 This is a 902 00:23:12,420 --> 00:23:12,980 common 903 00:23:12,980 --> 00:23:13,340 example 904 00:23:13,340 --> 00:23:14,860 of a neural network 905 00:23:14,860 --> 00:23:15,100 collection. 906 00:23:15,640 --> 00:23:16,540 We can see 907 00:23:16,540 --> 00:23:18,220 a neural network 908 00:23:18,220 --> 00:23:18,580 and divide it 909 00:23:18,580 --> 00:23:19,500 into several layers. 910 00:23:26,140 --> 00:23:27,060 The first layer 911 00:23:27,060 --> 00:23:28,120 we can define 912 00:23:28,120 --> 00:23:29,760 is a low-level 913 00:23:29,760 --> 00:23:30,600 collection layer. 914 00:23:30,740 --> 00:23:31,640 We can call it 915 00:23:31,640 --> 00:23:32,160 low-level 916 00:23:32,160 --> 00:23:32,400 feature. 917 00:23:32,640 --> 00:23:33,420 It collects 918 00:23:33,420 --> 00:23:34,240 low-level 919 00:23:34,240 --> 00:23:34,560 features. 920 00:23:34,740 --> 00:23:35,460 You can see 921 00:23:35,460 --> 00:23:37,000 some edges 922 00:23:37,000 --> 00:23:38,360 or some lines. 923 00:23:38,680 --> 00:23:39,480 This is what 924 00:23:39,480 --> 00:23:39,540 was done 925 00:23:39,540 --> 00:23:40,700 in the first layer 926 00:23:40,700 --> 00:23:41,320 It should be said 927 00:23:41,320 --> 00:23:41,880 that it was done 928 00:23:41,880 --> 00:23:42,380 in the first few layers. 929 00:23:43,500 --> 00:23:44,460 What is the second layer 930 00:23:44,460 --> 00:23:45,000 doing? 931 00:23:45,840 --> 00:23:46,820 It collects 932 00:23:46,820 --> 00:23:47,720 a slightly 933 00:23:47,720 --> 00:23:48,900 higher layer 934 00:23:48,900 --> 00:23:49,260 of features. 935 00:23:50,260 --> 00:23:51,000 For example, 936 00:23:51,060 --> 00:23:51,720 some deep layers 937 00:23:51,720 --> 00:23:52,680 or even 938 00:23:52,680 --> 00:23:53,280 some eyes 939 00:23:53,280 --> 00:23:54,720 or some edges. 940 00:23:55,240 --> 00:23:56,280 It is based on 941 00:23:56,280 --> 00:23:56,580 this kind of 942 00:23:56,580 --> 00:23:57,020 rough features 943 00:23:57,020 --> 00:23:57,540 and collects 944 00:23:57,540 --> 00:23:58,500 some higher features. 945 00:24:00,600 --> 00:24:01,780 At the third layer 946 00:24:01,780 --> 00:24:02,560 you can see 947 00:24:02,560 --> 00:24:03,200 that even 948 00:24:03,200 --> 00:24:04,920 a complete 949 00:24:04,920 --> 00:24:05,840 outline of a cat 950 00:24:05,840 --> 00:24:06,060 can be seen. 951 00:24:06,080 --> 00:24:06,600 So, 952 00:24:06,700 --> 00:24:07,460 at the third layer 953 00:24:07,460 --> 00:24:08,420 it collects features 954 00:24:08,420 --> 00:24:09,300 that can be considered 955 00:24:09,300 --> 00:24:10,000 high-level 956 00:24:10,860 --> 00:24:11,380 features. 957 00:24:12,280 --> 00:24:12,800 So, 958 00:24:12,960 --> 00:24:14,060 when we attack 959 00:24:14,060 --> 00:24:14,680 the neural network 960 00:24:14,680 --> 00:24:15,640 we hope 961 00:24:15,640 --> 00:24:16,720 to rely on 962 00:24:16,720 --> 00:24:17,560 the output 963 00:24:17,560 --> 00:24:18,400 which is 964 00:24:18,400 --> 00:24:18,620 than the original 965 00:24:18,620 --> 00:24:19,060 difference. 966 00:24:24,500 --> 00:24:25,640 The higher the level 967 00:24:25,640 --> 00:24:26,360 the higher the probability 968 00:24:26,360 --> 00:24:26,920 between the cat 969 00:24:26,920 --> 00:24:27,560 and me. 970 00:24:27,860 --> 00:24:28,340 So, 971 00:24:28,380 --> 00:24:28,820 the higher the probability 972 00:24:28,820 --> 00:24:29,520 of attacking other models 973 00:24:29,520 --> 00:24:30,800 the higher the probability 974 00:24:31,920 --> 00:24:32,400 So, 975 00:24:32,520 --> 00:24:32,700 in this 976 00:24:32,700 --> 00:24:33,340 we also 977 00:24:33,920 --> 00:24:34,400 introduced 978 00:24:34,400 --> 00:24:34,820 a little bit 979 00:24:36,180 --> 00:24:36,660 about the 980 00:24:38,240 --> 00:24:39,980 of different layers 981 00:24:39,980 --> 00:24:40,720 and the 982 00:24:40,720 --> 00:24:41,980 value of different layers. 983 00:24:42,500 --> 00:24:43,120 In other words, 984 00:24:43,320 --> 00:24:43,880 the further we go 985 00:24:43,880 --> 00:24:44,840 the more we pay 986 00:24:44,840 --> 00:24:45,240 attention to it. 987 00:24:45,260 --> 00:24:46,260 The further we go 988 00:24:46,260 --> 00:24:46,880 the lower 989 00:24:46,880 --> 00:24:46,900 the level of attention 990 00:24:46,900 --> 00:24:47,360 will be. 991 00:24:48,000 --> 00:24:49,000 If the model 992 00:24:49,000 --> 00:24:49,920 relies on the back 993 00:24:49,920 --> 00:24:50,540 the difference 994 00:24:50,540 --> 00:24:51,520 will be greater 995 00:24:51,520 --> 00:24:52,340 and its 996 00:24:52,340 --> 00:24:52,700 potential 997 00:24:52,700 --> 00:24:53,920 will be stronger. 998 00:24:54,440 --> 00:24:55,480 We will introduce 999 00:24:55,480 --> 00:24:55,680 this later 1000 00:24:55,680 --> 00:24:56,800 through numbers. 1001 00:24:59,360 --> 00:25:00,120 This is 1002 00:25:00,120 --> 00:25:00,360 a specific definition 1003 00:25:00,360 --> 00:25:00,400 of the 1004 00:25:00,400 --> 00:25:00,800 of the 1005 00:25:00,800 --> 00:25:01,500 of the 1006 00:25:01,500 --> 00:25:01,880 of the 1007 00:25:01,880 --> 00:25:02,340 of the 1008 00:25:02,340 --> 00:25:02,660 of the 1009 00:25:02,660 --> 00:25:02,720 of the 1010 00:25:02,720 --> 00:25:02,940 of the 1011 00:25:02,940 --> 00:25:03,100 of the 1012 00:25:03,100 --> 00:25:03,740 of the 1013 00:25:03,740 --> 00:25:03,980 of the 1014 00:25:16,420 --> 00:25:16,860 the 1015 00:25:45,440 --> 00:25:46,840 of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of the of 1016 00:25:46,840 --> 00:25:47,740 There are two advantages. 1017 00:25:48,080 --> 00:25:50,200 First of all, Imagine.net is an open source database. 1018 00:25:50,480 --> 00:25:51,500 Everyone can get it. 1019 00:25:51,700 --> 00:25:54,300 This database is open source and fair. 1020 00:25:54,460 --> 00:25:56,300 I didn't just find a hundred pictures. 1021 00:25:56,760 --> 00:25:57,640 What are the other advantages? 1022 00:25:58,240 --> 00:26:00,660 It comes from the Imagine.net test database. 1023 00:26:00,960 --> 00:26:04,680 It also says that this data itself is not used to train open source models. 1024 00:26:05,020 --> 00:26:09,840 So this data is both fair and will not affect my model itself. 1025 00:26:11,220 --> 00:26:14,180 Another point is that in order to adapt to different models, 1026 00:26:14,180 --> 00:26:17,660 I resized all the pictures into 224x224x13, 1027 00:26:17,840 --> 00:26:19,080 and read them in the form of RGB. 1028 00:26:20,180 --> 00:26:21,580 This is a more common practice. 1029 00:26:25,200 --> 00:26:28,280 Then we measure the effect. 1030 00:26:28,620 --> 00:26:28,980 What is it used for? 1031 00:26:28,980 --> 00:26:29,840 It's for the escape rate. 1032 00:26:30,200 --> 00:26:31,560 The so-called escape rate is, for example, 1033 00:26:31,700 --> 00:26:34,300 normally, I throw a picture into the machine learning model. 1034 00:26:34,360 --> 00:26:36,080 It might give me a bunch of lists. 1035 00:26:36,280 --> 00:26:38,880 For example, it's 10 categories or 100 categories. 1036 00:26:39,100 --> 00:26:40,500 Each category has a different probability. 1037 00:26:42,280 --> 00:26:43,180 Usually, for example, 1038 00:26:43,300 --> 00:26:44,140 the previous model, 1039 00:26:44,140 --> 00:26:45,580 the probability ranges from large to small. 1040 00:26:46,260 --> 00:26:48,520 Top 1 is the correct answer if the first one is correct. 1041 00:26:48,900 --> 00:26:49,740 It's called the accuracy of top 1. 1042 00:26:51,500 --> 00:26:54,140 If there is only one correct answer from the first to the third place, 1043 00:26:56,240 --> 00:26:57,900 we think this is the accuracy of top 3. 1044 00:26:58,980 --> 00:27:00,600 For example, I still throw in a picture of a cat. 1045 00:27:00,980 --> 00:27:02,360 If it returns the result as a cat, 1046 00:27:02,400 --> 00:27:04,260 the probability is 0.99, and it is the highest. 1047 00:27:04,600 --> 00:27:05,360 This is the correct answer for top 1. 1048 00:27:06,320 --> 00:27:07,660 If I throw in a cat, 1049 00:27:07,680 --> 00:27:08,660 it will give me the first place is a pig, 1050 00:27:08,760 --> 00:27:09,440 the second place is a cat, 1051 00:27:09,480 --> 00:27:10,120 and the third place is a dog. 1052 00:27:10,380 --> 00:27:12,960 We think the probability of top 3 is still correct. 1053 00:27:14,140 --> 00:27:15,320 Here we use the most rigorous method. 1054 00:27:15,660 --> 00:27:18,040 We only care about the first result it returns. 1055 00:27:18,140 --> 00:27:19,600 If the first result is not a cat, 1056 00:27:19,660 --> 00:27:20,660 we think our attack is successful. 1057 00:27:21,060 --> 00:27:23,880 So we will use the error recognition rate of top 1 1058 00:27:23,880 --> 00:27:25,260 as our measurement index. 1059 00:27:25,460 --> 00:27:26,580 We define it as the escape rate. 1060 00:27:29,120 --> 00:27:32,020 Then we use the REST 152 model itself for training. 1061 00:27:32,060 --> 00:27:33,960 In fact, we introduced REST 152, 1062 00:27:33,960 --> 00:27:36,520 REST 101, and the four models in the back. 1063 00:27:36,540 --> 00:27:38,100 As long as the accuracy is higher, it can be used. 1064 00:27:39,060 --> 00:27:43,180 Then based on the T-shaped model that we have trained now, 1065 00:27:43,280 --> 00:27:44,120 we have launched a parallel simulation model. 1066 00:27:44,120 --> 00:27:46,100 We have introduced the PCD model and the FII-L model. 1067 00:27:46,900 --> 00:27:50,080 We usually think that the PCD model is the most powerful attack model 1068 00:27:50,080 --> 00:27:51,860 in the current white-collar attack algorithm. 1069 00:27:52,040 --> 00:27:53,340 So we use it as a basis. 1070 00:27:53,620 --> 00:27:54,380 On the other hand, 1071 00:27:54,500 --> 00:27:55,920 there is another one that we think is more powerful in attack, 1072 00:27:55,920 --> 00:27:56,560 which is the base attack. 1073 00:27:57,100 --> 00:27:58,400 We will see the result later. 1074 00:28:01,940 --> 00:28:04,340 Another indicator is that it is used more in the field of image recognition. 1075 00:28:05,560 --> 00:28:06,120 For example, 1076 00:28:06,640 --> 00:28:09,060 we mentioned that the contrast sample has a very important point. 1077 00:28:09,360 --> 00:28:12,960 The difference between the images I have created and the original images is not big. 1078 00:28:12,960 --> 00:28:14,420 The human eye can receive it. 1079 00:28:14,540 --> 00:28:16,100 This is a very sensitive indicator. 1080 00:28:16,440 --> 00:28:18,300 How do we lighten this indicator? 1081 00:28:18,580 --> 00:28:20,680 The most common way is to use the heart rate meter. 1082 00:28:21,020 --> 00:28:22,120 By using the heart rate meter, 1083 00:28:22,460 --> 00:28:24,300 we can compare the difference between the original picture and the sample. 1084 00:28:25,200 --> 00:28:25,960 The higher the heart rate meter, 1085 00:28:26,320 --> 00:28:28,700 the lower the image quality and the image quality. 1086 00:28:29,480 --> 00:28:30,800 The general understanding is that 1087 00:28:30,800 --> 00:28:33,340 if the heart rate meter is 20 times higher, 1088 00:28:33,340 --> 00:28:36,000 the human eye can accept this kind of change. 1089 00:28:36,220 --> 00:28:37,600 If it is lower than 20 times, 1090 00:28:37,760 --> 00:28:40,580 the human eye can already notice the obvious loss of focus. 1091 00:28:40,880 --> 00:28:41,320 However, 1092 00:28:41,420 --> 00:28:42,840 in our practice, 1093 00:28:42,960 --> 00:28:45,860 we think that 20, 19 or more can be accepted. 1094 00:28:46,000 --> 00:28:46,740 It is not too strict. 1095 00:28:47,020 --> 00:28:49,260 The ideal situation is that it is more than 20. 1096 00:28:49,380 --> 00:28:50,540 If it is more than 20, 1097 00:28:50,540 --> 00:28:52,040 its focus will be relatively small. 1098 00:28:52,860 --> 00:28:54,860 Another indicator is to measure the image. 1099 00:28:55,020 --> 00:28:55,940 This is SSIM. 1100 00:28:56,560 --> 00:28:58,460 This can be obtained through the normal library. 1101 00:28:59,380 --> 00:29:02,240 It is used to measure the similarity between two pictures. 1102 00:29:02,420 --> 00:29:02,880 Usually, 1103 00:29:02,960 --> 00:29:04,020 these two indicators will be used simultaneously. 1104 00:29:05,260 --> 00:29:07,980 The general SSIM is based on 0 to 1. 1105 00:29:08,420 --> 00:29:09,420 The larger the value, 1106 00:29:09,420 --> 00:29:10,020 the better the similarity. 1107 00:29:10,480 --> 00:29:12,940 Generally, it is more than 0.5. It can be accepted. 1108 00:29:14,520 --> 00:29:17,760 This is the result of the test 1109 00:29:18,760 --> 00:29:21,380 of four non-Chinese cloud platforms 1110 00:29:21,380 --> 00:29:22,260 that are mainstream in the international market. 1111 00:29:23,840 --> 00:29:25,120 Because in China, 1112 00:29:25,340 --> 00:29:27,100 some foreign platforms are more reliable. 1113 00:29:27,540 --> 00:29:28,420 Otherwise, 1114 00:29:28,460 --> 00:29:30,240 I will be a pioneer. 1115 00:29:32,420 --> 00:29:34,440 As you can see, 1116 00:29:34,600 --> 00:29:35,260 what is realized 1117 00:29:35,260 --> 00:29:38,380 is the attack algorithm 1118 00:29:38,380 --> 00:29:38,580 that we proposed. 1119 00:29:38,580 --> 00:29:39,240 Then, 1120 00:29:39,340 --> 00:29:40,320 what corresponds to the virtual line 1121 00:29:40,320 --> 00:29:42,940 is the result 1122 00:29:42,940 --> 00:29:44,300 of our attack PDE algorithm. 1123 00:29:44,420 --> 00:29:45,380 This is a standard algorithm. 1124 00:29:45,840 --> 00:29:46,760 As you can see, 1125 00:29:46,900 --> 00:29:48,680 the following 1, 2, 3, 4, and 5 1126 00:29:48,680 --> 00:29:49,660 are my attacks. 1127 00:29:50,240 --> 00:29:51,920 As my attacks increase, 1128 00:29:52,580 --> 00:29:54,420 the success rate of our attacks 1129 00:29:54,420 --> 00:29:55,040 is getting higher and higher. 1130 00:29:56,280 --> 00:29:58,280 When the attack is between 7 and 8, 1131 00:29:58,620 --> 00:29:59,880 mainstream platforms can be 1132 00:29:59,880 --> 00:30:01,980 more than 90%. 1133 00:30:03,020 --> 00:30:03,900 This is Taoyue. 1134 00:30:09,460 --> 00:30:10,880 This is the result of our attack. 1135 00:30:11,600 --> 00:30:12,300 At the same time, 1136 00:30:12,340 --> 00:30:13,280 we also need to pay attention 1137 00:30:13,280 --> 00:30:14,220 to the quality of our images. 1138 00:30:15,280 --> 00:30:16,060 As you can see, 1139 00:30:16,280 --> 00:30:20,420 the quality of our images 1140 00:30:20,420 --> 00:30:21,160 is higher than that of PGD. 1141 00:30:21,340 --> 00:30:21,780 However, 1142 00:30:21,920 --> 00:30:24,400 we are more than 20%. 1143 00:30:24,400 --> 00:30:24,980 Therefore, 1144 00:30:25,100 --> 00:30:28,340 both of us are satisfied 1145 00:30:28,340 --> 00:30:28,800 with the quality of our images. 1146 00:30:35,260 --> 00:30:36,120 The blue one 1147 00:30:36,120 --> 00:30:37,520 is our attack sample. 1148 00:30:37,680 --> 00:30:39,380 The green one is PGD. 1149 00:30:39,720 --> 00:30:42,160 The similarity of our images 1150 00:30:42,160 --> 00:30:43,480 is significantly higher 1151 00:30:43,480 --> 00:30:44,440 than the traditional attack method. 1152 00:30:44,640 --> 00:30:45,360 In other words, 1153 00:30:45,560 --> 00:30:46,920 when the quality of our images 1154 00:30:46,920 --> 00:30:47,800 is acceptable, 1155 00:30:48,220 --> 00:30:48,940 the similarity of our images 1156 00:30:48,940 --> 00:30:49,980 will be higher. 1157 00:30:53,760 --> 00:30:55,460 This is the result 1158 00:30:55,460 --> 00:30:57,120 of our comparison with PGD. 1159 00:30:57,620 --> 00:30:58,880 Another way to recognize 1160 00:30:58,880 --> 00:31:00,380 the better results is 1161 00:31:04,760 --> 00:31:05,340 when we use PGD. 1162 00:31:05,340 --> 00:31:07,440 What is PGD? 1163 00:31:08,060 --> 00:31:08,740 For example, 1164 00:31:08,800 --> 00:31:11,180 if I have 5 or even 10 models 1165 00:31:11,180 --> 00:31:11,520 in my hand, 1166 00:31:11,580 --> 00:31:13,280 I will use them one by one 1167 00:31:13,280 --> 00:31:13,940 to create a sample. 1168 00:31:14,140 --> 00:31:15,840 We understand that 1169 00:31:15,840 --> 00:31:18,040 this sample is more efficient 1170 00:31:18,040 --> 00:31:21,300 because I have 10 different models 1171 00:31:21,300 --> 00:31:22,700 that can attack successfully. 1172 00:31:22,820 --> 00:31:23,940 We think that the success rate 1173 00:31:23,940 --> 00:31:24,540 of attacking other models 1174 00:31:24,540 --> 00:31:25,400 will be higher. 1175 00:31:26,260 --> 00:31:27,480 In the case of a pure black box, 1176 00:31:27,880 --> 00:31:28,060 that is, 1177 00:31:28,200 --> 00:31:29,480 when there are no images 1178 00:31:29,480 --> 00:31:30,320 in the preview, 1179 00:31:30,620 --> 00:31:32,280 the attack effect is very good. 1180 00:31:32,600 --> 00:31:33,040 Therefore, 1181 00:31:33,160 --> 00:31:34,520 we also use it as a basic model. 1182 00:31:37,560 --> 00:31:38,000 However, 1183 00:31:38,100 --> 00:31:38,800 the actual effect 1184 00:31:38,800 --> 00:31:40,660 is very unexpected. 1185 00:31:41,580 --> 00:31:42,340 As you can see, 1186 00:31:43,720 --> 00:31:46,820 the attack success rate 1187 00:31:46,820 --> 00:31:47,300 is very low. 1188 00:31:47,760 --> 00:31:48,200 Basically, 1189 00:31:49,860 --> 00:31:50,840 the attack success rate 1190 00:31:50,840 --> 00:31:51,740 is less than 50%. 1191 00:31:51,740 --> 00:31:52,800 No matter how I increase 1192 00:31:52,800 --> 00:31:53,400 the number of attacks, 1193 00:31:54,160 --> 00:31:56,640 the number of attacks 1194 00:31:56,640 --> 00:31:58,020 is not too long. 1195 00:31:58,200 --> 00:31:59,180 Because this kind of 1196 00:31:59,180 --> 00:31:59,880 attack is usually done 1197 00:31:59,880 --> 00:32:00,580 in an optimized way. 1198 00:32:01,180 --> 00:32:02,780 Only one of the models 1199 00:32:02,780 --> 00:32:04,460 can attack successfully. 1200 00:32:05,520 --> 00:32:07,140 What is the difference 1201 00:32:07,140 --> 00:32:08,560 between the two models? 1202 00:32:08,800 --> 00:32:10,760 Compared to the pure black box, 1203 00:32:11,080 --> 00:32:13,440 there is a very important process 1204 00:32:18,200 --> 00:32:18,380 in which the attack effect 1205 00:32:18,380 --> 00:32:19,260 is set randomly 1206 00:32:19,260 --> 00:32:21,320 to a certain length 1207 00:32:21,320 --> 00:32:22,100 and size, 1208 00:32:22,360 --> 00:32:23,480 and then it will be removed. 1209 00:32:23,800 --> 00:32:25,100 Even if it is randomly drawn, 1210 00:32:25,960 --> 00:32:27,080 in the case of optimized 1211 00:32:27,080 --> 00:32:28,240 attack method, 1212 00:32:28,900 --> 00:32:30,960 some of the disturbances 1213 00:32:30,960 --> 00:32:31,540 generated are easily 1214 00:32:31,540 --> 00:32:32,540 destroyed by this kind of 1215 00:32:32,540 --> 00:32:33,020 image art. 1216 00:32:33,560 --> 00:32:34,740 This also explains 1217 00:32:34,740 --> 00:32:36,140 why attacking the cloud 1218 00:32:36,140 --> 00:32:37,360 will be more complicated 1219 00:32:48,200 --> 00:32:48,760 than the attack effect. 1220 00:32:49,380 --> 00:32:50,640 In the case of other models, 1221 00:32:50,840 --> 00:32:53,200 such as Google, 1222 00:32:53,460 --> 00:32:53,760 Safari, 1223 00:32:54,040 --> 00:32:55,340 and Amazon, 1224 00:32:55,880 --> 00:32:57,380 the attack effect is relatively poor. 1225 00:32:57,500 --> 00:32:59,020 We think it is because 1226 00:32:59,020 --> 00:33:00,500 the image art processing 1227 00:33:00,500 --> 00:33:02,080 is relatively strong 1228 00:33:02,080 --> 00:33:02,900 in these three cloud processing 1229 00:33:02,900 --> 00:33:03,100 models. 1230 00:33:03,180 --> 00:33:07,820 You can see that 1231 00:33:07,820 --> 00:33:08,840 in our attack chart, 1232 00:33:15,580 --> 00:33:17,060 the attack effect 1233 00:33:17,060 --> 00:33:17,840 is relatively good. 1234 00:33:17,960 --> 00:33:18,500 For example, 1235 00:33:18,520 --> 00:33:18,980 in the case of 7 and 8, 1236 00:33:19,280 --> 00:33:20,140 the attack effect 1237 00:33:20,140 --> 00:33:21,660 is close to 90%. 1238 00:33:22,820 --> 00:33:23,800 This shows that 1239 00:33:23,800 --> 00:33:24,380 when we use this kind of 1240 00:33:24,380 --> 00:33:25,240 long-range attack 1241 00:33:25,240 --> 00:33:27,020 to deal with image art, 1242 00:33:27,460 --> 00:33:29,020 our Lu Bang is strong enough. 1243 00:33:32,040 --> 00:33:33,060 After talking so much, 1244 00:33:33,120 --> 00:33:34,520 let's talk about 1245 00:33:34,520 --> 00:33:35,800 the effect of 1246 00:33:35,800 --> 00:33:37,300 attacking an image search 1247 00:33:37,300 --> 00:33:38,360 on the cloud. 1248 00:33:39,080 --> 00:33:39,800 You can see that 1249 00:33:39,800 --> 00:33:41,140 this is a normal cat. 1250 00:33:41,540 --> 00:33:42,600 When the image search 1251 00:33:42,600 --> 00:33:42,900 on the cloud, 1252 00:33:43,300 --> 00:33:44,660 the result is 1253 00:33:44,660 --> 00:33:46,740 something I don't know how to translate. 1254 00:33:47,080 --> 00:33:47,580 It should be called 1255 00:33:47,580 --> 00:33:49,020 British long-haired cat. 1256 00:33:49,580 --> 00:33:50,660 It is similar to that. 1257 00:33:51,060 --> 00:33:52,360 It can be identified normally 1258 00:33:52,360 --> 00:33:53,700 when dealing with 1259 00:33:53,700 --> 00:33:54,500 our original sample. 1260 00:33:58,180 --> 00:33:59,080 The following is 1261 00:33:59,080 --> 00:33:59,860 an example of our attack. 1262 00:34:07,300 --> 00:34:07,600 Although there is a gap, 1263 00:34:07,800 --> 00:34:09,140 it won't affect your identification. 1264 00:34:10,780 --> 00:34:11,640 Notice that 1265 00:34:11,640 --> 00:34:12,400 the image I'm talking about 1266 00:34:12,400 --> 00:34:13,020 refers to this cat, 1267 00:34:13,140 --> 00:34:15,620 not the whole screenshot. 1268 00:34:15,860 --> 00:34:17,060 I'm talking about this cat. 1269 00:34:20,280 --> 00:34:21,460 You can see that 1270 00:34:21,460 --> 00:34:22,780 from the perspective of 1271 00:34:22,780 --> 00:34:24,440 although there is a gap between 1272 00:34:24,440 --> 00:34:26,220 it won't affect your identification. 1273 00:34:26,580 --> 00:34:27,060 However, 1274 00:34:27,120 --> 00:34:28,020 for image sorting, 1275 00:34:37,300 --> 00:34:38,080 we don't compare each image. 1276 00:34:39,540 --> 00:34:39,840 Instead, 1277 00:34:39,920 --> 00:34:42,280 we make the image into a label. 1278 00:34:42,540 --> 00:34:43,100 For example, 1279 00:34:43,120 --> 00:34:43,740 this is the result of a cat. 1280 00:34:44,120 --> 00:34:44,320 After that, 1281 00:34:44,620 --> 00:34:46,720 the image of the cat 1282 00:34:46,720 --> 00:34:48,380 will be transferred to you. 1283 00:34:48,480 --> 00:34:48,960 Therefore, 1284 00:34:49,160 --> 00:34:50,000 our attack on the cloud 1285 00:34:50,000 --> 00:34:50,600 will be successful in 1286 00:34:50,600 --> 00:34:51,720 attacking the image search. 1287 00:34:53,020 --> 00:34:53,980 In fact, 1288 00:34:54,540 --> 00:34:55,120 we don't know 1289 00:34:55,120 --> 00:34:57,660 what kind of image sorting model Google uses. 1290 00:34:57,660 --> 00:34:58,900 The whole process is pure black box. 1291 00:35:01,700 --> 00:35:02,660 Let's summarize. 1292 00:35:03,160 --> 00:35:04,380 The first point is that 1293 00:35:04,380 --> 00:35:05,300 through our experiment, 1294 00:35:05,460 --> 00:35:06,400 we have proven that 1295 00:35:06,400 --> 00:35:08,820 keeping the model in the cloud 1296 00:35:08,820 --> 00:35:11,820 is actually a wrong sense of security. 1297 00:35:11,920 --> 00:35:13,360 At least in the task of image sorting, 1298 00:35:14,200 --> 00:35:16,160 we have successfully achieved the attack. 1299 00:35:16,480 --> 00:35:17,200 In the case of the model, 1300 00:35:17,200 --> 00:35:17,900 I don't know at all. 1301 00:35:18,660 --> 00:35:21,220 After training with AutoDL, 1302 00:35:22,080 --> 00:35:23,860 our attack is generally 1303 00:35:23,860 --> 00:35:25,180 more than 80% effective. 1304 00:35:25,680 --> 00:35:26,920 This is a very good result. 1305 00:35:27,140 --> 00:35:27,820 It's a pure black box. 1306 00:35:27,900 --> 00:35:28,980 The key point is that 1307 00:35:28,980 --> 00:35:29,860 we have only checked the number of times. 1308 00:35:32,220 --> 00:35:33,440 The second point is 1309 00:35:36,240 --> 00:35:37,640 that our attack 1310 00:35:37,640 --> 00:35:38,640 has a very strong transparency. 1311 00:35:39,460 --> 00:35:40,480 It doesn't mean that 1312 00:35:40,480 --> 00:35:43,020 if I don't have the same open source model, 1313 00:35:43,140 --> 00:35:43,800 my attack will fail. 1314 00:35:44,520 --> 00:35:46,540 From the common recognition of cats and dogs 1315 00:35:46,540 --> 00:35:47,740 to the recognition of vehicles 1316 00:35:47,740 --> 00:35:48,980 to image sorting, 1317 00:35:51,220 --> 00:35:52,320 they are all based on 1318 00:35:52,320 --> 00:35:52,720 the model of IMAGINA. 1319 00:35:53,720 --> 00:35:55,500 So this attack has a very strong transparency. 1320 00:35:57,060 --> 00:35:57,580 In short, 1321 00:35:57,840 --> 00:35:59,780 I want to tell you that 1322 00:35:59,780 --> 00:36:01,500 if you put your model in the cloud, 1323 00:36:01,900 --> 00:36:02,740 even though you think that 1324 00:36:02,740 --> 00:36:03,700 you have a lot of image sorting, 1325 00:36:04,180 --> 00:36:05,160 you can also think that 1326 00:36:05,160 --> 00:36:06,340 no one knows about your model, 1327 00:36:06,340 --> 00:36:07,600 you can also think that 1328 00:36:07,600 --> 00:36:08,760 other people visit you a lot, 1329 00:36:09,240 --> 00:36:10,800 and it's impossible for someone to spend 100 yuan 1330 00:36:10,800 --> 00:36:11,920 to visit you 10,000 times 1331 00:36:11,920 --> 00:36:13,420 to create a picture of a cat and dog. 1332 00:36:21,220 --> 00:36:22,440 Keeping your model in the cloud 1333 00:36:22,440 --> 00:36:23,800 is a wrong sense of security. 1334 00:36:26,240 --> 00:36:27,160 Okay, I'm done with my presentation. 1335 00:36:27,420 --> 00:36:27,700 Thank you.