当前位置:网站首页>[distributed external detection] Odin ICLR '18
[distributed external detection] Odin ICLR '18
2022-06-22 06:55:00 【chad_ lee】
《Enhancing the reliability of out-of-distribution image detection in neural networks.》 ICLR’18
OOD classic baseline.
ODIN The idea is very simple , Since the model is right ID and OOD Sample output softmax The predicted probability distribution is different , So can we make their distribution more different ? This makes it easier to detect OOD sample . This paper presents two methods to assist :Temperature scaling and Input Preprocessing:

Compared with baseline, Use Temperature scaling and Input Preprocessing Can effectively make ID and OOD sample softmax The difference of distribution probability becomes larger .
Temperature Scaling
p i ( x ; T ) = exp ( f i ( x ) / T ) ∑ j = 1 N exp ( f j ( x ) / T ) p_{i}(\boldsymbol{x} ; T)=\frac{\exp \left(f_{i}(\boldsymbol{x}) / T\right)}{\sum_{j=1}^{N} \exp \left(f_{j}(\boldsymbol{x}) / T\right)} pi(x;T)=∑j=1Nexp(fj(x)/T)exp(fi(x)/T)
Softmax Of Temperature Scaling In fact, it is used in many places , Such as Hinton Of Knowledge Distillation, Use a large enough T T T value , You can make softmax The score of is close to 1 N \frac{1}{N} N1, The author also proved that this method can effectively separate ID and OOD Of the sample softmax Distribution .
Input Preprocessing
x ~ = x − ε sign ( − ∇ x log p y ^ ( x ; T ) ) \tilde{\boldsymbol{x}}=\boldsymbol{x}-\varepsilon \operatorname{sign}\left(-\nabla_{\boldsymbol{x}} \log p_{\hat{y}}(\boldsymbol{x} ; T)\right) x~=x−εsign(−∇xlogpy^(x;T))
Inspired by the confrontation sample . The purpose of the counter sample is to move in the opposite direction of the real label , Yes x x x Add a small disturbance ; It's the opposite here , Towards the real label x x x Add a small disturbance , Through this operation, we can get x ~ \tilde{x} x~ Close to its real category , Corresponding category softmax The probability of prediction increases , So all of ID The sample will be closer to its true category , Further separation ID and OOD sample softmax Probability distribution of .
I don't quite agree with this , Yes, in the training set ID Data is disturbed , Then when testing, we encounter ID data , But this data has not been disturbed , It will also appear that it deviates from the original distribution ?
边栏推荐
- Single cell paper record (part6) -- space: spatial gene enhancement using scrna seq
- [5g NR] UE registration management status
- In depth analysis of 20million OP events stolen by optimization (including code)
- Install boost
- 猿辅导最强暑假计划分享:暑假计划这样做,学习玩耍两不误
- OpenGL - Textures
- [openairinterface5g] high level module interface and ITTI entity thread creation
- Correspondence between pytorch and torchvision
- C skill tree evaluation - customer first, making excellent products
- Error when connecting MySQL with dbeaver for the first time
猜你喜欢

低代码开发一个合同应用

MySQL Niuke brush questions

The tidb community offline exchange meeting was seen by the partners from Tianjin and Shijiazhuang~

Theory and application of naturallanguageprocessing

【Rust 日报】2022-01-23 WebAPI Benchmarking

Xh_ CMS penetration test documentation

Blog add mailbox private message shortcut

Neuron+eKuiper 实现工业物联网数据采集、清理与反控

Introduction to 51 Single Chip Microcomputer -- the use of Proteus 8 professional

Training penetration range 02 | 3-star VH LLL target | vulnhub range node1
随机推荐
iframe框架,,原生js路由
Cactus Song - March to C live broadcast (3)
JDBC查询结果集,结果集转化成表
In depth analysis of 20million OP events stolen by optimization (including code)
JDBC query result set, which is converted into a table
Armadillo安装
Neuron+ekuiper realizes data collection, cleaning and anti control of industrial Internet of things
5g terminal identification Supi, suci and IMSI analysis
Training penetration range 02 | 3-star VH LLL target | vulnhub range node1
Linux link sqlserver, offline installation
(multithreaded: producer consumer mode) blocking queue
golang调用sdl2,播放pcm音频,报错signal arrived during external code execution。
《数据安全实践指南》- 数据采集安全管理
sessionStorage 和 localStorage 的使用
Cesium loading 3D tiles model
CNN模型合集 | Resnet变种-WideResnet解读
Generate string mode
leetcode:面试题 08.12. 八皇后【dfs + backtrack】
[5g NR] NAS connection management - cm status
June training (day 22) - orderly gathering