SlideShare a Scribd company logo
1 of 26
Download to read offline
Defense Against Adversarial Images using
Web-Scale Nearest-Neighbor Search
Abhimanyu Dubey, Laurens van der Maaten, Zeki Yalniz, Yixuan Li

( MIT, Facebook AI )

資料作成: 谷村 朋樹

http://hirokatsukataoka.net/project/cc/index_cvpaperchallenge.html
概要
• 仮説
• Adversarial Examples (AEs)は画像に対して画像集合が成す多様体か
ら遠ざけるような摂動を加えたものである
• AEsを画像多様体に再射影できれば,強固な防御手法を構築可能
• 提案手法
• 大量の画像集合を画像多様体として扱い,入力画像と類似する画像
をkNNで求め,類似画像の予測結果をもとに分類する
• 画像集合の作り方を工夫することでロバストな画像分類システムを
構築できることを示した
!2
Adversarial Examples (AEs)
• ロス関数を最大化するように画像に対してノイズ(摂動)を加える
ことで,分類器を すように意図的に作られた画像
!3
• 摂動によって作られるAEsを自然界に作り出すことは難しいことか
ら,これらは自然画像集合が成す多様体上には存在しない
AEsに対する仮説
!4
自然画像集合が成す多様体
AEsの一つ
自然画像
AEsを画像多様体上に再射影
• AEsを画像多様体上に再射影してから,分類する
• 大規模な画像データベースを自然画像集合が成す多様体と仮定し

入力画像と類似している画像を検索することで,再射影を行う
• 類似画像の検索には,画像特徴量空間でk Nearest Neighbor
!5
分類方法
• 入力画像をResNet50に入力し,conv_5_1*のfeature mapを取得
• Feature mapをspatial average pooling & PCAで256次元の特徴ベクト
ルに圧縮
• 特徴ベクトルのユークリッド距離により,画像データベースから類似画
像をK件取得
• 類似画像をResNet50*で分類し,softmaxの加重平均*をとって,最終的
なクラス確率とする
!6
kNNにより取得される類似画像
!7
分類方法
• 入力画像をResNet50に入力し,conv_5_1*のfeature mapを取得
• Feature mapをspatial average pooling & PCAで256次元の特徴ベクト
ルに圧縮
• 特徴ベクトルのユークリッド距離により,画像データベースから類似画
像をK件取得
• 類似画像をResNet50*で分類し,softmaxの加重平均*をとって,最終的
なクラス確率とする
!8
画像データベース
• IG-N-*
• SNSからhashtagを利用して収集したN件の画像データベース
• IG-N-ALL: ランダムにN件収集
• IG-N-Targeted: ImageNetのクラスに似たhashtagが付いているもの
• 最大で50 billion
• YFCC-100M
• 100MのFlickrの画像
• IN-1.3M
• ImageNet
!9
分類方法
• 入力画像をResNet50に入力し,conv_5_1*のfeature mapを取得
• Feature mapをspatial average pooling & PCAで256次元の特徴ベクト
ルに圧縮
• 特徴ベクトルのユークリッド距離により,画像データベースから類似画
像をK件取得
• 類似画像をResNet50*で分類し,softmaxの加重平均*をとって,最終的
なクラス確率とする
!10
weightingアルゴリズム
類似画像集合のsoftmaxの加重平均の取り方
• Uniform weighting (UW)
• W = 1 / K
• Content-based weighting - Entropy (CBW-E)
• クラス確率のエントロピーが大きいサンプルを重視
• s = 1000次元のクラス確率
• Content-based weighting - Diversity (CBW-D)
• クラス確率の多様性が大きいサンプルを重視
• s^ = 1000次元のクラス確率を降順sortしたもの
!11
実験
• Black-box setting
• Defence: ResNet50 Attack: ResNet18
• Gray-box setting*
• Defence側とAttack側で同様のアーキテクチャの分類器を使用
• White-box setting
• Attack側がDefence方法の全てを知っている前提
!12
実験
• Black-box setting
• Defence: ResNet50 Attack: ResNet18
• Gray-box setting*
• Defence側とAttack側で同様のアーキテクチャの分類器を使用
• White-box setting
• Attack側がDefence方法の全てを知っている前提
!13
Black- and Gray-box setting
• Accuracy
• Gray: 46.2% Black: 58.7%
• Weighting strategy
• CBW-D(iversity)の精度が最も高い
• Image database
• IG-N-*がImageNetよりも優れている
!14
* K=50個の類似画像をResNet50を用いて分類
Kと精度の関係
• Kの値が大きい方が精度が高いが,K=50以降は大きな変化なし
!15
kNNに利用する特徴量の選択
• ResNetのどの層を利用して分類するのが効果的かを検証
• 基本的には深い層の方が精度が高い
• 浅い層は精度は低いが精度の減少が緩やか
• →浅い層は,摂動による影響が小さいため,ロバストに見える

逆に,小さいノイズに対する反応も残っている
!16
画像データベースのサイズと選定
• データベースのサイズと精度の関係
• サイズは大きければ大きい方がいい
• データベース画像の選定
• ImageNetのクラスに似たタグがついた画像に絞った方が精度が高い
!17
既存のSoTA手法との比較
• 通常の精度とGray-boxにおけるロバスト性では,既存手法を上
回った
• Black-box settingでは,Image quilting (画像のPatchごとに近傍探
索を実行する手法)の方が高い精度を示した
!18
実験
• Black-box setting
• Defence: ResNet50 Attack: ResNet18
• Gray-box setting*
• Defence側とAttack側で同様のアーキテクチャの分類器を使用
• White-box setting
• Attack側がDefence方法の全てを知っている前提
!19
攻撃手法 for White-box setting
提案手法に対する攻撃手法の提案
• Nearest-Neighbor Prediction Attack (PGD-PR)
• 分類器に対して,摂動を計算し,誤分類させる
•
• Nearest-Neighbor Feature Space Attack (PGD-FS)
• Feature extractorに対して摂動を計算し,類似画像を誤検索させる
•
!20
True white-box setting
• 特徴抽出器,画像データベース,分類器の全てが攻撃側に知られて
いる最悪条件の場合
• 特徴抽出器に対して攻撃する(PGD-FS)が最も強力であった
!21
実応用の想定
• 防御側の画像データベースが全て,攻撃側に知られるという可能
性は低い
• 防御側は自由に画像データベースを変更可能であるため
• 以下の2つを検証
• 攻撃側の画像データベースのサイズに関する検証
• 攻撃側と防御側の画像データベースの被り具合に関する検証
!22
攻撃側の画像データベースサイズ
• 攻撃側が使用できるデータ数を制限した場合
• 攻撃側のデータ数が増加すると,防御側の精度が下がる
!23
攻撃側と防御側の画像データベースの被り
• 攻撃側と防御側のデータベースの被りが大きい場合には,防御が
難しい
!24
今後の課題
• kNNに利用する特徴量を浅い特徴量と深い特徴量の組み合わせに
する
• 今回は深い特徴量を使用したが,浅い特徴量の方がよりロバストで
あるため
• 特徴抽出器と分類器のネットワーク構造を異なるモデルにする
• 本提案手法では,どちらもResNet50
• 効果的な画像データベース構築方法の検討
!25
まとめ
• AEsは自然画像集合が成す多様体上には存在しないという仮説をた
て,AEsを同多様体上に再射影する手法を提案
• 既存手法に比べ,多用な設定でロバストな防御手法であることを
示した
• 特に,自然画像集合が成す多様体を模倣した大規模画像データ
ベースが攻撃側に知られることは考えにくいため,ロバストな画
像分類システムであることも実験で示した
!26

More Related Content

Recently uploaded

Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。iPride Co., Ltd.
 
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NTT DATA Technology & Innovation
 
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。iPride Co., Ltd.
 
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイスCRI Japan, Inc.
 
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)Hiroshi Tomioka
 
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルLoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルCRI Japan, Inc.
 
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)Hiroshi Tomioka
 
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video UnderstandingToru Tamaki
 
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。iPride Co., Ltd.
 
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Gamesatsushi061452
 
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...Toru Tamaki
 

Recently uploaded (11)

Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
 
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
 
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
 
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
 
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
 
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルLoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
 
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
 
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
 
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
 
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
 
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
 

Featured

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming LanguageSimplilearn
 

Featured (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

【CVPR 2019】Defense Against Adversarial Images using Web-Scale Nearest-Neighbor Search