{"title": "Optimal Learning for Multi-pass Stochastic Gradient Methods", "book": "Advances in Neural Information Processing Systems", "page_first": 4556, "page_last": 4564, "abstract": "We analyze the learning  properties of the stochastic gradient method when multiple passes over the data and mini-batches are allowed. In particular, we consider the square loss and show that    for  a universal step-size choice, the number of passes acts as a regularization parameter, and optimal finite sample bounds  can be achieved by early-stopping. Moreover, we show that larger step-sizes are allowed when considering mini-batches. Our analysis is based on  a unifying approach, encompassing both batch and stochastic gradient methods as special cases.", "full_text": "OptimalLearningforMulti-passStochasticGradientMethodsJunhongLinLCSL,IIT-MIT,USAjunhong.lin@iit.itLorenzoRosascoDIBRIS,Univ.Genova,ITALYLCSL,IIT-MIT,USAlrosasco@mit.eduAbstractWeanalyzethelearningpropertiesofthestochasticgradientmethodwhenmultiplepassesoverthedataandmini-batchesareallowed.Inparticular,weconsiderthesquarelossandshowthatforauniversalstep-sizechoice,thenumberofpassesactsasaregularizationparameter,andoptimal\ufb01nitesampleboundscanbeachievedbyearly-stopping.Moreover,weshowthatlargerstep-sizesareallowedwhenconsideringmini-batches.Ouranalysisisbasedonaunifyingapproach,encompassingbothbatchandstochasticgradientmethodsasspecialcases.1IntroductionModernmachinelearningapplicationsrequirecomputationalapproachesthatareatthesametimestatisticallyaccurateandnumericallyef\ufb01cient[2].Thishasmotivatedarecentinterestinstochasticgradientmethods(SGM),sinceontheonehandtheyenjoygoodpracticalperformances,especiallyinlargescalescenarios,andontheotherhandtheyareamenabletotheoreticalstudies.Inparticular,unlikeotherlearningapproaches,suchasempiricalriskminimizationorTikhonovregularization,theoreticalresultsonSGMnaturallyintegratestatisticalandcomputationalaspects.MostgeneralizationstudiesonSGMconsiderthecasewhereonlyonepassoverthedataisallowedandthestep-sizeisappropriatelychosen,[5,14,29,26,9,16](possiblyconsideringaveraging[18]).Inparticular,recentworksshowhowthestep-sizecanbeseentoplaytheroleofaregularizationparameterwhosechoicecontrolsthebiasandvariancepropertiesoftheobtainedsolution[29,26,9].Theselatterworksshowthatbalancingthesecontributions,itispossibletoderiveastep-sizechoiceleadingtooptimallearningbounds.Suchachoicetypicallydependsonsomeunknownpropertiesofthedatageneratingdistributionsandinpracticecanbechosenbycross-validation.Whileprocessingeachdatapointonlyonceisnaturalinstreaming/onlinescenarios,inpracticeSGMisoftenusedasatoolforprocessinglargedata-setsandmultiplepassesoverthedataaretypicallyconsidered.Inthiscase,thenumberofpassesoverthedata,aswellasthestep-size,needthentobedetermined.Whiletheroleofmultiplepassesiswellunderstoodifthegoalisempiricalriskminimization[3],itseffectwithrespecttogeneralizationislessclearandafewrecentworkshaverecentlystartedtotacklethisquestion.Inparticular,resultsinthisdirectionhavebeenderivedin[10]and[11].TheformerworkconsidersageneralstochasticoptimizationsettingandstudiesstabilitypropertiesofSGMallowingtoderiveconvergenceresultsaswellas\ufb01nitesamplebounds.Thelatterwork,restrictedtosupervisedlearning,furtherdevelopstheseresultstocomparetherespectiverolesofstep-sizeandnumberofpasses,andshowhowdifferentparametersettingscanleadtooptimalerrorbounds.Inparticular,itshowsthattherearetwoextremecases:onebetweenthestep-sizeorthenumberofpassesis\ufb01xedapriori,whiletheotheroneactsasaregularizationparameterandneedstobechosenadaptively.Themainshortcomingoftheselatterresultsisthattheyareintheworstcase,inthesensethattheydonotconsiderthepossibleeffectofcapacityassumptions[30,4]showntoleadtofasterratesforotherlearningapproachessuchasTikhonovregularization.Further,theseresultsdonotconsiderthepossibleeffectofmini-batches,ratherthanasinglepointineachgradient30thConferenceonNeuralInformationProcessingSystems(NIPS2016),Barcelona,Spain.\fstep[21,8,24,15].ThislatterstrategyisoftenconsideredespeciallyforparallelimplementationofSGM.Thestudyinthispaper,\ufb01llsinthesegapsinthecasewherethelossfunctionistheleastsquaresloss.WeconsideravariantofSGMforleastsquares,wheregradientsaresampleduniformlyatrandomandmini-batchesareallowed.Thenumberofpasses,thestep-sizeandthemini-batchsizearethenparameterstobedetermined.Ourmainresultshighlighttherespectiverolesoftheseparametersandshowhowcantheybechosensothatthecorrespondingsolutionsachieveoptimallearningerrors.Inparticular,weshowforthe\ufb01rsttimethatmulti-passSGMwithearlystoppingandauniversalstep-sizechoicecanachieveoptimallearningrates,matchingthoseofridgeregression[23,4].Further,ouranalysisshowshowthemini-batchsizeandthestep-sizechoicearetightlyrelated.Indeed,largermini-batchsizesallowtoconsiderlargerstep-sizeswhilekeepingtheoptimallearningbounds.Thisresultcouldgiveaninsightonhowtoexploitmini-batchesforparallelcomputationswhilepreservingoptimalstatisticalaccuracy.Finallywenotethatarecentwork[19]istightlyrelatedtotheanalysisinthepaper.Thegeneralizationpropertiesofamulti-passincrementalgradientareanalyzedin[19],foracyclic,ratherthanastochastic,choiceofthegradientsandwithnomini-batches.Theanalysisinthislattercaseappearstobeharderandresultsin[19]givegoodlearningboundsonlyinrestrictedsettingandconsideringiteratesratherthantheexcessrisk.Comparedto[19]ourresultsshowhowstochasticitycanbeexploitedtogetfastercapacitydependentratesandanalyzetheroleofmini-batches.ThebasicideaofourproofistoapproximatetheSGMlearningsequenceintermsofthebatchGMsequence,seeSubsection3.4forfurtherdetails.Thisthusallowsonetostudybatchandstochasticgradientmethodssimultaneously,andmaybealsousefulforanalysingotherlearningalgorithms.Therestofthispaperisorganizedasfollows.Section2introducesthelearningsettingandtheSGMalgorithm.MainresultswithdiscussionsandproofsketchesarepresentedinSection3.Finally,simplenumericalsimulationsaregiveninSection4tocomplementourtheoreticalresults.NotationForanya,b\u2208R,a\u2228bdenotesthemaximumofaandb.Nisthesetofallpositiveintegers.ForanyT\u2208N,[T]denotestheset{1,\u00b7\u00b7\u00b7,T}.Foranytwopositivesequences{at}t\u2208[T]and{bt}t\u2208[T],thenotationat.btforallt\u2208[T]meansthatthereexistsapositiveconstantC\u22650suchthatCisindependentoftandthatat\u2264Cbtforallt\u2208[T].2LearningwithSGMWebeginbyintroducingthelearningsettingweconsider,andthendescribetheSGMlearningalgorithm.Following[19],theformulationweconsiderisclosetothesettingoffunctionalregression,andcoversthereproducingkernelHilbertspace(RKHS)settingasaspecialcase.Inparticular,itreducestostandardlinearregressionfor\ufb01nitedimensions.2.1LearningProblemsLetHbeaseparableHilbertspace,withinnerproductandinducednormdenotedbyh\u00b7,\u00b7iHandk\u00b7kH,respectively.LettheinputspaceX\u2286HandtheoutputspaceY\u2286R.Let\u03c1beanunknownprobabilitymeasureonZ=X\u00d7Y,\u03c1X(\u00b7)theinducedmarginalmeasureonX,and\u03c1(\u00b7|x)theconditionalprobabilitymeasureonYwithrespecttox\u2208Xand\u03c1.Consideringthesquarelossfunction,theproblemunderstudyistheminimizationoftherisk,inf\u03c9\u2208HE(\u03c9),E(\u03c9)=ZX\u00d7Y(h\u03c9,xiH\u2212y)2d\u03c1(x,y),(1)whenthemeasure\u03c1isknownonlythroughasamplez={zi=(xi,yi)}mi=1ofsizem\u2208N,independentlyandidenticallydistributed(i.i.d.)accordingto\u03c1.Inthefollowing,wemeasurethequalityofanapproximatesolution\u02c6\u03c9\u2208H(anestimator)consideringtheexcessrisk,i.e.,E(\u02c6\u03c9)\u2212inf\u03c9\u2208HE(\u03c9).(2)Throughoutthispaper,weassumethatthereexistsaconstant\u03ba\u2208[1,\u221e[,suchthathx,x0iH\u2264\u03ba2,\u2200x,x0\u2208X.(3)2.2StochasticGradientMethodWestudythefollowingSGM(withmini-batches,withoutpenalizationorconstraints).2\fAlgorithm1.Letb\u2208[m].Givenanysamplez,theb-minibatchstochasticgradientmethodisde\ufb01nedby\u03c91=0and\u03c9t+1=\u03c9t\u2212\u03b7t1bbtXi=b(t\u22121)+1(h\u03c9t,xjiiH\u2212yji)xji,t=1,...,T,(4)where{\u03b7t>0}isastep-sizesequence.Here,j1,j2,\u00b7\u00b7\u00b7,jbTareindependentandidenticallydistributed(i.i.d.)randomvariablesfromtheuniformdistributionon[m]1.Differentchoicesforthe(mini-)batchsizebcanleadtodifferentalgorithms.Inparticular,forb=1,theabovealgorithmcorrespondstoasimpleSGM,whileforb=m,itisastochasticversionofthebatchgradientdescent.Theaimofthispaperistoderiveexcessriskboundsfortheabovealgorithmunderappropriateassumptions.Throughoutthispaper,weassumethat{\u03b7t}tisnon-increasing,andT\u2208NwithT\u22653.WedenotebyJttheset{jl:l=b(t\u22121)+1,\u00b7\u00b7\u00b7,bt}andbyJtheset{jl:l=1,\u00b7\u00b7\u00b7,bT}.3MainResultswithDiscussionsInthissection,we\ufb01rststatesomebasicassumptions.Then,wepresentanddiscussourmainresults.3.1AssumptionsThefollowingassumptionisrelatedtoamomenthypothesison|y|2.Itisweakerthantheoftenconsideredboundedoutputassumption,andtriviallyveri\ufb01edinbinaryclassi\ufb01cationproblemswhereY={\u22121,1}.Assumption1.ThereexistsconstantsM\u2208]0,\u221e[andv\u2208]1,\u221e[suchthatZYy2ld\u03c1(y|x)\u2264l!Mlv,\u2200l\u2208N,(5)\u03c1X-almostsurely.Topresentournextassumption,weintroducetheoperatorL:L2(H,\u03c1X)\u2192L2(H,\u03c1X),de\ufb01nedbyL(f)=RXhx,\u00b7iHf(x)\u03c1X(x).UnderAssumption(3),Lcanbeprovedtobepositivetraceclassoperators,andhenceL\u03b6with\u03b6\u2208Rcanbede\ufb01nedbyusingthespectrumtheory[7].TheHilbertspaceofsquareintegralfunctionsfromHtoRwithrespectto\u03c1X,withinducednormgivenbykfk\u03c1=(cid:0)RX|f(x)|2d\u03c1X(x)(cid:1)1/2,isdenotedby(L2(H,\u03c1X),k\u00b7k\u03c1).ItiswellknownthatthefunctionminimizingRZ(f(x)\u2212y)2d\u03c1(z)overallmeasurablefunctionsf:H\u2192Ristheregressionfunction,whichisgivenbyf\u03c1(x)=ZYyd\u03c1(y|x),x\u2208X.(6)De\ufb01neanotherHilbertspaceH\u03c1={f:X\u2192R|\u2203\u03c9\u2208Hwithf(x)=h\u03c9,xiH,\u03c1X-almostsurely}.UnderAssumption3,itiseasytoseethatH\u03c1isasubspaceofL2(H,\u03c1X).LetfHbetheprojectionoftheregressionfunctionf\u03c1ontotheclosureofH\u03c1inL2(H,\u03c1X).ItiseasytoseethatthesearchforasolutionofProblem(1)isequivalenttothesearchofalinearfunctionfromH\u03c1toapproximatefH.Fromthispointofview,boundsontheexcessriskofalearningalgorithmnaturallydependonthefollowingassumption,whichquanti\ufb01eshowwell,thetargetfunctionfHcanbeapproximatedbyH\u03c1.Assumption2.Thereexist\u03b6>0andR>0,suchthatkL\u2212\u03b6fHk\u03c1\u2264R.Theaboveassumptionisfairlystandard[7,19]innon-parametricregression.Thebigger\u03b6is,themorestringenttheassumptionis,sinceL\u03b61(L2(H,\u03c1X))\u2286L\u03b62(L2(H,\u03c1X))when\u03b61\u2265\u03b62.Inparticular,for\u03b6=0,weareassumingkfHk\u03c1<\u221e,whilefor\u03b6=1/2,wearerequiringfH\u2208H\u03c1,since[25,19]H\u03c1=L1/2(L2(H,\u03c1X)).Finally,thelastassumptionrelatestothecapacityofthehypothesisspace.1Notethat,therandomvariablesj1,\u00b7\u00b7\u00b7,jbTareconditionallyindependentgiventhesamplez.3\fAssumption3.Forsome\u03b3\u2208]0,1]andc\u03b3>0,Lsatis\ufb01estr(L(L+\u03bbI)\u22121)\u2264c\u03b3\u03bb\u2212\u03b3,forall\u03bb>0.(7)TheLHSof(7)iscalledastheeffectivedimension,orthedegreesoffreedom[30,4].Itcanberelatedtocovering/entropynumberconditions,see[25]forfurtherdetails.Assumption3isalwaystruefor\u03b3=1andc\u03b3=\u03ba2,sinceLisatraceclassoperatorwhichimpliestheeigenvaluesofL,denotedas\u03c3i,satisfytr(L)=Pi\u03c3i\u2264\u03ba2.Thisisreferredasthecapacityindependentsetting.Assumption3with\u03b3\u2208]0,1]allowstoderivebettererrorrates.Itissatis\ufb01ed,e.g.,iftheeigenvaluesofLsatisfyapolynomialdecayingcondition\u03c3i\u223ci\u22121/\u03b3,orwith\u03b3=0ifLis\ufb01niterank.3.2MainResultsWestartwiththefollowingcorollary,whichisasimpli\ufb01edversionofourmainresultsstatednext.Corollary3.1.UnderAssumptions2and3,let\u03b6\u22651/2and|y|\u2264M\u03c1X-almostsurelyforsomeM>0.ConsidertheSGMwith1)p\u2217=dm12\u03b6+\u03b3e,b=1,\u03b7t\u20191mforallt\u2208[(p\u2217m)],and\u02dc\u03c9p\u2217=\u03c9p\u2217m+1.Ifmislargeenough,withhighprobability2,thereholdsEJ[E(\u02dc\u03c9p\u2217)]\u2212inf\u03c9\u2208HE.m\u22122\u03b62\u03b6+\u03b3.Furthermore,theabovealsoholdsfortheSGMwith32)orp\u2217=dm12\u03b6+\u03b3e,b=\u221am,\u03b7t\u20191\u221amforallt\u2208[(p\u2217\u221am)],and\u02dc\u03c9p\u2217=\u03c9p\u2217\u221am+1.Intheabove,p\u2217isthenumberof\u2018passes\u2019overthedata,whichisde\ufb01nedasdbtmeattiterations.Theaboveresultassertsthat,atp\u2217passesoverthedata,thesimpleSGMwith\ufb01xedstep-sizeachievesoptimallearningerrorbounds,matchingthoseofridgeregression[4].Furthermore,usingmini-batchallowstousealargerstep-sizewhileachievingthesameoptimalerrorbounds.Remark3.2(FiniteDimensionalCase).Withasimplemodi\ufb01cationofourproofs,wecanderivesimilarresultsforthe\ufb01nitedimensionalcase,i.e.,H=Rd,whereinthiscase,\u03b3=0.Inparticular,letting\u03b6=1/2,underthesameassumptionsofCorollary3.1,ifoneconsiderstheSGMwithb=1and\u03b7t\u20191mforallt\u2208m2,thenwithhighprobability,EJ[E(\u03c9m2+1)]\u2212inf\u03c9\u2208HE.d/m,providedthatm&dlogd.Ourmaintheoremofthispaperisstatednext,andprovideserrorboundsforthestudiedalgorithm.Forthesakeofreadability,weonlyconsiderthecase\u03b6\u22651/2ina\ufb01xedstep-sizesetting.Generalresultsinamoregeneralsetting(\u03b7t=\u03b71t\u2212\u03b8with0\u2264\u03b8<1,and/orthecase\u03b6\u2208]0,1/2])canbefoundintheappendix.Theorem3.3.UnderAssumptions1,2and3,let\u03b6\u22651/2,\u03b4\u2208]0,1[,\u03b7t=\u03b7\u03ba\u22122forallt\u2208[T],with\u03b7\u226418(logT+1).Ifm\u2265m\u03b4,thenthefollowingholdswithprobabilityatleast1\u2212\u03b4:forallt\u2208[T],EJ[E(\u03c9t+1)]\u2212inf\u03c9\u2208HE\u2264q1(\u03b7t)\u22122\u03b6+q2m\u22122\u03b62\u03b6+\u03b3(1+m\u221212\u03b6+\u03b3\u03b7t)2log2Tlog21\u03b4+q3\u03b7b\u22121(1\u2228m\u221212\u03b6+\u03b3\u03b7t)logT.(8)Here,m\u03b4,q1,q2andq3arepositiveconstantsdependingon\u03ba2,kTk,M,v,\u03b6,R,c\u03b3,\u03b3,andm\u03b4alsoon\u03b4(whichwillbegivenexplicitlyintheproof).Therearethreetermsintheupperboundsof(8).The\ufb01rsttermdependsontheregularityofthetargetfunctionanditarisesfromboundingthebias,whilethelasttwotermsresultfromestimatingthesamplevarianceandthecomputationalvariance(duetotherandomchoicesofthepoints),respectively.Toderiveoptimalrates,itisnecessarytobalancethesethreeterms.Solvingthistrade-offproblemleadstodifferentchoiceson\u03b7,T,andb,correspondingtodifferentregularizationstrategies,asshowninsubsequentcorollaries.The\ufb01rstcorollarygivesgeneralizationerrorboundsforSGM,withauniversalstep-sizedependingonthenumberofsamplepoints.2Here,\u2018highprobability\u2019referstothesamplez.3Here,weassumethat\u221amisaninteger.4\fCorollary3.4.UnderAssumptions1,2and3,let\u03b6\u22651/2,\u03b4\u2208]0,1[,b=1and\u03b7t\u20191mforallt\u2208[T],whereT\u2264m2.Ifm\u2265m\u03b4,thenwithprobabilityatleast1\u2212\u03b4,thereholdsEJ[E(\u03c9t+1)]\u2212inf\u03c9\u2208HE.(cid:26)(cid:16)mt(cid:17)2\u03b6+m\u22122\u03b6+22\u03b6+\u03b3(cid:16)tm(cid:17)2(cid:27)\u00b7log2mlog21\u03b4,\u2200t\u2208[T],(9)andinparticular,EJ[E(\u03c9T\u2217+1)]\u2212inf\u03c9\u2208HE.m\u22122\u03b62\u03b6+\u03b3log2mlog21\u03b4,(10)whereT\u2217=dm2\u03b6+\u03b3+12\u03b6+\u03b3e.Here,m\u03b4isexactlythesameasinTheorem3.3.Remark3.5.Ignoringthelogarithmictermandlettingt=pm,Eq.(9)becomesEJ[E(\u03c9pm+1)]\u2212inf\u03c9\u2208HE.p\u22122\u03b6+m\u22122\u03b6+22\u03b6+\u03b3p2.Asmallerpmayleadtoalargerbias,whilealargerpmayleadtoalargersampleerror.Fromthispointofview,phasaregularizationeffect.ThesecondcorollaryprovideserrorboundsforSGMwitha\ufb01xedmini-batchsizeanda\ufb01xedstep-size(whichdependonthenumberofsamplepoints).Corollary3.6.UnderAssumptions1,2and3,let\u03b6\u22651/2,\u03b4\u2208]0,1[,b=d\u221ameand\u03b7t\u20191\u221amforallt\u2208[T],whereT\u2264m2.Ifm\u2265m\u03b4,thenwithprobabilityatleast1\u2212\u03b4,thereholdsEJ[E(\u03c9t+1)]\u2212inf\u03c9\u2208HE.(cid:26)(cid:16)\u221amt(cid:17)2\u03b6+m\u22122\u03b6+22\u03b6+\u03b3(cid:16)t\u221am(cid:17)2(cid:27)log2mlog21\u03b4,\u2200t\u2208[T],(11)andparticularly,EJ[E(\u03c9T\u2217+1)]\u2212inf\u03c9\u2208HE.m\u22122\u03b62\u03b6+\u03b3log2mlog21\u03b4,(12)whereT\u2217=dm12\u03b6+\u03b3+12e.TheabovetwocorollariesfollowfromTheorem3.3withthesimpleobservationthatthedominatingtermsin(8)arethetermsrelatedtothebiasandthesamplevariance,whenasmallstep-sizeischosen.Theonlyfreeparameterin(9)and(11)isthenumberofiterations/passes.Theidealstoppingruleisachievedbybalancingthetwotermsrelatedtothebiasandthesamplevariance,showingtheregularizationeffectofthenumberofpasses.Sincetheidealstoppingruledependsontheunknownparameters\u03b6and\u03b3,ahold-outcross-validationprocedureisoftenusedtotunethestoppingruleinpractice.UsinganargumentsimilartothatinChapter6from[25],itispossibletoshowthatthisprocedurecanachievethesameconvergencerate.Wegivesomefurtherremarks.First,theupperboundin(10)isoptimaluptoalogarithmicfactor,inthesensethatitmatchestheminimaxlowerratein[4].Second,accordingtoCorollaries3.4and3.6,bT\u2217m\u2019m12\u03b6+\u03b3passesoverthedataareneededtoobtainoptimalratesinbothcases.Finally,incomparingthesimpleSGMandthemini-batchSGM,Corollaries3.4and3.6showthatalargerstep-sizeisallowedtouseforthelatter.Inthenextresult,boththestep-sizeandthestoppingrulearetunedtoobtainoptimalratesforsimpleSGMwithmultiplepasses.Inthiscase,thestep-sizeandthenumberofiterationsaretheregularizationparameters.Corollary3.7.UnderAssumptions1,2and3,let\u03b6\u22651/2,\u03b4\u2208]0,1[,b=1and\u03b7t\u2019m\u22122\u03b62\u03b6+\u03b3forallt\u2208[T],whereT\u2264m2.Ifm\u2265m\u03b4,andT\u2217=dm2\u03b6+12\u03b6+\u03b3e,then(10)holdswithprobabilityatleast1\u2212\u03b4.Remark3.8.Ifwemakenoassumptiononthecapacity,i.e.,\u03b3=1,Corollary3.7recoverstheresultin[29]foronepassSGM.Thenextcorollaryshowsthatforsomesuitablemini-batchsizes,optimalratescanbeachievedwithaconstantstep-size(whichisnearlyindependentofthenumberofsamplepoints)byearlystopping.Corollary3.9.UnderAssumptions1,2and3,let\u03b6\u22651/2,\u03b4\u2208]0,1[,b=dm2\u03b62\u03b6+\u03b3eand\u03b7t\u20191logmforallt\u2208[T],whereT\u2264m2.Ifm\u2265m\u03b4,andT\u2217=dm12\u03b6+\u03b3e,then(10)holdswithprobabilityatleast1\u2212\u03b4.5\fAccordingtoCorollaries3.7and3.9,aroundm1\u2212\u03b32\u03b6+\u03b3passesoverthedataareneededtoachievethebestperformanceintheabovetwostrategies.IncomparisonswithCorollaries3.4and3.6wherearoundm\u03b6+12\u03b6+\u03b3passesarerequired,thelatterseemstorequirefewerpassesoverthedata.However,inthiscase,onemighthavetorunthealgorithmsmultipletimestotunethestep-size,orthemini-batchsize.Finally,thelastresultgivesgeneralizationerrorboundsfor\u2018batch\u2019SGMwithaconstantstep-size(nearlyindependentofthenumberofsamplepoints).Corollary3.10.UnderAssumptions1,2and3,let\u03b6\u22651/2,\u03b4\u2208]0,1[,b=mand\u03b7t\u20191logmforallt\u2208[T],whereT\u2264m2.Ifm\u2265m\u03b4,andT\u2217=dm12\u03b6+\u03b3e,then(10)holdswithprobabilityatleast1\u2212\u03b4.Aswillbeseenintheprooffromtheappendix,theaboveresultalsoholdswhenreplacingthesequence{\u03c9t}bythesequence{\u03bdt}tgeneratedfrombatchGMin(14).Inthissense,westudythegradient-basedlearningalgorithmssimultaneously.3.3DiscussionsWecompareourresultswithpreviousworks.Fornon-parametricregressionwiththesquareloss,onepassSGMhasbeenstudiedin,e.g.,[29,22,26,9].Inparticular,[29]provedcapacityindependentrateoforderO(m\u22122\u03b62\u03b6+1logm)witha\ufb01xedstep-size\u03b7\u2019m\u22122\u03b62\u03b6+1,and[9]derivedcapacitydependenterrorboundsoforderO(m\u22122min(\u03b6,1)2min(\u03b6,1)+\u03b3)(when2\u03b6+\u03b3>1)fortheaverage.NotealsothataregularizedversionofSGMhasbeenstudiedin[26],wherethederivedconvergenceratethereisoforderO(m\u22122\u03b62\u03b6+1)assumingthat\u03b6\u2208[12,1].Incomparisonwiththeseexistingconvergencerates,ourratesfrom(10)arecomparable,eitherinvolvingthecapacitycondition,orallowingabroaderregularityparameter\u03b6(whichthusimprovestherates).Morerecently,[19]studiedmultiplepassesSGMwitha\ufb01xedorderingateachpass,alsocalledincrementalgradientmethod.Makingnoassumptiononthecapacity,ratesoforderO(m\u2212\u03b6\u03b6+1)(inL2(H,\u03c1X)-norm)withauniversalstep-size\u03b7\u20191/marederived.Incomparisons,Corollary3.4achievesbetterrates,whileconsideringthecapacityassumption.Notealsothat[19]provedsharprateinH-normfor\u03b6\u22651/2inthecapacityindependentcase.Infact,wecanextendouranalysistotheH-normforAlgorithm4.Wepostponethisextensiontoalongerversionofthispaper.Theideaofusingmini-batches(andparallelimplements)tospeedupSGMinageneralstochasticoptimizationsettingcanbefound,e.g.,in[21,8,24,15].Ourtheoretical\ufb01ndings,especiallytheinterplaybetweenthemini-batchsizeandthestep-size,cangivefurtherinsightsonparallelizationlearning.Besides,ithasbeenshownin[6,8]thatforonepassmini-batchSGMwitha\ufb01xedstep-size\u03b7\u2019b/\u221amandasmoothlossfunction,assumingtheexistenceofatleastonesolutioninthehypothesisspacefortheexpectedriskminimization,theconvergencerateisoforderO(p1/m+b/m)byconsideringanaveragingscheme.Whenadaptingtothelearningsettingweconsider,thisreadsasthatiffH\u2208H\u03c1,i.e.,\u03b6=1/2,theconvergenceratefortheaverageisO(p1/m+b/m).Notethat,fHdoesnotnecessarilybelongtoH\u03c1ingeneral.Also,ourderivedconvergenceratefromCorollary3.6isbetter,whentheregularityparameter\u03b6isgreaterthan1/2,or\u03b3issmallerthan1.3.4ProofSketch(ErrorDecomposition)Thekeytoourproofisanovelerrordecomposition,whichmaybealsousedinanalysingotherlearn-ingalgorithms.Onemayalsousetheapproachin[12,11]whichisbasedontheerrordecomposition,i.e.,forsomesuitablyintermediateelement\u02dc\u03c9\u2208H,EE(\u03c9t)\u2212infw\u2208HE=[E(E(\u03c9t)\u2212Ez(\u03c9t))+EEz(\u02dc\u03c9)\u2212E(\u02dc\u03c9)]+E(Ez(\u03c9t)\u2212Ez(\u02dc\u03c9))+E(\u02dc\u03c9)\u2212inf\u03c9\u2208HE,whereEzdenotestheempiricalrisk.However,onecanonlyderiveasub-optimalconvergencerate,sincetheproofprocedureinvolvesupperboundingthelearningsequencetoestimatethesampleerror(the\ufb01rsttermofRHS).Inthiscasethe\u2018regularity\u2019oftheregressionfunctioncannotbefullyadaptedforboundingthebias(thelastterm).Thankstothepropertyofsquaresloss,wecanexploitadifferenterrordecompositionleadingtobetterresults.We\ufb01rstintroducetwosequences.Thepopulationiterationisde\ufb01nedby\u00b51=0and\u00b5t+1=\u00b5t\u2212\u03b7tZX(h\u00b5t,xiH\u2212f\u03c1(x))xd\u03c1X(x),t=1,...,T.(13)6\fTheaboveiteratedprocedureisidealandcannotbeimplementedinpractice,sincethedistribution\u03c1Xisunknowningeneral.Replacing\u03c1Xbytheempiricalmeasureandf\u03c1(xi)byyi,wederivethesampleiteration(associatedwiththesamplez),i.e.,\u03bd1=0and\u03bdt+1=\u03bdt\u2212\u03b7t1mmXi=1(h\u03bdt,xiiH\u2212yi)xi,t=1,...,T.(14)Clearly,\u00b5tisdeterministicand\u03bdtisaH-valuedrandomvariabledependingonz.Giventhesamplez,thesequence{\u03bdt}thasanaturalrelationshipwiththelearningsequence{\u03c9t}t,sinceEJ[\u03c9t]=\u03bdt.(15)Indeed,takingtheexpectationwithrespecttoJtonbothsidesof(4),andnotingthat\u03c9tdependsonlyonJ1,\u00b7\u00b7\u00b7,Jt\u22121(givenanyz),onehasEJt[\u03c9t+1]=\u03c9t\u2212\u03b7t1mPmi=1(h\u03c9t,xiiH\u2212yi)xi,andthus,EJ[\u03c9t+1]=EJ[\u03c9t]\u2212\u03b7t1mPmi=1(hEJ[\u03c9t],xiiH\u2212yi)xi,t=1,...,T,whichsatis\ufb01estheiterativerelationshipgivenin(14).Byaninductionargument,(15)canthenbeproved.LetS\u03c1:H\u2192L2(H,\u03c1X)bethelinearmapde\ufb01nedby(S\u03c1\u03c9)(x)=h\u03c9,xiH,\u2200\u03c9,x\u2208H.Wehavethefollowingerrordecomposition.Proposition3.11.WehaveEJ[E(\u03c9t)]\u2212inff\u2208HE(f)\u22642kS\u03c1\u00b5t\u2212fHk2\u03c1+2kS\u03c1\u03bdt\u2212S\u03c1\u00b5tk2\u03c1+EJ[kS\u03c1\u03c9t\u2212S\u03c1\u03bdtk2].(16)Proof.Forany\u03c9\u2208H,wehave[25,19]E(\u03c9)\u2212inff\u2208HE(f)=kS\u03c1\u03c9\u2212fHk2\u03c1.Thus,E(\u03c9t)\u2212inff\u2208HE(f)=kS\u03c1\u03c9t\u2212fHk2\u03c1,andEJ[kS\u03c1\u03c9t\u2212fHk2\u03c1]=EJ[kS\u03c1\u03c9t\u2212S\u03c1\u03bdt+S\u03c1\u03bdt\u2212fHk2\u03c1]=EJ[kS\u03c1\u03c9t\u2212S\u03c1\u03bdtk2\u03c1+kS\u03c1\u03bdt\u2212fHk2\u03c1]+2EJhS\u03c1\u03c9t\u2212S\u03c1\u03bdt,S\u03c1\u03bdt\u2212fHi\u03c1.Using(15)totheabove,wegetEJ[kS\u03c1\u03c9t\u2212fHk2\u03c1]=EJ[kS\u03c1\u03c9t\u2212S\u03c1\u03bdtk2\u03c1+kS\u03c1\u03bdt\u2212fHk2\u03c1].Nowtheproofcanbe\ufb01nishedbyconsideringkS\u03c1\u03bdt\u2212fHk2\u03c1=kS\u03c1\u03bdt\u2212S\u03c1\u00b5t+S\u03c1\u00b5t\u2212fHk2\u03c1\u22642kS\u03c1\u03bdt\u2212S\u03c1\u00b5tk2\u03c1+2kS\u03c1\u00b5t\u2212S\u03c1fHk2\u03c1.Therearethreetermsintheupperboundoftheerrordecomposition(16).WerefertothedeterministictermkS\u03c1\u00b5t\u2212fHk2\u03c1asthebias,thetermkS\u03c1\u03bdt\u2212S\u03c1\u00b5tk2\u03c1dependingonzasthesamplevariance,andEJ[kS\u03c1\u03c9t\u2212S\u03c1\u03bdtk2\u03c1]asthecomputationalvariance.Thebiastermisdeterministicandiswellstudiedintheliterature,seee.g.,[28]andalso[19].Themainnoveltiesaretheestimateofthesampleandcomputationalvariances.Theproofoftheseresultsisquitelengthyandmakesuseofsomeideasfrom[28,23,1,29,26,20].Thesethreeerrortermswillbeestimatedintheappendix,seeLemmaB.2,TheoremC.6andTheoremD.9.TheboundinTheorem3.3thusfollowspluggingtheseestimationsintheerrordecomposition.4NumericalSimulationsInordertoillustrateourtheoreticalresultsandtheerrordecomposition,we\ufb01rstperformedsomesimulationsonasimpleproblem.Weconstructedm=100i.i.d.trainingexamplesoftheformy=f\u03c1(xi)+\u03c9i.Here,theregressionfunctionisf\u03c1(x)=|x\u22121/2|\u22121/2,theinputpointxiisuniformlydistributedin[0,1],and\u03c9iisaGaussiannoisewithzeromeanandstandarddeviation1,foreachi\u2208[m].WeperformthreeexperimentswiththesameH,aRKHSassociatedwithaGaussiankernelK(x,x0)=exp(\u2212(x\u2212x0)2/(2\u03c32))where\u03c3=0.2.Inthe\ufb01rstexperiment,werunmini-batchSGM,wherethemini-batchsizeb=\u221am,andthestep-size\u03b7t=1/(8\u221am).Inthesecondexperiment,werunsimpleSGMwherethestep-sizeis\ufb01xedas\u03b7t=1/(8m),whileinthethirdexperiment,werunbatchGMusingthe\ufb01xedstep-size\u03b7t=1/8.Formini-batchSGMandSGM,thetotalerrorkS\u03c1\u03c9t\u2212f\u03c1k2L2\u02c6\u03c1,thebiaskS\u03c1\u02c6\u00b5t\u2212f\u03c1k2L2\u02c6\u03c1,thesamplevariancekS\u03c1\u03bdt\u2212S\u03c1\u02c6\u00b5tk2L2\u02c6\u03c1andthecomputationalvariancekS\u03c1\u03c9t\u2212S\u03c1\u03bdtk2L2\u02c6\u03c1,averagedover50trials,aredepictedinFigures1aand1b,respectively.ForbatchGM,thetotalerrorkS\u03c1\u03bdt\u2212f\u03c1k2L2\u02c6\u03c1,thebiaskS\u03c1\u02c6\u00b5t\u2212f\u03c1k2L2\u02c6\u03c1andthe7\f02040608010012014016018020000.010.020.030.040.050.060.070.08PassErrorMinibatch SGM BiasSample ErrorComputational ErrorTotal Error(a)MinibatchSGM02040608010012014016018020000.010.020.030.040.050.060.070.08PassErrorSGM BiasSample ErrorComputational ErrorTotal Error(b)SGM02040608010012014016018020000.010.020.030.040.050.060.070.08PassErrorBatch GM BiasSample ErrorTotal Error(c)BatchGMFigure1:Errordecompositionsforgradient-basedlearningalgorithmsonsynthesisdata,wherem=100.00.20.40.60.811.21.41.61.82x 10400.010.020.030.040.050.060.070.080.09PassErrorClassification Errors of Minibatch SGM Training ErrorValidation Error(a)MinibatchSGM00.20.40.60.811.21.41.61.82x 10400.010.020.030.040.050.060.070.08PassErrorClassification Errors of SGM Training ErrorValidation Error(b)SGM00.20.40.60.811.21.41.61.82x 10400.010.020.030.040.050.060.070.08PassErrorClassification Errors of GM Training ErrorValidation Error(c)BatchGMFigure2:Misclassi\ufb01cationErrorsforgradient-basedlearningalgorithmsonBreastCancerdataset.samplevariancekS\u03c1\u03bdt\u2212\u02c6\u00b5tk2L2\u02c6\u03c1,averagedover50trialsaredepictedinFigure1c.Here,wereplacetheunknownmarginaldistribution\u03c1Xbyanempiricalmeasure\u02c6\u03c1=12000P2000i=1\u03b4\u02c6xi,whereeach\u02c6xiisuniformlydistributedin[0,1].FromFigure1aor1b,weseethatasthenumberofpassesincreases4,thebiasdecreases,whilethesampleerrorincreases.Furthermore,weseethatincomparisonswiththebiasandthesampleerror,thecomputationalerrorisnegligible.Inalltheseexperiments,theminimaltotalerrorisachievedwhenthebiasandthesampleerrorarebalanced.Theseempiricalresultsshowtheeffectsofthethreetermsfromtheerrordecomposition,andcomplementthederivedbound(8),aswellastheregularizationeffectofthenumberofpassesoverthedata.Finally,wetestedthesimpleSGM,mini-batchSGM,andbatchGM,usingsimilarstep-sizesasthoseinthe\ufb01rstsimulation,ontheBreastCancerdata-set5.Theclassi\ufb01cationerrorsonthetrainingsetandthetestingsetofthesethreealgorithmsaredepictedinFigure2.Weseethatallofthesealgorithmsperformsimilarly,whichcomplementtheboundsinCorollaries3.4,3.6and3.10.AcknowledgmentsThismaterialisbaseduponworksupportedbytheCenterforBrains,MindsandMachines(CBMM),fundedbyNSFSTCawardCCF-1231216.L.R.acknowledgesthe\ufb01nancialsupportoftheItalianMinistryofEducation,UniversityandResearchFIRBprojectRBFR12M3AC.References[1]F.Bauer,S.Pereverzev,andL.Rosasco.Onregularizationalgorithmsinlearningtheory.JournalofComplexity,23(1):52\u201372,2007.[2]O.BousquetandL.Bottou.Thetradeoffsoflargescalelearning.InAdvancesinNeuralInformationProcessingSystems,pages161\u2013168,2008.[3]S.BoydandA.Mutapcic.Stochasticsubgradientmethods.NotesforEE364b,StandfordUniversity,Winter2007.4Notethattheterminology\u2018runningthealgorithmwithppasses\u2019means\u2018runningthealgorithmwithdmp/beiterations\u2019,wherebisthemini-batchsize.5https://archive.ics.uci.edu/ml/datasets/8\f[4]A.CaponnettoandE.DeVito.Optimalratesfortheregularizedleast-squaresalgorithm.FoundationsofComputationalMathematics,7(3):331\u2013368,2007.[5]N.Cesa-Bianchi,A.Conconi,andC.Gentile.Onthegeneralizationabilityofon-linelearningalgorithms.IEEETransactionsonInformationTheory,50(9):2050\u20132057,2004.[6]A.Cotter,O.Shamir,N.Srebro,andK.Sridharan.Bettermini-batchalgorithmsviaacceleratedgradientmethods.InAdvancesinNeuralInformationProcessingSystems,pages1647\u20131655,2011.[7]F.CuckerandD.-X.Zhou.LearningTheory:anApproximationTheoryViewpoint,volume24.CambridgeUniversityPress,2007.[8]O.Dekel,R.Gilad-Bachrach,O.Shamir,andL.Xiao.Optimaldistributedonlinepredictionusingmini-batches.JournalofMachineLearningResearch,13(1):165\u2013202,2012.[9]A.DieuleveutandF.Bach.Non-parametricstochasticapproximationwithlargestepsizes.AnnalsofStatistics,44(4):1363\u20131399,2016.[10]M.Hardt,B.Recht,andY.Singer.Trainfaster,generalizebetter:Stabilityofstochasticgradientdescent.InInternationalConferenceonMachineLearning,2016.[11]J.Lin,R.Camoriano,andL.Rosasco.GeneralizationpropertiesandimplicitregularizationofmultiplepassesSGM.InInternationalConferenceonMachineLearning,2016.[12]J.Lin,L.Rosasco,andD.-X.Zhou.Iterativeregularizationforlearningwithconvexlossfunctions.JournalofMachineLearningResearch,17(77):1\u201338,2016.[13]S.Minsker.Onsomeextensionsofbernstein\u2019sinequalityforself-adjointoperators.arXivpreprintarXiv:1112.5448,2011.[14]A.Nemirovski,A.Juditsky,G.Lan,andA.Shapiro.Robuststochasticapproximationapproachtostochasticprogramming.SIAMJournalonOptimization,19(4):1574\u20131609,2009.[15]A.Ng.Machinelearning.Coursera,StandfordUniversity,2016.[16]F.Orabona.Simultaneousmodelselectionandoptimizationthroughparameter-freestochasticlearning.InAdvancesinNeuralInformationProcessingSystems,pages1116\u20131124,2014.[17]I.PinelisandA.Sakhanenko.Remarksoninequalitiesforlargedeviationprobabilities.TheoryofProbability&ItsApplications,30(1):143\u2013148,1986.[18]B.T.Poljak.IntroductiontoOptimization.OptimizationSoftware,1987.[19]L.RosascoandS.Villa.Learningwithincrementaliterativeregularization.InAdvancesinNeuralInformationProcessingSystems,pages1621\u20131629,2015.[20]A.Rudi,R.Camoriano,andL.Rosasco.Lessismore:Nystr\u00f6mcomputationalregularization.InAdvancesinNeuralInformationProcessingSystems,pages1648\u20131656,2015.[21]S.Shalev-Shwartz,Y.Singer,N.Srebro,andA.Cotter.Pegasos:Primalestimatedsub-gradientsolverforsvm.MathematicalProgramming,127(1):3\u201330,2011.[22]O.ShamirandT.Zhang.Stochasticgradientdescentfornon-smoothoptimization:Convergenceresultsandoptimalaveragingschemes.InInternationalConferenceonMachineLearning,pages71\u201379,2013.[23]S.SmaleandD.-X.Zhou.Learningtheoryestimatesviaintegraloperatorsandtheirapproxima-tions.ConstructiveApproximation,26(2):153\u2013172,2007.[24]S.Sra,S.Nowozin,andS.J.Wright.OptimizationforMachineLearning.MITPress,2012.[25]I.SteinwartandA.Christmann.SupportVectorMachines.SpringerScienceBusinessMedia,2008.[26]P.TarresandY.Yao.Onlinelearningasstochasticapproximationofregularizationpaths:Optimalityandalmost-sureconvergence.IEEETransactionsonInformationTheory,60(9):5716\u20135735,2014.[27]J.A.Tropp.User-friendlytoolsforrandommatrices:Anintroduction.Technicalreport,DTICDocument,2012.[28]Y.Yao,L.Rosasco,andA.Caponnetto.Onearlystoppingingradientdescentlearning.ConstructiveApproximation,26(2):289\u2013315,2007.[29]Y.YingandM.Pontil.Onlinegradientdescentlearningalgorithms.FoundationsofComputa-tionalMathematics,8(5):561\u2013596,2008.[30]T.Zhang.Learningboundsforkernelregressionusingeffectivedatadimensionality.NeuralComputation,17(9):2077\u20132098,2005.9\f", "award": [], "sourceid": 2277, "authors": [{"given_name": "Junhong", "family_name": "Lin", "institution": "Istituto Italiano di Tecnologia"}, {"given_name": "Lorenzo", "family_name": "Rosasco", "institution": "University of Genova- MIT - IIT"}]}