版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
AutoMachineLearningDeepLearninganditsApplicationAutoMLPipelineDataCollectionFeatureEngineeringModelandAlgorithmSelectionHyper-parameterOptimizationQuanmingYao,MengshuoWang,HugoJE,etal.Takinghumanoutoflearningapplications:Asurveyonautomatedmachinelearning[J].arXivpreprintarXiv:1810.13306,2018.2SJTUDeepLearningLecture.Definition
ofAutoMLDefinitionofMachineLearningAcomputerprogramissaidtolearnfromexperienceEwithrespecttosomeclassesoftaskTandperformancemeasurePifitsperformancecanimprovewithEonTmeasuredbyPDefinitionofAutoMLAutoMLattemptstoconstructmachinelearningprograms(specifiedbyE,TandPintheabovedefinition),withouthumanassistanceandwithinlimitedcomputationalbudgetsTargetQuanmingYao,MengshuoWang,HugoJE,etal.Takinghumanoutoflearningapplications:Asurveyonautomatedmachinelearning[J].arXivpreprintarXiv:1810.13306,2018.3SJTUDeepLearningLecture.ThreeGoalsGoodPerformancegoodgeneralizationperformanceacrossvariousinputdataandlearningtaskscanbeachievedNoAssistancefromHumanconfigurationscanbeautomaticallydoneformachinelearningtoolsHighComputationalEfficiencytheprogramcanreturnanreasonableoutputwithinalimitedbudget4SJTUDeepLearningLecture.BasicFrameworkEvaluator:measuretheperformanceofthelearningtoolswithconfigurationsprovidedbytheoptimizerOptimizer:updateorgenerateconfigurationsforlearningtoolsQuanmingYao,MengshuoWang,HugoJE,etal.Takinghumanoutoflearningapplications:Asurveyonautomatedmachinelearning[J].arXivpreprintarXiv:1810.13306,2018.5SJTUDeepLearningLecture.AutoMLTasksAutoMLforDataFeatureengineering(TraditionalMachineLearning)AutoAugmentation(DeepLearning)AutoMLforModelModelSelection(TraditionalMachineLearning)NeuralArchitectureSearch(DeepLearning)AutoMLforHyper-parametersHyper-parameterOptimization6SJTUDeepLearningLecture.FeatureEngineeringGoalperformsomepost-processingonoriginalfeaturestoimprovethelearningperformanceFeature
Enhancement
MethodDimensionalReduction:reducingthenumberofrandomvariablesunderconsiderationbyobtainingasetofprincipalvariables.(E.g.PCA,LDA)FeatureGeneration:constructnewfeaturesfromtheoriginalonesbasedonsomepre-definedoperations.(e.g.StandardNormalization)FeatureEncoding:re-interpretsoriginalfeaturesbasedonsomedictionarieslearnedfromthedata.(e.g.SparseCoding)7SJTUDeepLearningLecture.FeatureEngineeringSearchSpaceHyper-parametersdimensionalreduction:
dimensionofnewfeaturesfeatureencoding:sparsityforSparseCodingTheoperationsforfeaturegeneration8SJTUDeepLearningLecture.AutoAugmentationGoalselectefficientdataaugmentationstrategythathelptoimprovetheaccuracyorspeedupthetrainingSearchSpaceDataaugmentationoperations,suchasrotation,flip,crop,etc..Theprobabilitytoconductthedataaugmentationbeforeeachiteration.9SJTUDeepLearningLecture.ModelSelectionGoalOncefeatureshavebeenobtained,weneedtofindamodeltopredictthelabelsSearchSpaceThechoiceofdifferentmodelsThehyper-parametersforeachmodelsQuanmingY,MengshuoWang,HugoJE,etal.Takinghumanoutoflearningapplications:Asurveyonautomatedmachinelearning[J].arXivpreprintarXiv:1810.13306,2018.10SJTUDeepLearningLecture.NeuralArchitectureSearchGoalAutomaticallysearchforaneuralarchitectureNetworkarchitecturescanfulfillthelearningpurpose,wherefeatureengineeringandmodelselectionarebothdonebyNASSearchSpaceThetypeofoperationineachlayerTheconnectionoftwolayersThehyper-parametersforeachoperation11SJTUDeepLearningLecture.Hyper-parameterOptimizationGoalAutomaticallysearchforagroupofhyper-parameterconfigurationSearchSpaceLearningrateanditsdecayschedulerWeightdecayOptimizeranditshyper-parametersTrainingepochs12SJTUDeepLearningLecture.OptimizerSelectionForcomplextasks,suchasSVManddeepnetworks,optimizationisnotonlythemainconsumerofcomputationalbudgetsbutalsohasagreatimpactonthelearningperformanceGoalAutomaticallyfindanoptimizationalgorithmsothatefficiencyandperformancecanbebalancedSearchSpaceThehyper-parametersforeachoptimizerL-BFGS:thelengthofstoredgradientSGD:thebatchsize,thelearningrate,andthedecayscheduleQuanmingYao,MengshuoWang,HugoJE,etal.Takinghumanoutoflearningapplications:Asurveyonautomatedmachinelearning[J].arXivpreprintarXiv:1810.13306,2018.13SJTUDeepLearningLecture.SearchStrategyGoalAutomaticallyfindtheconfigurationsinthesearchingspace(includingfeatureengineering,modelselection,andoptimizationalgorithmselection),thatcanachievethebestperformanceontheTaskTMethodSimpleSearchHeuristicSearchModel-basedDerivative-FreeOptimizationReinforcementLearningGradientDescentGreedySearch14SJTUDeepLearningLecture.SimpleSearchGridSearchGridsearchhastoenumerateeverypossibleconfigurationinthesearchspace.DiscretizationisnecessarywhenthesearchspaceiscontinuousRandomSearchrandomlysamplesconfigurationsinthesearchspacerandomsearchcanexploremoreonimportantdimensionsthangridsearchQuanmingYao,MengshuoWang,HugoJE,etal.Takinghumanoutoflearningapplications:Asurveyonautomatedmachinelearning[J].arXivpreprintarXiv:1810.13306,2018.15SJTUDeepLearningLecture.HeuristicSearchPropertyInspiredbybiologicbehaviorsandphenomenon.Suitablefornon-convex,non-smooth,orevennon-continuousproblemsProcedureAteachiteration,anewpopulationisgeneratedbasedonthelastoneThefitness(performances)oftheindividualsareevaluatedCoreIdeahowtoupdatethepopulationQuanmingYao,MengshuoWang,HugoJE,etal.Takinghumanoutoflearningapplications:Asurveyonautomatedmachinelearning[J].arXivpreprintarXiv:1810.13306,2018.16SJTUDeepLearningLecture.HeuristicSearchPSO(Particleswarmoptimization)InspiredbythebehaviorofbiologicalcommunitiesthatexhibitbothindividualandsocialbehaviorAteachiteration,thepopulationisupdatedbymovingtowardsthebestindividualsPSOattendstosearchtheneighborhoodsofthebestsamplesEvolutionaryAlgorithmInspiredbybiologicalevolutionGenerationStep:crossoverandmutation.Withcrossovermainlytoexploit,andmutationmainlytoexplore,thepopulationisexpectedtoevolvetowardsbetterperformance.17SJTUDeepLearningLecture.GreedySearchAnaturalstrategytosolvemulti-stepdecision-makingproblemMotivationSelectlocallyoptimaldecisionateachstepwiththeintentoffindingaglobaloptimumPropertyCannotfindtheglobaloptimumUsuallyfindalocaloptimumwhichapproximatestheglobaloptimuminareasonabletimecost18SJTUDeepLearningLecture.Model-BasedDerivative-FreeOptimizationBayesianOptimization(BO)buildaprobabilisticmodelthatmapstheconfigurationstotheirperformancewithuncertaintyAn
acquisitionfunctionbasedontheprobabilisticmodelisdefinedtobalanceexplorationandexploitationduringsearchAteachiteration,anewsampleisgeneratedbyoptimizingtheacquisitionfunction,andusedtoupdatetheprobabilisticmodelClassification-BasedOptimization(CBO)abinary
classifierislearnedbasedontheprevioussamplestodividethesearchspaceintopositiveandnegativeareasnewsamplesarerandomlygeneratedinthepositiveareawhereitismorelikelytogetbetterconfigurations19SJTUDeepLearningLecture.ReinforcementLearningQuanmingYao,MengshuoWang,HugoJE,etal.Takinghumanoutoflearningapplications:Asurveyonautomatedmachinelearning[J].arXivpreprintarXiv:1810.13306,2018.BeabletosolveproblemswithdelayedfeedbacksThepolicyinRLactsastheoptimizerTheactualperformanceintheenvironmentismeasuredbytheevaluator
20SJTUDeepLearningLecture.GradientbasedMethodFocusingonsomedifferentiablelossfunction,continuoushyper-parameterscanbeoptimizedbygradientdescentComparedwithabovemethods,gradientsofferthemostaccurateinformationwherebetterconfigurationslocates.Forsometraditionalmachinelearningmethods,e.g.,LogisticregressionandSVM,theapproximategradientisproposedtosearchcontinuoushyper-parametersThecomputationofexactgradientsreliesontheconvergenceofmodeltraining21SJTUDeepLearningLecture.EvaluationGoalmeasuretheperformanceofthelearningtoolswithconfigurationsprovidedbytheoptimizerThetradeoffbetweenevaluation’saccuracyandtime,whereDEdenotesdirect.BothtimeandaccuracyaremeasuredrelativelytothatofDE.ThegraylinesindicatevarianceinaccuracyobtainedDirect
Evaluationthemodelparametersarelearnedonthetrainingset,andtheperformanceismeasuredonthevalidationsetafterwards.Directevaluationisoftenaccuratebutexpensive22SJTUDeepLearningLecture.EfficientEvaluationSub-samplinguseasubsetofsamplestotrainthemodelsthelesstrainingdataisused,thefasterandmorenoisywillbetheevaluationEarlyStopInclassicalmachinelearning,earlystopisusedtopreventover-fittinginthecontextofAutoML,itisusuallyusedtocutdownthetrainingtimeforunpromisingconfigurationsItintroducesnoiseandbiastotheestimationassomeconfigurationsSurrogateEvaluatorbuildamodelthatpredictstheperformanceofgivenconfigurations,withexperienceofpastevaluationsSimilaralgorithmsasModel-BasedDerivative-FreeOptimization23SJTUDeepLearningLecture.DeepLearninganditsApplicationConvolutionalneuralnetworksFrankRosenblatt,~1957:
PerceptronTheMarkIPerceptronmachinewasthe
first
implementationoftheperceptron
algorithm.Themachinewasconnectedtoacamerathatused20×20cadmiumsulfidephotocellstoproducea400-pixelimage.recognizedlettersofthealphabetupdate
rule:Abitof
history...25Thisimage
byRockyAcostaislicensedunderCC-BY
3.0Rosenblatt,Frank(1957),ThePerceptron--aperceivingandrecognizingautomaton.Report85-460-1,CornellAeronautical
Laboratory.SJTUDeepLearningLecture.Abitof
history...recognizable
mathIllustrationofRumelhartetal.,1986byLaneMcIntosh,copyrightCS231n
20176Rumelhartetal.,1986:Firsttimeback-propagationbecame
popularRumelhart,DavidE.;Hinton,GeoffreyE.;Williams,RonaldJ.(1986-10-09)."Learningrepresentationsbyback-propagatingerrors".Nature.323(6088):533–536.SJTUDeepLearningLecture.[HintonandSalakhutdinov
2006]Reinvigoratedresearch
inDeep
LearningAbitof
history...IllustrationofHintonandSalakhutdinov2006byLaneMcIntosh,copyrightCS231n
20177GeoffreyEHinton,RuslanRSalakhutdinov(2006)."Reducingthedimensionalityofdatawithneuralnetworks".science.
313(5786)SJTUDeepLearningLecture.Abitof
history:Hubel&
Wiesel,1959RECEPTIVEFIELDSOF
SINGLENEURONES
INTHECAT'SSTRIATE
CORTEX1962RECEPTIVEFIELDS,
BINOCULARINTERACTIONANDFUNCTIONALARCHITECTURE
INTHECAT'SVISUAL
CORTEX1968...9SJTUDeepLearningLecture.Abitof
historyTopographicalmappinginthe
cortex:nearbycellsincortexrepresentnearbyregionsinthevisual
fieldRetinotopyimagescourtesyofJesseGomezintheStanfordVision&PerceptionNeuroscience
Lab.10Human
brainVisualcortexSJTUDeepLearningLecture.Hierarchical
organizationIllustrationofhierarchicalorganizationinearlyvisualpathwaysbyLaneMcIntosh,copyrightCS231n
201711SJTUDeepLearningLecture.Abitof
history:Neocognitron[KunihikoFukushima福岛邦彦
1980]“sandwich”architecture(SCSCSC…)simplecells:modifiableparameterscomplexcells:perform
pooling12SJTUDeepLearningLecture.http://personalpage.flsi.or.jp/fukushima/index-e.htmlInspiredbytheexperimentofHubel&
Wiesel,1959KunihikoFukushima,Neocognitron:ASelf-organizingNeuralNetworkModelforaMechanismofPatternRecognitionUnaffectedbyShiftinPosition,Biol.Cybernetics36,193202(1980)Abitofhistory:12SJTUDeepLearningLecture.Perceptron(1957)Neocognitron(198x)NIN(2013)InceptionV1(2014)InceptionV2/V3(2015)MSRANet(2014)ResNet(2015)ResNetV2(2015)InceptionResNetV2(2016)DenseNet2017…Fast-forwardtotoday:ConvNetsareeverywhereDetectionSegmentation[Farabetetal.,
2012]16SJTUDeepLearningLecture.Convolutionalneuralnetworks19SJTUDeepLearningLecture.Dataaugmentation19SJTUDeepLearningLecture.ImageflippingColortransformationImagecroppingDeepLearninganditsApplicationConvolutionalneuralnetworksConvolutionalneuralnetworks19SJTUDeepLearningLecture.Dataaugmentation19SJTUDeepLearningLecture.ImageflippingColortransformationImagecroppingImageNetcompetition19SJTUDeepLearningLecture.ConvolutionalNeuralNetworks30721FullyConnected
Layer32x32x3image->stretchto3072x
110x
3072weightsactivationinput1101
number:theresultoftakingadotproductbetweenarowofWandthe
input(a3072-dimensionaldot
product)19SJTUDeepLearningLecture.32203ConvolutionLayer32x32x3image->preservespatial
structurewidthheight32depthSJTUDeepLearningLecture.ConvolutionLayer32x32x3
image5x5x3
filter32Convolvethefilterwiththe
imagei.e.“slideovertheimage
spatially,computingdot
products”32321SJTUDeepLearningLecture.ConvolutionLayer32x32x3
image5x5x3
filter32Convolvethefilterwiththe
imagei.e.“slideovertheimage
spatially,computingdot
products”323Filtersalwaysextendthefulldepthoftheinput
volume22SJTUDeepLearningLecture.32332x32x3
image5x5x3
filter321
number:theresultoftakingadotproductbetweenthefilterandasmall5x5x3chunkofthe
image(i.e.5*5*3=75-dimensionaldotproduct+
bias)ConvolutionLayer23SJTUDeepLearningLecture.32332x32x3
image5x5x3
filter32convolve(slide)over
allspatial
locationsactivation
map2412828ConvolutionLayerSJTUDeepLearningLecture.3232332x32x3
image5x5x3
filterconvolve(slide)over
allspatial
locationsactivation
maps12828considerasecond,green
filter25ConvolutionLayerSJTUDeepLearningLecture.323628Forexample,ifwehad65x5filters,we’llget6separateactivation
maps:activation
maps3228Convolution
LayerWestacktheseuptogeta“newimage”ofsize
28x28x6!26ConvolutionLayerSJTUDeepLearningLecture.ConvolutionLayerPreview:ConvNetisasequenceofConvolutionLayers,interspersedwithactivation
functions32323CONV,ReLUe.g.65x5x3filters28286CONV,ReLUe.g.
105x5x6filtersCONV,ReLU27….102424SJTUDeepLearningLecture.57
SJTUDeepLearningLecture.ConvolutionlayerPreview[ZeilerandFergus
2013]ConvolutionLayer28SJTUDeepLearningLecture.PreviewConvolutionLayer29SJTUDeepLearningLecture.example5x5
filters
(32in
total)Wecallthelayerconvolutionalbecauseitisrelatedto
convolutionoftwo
signals:elementwisemultiplicationandsum
ofafilterandthesignal
(image)onefilter
=>oneactivation
mapConvolutionLayer30SJTUDeepLearningLecture.DeepLearninganditsApplicationConvolutionalneuralnetworks下Acloserlookatspatial
dimensions:32332x32x3
image5x5x3
filter32convolve(slide)over
allspatial
locationsactivation
map3212828SpatialdimensionsSJTUDeepLearningLecture.33Acloserlookatspatial
dimensions:77x7input
(spatially)assume3x3
filter7SpatialdimensionsSJTUDeepLearningLecture.Spatialdimensions34Acloserlookatspatial
dimensions:77x7input
(spatially)assume3x3
filter7SJTUDeepLearningLecture.onebyone=>5x5
output357Acloserlookatspatial
dimensions:77x7input
(spatially)assume3x3
filterSpatialdimensionsSJTUDeepLearningLecture.7x7input(spatially)assume3x3filterappliedwithstride
23677Acloserlookatspatial
dimensions:SpatialdimensionsSJTUDeepLearningLecture.7x7input(spatially)assume3x3filterappliedwithstride
23777Acloserlookatspatial
dimensions:SpatialdimensionsSJTUDeepLearningLecture.7x7input(spatially)assume3x3filterappliedwithstride
2=>3x3
output!3877Acloserlookatspatial
dimensions:Spatial
dimensionsSJTUDeepLearningLecture.7x7input(spatially)assume3x3filterappliedwithstride
3?3977Acloserlookatspatial
dimensions:doesn’t
fit!cannotapply3x3filter
on7x7inputwithstride
3.SpatialdimensionsSJTUDeepLearningLecture.NNFF40Output
size:(N-F)/stride+
1e.g.N=7,F=
3:stride1=>(7-3)/1+1=
5stride2=>(7-3)/2+1=
3stride3=>(7-3)/3+1=2.33SpatialdimensionsSJTUDeepLearningLecture.Inpractice:Commontozeropadtheborder410000000000e.g.input
7x73x3filter,appliedwithstride
1padwith1pixelborder=>whatisthe
output?(recall:)(N-F)/stride+
1SJTUDeepLearningLecture.Inpractice:Commontozeropadtheborder420000000000e.g.input
7x73x3filter,appliedwithstride
1padwith1pixelborder=>whatisthe
output?7x7
output!SJTUDeepLearningLecture.•43Inpractice:Commontozeropadthebordere.g.input
7x73x3filter,appliedwithstride
1padwith1pixelborder=>whatisthe
output?7x7
output!ingeneral,commontoseeCONVlayerswithstride1,filtersofsizeFxF,andzero-padding
with(F-1)/2.(willpreservesize
spatially)e.g.
F=3=>z
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 部编版初中历史七年级上册《两汉科技与文化》教学设计
- 2026年新乡医学院第一附属医院医护人员招聘笔试备考题库及答案详解
- 2026年中国人民解放军九八三医院医护人员招聘考试参考试题及答案详解
- 2026年中国人民解放军第421医院医护人员招聘考试参考题库及答案详解
- 2026年广西医科大学第一附属医院医护人员招聘笔试参考题库及答案详解
- 2026年三二零一医院医护人员招聘考试备考试题及答案详解
- 2026年首都医科大学附属北京友谊医院医护人员招聘考试参考试题及答案详解
- 2026年农业外包区块链应用开发协议
- 2025年酒泉市人民医院医护人员招聘考试题库附答案详解
- 八年级英语上册Module1 Unit1 Lets try to speak English as much as possible核心素养导向教学设计
- 2026年河南省八年级地理生物会考试卷题库及答案
- 液压支架检修工岗位危险源辨识与安全防控培训
- 2026年天津市西青区中考历史二模试卷(含答案)
- (四模)新疆2026年高三普通高考五月适应性文科综合试卷(含答案及解析)
- 中国眩晕诊疗指南(2026版)
- 2026年福建科学技术出版社招聘工作人员4人笔试模拟试题及答案解析
- 2026公需课人工智能赋能制造业高质量发展试题及答案
- 2026年河北省邢台市八年级地理生物会考真题试卷+解析及答案
- 2026年高考全国I卷数学试卷及答案
- JJF 2137-2024表面铂电阻温度计校准规范
- MOOC 中国电影经典影片鉴赏-北京师范大学 中国大学慕课答案
评论
0/150
提交评论