SlideShare a Scribd company logo
1 of 13
Deep Learning Advance
# Capsule Net
Terence Huang
Abstact
• Paper
- (2017) Dynamic Routing Between Capsules
- (2018) Matrix Capsules with EM Routing
• Abstract
- Capsules: 用向量代替元素輸出,可捕捉空間結構信息的膠囊概念
- Dynamic Routing: 用 routing-by-agreement 取代 max-pooling
2
Outline
• Drawbacks of CNN
• Capsule
• Dynamic Routing
• Experiments
- 數字分類
- Train 時額外提供少量標記的 test set
3
Drawbacks of CNN
• Drawbacks of CNN
- Pooling weak
- Ambivalent the spatial relationships of the previous layer
4
15 9 4 2
11 5 8 6
8 7 3 17
2 3 7 3
15 8
8 17
10 5
5 8
Max pooling
Average pooling
Only keep partial feature
Max is define by input layer, not Bi-layer
旋轉縮放和平移不變性,適應程度較小,需要大量 augmentation 協助
Weight are equal
Who
Capsule
• Capsule
- 用向量代替元素輸出,可捕捉空間結構信息的膠囊概念
5
Tradition NN Capsule Net
Unit: List of objects
objects can be different attributes
Unit: One object
Ex. value, one-hot vector, pixel
Dynamic Routing
• Dynamic Routing
- 用 routing-by-agreement 取代 max-pooling
6
• Dynamic Routing
- 用 routing-by-agreement 取代 max-pooling
Dynamic Routing
7
R
G
B
2
1
⋯ ⋯
Layer I Layer JLayer A Layer B Layer C Layer ZLayer Y
Dynamic Routing
• Dynamic Routing
- 用 routing-by-agreement 取代 max-pooling
8
R
G
B
2
1
定義
𝑊𝑖𝑗, 𝐶𝑖𝑗
Layer I Layer J
Layer I:3 個 capsules, 𝑖 = 𝑅, 𝐺, 𝐵
Layer J:2 個 capsules, 𝑗 = 1,2
𝑊𝑖𝑗: 傳統 CNN 的權重
由 backpropagation 計算,Dynamic Routing 迭代過程中不改變
𝐶𝑖𝑗: capsule 𝑖 對 capsule 𝑗 的影響力,迭代過程中自行調整
𝑖 𝐶𝑖𝑗 = 1,迭代開始時影響力皆均等
Dynamic Routing
• Dynamic Routing
9
R
G
B
2
1
幾乎傳一樣
所以不能迭代太多次
R
G
B
2
1
1st 迭代後
R
G
B
2
1
2nd 迭代後
R
G
B
2
1
nth 迭代後
𝑊𝑖𝑗, 𝐶𝑖𝑗
𝑊𝑖𝑗: 傳統 CNN 的權重,不變
𝐶𝑖𝑗: 𝑖 對 𝑗 的影響力,迭代改變
Layer I Layer J
1 = 𝑖=𝑅,𝐺,𝐵 𝐶𝑖1 ⋅ 𝑊𝑖1 ⋅ capsule 𝑖
𝑊𝑖𝑗, 𝐶𝑖𝑗𝑊𝑖𝑗, 𝐶𝑖𝑗 𝑊𝑖𝑗, 𝐶𝑖𝑗
更新 𝐶𝑖𝑗 ⇒ 𝐶 𝑅1 ↑, 𝐶G1 ↓, 𝐶 𝐵1 ↓,
𝐶 𝑅2 ↓, 𝐶G2 ↓, 𝐶 𝐵2 ↑
再更新 𝐶𝑖𝑗 ⇒ 𝐶 𝑅1 ↑, 𝐶G1 ↓, 𝐶 𝐵1 ↓,
𝐶 𝑅2 ↓, 𝐶G2 ↓, 𝐶 𝐵2 ↑
新的
初始均等
定義
• Dynamic Routing
- ex. rounting 次數: 3
Dynamic Routing
10
R
G
B
2
1
Layer I Layer J
⋯ ⋯
調整 𝐶𝑖𝑗
調整 𝑊𝑖𝑗
⋯
⋯
𝐶𝑖𝑗 的傳遞 & 修正
W𝑖𝑗 的傳遞 & 修正
Layer A Layer B Layer C Layer ZLayer Y
Dynamic Routing
• Dynamic Routing
- 用 routing-by-agreement 取代 max-pooling
11
壓縮到 [0,1) 保留向量特徵
Recall
• Paper
- (2017) Dynamic Routing Between Capsules
- (2018) Matrix Capsules with EM Routing
• Abstract
- Capsules: 用向量代替元素輸出,可捕捉空間結構信息的膠囊概念
- Dynamic Routing: 用 routing-by-agreement 取代 max-pooling
12
Q&A
Thanks for your attention!
13

More Related Content

Recently uploaded

Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 217djon017
 
IMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxIMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxdolaknnilon
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一fhwihughh
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsVICTOR MAESTRE RAMIREZ
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanMYRABACSAFRA2
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
Multiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfMultiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfchwongval
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfBoston Institute of Analytics
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)jennyeacort
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfJohn Sterrett
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.natarajan8993
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 

Recently uploaded (20)

Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2
 
IMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxIMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptx
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business Professionals
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population Mean
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
Multiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfMultiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdf
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdf
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
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
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
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...
 

Deep Learning Advance: # Capsule net

  • 1. Deep Learning Advance # Capsule Net Terence Huang
  • 2. Abstact • Paper - (2017) Dynamic Routing Between Capsules - (2018) Matrix Capsules with EM Routing • Abstract - Capsules: 用向量代替元素輸出,可捕捉空間結構信息的膠囊概念 - Dynamic Routing: 用 routing-by-agreement 取代 max-pooling 2
  • 3. Outline • Drawbacks of CNN • Capsule • Dynamic Routing • Experiments - 數字分類 - Train 時額外提供少量標記的 test set 3
  • 4. Drawbacks of CNN • Drawbacks of CNN - Pooling weak - Ambivalent the spatial relationships of the previous layer 4 15 9 4 2 11 5 8 6 8 7 3 17 2 3 7 3 15 8 8 17 10 5 5 8 Max pooling Average pooling Only keep partial feature Max is define by input layer, not Bi-layer 旋轉縮放和平移不變性,適應程度較小,需要大量 augmentation 協助 Weight are equal Who
  • 5. Capsule • Capsule - 用向量代替元素輸出,可捕捉空間結構信息的膠囊概念 5 Tradition NN Capsule Net Unit: List of objects objects can be different attributes Unit: One object Ex. value, one-hot vector, pixel
  • 6. Dynamic Routing • Dynamic Routing - 用 routing-by-agreement 取代 max-pooling 6
  • 7. • Dynamic Routing - 用 routing-by-agreement 取代 max-pooling Dynamic Routing 7 R G B 2 1 ⋯ ⋯ Layer I Layer JLayer A Layer B Layer C Layer ZLayer Y
  • 8. Dynamic Routing • Dynamic Routing - 用 routing-by-agreement 取代 max-pooling 8 R G B 2 1 定義 𝑊𝑖𝑗, 𝐶𝑖𝑗 Layer I Layer J Layer I:3 個 capsules, 𝑖 = 𝑅, 𝐺, 𝐵 Layer J:2 個 capsules, 𝑗 = 1,2 𝑊𝑖𝑗: 傳統 CNN 的權重 由 backpropagation 計算,Dynamic Routing 迭代過程中不改變 𝐶𝑖𝑗: capsule 𝑖 對 capsule 𝑗 的影響力,迭代過程中自行調整 𝑖 𝐶𝑖𝑗 = 1,迭代開始時影響力皆均等
  • 9. Dynamic Routing • Dynamic Routing 9 R G B 2 1 幾乎傳一樣 所以不能迭代太多次 R G B 2 1 1st 迭代後 R G B 2 1 2nd 迭代後 R G B 2 1 nth 迭代後 𝑊𝑖𝑗, 𝐶𝑖𝑗 𝑊𝑖𝑗: 傳統 CNN 的權重,不變 𝐶𝑖𝑗: 𝑖 對 𝑗 的影響力,迭代改變 Layer I Layer J 1 = 𝑖=𝑅,𝐺,𝐵 𝐶𝑖1 ⋅ 𝑊𝑖1 ⋅ capsule 𝑖 𝑊𝑖𝑗, 𝐶𝑖𝑗𝑊𝑖𝑗, 𝐶𝑖𝑗 𝑊𝑖𝑗, 𝐶𝑖𝑗 更新 𝐶𝑖𝑗 ⇒ 𝐶 𝑅1 ↑, 𝐶G1 ↓, 𝐶 𝐵1 ↓, 𝐶 𝑅2 ↓, 𝐶G2 ↓, 𝐶 𝐵2 ↑ 再更新 𝐶𝑖𝑗 ⇒ 𝐶 𝑅1 ↑, 𝐶G1 ↓, 𝐶 𝐵1 ↓, 𝐶 𝑅2 ↓, 𝐶G2 ↓, 𝐶 𝐵2 ↑ 新的 初始均等 定義
  • 10. • Dynamic Routing - ex. rounting 次數: 3 Dynamic Routing 10 R G B 2 1 Layer I Layer J ⋯ ⋯ 調整 𝐶𝑖𝑗 調整 𝑊𝑖𝑗 ⋯ ⋯ 𝐶𝑖𝑗 的傳遞 & 修正 W𝑖𝑗 的傳遞 & 修正 Layer A Layer B Layer C Layer ZLayer Y
  • 11. Dynamic Routing • Dynamic Routing - 用 routing-by-agreement 取代 max-pooling 11 壓縮到 [0,1) 保留向量特徵
  • 12. Recall • Paper - (2017) Dynamic Routing Between Capsules - (2018) Matrix Capsules with EM Routing • Abstract - Capsules: 用向量代替元素輸出,可捕捉空間結構信息的膠囊概念 - Dynamic Routing: 用 routing-by-agreement 取代 max-pooling 12
  • 13. Q&A Thanks for your attention! 13