当前位置:网站首页>Discussion on the dimension of confrontation subspace
Discussion on the dimension of confrontation subspace
2022-07-05 04:24:00 【PaperWeekly】
PaperWeekly original · author | Sun Yudao
Company | Beijing University of Posts and telecommunications
Research direction | GAN Image generation 、 Emotional confrontation sample generation
introduction
Confronting samples is one of the main threats of deep learning models , Confrontation samples will make the target classifier model classification error, and it exists in the dense confrontation subspace , The antagonism subspace is contained in a specific sample space . This paper mainly discusses the dimension of antagonism subspace , That is, for a specific sample of a single model, what is the dimension of the subspace , What is the dimension of the subspace against a specific sample of multiple models .
Antagonism subspace
Given a clean sample , And its corresponding label , With parameters The neural network classifier of is , The loss function is , The confrontation sample is , Then according to the multivariate Taylor expansion :
Further, the optimization objective is :
Further, the calculation formula of the countermeasure sample is :
among It indicates the size of the counter disturbance . It can be seen from the above formula that , Clean samples Along the gradient You can enter the confrontation subspace . Further details are shown in the figure below , Among them (a),(b) and (c) It represents the result diagram of the classifier classification given a clean sample generated in different directions , Each square represents the classification result of each sample , White in the square indicates that the classifier is classified correctly , Color means that the classifier is classified into other different categories . chart (d),(e) and (f) Decomposition diagram showing the direction of sample movement .
From above (d) You know , If you choose two orthogonal directions , One is the gradient direction against disturbance , The other is the direction of random disturbance , From the picture (a) You know , Clean samples along the anti disturbance direction can enter the anti disturbance subspace , Along the direction of random disturbance, no countermeasure samples are generated . From above (e) You know , If these two orthogonal directions are at an angle to the gradient direction , From the diagram (b) It can be seen that these two orthogonal directions can enter the confrontation subspace , But it's not the fastest direction . From above (f) You know , If these two orthogonal directions are random disturbances , From the picture (c) You know , It is difficult for clean samples to enter the confrontation subspace , The misclassification of the figure is independent of the confrontation samples , It is related to the training of the model itself .
Single model antagonism subspace dimension
From the multivariate Taylor expansion of the loss function against samples in the previous section, we can approximate :
Among them, the order is ,. The purpose is to explore a given model , Solve the anti disturbance Make the model loss function grow at least We have to confront the problem of subspace dimension , The mathematical expression is :
among , Disturbance Belong to this In the confrontation subspace composed of orthogonal vectors , It's against the dimension of subspace . At this point, the following theorem holds , The detailed proof process is as follows :
Theorem 1: Given and , Maximum antagonism subspace dimension Orthogonal vector of Satisfy , If and only if .
prove :
Proof of necessity : It is known that and , Make , also It is orthogonal. , Thus we can see that .
1. If , Then we can know from the vector product formula :
among , It's a vector and Cosine of , And I know , So there is :
Then there are :2. If , First of all Orthogonal expansion , Expand to :
Then we can see :
Then we can know :
Again because , So there is :
because ,, So there is :
Again because :
finally :
Sufficiency proof :
It is known that , Make It means Base vector of , Is a rotation matrix and has .
Make , also For the rotation matrix , So there is :
Easy to know , matrix For the rotation matrix , Its satisfaction :
Let vector , also , among It's a matrix Of the Column , It's an orthogonal matrix , Then we can know :
Certificate completion !
Through the above proof, we can get a very rigorous and beautiful conclusion , That is, against the dimension of subspace Size and growth degree of loss function Is inversely proportional to the square of , This is also very intuitive . The greater the growth , The more the antagonism subspace collapses towards the gradient , Because the gradient direction is the fastest direction .
Multi model antagonism subspace dimension
In the black box model , It often takes advantage of the mobility of the counter samples to attack , That is, use the model Generated countermeasure samples , Migrate unknown classification model Attack in , The main reason is that there are overlapping confrontation subspaces for two different models , Therefore, it can make the anti sample have the mobility of attack .
Assume It's a sample For the model Makes its loss function grow To counter disturbance ; It's a sample For the model Makes its loss function grow To counter disturbance . among , Disturbance Belong to this In the confrontation subspace composed of orthogonal vectors . among , Disturbance Belong to this In the confrontation subspace composed of orthogonal vectors ; At this time, the size of the subspace dimension against multiple models is :
Similarly, according to the above derivation ideas, we can find 3 Dimensions of confrontation subspaces with more than models overlapping .
Thank you very much
thank TCCI Tianqiao Academy of brain sciences for PaperWeekly Support for .TCCI Focus on the brain to find out 、 Brain function and brain health .
Read more
# cast draft through Avenue #
Let your words be seen by more people
How to make more high-quality content reach the reader group in a shorter path , How about reducing the cost of finding quality content for readers ? The answer is : People you don't know .
There are always people you don't know , Know what you want to know .PaperWeekly Maybe it could be a bridge , Push different backgrounds 、 Scholars and academic inspiration in different directions collide with each other , There are more possibilities .
PaperWeekly Encourage university laboratories or individuals to , Share all kinds of quality content on our platform , It can be Interpretation of the latest paper , It can also be Analysis of academic hot spots 、 Scientific research experience or Competition experience explanation etc. . We have only one purpose , Let knowledge really flow .
The basic requirements of the manuscript :
• The article is really personal Original works , Not published in public channels , For example, articles published or to be published on other platforms , Please clearly mark
• It is suggested that markdown Format writing , The pictures are sent as attachments , The picture should be clear , No copyright issues
• PaperWeekly Respect the right of authorship , And will be adopted for each original first manuscript , Provide Competitive remuneration in the industry , Specifically, according to the amount of reading and the quality of the article, the ladder system is used for settlement
Contribution channel :
• Send email :[email protected]
• Please note your immediate contact information ( WeChat ), So that we can contact the author as soon as we choose the manuscript
• You can also directly add Xiaobian wechat (pwbot02) Quick contribution , remarks : full name - contribute
△ Long press add PaperWeekly Small make up
Now? , stay 「 You know 」 We can also be found
Go to Zhihu home page and search 「PaperWeekly」
Click on 「 Focus on 」 Subscribe to our column
·
边栏推荐
- 蛇形矩阵
- File upload bypass summary (upload labs 21 customs clearance tutorial attached)
- Threejs Internet of things, 3D visualization of farms (II)
- PHP reads the INI file and writes the modified content
- 长度为n的入栈顺序的可能出栈顺序
- Threejs Internet of things, 3D visualization of factory
- 包 类 包的作用域
- 直播預告 | 容器服務 ACK 彈性預測最佳實踐
- open graph协议
- 自动语音识别(ASR)研究综述
猜你喜欢
TPG x AIDU|AI领军人才招募计划进行中!
Network security - record web vulnerability fixes
Is "golden nine and silver ten" the best time to find a job? Not necessarily
Learning notes 8
行为感知系统
MacBook安装postgreSQL+postgis
Uni app change the default component style
指针函数(基础)
Sword finger offer 04 Search in two-dimensional array
Threejs realizes sky box, panoramic scene, ground grass
随机推荐
[phantom engine UE] the difference between running and starting, and the analysis of common problems
【虚幻引擎UE】打包报错出现!FindPin错误的解决办法
直播預告 | 容器服務 ACK 彈性預測最佳實踐
Threejs Internet of things, 3D visualization of farms (II)
Observable time series data downsampling practice in Prometheus
Scheduling system of kubernetes cluster
根据入栈顺序判断出栈顺序是否合理
C26451: arithmetic overflow: use the operator * on a 4-byte value, and then convert the result to an 8-byte value. To avoid overflow, cast the value to wide type before calling the operator * (io.2)
Network security - record web vulnerability fixes
Is there a sudden failure on the line? How to make emergency diagnosis, troubleshooting and recovery
Power management bus (pmbus)
网络安全-记录web漏洞修复
技术教程:如何利用EasyDSS将直播流推到七牛云?
OWASP top 10 vulnerability Guide (2021)
Threejs loads the city obj model, loads the character gltf model, and tweetjs realizes the movement of characters according to the planned route
Decimal to hexadecimal
蛇形矩阵
Why can't all browsers on my computer open web pages
Learning MVVM notes (1)
【UNIAPP】系统热更新实现思路