machine learning2019s课件meta2v按一下以編輯母片標題樣式按一下以編輯母片文字樣式第二層第三層_第1页
machine learning2019s课件meta2v按一下以編輯母片標題樣式按一下以編輯母片文字樣式第二層第三層_第2页
machine learning2019s课件meta2v按一下以編輯母片標題樣式按一下以編輯母片文字樣式第二層第三層_第3页
machine learning2019s课件meta2v按一下以編輯母片標題樣式按一下以編輯母片文字樣式第二層第三層_第4页
machine learning2019s课件meta2v按一下以編輯母片標題樣式按一下以編輯母片文字樣式第二層第三層_第5页
已阅读5页,还剩25页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Meta Learning (Part 2):Gradient Descent as LSTMGradient Descent as LSTMHung-yi LeeInit Compute GradientUpdateTrainingDataCompute GradientUpdateTrainingDataNetworkStructureCan we learn more than initialization parameters? The learning algorithm looks like RNN.Recurrent Neural Networkfh0h1y1x1fh2y2x2f

2、h3y3x3No matter how long the input/output sequence is, we only need one function fh and h are vectors with the same dimensionLSTMc change slowlyh change fasterct is ct-1 added by somethinght and ht-1 can be very differentNaveRNNhtytxtht-1LSTMytcththt-1ct-1xtxtzzizfzoht-1ct-1zxtht-1Wzixtht-1Wizfxtht-

3、1Wfzoxtht-1WoReview: LSTMinputforgetoutputhtxtzzizfzoytht-1ct-1cttanhReview: LSTMxtzzizfzoytht-1ct-1ctxt+1zzizfzoyt+1htct+1tanhtanhhtReview: LSTMhtxtzzizfzoytht-1ct-1cttanhSimilar to gradient descent based algorithmall “1”xtzzizfht-1ct-1ctSimilar to gradient descent based algorithmall “1”Dynamic lea

4、rning rateSomething like regularizationOtherLSTM for Gradient Descent “LSTM”“LSTM”“LSTM”3 training stepsTesting DataBatch from trainBatch from trainBatch from trainLearnableTypical LSTMLearn to minimizeIndependence assumptionThe LSTM used only has one cell. Share across all parameters “LSTM”“LSTM”“L

5、STM” Reasonable model size In typical gradient descent, all the parameters use the same update rule Training and testing model architectures can be different.Real Implementation “LSTM”“LSTM”“LSTM”Experimental Resultshttps:/ update depends on not only current gradient, but previous gradients.LSTM for

6、 Gradient Descent (v2) “LSTM”“LSTM”“LSTM”3 training stepsTesting DataBatch from trainBatch from trainBatch from train“LSTM”“LSTM”“LSTM”m can store previous gradientsExperimental Results/abs/1606.04474Meta Learning (Part 3)Hung-yi LeeEven more crazy idea Input: Training data and their

7、 labels Testing data Output: Predicted label of testing data Training Data & Labels catcatdogTesting DataLearning + PredictionFace Verificationhttps:/ your phone by FaceTrainingRegistration (Collecting Training data)In each task:Few-shot LearningTraining TasksTesting TasksTrainTestTrainTestYesTr

8、ainTestNoMeta Learning TrainTestNoYesorNoNetworkNetworkNetworkYesNo?Same approach for Speaker VerificationSiamese NetworkNetworkNoCNNSimilarity CNNshareembeddingembeddingTrainTestscoreLarge score Small score YesNoSameSiamese NetworkNetworkNoCNNSimilarity CNNshareembeddingembeddingTrainTestscoreLarge

9、 score Small score YesNoDifferentSiamese Network- Intuitive Explanation Binary classification problem: “Are they the same?”Training SetTesting Set?samedifferentdifferentNetworkSame or DifferentFace1Face2Siamese Network- Intuitive Explanation Learning embedding for facese.g. learn to ignore the backg

10、roundCNNCNNCNNFar awayAs close as possibleTo learn more What kind of distance should we use? SphereFace: Deep Hypersphere Embedding for Face Recognition Additive Margin Softmax for Face Verification ArcFace: Additive Angular Margin Loss for Deep Face Recognition Triplet loss Deep Metric Learning usi

11、ng Triplet Network FaceNet: A Unified Embedding for Face Recognition and ClusteringN-way Few/One-shot Learning Example: 5-ways 1-shotTraining Data (Each image represents a class)Testing DataNetwork (Learning + Prediction)一花二乃三玖四葉五月三玖Testing DataPrototypical Network/abs/1703.05175CNNCNNCNNCNNCNNCNN= similarityMatching Network/abs/1606.04080Bidirectional LSTMCNN= similarityConsidering the relationship among the training examplesR

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论