SlideShare a Scribd company logo
0
1
2
3
4
5
6
7
8
9
DIFFERENT
SAME
EMBEDDINGS
DISTANCE
•
•
•
•
•
• Complete freedom to chose 𝐺 𝑤 𝑋 (vgg, resnet, ecc)
• 𝐸 𝑤(𝑋1, 𝑋2) = | 𝐺 𝑤 𝑋1 − 𝐺 𝑤 𝑋2 |
• 𝐸 𝑤(𝑋1, 𝑋2) = 𝐸 𝑤(𝑋2, 𝑋1)
• Objective: given a family of functions 𝐺 𝑤 𝑋 parameterized by
𝑊 and the similarity metric 𝐸 𝑤 𝑋1, 𝑋2 . The objective is to
minimize 𝐸 𝑤 when 𝑋1 𝑎𝑛𝑑 𝑋2 are from the same category and
maximize 𝐸 𝑤 when 𝑋1 𝑎𝑛𝑑 𝑋2 belong to different category.
• 𝐸 𝑤(𝑋1, 𝑋2) = | 𝐺 𝑤 𝑋1 − 𝐺 𝑤 𝑋2 |
• 𝐸 𝑤
𝑔
𝑋1 𝑎𝑛𝑑 𝑋2 𝐸 𝑤
𝑖
• ∃𝑚 > 0, 𝑠𝑢𝑐ℎ 𝑡ℎ𝑎𝑡 𝐸 𝑤
𝑔
+ 𝑚 < 𝐸 𝑤
𝑖
•
•
•
𝐿 𝑋1, 𝑋2 = 1 − 𝑌
1
2
𝐸 𝑤
2 + 𝑌
1
2
{max(0, 𝑚 − 𝐸 𝑤)}2
𝐿 𝑋1, 𝑋2 =
1
2
{max(0, 𝑚 − 𝐸 𝑤)}2 𝑖𝑓 𝑋1, 𝑋2 𝑛𝑜𝑡 𝑏𝑒𝑙𝑜𝑛𝑔 𝑡ℎ𝑒 𝑠𝑎𝑚𝑒 𝑐𝑎𝑡𝑒𝑔𝑜𝑟𝑦
1
2
𝐸 𝑤
2
𝑖𝑓 𝑋1, 𝑋2 𝑏𝑒𝑙𝑜𝑛𝑔 𝑡ℎ𝑒 𝑠𝑎𝑚𝑒 𝑐𝑎𝑡𝑒𝑔𝑜𝑟𝑦
•
•
•
•
•
||𝑓 𝑥 ||2 = 1
𝑋 𝑎
𝑋 𝑝
𝑋 𝑛
• 𝑥 𝑎 𝑥 𝑝
𝑥 𝑛
• 𝑥 ℝ 𝑑
a
p
n
a
p
n
TRAINING
• 𝑇,
||𝑓 𝑥𝑖
𝑎
− 𝑓 𝑥𝑖
𝑝
||2
2
+ 𝛼 < ||𝑓 𝑥𝑖
𝑎
− 𝑓 𝑥𝑖
𝑛
||2
2
•
σ𝒊
𝑵
[ ||𝑓 𝑥𝑖
𝑎
− 𝑓 𝑥𝑖
𝑝
||2
2
− ||𝑓 𝑥𝑖
𝑎
− 𝑓 𝑥𝑖
𝑛
||2
2
+ 𝛼]+
• 𝛼
𝛼
𝛼
𝑓 𝑥𝑖
𝑎
𝑓 𝑥𝑖
𝑛
𝑓 𝑥𝑖
𝑝
•
•
𝛼
hard
negatives
semi-hard
negatives
easy negatives
{𝑥𝑖
𝑎
, 𝑥𝑖
𝑝
, 𝑥𝑖
𝑛
}𝑖
{𝑓(𝑥𝑖
𝑎
), 𝑓(𝑥𝑖
𝑝
) 𝑓 (𝑥𝑖
𝑛
)}𝑖
𝐿′
=
𝜕𝐿
𝜕𝑓(𝑥 𝑖
𝑎)
= 2 𝑓(𝑥𝑖
𝑛
− 𝑓(𝑥𝑖
𝑝
)) 𝑖𝑓 ||𝑓 𝑥𝑖
𝑎
− 𝑓 𝑥𝑖
𝑝
||2
2
− ||𝑓 𝑥𝑖
𝑎
− 𝑓 𝑥𝑖
𝑛
||2
2
+ 𝛼 > 0
𝜕𝐿
𝜕𝑓(𝑥 𝑖
𝑝
)
= 2 𝑓(𝑥𝑖
𝑝
− 𝑓(𝑥𝑖
𝑎
)) 𝑖𝑓 ||𝑓 𝑥𝑖
𝑎
− 𝑓 𝑥𝑖
𝑝
||2
2
− ||𝑓 𝑥𝑖
𝑎
− 𝑓 𝑥𝑖
𝑛
||2
2
+ 𝛼 > 0
𝜕𝐿
𝜕𝑓(𝑥 𝑖
𝑛)
= 2 𝑓(𝑥𝑖
𝑎
− 𝑓(𝑥𝑖
𝑛
)) 𝑖𝑓 ||𝑓 𝑥𝑖
𝑎
− 𝑓 𝑥𝑖
𝑝
||2
2
− ||𝑓 𝑥𝑖
𝑎
− 𝑓 𝑥𝑖
𝑛
||2
2
+ 𝛼 > 0
{𝐹𝑛
𝑖, 𝑊𝑛
𝑖} 𝑛
𝑖
𝜕𝐿
𝜕𝐹𝑛
𝑖
𝜕𝐿
𝜕𝐹𝑛
𝑖
×
𝜕𝐹𝑛
𝑖
𝜕𝐹𝑛−1
𝑖
…
Triplet
Loss
𝐿𝑎𝑦𝑒𝑟𝑛 𝐿𝑎𝑦𝑒𝑟𝑛−1
𝑊𝑛
𝑖 = 𝑊𝑛
𝑖 − μ
𝜕𝐿
𝜕𝐹𝑛
𝑖
×
𝜕𝐹𝑛
𝑖
𝜕𝑊𝑛
𝑖
= 𝑊𝑛
𝑖 − μ
𝜕𝐿
𝜕𝐹(𝑋 𝑎) 𝑛
𝑖
×
𝜕𝐹(𝑋 𝑎) 𝑛
𝑖
𝜕𝑊𝑛
𝑖
+
𝜕𝐿
𝜕𝐹(𝑋 𝑝) 𝑛
𝑖
×
𝜕𝐹(𝑋 𝑝) 𝑛
𝑖
𝜕𝑊𝑛
𝑖
+
𝜕𝐿
𝜕𝐹(𝑋 𝑛) 𝑛
𝑖
×
𝜕𝐹(𝑋 𝑛) 𝑛
𝑖
𝜕𝑊𝑛
𝑖
Face verification techniques: how to speed up dataset creation
Face verification techniques: how to speed up dataset creation

More Related Content

Similar to Face verification techniques: how to speed up dataset creation

Similar to Face verification techniques: how to speed up dataset creation (20)

Learning a nonlinear embedding by preserving class neibourhood structure 최종
Learning a nonlinear embedding by preserving class neibourhood structure   최종Learning a nonlinear embedding by preserving class neibourhood structure   최종
Learning a nonlinear embedding by preserving class neibourhood structure 최종
 
Paper study: Learning to solve circuit sat
Paper study: Learning to solve circuit satPaper study: Learning to solve circuit sat
Paper study: Learning to solve circuit sat
 
unsupervised classification.pdf
unsupervised classification.pdfunsupervised classification.pdf
unsupervised classification.pdf
 
Paper Study: OptNet: Differentiable Optimization as a Layer in Neural Networks
Paper Study: OptNet: Differentiable Optimization as a Layer in Neural NetworksPaper Study: OptNet: Differentiable Optimization as a Layer in Neural Networks
Paper Study: OptNet: Differentiable Optimization as a Layer in Neural Networks
 
[GAN by Hung-yi Lee]Part 1: General introduction of GAN
[GAN by Hung-yi Lee]Part 1: General introduction of GAN[GAN by Hung-yi Lee]Part 1: General introduction of GAN
[GAN by Hung-yi Lee]Part 1: General introduction of GAN
 
Paper Study: Transformer dissection
Paper Study: Transformer dissectionPaper Study: Transformer dissection
Paper Study: Transformer dissection
 
Lecture 6 radial basis-function_network
Lecture 6 radial basis-function_networkLecture 6 radial basis-function_network
Lecture 6 radial basis-function_network
 
Paper Study: Melding the data decision pipeline
Paper Study: Melding the data decision pipelinePaper Study: Melding the data decision pipeline
Paper Study: Melding the data decision pipeline
 
Deep learning study 2
Deep learning study 2Deep learning study 2
Deep learning study 2
 
Detailed Description on Cross Entropy Loss Function
Detailed Description on Cross Entropy Loss FunctionDetailed Description on Cross Entropy Loss Function
Detailed Description on Cross Entropy Loss Function
 
Solving Poisson Equation using Conjugate Gradient Method and its implementation
Solving Poisson Equation using Conjugate Gradient Methodand its implementationSolving Poisson Equation using Conjugate Gradient Methodand its implementation
Solving Poisson Equation using Conjugate Gradient Method and its implementation
 
Hierarchical selection
Hierarchical selectionHierarchical selection
Hierarchical selection
 
NS-CUK Seminar: H.E.Lee, Review on "Gated Graph Sequence Neural Networks", I...
NS-CUK Seminar: H.E.Lee,  Review on "Gated Graph Sequence Neural Networks", I...NS-CUK Seminar: H.E.Lee,  Review on "Gated Graph Sequence Neural Networks", I...
NS-CUK Seminar: H.E.Lee, Review on "Gated Graph Sequence Neural Networks", I...
 
LINEAR ALGEBRA, WITH OPTIMIZATION
LINEAR ALGEBRA, WITH OPTIMIZATIONLINEAR ALGEBRA, WITH OPTIMIZATION
LINEAR ALGEBRA, WITH OPTIMIZATION
 
Lecture 5 backpropagation
Lecture 5 backpropagationLecture 5 backpropagation
Lecture 5 backpropagation
 
variBAD, A Very Good Method for Bayes-Adaptive Deep RL via Meta-Learning.pdf
variBAD, A Very Good Method for Bayes-Adaptive Deep RL via Meta-Learning.pdfvariBAD, A Very Good Method for Bayes-Adaptive Deep RL via Meta-Learning.pdf
variBAD, A Very Good Method for Bayes-Adaptive Deep RL via Meta-Learning.pdf
 
Vehicle Routing Problem using PSO (Particle Swarm Optimization)
Vehicle Routing Problem using PSO (Particle Swarm Optimization)Vehicle Routing Problem using PSO (Particle Swarm Optimization)
Vehicle Routing Problem using PSO (Particle Swarm Optimization)
 
Dueling network architectures for deep reinforcement learning
Dueling network architectures for deep reinforcement learningDueling network architectures for deep reinforcement learning
Dueling network architectures for deep reinforcement learning
 
DERIVATIVES implicit function.pptx
DERIVATIVES implicit function.pptxDERIVATIVES implicit function.pptx
DERIVATIVES implicit function.pptx
 
論文紹介:Unsupervised Hierarchical Semantic Segmentation With Multiview Cosegment...
論文紹介:Unsupervised Hierarchical Semantic Segmentation With Multiview Cosegment...論文紹介:Unsupervised Hierarchical Semantic Segmentation With Multiview Cosegment...
論文紹介:Unsupervised Hierarchical Semantic Segmentation With Multiview Cosegment...
 

More from Deep Learning Italia

MEETUP APRILE - Ganomaly - Anomaly Detection.pdf
MEETUP APRILE - Ganomaly - Anomaly Detection.pdfMEETUP APRILE - Ganomaly - Anomaly Detection.pdf
MEETUP APRILE - Ganomaly - Anomaly Detection.pdf
Deep Learning Italia
 

More from Deep Learning Italia (20)

Machine Learning driven Quantum Optimization for Marketing
Machine Learning driven Quantum Optimization for MarketingMachine Learning driven Quantum Optimization for Marketing
Machine Learning driven Quantum Optimization for Marketing
 
Modelli linguistici da Eliza a ChatGPT P roblemi , fraintendimenti e prospettive
Modelli linguistici da Eliza a ChatGPT P roblemi , fraintendimenti e prospettiveModelli linguistici da Eliza a ChatGPT P roblemi , fraintendimenti e prospettive
Modelli linguistici da Eliza a ChatGPT P roblemi , fraintendimenti e prospettive
 
Transformers In Vision From Zero to Hero (DLI).pptx
Transformers In Vision From Zero to Hero (DLI).pptxTransformers In Vision From Zero to Hero (DLI).pptx
Transformers In Vision From Zero to Hero (DLI).pptx
 
Meetup Luglio - Operations Research.pdf
Meetup Luglio - Operations Research.pdfMeetup Luglio - Operations Research.pdf
Meetup Luglio - Operations Research.pdf
 
Meetup Giugno - c-ResUNET.pdf
Meetup Giugno - c-ResUNET.pdfMeetup Giugno - c-ResUNET.pdf
Meetup Giugno - c-ResUNET.pdf
 
MEETUP Maggio - Team Automata
MEETUP Maggio - Team AutomataMEETUP Maggio - Team Automata
MEETUP Maggio - Team Automata
 
MEETUP APRILE - Ganomaly - Anomaly Detection.pdf
MEETUP APRILE - Ganomaly - Anomaly Detection.pdfMEETUP APRILE - Ganomaly - Anomaly Detection.pdf
MEETUP APRILE - Ganomaly - Anomaly Detection.pdf
 
2022_Meetup_Mazza-Marzo.pptx
2022_Meetup_Mazza-Marzo.pptx2022_Meetup_Mazza-Marzo.pptx
2022_Meetup_Mazza-Marzo.pptx
 
Machine Learning Security
Machine Learning SecurityMachine Learning Security
Machine Learning Security
 
The science of can and can t e la computazione quantistica
The science of can and can t e la computazione quantisticaThe science of can and can t e la computazione quantistica
The science of can and can t e la computazione quantistica
 
Dli meetup moccia
Dli meetup mocciaDli meetup moccia
Dli meetup moccia
 
Pi school-dli-presentation de nobili
Pi school-dli-presentation de nobiliPi school-dli-presentation de nobili
Pi school-dli-presentation de nobili
 
Machine Learning Explanations: LIME framework
Machine Learning Explanations: LIME framework Machine Learning Explanations: LIME framework
Machine Learning Explanations: LIME framework
 
Explanation methods for Artificial Intelligence Models
Explanation methods for Artificial Intelligence ModelsExplanation methods for Artificial Intelligence Models
Explanation methods for Artificial Intelligence Models
 
Use Cases Machine Learning for Healthcare
Use Cases Machine Learning for HealthcareUse Cases Machine Learning for Healthcare
Use Cases Machine Learning for Healthcare
 
NLG, Training, Inference & Evaluation
NLG, Training, Inference & Evaluation NLG, Training, Inference & Evaluation
NLG, Training, Inference & Evaluation
 
Transformer Seq2Sqe Models: Concepts, Trends & Limitations (DLI)
Transformer Seq2Sqe Models: Concepts, Trends & Limitations (DLI)Transformer Seq2Sqe Models: Concepts, Trends & Limitations (DLI)
Transformer Seq2Sqe Models: Concepts, Trends & Limitations (DLI)
 
Towards quantum machine learning calogero zarbo - meet up
Towards quantum machine learning  calogero zarbo - meet upTowards quantum machine learning  calogero zarbo - meet up
Towards quantum machine learning calogero zarbo - meet up
 
Macaluso antonio meetup dli 2020-12-15
Macaluso antonio  meetup dli 2020-12-15Macaluso antonio  meetup dli 2020-12-15
Macaluso antonio meetup dli 2020-12-15
 
Data privacy e anonymization in R
Data privacy e anonymization in RData privacy e anonymization in R
Data privacy e anonymization in R
 

Recently uploaded

一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
yhkoc
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单
ocavb
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptx
Opendatabay
 
Computer Presentation.pptx ecommerce advantage s
Computer Presentation.pptx ecommerce advantage sComputer Presentation.pptx ecommerce advantage s
Computer Presentation.pptx ecommerce advantage s
MAQIB18
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
ArpitMalhotra16
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
enxupq
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
ukgaet
 
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
nscud
 

Recently uploaded (20)

Business update Q1 2024 Lar España Real Estate SOCIMI
Business update Q1 2024 Lar España Real Estate SOCIMIBusiness update Q1 2024 Lar España Real Estate SOCIMI
Business update Q1 2024 Lar España Real Estate SOCIMI
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
Innovative Methods in Media and Communication Research by Sebastian Kubitschk...
Innovative Methods in Media and Communication Research by Sebastian Kubitschk...Innovative Methods in Media and Communication Research by Sebastian Kubitschk...
Innovative Methods in Media and Communication Research by Sebastian Kubitschk...
 
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptx
 
Computer Presentation.pptx ecommerce advantage s
Computer Presentation.pptx ecommerce advantage sComputer Presentation.pptx ecommerce advantage s
Computer Presentation.pptx ecommerce advantage s
 
Using PDB Relocation to Move a Single PDB to Another Existing CDB
Using PDB Relocation to Move a Single PDB to Another Existing CDBUsing PDB Relocation to Move a Single PDB to Another Existing CDB
Using PDB Relocation to Move a Single PDB to Another Existing CDB
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
 
Jpolillo Amazon PPC - Bid Optimization Sample
Jpolillo Amazon PPC - Bid Optimization SampleJpolillo Amazon PPC - Bid Optimization Sample
Jpolillo Amazon PPC - Bid Optimization Sample
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
 
2024-05-14 - Tableau User Group - TC24 Hot Topics - Tableau Pulse and Einstei...
2024-05-14 - Tableau User Group - TC24 Hot Topics - Tableau Pulse and Einstei...2024-05-14 - Tableau User Group - TC24 Hot Topics - Tableau Pulse and Einstei...
2024-05-14 - Tableau User Group - TC24 Hot Topics - Tableau Pulse and Einstei...
 
Uber Ride Supply Demand Gap Analysis Report
Uber Ride Supply Demand Gap Analysis ReportUber Ride Supply Demand Gap Analysis Report
Uber Ride Supply Demand Gap Analysis Report
 
Supply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflictSupply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflict
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
 
Tabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflowsTabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflows
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
 
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
 
tapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive datatapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive data
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 

Face verification techniques: how to speed up dataset creation

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 11.
  • 12.
  • 13.
  • 14.
  • 16. • Complete freedom to chose 𝐺 𝑤 𝑋 (vgg, resnet, ecc) • 𝐸 𝑤(𝑋1, 𝑋2) = | 𝐺 𝑤 𝑋1 − 𝐺 𝑤 𝑋2 | • 𝐸 𝑤(𝑋1, 𝑋2) = 𝐸 𝑤(𝑋2, 𝑋1) • Objective: given a family of functions 𝐺 𝑤 𝑋 parameterized by 𝑊 and the similarity metric 𝐸 𝑤 𝑋1, 𝑋2 . The objective is to minimize 𝐸 𝑤 when 𝑋1 𝑎𝑛𝑑 𝑋2 are from the same category and maximize 𝐸 𝑤 when 𝑋1 𝑎𝑛𝑑 𝑋2 belong to different category.
  • 17. • 𝐸 𝑤(𝑋1, 𝑋2) = | 𝐺 𝑤 𝑋1 − 𝐺 𝑤 𝑋2 | • 𝐸 𝑤 𝑔 𝑋1 𝑎𝑛𝑑 𝑋2 𝐸 𝑤 𝑖 • ∃𝑚 > 0, 𝑠𝑢𝑐ℎ 𝑡ℎ𝑎𝑡 𝐸 𝑤 𝑔 + 𝑚 < 𝐸 𝑤 𝑖 •
  • 18. • • 𝐿 𝑋1, 𝑋2 = 1 − 𝑌 1 2 𝐸 𝑤 2 + 𝑌 1 2 {max(0, 𝑚 − 𝐸 𝑤)}2 𝐿 𝑋1, 𝑋2 = 1 2 {max(0, 𝑚 − 𝐸 𝑤)}2 𝑖𝑓 𝑋1, 𝑋2 𝑛𝑜𝑡 𝑏𝑒𝑙𝑜𝑛𝑔 𝑡ℎ𝑒 𝑠𝑎𝑚𝑒 𝑐𝑎𝑡𝑒𝑔𝑜𝑟𝑦 1 2 𝐸 𝑤 2 𝑖𝑓 𝑋1, 𝑋2 𝑏𝑒𝑙𝑜𝑛𝑔 𝑡ℎ𝑒 𝑠𝑎𝑚𝑒 𝑐𝑎𝑡𝑒𝑔𝑜𝑟𝑦
  • 20. ||𝑓 𝑥 ||2 = 1 𝑋 𝑎 𝑋 𝑝 𝑋 𝑛
  • 21. • 𝑥 𝑎 𝑥 𝑝 𝑥 𝑛 • 𝑥 ℝ 𝑑 a p n a p n TRAINING
  • 22. • 𝑇, ||𝑓 𝑥𝑖 𝑎 − 𝑓 𝑥𝑖 𝑝 ||2 2 + 𝛼 < ||𝑓 𝑥𝑖 𝑎 − 𝑓 𝑥𝑖 𝑛 ||2 2 • σ𝒊 𝑵 [ ||𝑓 𝑥𝑖 𝑎 − 𝑓 𝑥𝑖 𝑝 ||2 2 − ||𝑓 𝑥𝑖 𝑎 − 𝑓 𝑥𝑖 𝑛 ||2 2 + 𝛼]+ • 𝛼 𝛼 𝛼 𝑓 𝑥𝑖 𝑎 𝑓 𝑥𝑖 𝑛 𝑓 𝑥𝑖 𝑝
  • 24. {𝑥𝑖 𝑎 , 𝑥𝑖 𝑝 , 𝑥𝑖 𝑛 }𝑖 {𝑓(𝑥𝑖 𝑎 ), 𝑓(𝑥𝑖 𝑝 ) 𝑓 (𝑥𝑖 𝑛 )}𝑖 𝐿′ = 𝜕𝐿 𝜕𝑓(𝑥 𝑖 𝑎) = 2 𝑓(𝑥𝑖 𝑛 − 𝑓(𝑥𝑖 𝑝 )) 𝑖𝑓 ||𝑓 𝑥𝑖 𝑎 − 𝑓 𝑥𝑖 𝑝 ||2 2 − ||𝑓 𝑥𝑖 𝑎 − 𝑓 𝑥𝑖 𝑛 ||2 2 + 𝛼 > 0 𝜕𝐿 𝜕𝑓(𝑥 𝑖 𝑝 ) = 2 𝑓(𝑥𝑖 𝑝 − 𝑓(𝑥𝑖 𝑎 )) 𝑖𝑓 ||𝑓 𝑥𝑖 𝑎 − 𝑓 𝑥𝑖 𝑝 ||2 2 − ||𝑓 𝑥𝑖 𝑎 − 𝑓 𝑥𝑖 𝑛 ||2 2 + 𝛼 > 0 𝜕𝐿 𝜕𝑓(𝑥 𝑖 𝑛) = 2 𝑓(𝑥𝑖 𝑎 − 𝑓(𝑥𝑖 𝑛 )) 𝑖𝑓 ||𝑓 𝑥𝑖 𝑎 − 𝑓 𝑥𝑖 𝑝 ||2 2 − ||𝑓 𝑥𝑖 𝑎 − 𝑓 𝑥𝑖 𝑛 ||2 2 + 𝛼 > 0
  • 25. {𝐹𝑛 𝑖, 𝑊𝑛 𝑖} 𝑛 𝑖 𝜕𝐿 𝜕𝐹𝑛 𝑖 𝜕𝐿 𝜕𝐹𝑛 𝑖 × 𝜕𝐹𝑛 𝑖 𝜕𝐹𝑛−1 𝑖 … Triplet Loss 𝐿𝑎𝑦𝑒𝑟𝑛 𝐿𝑎𝑦𝑒𝑟𝑛−1 𝑊𝑛 𝑖 = 𝑊𝑛 𝑖 − μ 𝜕𝐿 𝜕𝐹𝑛 𝑖 × 𝜕𝐹𝑛 𝑖 𝜕𝑊𝑛 𝑖 = 𝑊𝑛 𝑖 − μ 𝜕𝐿 𝜕𝐹(𝑋 𝑎) 𝑛 𝑖 × 𝜕𝐹(𝑋 𝑎) 𝑛 𝑖 𝜕𝑊𝑛 𝑖 + 𝜕𝐿 𝜕𝐹(𝑋 𝑝) 𝑛 𝑖 × 𝜕𝐹(𝑋 𝑝) 𝑛 𝑖 𝜕𝑊𝑛 𝑖 + 𝜕𝐿 𝜕𝐹(𝑋 𝑛) 𝑛 𝑖 × 𝜕𝐹(𝑋 𝑛) 𝑛 𝑖 𝜕𝑊𝑛 𝑖