Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses...

76
Interpolating Between Stochastic and Worst-case Optimization R. Ravi [email protected]

Transcript of Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses...

Page 1: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

InterpolatingBetweenStochasticandWorst-caseOptimization

[email protected]

Page 2: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Risk– calculablegamble

Page 3: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Handlinginputrisk:Averagecaseanalysis

Page 4: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Uncertainty– incalculableunknown

'Symbol of Uncertainty', John Gilbert

Page 5: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Handlinginputuncertainty:Worst-casecompetitiveanalysis

Page 6: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Commoncomplaints

• Competitiveanalysisistoopessimistic

• Stochasticanalysisneedtoodetailedinformation

Page 7: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

PossibleResponses• Relaxpessimism:Addrestrictionstoworst-caseinputscenariostoreduceimpact

• Temperoptimism:Makestochasticanalysisrobusttochangesininputdistribution

• “Haveitall”:Buildalgorithmsthatachievethe‘bestofbothworlds’andworkforbothkindsofinputs

• InterpolateModelANDPerformance:Buildhybridinputmodelsinterpolatingstochasticandadversarialinputstoderivenewalgorithmsthatdeterioratesmoothlyinperformance

Page 8: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Outline

• Motivation• Relatedwork*(incompleteandrepresentative)• AttemptatSpecificModel

Page 9: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

RelaxPessimism:Restrictclassesofinputs• Betteralgorithmsforboundedtree-widthinputs

• Betterapproximationalgorithmsforboundedgenusgraphs

Page 10: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

RelaxPessimism:SmoothedAnalysis• [Spielman-Teng 2001]Usesdistributionaldisturbanceovergivenworst-caseinput,tosmoothout(expected)performance

• Resultingrunningtimesarepolynomialininputandperturbationsize

• Goal:Explain“unreasonableeffectiveness”ofpopularalgorithms(likeSimplexforLP)

Page 11: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Temperoptimism:StochasticProgrammingVariants

Stochastic Combinatorial Optimization with controllable risk aversion levelSo, Zhang & Ye, APPROX ‘06, Math of OR

Page 12: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

TemperOptimism:DistributionallyRobustOptimizationAddambiguitytorisk• Newsvendorproblemwithonlymeanandvariance,notdistribution[Scarf1958]

• DistributionallyRobustStochasticOptimization[Zackova,Dupacova,Bertsimas+,Sim+,Ye+,…]

Page 13: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

TemperOptimism:CorrelationRobustness

Correlation gap: Loss in performance by ignoring correlations and assuming independence

Page 14: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Haveitall:UniversalApproximationsOnesinglesolutionwhoseinducedsolutionisgoodforanysubsetinput [Bartholdi-Platzman,Jia+]

Page 15: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Haveitall:Robust/IncrementalSolutions• Matchings[Hassin-Rubinstein,SIDMA2002]Givenaweightedgraphfindasinglematchingandanorderingofitsedgessuchthatforeveryk,theprefixofkedgesisnearoptimalmaximumweightmatchingofsizek

• Metrick-median[Mettu-Plaxton,SICOMP2003]Findanorderingoffacilitiessuchthatforeveryk,theprefixofkfacilitiesisanearoptimalk-median

Page 16: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Haveitall/Bestofboth:Trade-offtwoguaranteesTrytofindthebestpossibleratioswithrespecttothe“pessimistic”and“optimistic”extremes

Online Algorithms with Uncertain InformationMahdian, Nazerzadeh & Saberi, EC ’07, TALG 2012

Noteperformanceisw.r.t.thatofthegivenalgorithmsbutnotthe“optimal”solutions

Page 17: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Bestofboth:OnlineResourceAllocation

Page 18: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Bestofboth:AdWords

Maintain(1– 1/e)-worstcaseguaranteeintheworstcaseanddoquantifiablybetterforrandomarrivalmodel“Inthispaperwedesignalgorithmsthatachieveacompetitiveratiobetterthan1−1/eonaverage,whilepreservinganearlyoptimalworstcasecompetitiveratio.Ideally,wewanttoachievethebestofbothworlds,i.e,todesignanalgorithmwiththeoptimalcompetitiveratioinboththeadversarialandrandomarrivalmodels.Weachievethisforunweightedgraphs,butshowthatitisnotpossibleforweightedgraphs.”

Simultaneous Approximations for Adversarial and Stochastic Online Budgeted AllocationMirrokni, Oveis-Gharan & Zadimoghaddam, SODA ‘12

Page 19: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Bestofboth:Balancedguaranteesforbandits

Page 20: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

AudienceParticipation:OtherRelatedWork?

Page 21: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

RecallPossibleResponses• Relaxpessimism:Addrestrictionstoworst-caseinputscenariostoreduceimpact

• Temperoptimism:Makestochasticanalysisrobusttoslightchangesininputdistribution

• “Haveitall”:Buildalgorithmsthatachievethe‘bestofbothworlds’andworkforbothkindsofinputs

• InterpolateModelANDPerformance:Buildhybridinputmodelsinterpolatingstochasticandadversarialinputstoderivenewalgorithmsthatdeterioratesmoothlyinperformance

Page 22: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Proposal:InterpolateModelsANDPerformance• Modelinterpolation:Inputmodelshouldallowsmoothinterpolationbetweenstochasticoptimismandworst-casepessimism

• Performanceinterpolation:Algorithmshouldhaveperformanceratiothatinterpolatessmoothlybetweenthebetterguaranteeforstochasticinputsandtheworseguaranteefortheworst-case

Page 23: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Restofthetalk[JointwithGuyBlelloch,Kedar Dhamdhere &Suporn Pongnumkul,Summer2004]

• ListUpdateProblem:Competitive&AverageCaseAnalysis

• AHybridOnlineModel• SetupandResultsfromapreliminaryexperiment• Conjecture

Page 24: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

ListUpdateProblemSelf-organizingsequentialsearch

• Unsortedlist

• Receivedasequenceofrequests

• Costofaccessingtheith elementofthelistisi.Afteraccess,canmoveitanywhereaheadinthelistforfree

• Cantransposeanypairofadjacentelementsatunitcost

y w z x v uL:

Page 25: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y w z x v uL:

ListUpdateExample

Action Cost Total Cost

Page 26: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y w z x v uL:

ListUpdateExample

Action Cost Total CostAccess x

Page 27: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y w z x v uL:

ListUpdateExample

Action Cost Total CostAccess x 4 4

Page 28: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y w z x v uL:

ListUpdateExample

Action Cost Total CostAccess x 4 4Access v

Page 29: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y w z x v uL:

ListUpdateExample

Action Cost Total CostAccess x 4 4Access v 5 9

Page 30: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y w z x v uL:

ListUpdateExample

Action Cost Total CostAccess x 4 4Access v 5 9

Move v forward to before w

Page 31: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y v w z x uL:

ListUpdateExample

Action Cost Total CostAccess x 4 4Access v 5 9

Move v forward to before w 0 9

Page 32: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y v w z x uL:

ListUpdateExample

Action Cost Total CostAccess x 4 4Access v 5 9

Move v forward to before w 0 9Access y

Page 33: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y v w z x uL:

ListUpdateExample

Action Cost Total CostAccess x 4 4Access v 5 9

Move v forward to before w 0 9Access y 1 10

Page 34: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y v w z x uL:

ListUpdateExample

Action Cost Total CostAccess x 4 4Access v 5 9

Move v forward to before w 0 9Access y 1 10Access v

Page 35: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y v w z x uL:

ListUpdateExample

Action Cost Total CostAccess x 4 4Access v 5 9

Move v forward to before w 0 9Access y 1 10Access v 2 12

Page 36: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y v z w x uL:

ListUpdateExample

Action Cost Total CostAccess x 4 4Access v 5 9

Move v forward to before w 0 9Access y 1 10Access v 2 12

Transpose w and z

Page 37: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y v w z x uL:

ListUpdateExample

Action Cost Total CostAccess x 4 4Access v 5 9

Move v forward to before w 0 9Access y 1 10Access v 2 12

Transpose w and z 1 13

Page 38: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

AverageCaseAnalysis

• Assumeeachrequestcomesfromafixedprobabilitydistribution,independentofpreviousrequests.Supposetheith itemhasprobabilitypi.Designalgorithmstominimizetheexpectedcost.

• Optimalstrategyistokeepthelistsortedinnon-increasingorderofpi.

Page 39: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

STAT=StaticList

• Listissortedinnon-increasingorderoftheprobabilities

• Nevermovesanything

• Goodforwhenwehaveagoodestimateoftheprobabilitydistribution.

Page 40: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

FC:FrequencyCount

• Ifprobabilitydistributionisunknown,estimateitusingfrequencycounts

• Keeplistsortedaccordingtocounts

Page 41: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

CompetitiveAnalysis

• Definition: Ananalysisinwhichtheperformanceofanonlinealgorithmiscomparedtothebestthatcouldhavebeenachievedifalltheinputshadbeenknowninadvance.

Page 42: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

CompetitiveRatio

A:Our online algorithm

CA(s)

OPT:Optimal Offline

algorithm

COPT(s)

A is c-competitive if $ aCA(s) ≤ c COPT(s) + a

for all request sequences s

Page 43: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Move-to-Front(MTF)

[Sleator,Tarjan,CACM1985]Whenanelementisaccessed,moveittothefrontofthelist.

• Theorem:MTFhascompetitiveratio2againstoptimalofflinealgorithm.

Page 44: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

PerformanceComparison

• E(FC)/E(STAT) =1[Rivest CACM1976]• E(MTF)/E(STAT)=𝜋/2 =1.58…[Chung,Hajela,SeymourSTOC85]

Page 45: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

TStimestampalgorithm[AlbersSODA95,Albers&MitzenmacherAlgorithmica 1998]Ourworkismotivatedbythegoaltopresentauniversalalgorithmthatachievesagoodcompetitiveratiobutalsoperformsespeciallywellwhenrequestsaregeneratedbydistributions.(“Haveitall”)TS:Inserttherequesteditem,sayx,infrontofthefirstiteminthelistthathasbeenrequestedatmostoncesincethelastrequesttox.Ifxhasnotbeenrequestedsofar,leavethepositionofxunchanged.Theorem TSis2-competitive

E(TS)/E(STAT)=1.5whileforsomedistribution,E(MTF)/E(STAT)>1.57

Page 46: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

NewHybridInterpolatingModel• Assumeafixedprobabilitydistribution

• Foreachrequest,withprobability,letadversarychangetherequest.

• ó AverageCaseAnalysis

• ó CompetitiveAnalysis

• ó Knownprobabilitydistributionwithuncertainty.

),...,,( 21 npppp =!

e0=e1=e10 << e e

Page 47: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Desiderata:InterpolatingAlgorithmforHybridModel

• Takesasinputestimatesofp ande

• Matchesbestaveragecaseperformancewhene islow,andmatchesbestcompetitiveratiowhene ishigh,andinterpolatesinbetween.

Page 48: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

CandidateAlgorithm:Move-From-Back-Epsilon• Listinitiallysortedinnon-increasingorderofprobabilities.

• Whenanelementx isaccessed,promoteitpastothersthathaveprobabilityuptopx +e.

Page 49: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y w z x v uL:

MFBEExample(e =0.2)

Request Cost Total Cost

s: v y z yProb py = 0.5 pw = 0.2 pz = 0.15 px = 0.1 pv = 0.03 pu = 0.02

Page 50: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y w z x v uL:

MFBEExample(e =0.2)

Request Cost Total Cost

s: x v y vProb py = 0.5 pw = 0.2 pz = 0.15 px = 0.1 pv = 0.03 pu = 0.02

Page 51: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y w z x v uL:

MFBEExample(e =0.2)

Request Cost Total CostAccess x (and move to before w)

s: x v y vProb py = 0.5 pw = 0.2 pz = 0.15 px = 0.1 pv = 0.03 pu = 0.02

Page 52: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y x w z v uL:

MFBEExample(e =0.2)

Request Cost Total CostAccess x (and move to before w) 4 4

s: x v y vProb py = 0.5 px = 0.1 pw = 0.2 pz = 0.15 pv = 0.03 pu = 0.02

Page 53: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y x w z v uL:

MFBEExample(e =0.2)

Request Cost Total CostAccess x (and move to before w) 4 4

s: x v y vProb py = 0.5 px = 0.1 pw = 0.2 pz = 0.15 pv = 0.03 pu = 0.02

Page 54: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y x w z v uL:

MFBEExample(e =0.2)

Request Cost Total CostAccess x (and move to before w) 4 4Access v (and move to before x)

s: x v y vProb py = 0.5 px = 0.1 pw = 0.2 pz = 0.15 pv = 0.03 pu = 0.02

Page 55: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y v x w z uL:

MFBEExample(e =0.2)

Request Cost Total CostAccess x (and move to before w) 4 4Access v (and move to before x) 5 9

s: x v y vProb py = 0.5 pv = 0.03 px = 0.1 pw = 0.2 pz = 0.15 pu = 0.02

Page 56: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y v x w z uL:

MFBEExample(e =0.2)

Request Cost Total CostAccess x (and move to before w) 4 4Access v (and move to before x) 5 9

s: x v y vProb py = 0.5 pv = 0.03 px = 0.1 pw = 0.2 pz = 0.15 pu = 0.02

Page 57: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y v x w z uL:

MFBEExample(e =0.2)

Request Cost Total CostAccess x (and move to before w) 4 4Access v (and move to before x) 5 9

Access y

s: x v y vProb py = 0.5 pv = 0.03 px = 0.1 pw = 0.2 pz = 0.15 pu = 0.02

Page 58: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y v x w z uL:

MFBEExample(e =0.2)

Request Cost Total CostAccess x (and move to before w) 4 4Access v (and move to before x) 5 9

Access y 1 10

s: x v y vProb py = 0.5 pv = 0.03 px = 0.1 pw = 0.2 pz = 0.15 pu = 0.02

Page 59: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y v x w z uL:

MFBEExample(e =0.2)

Request Cost Total CostAccess x (and move to before w) 4 4Access v (and move to before x) 5 9

Access y 1 10

s: x v y vProb py = 0.5 pv = 0.03 px = 0.1 pw = 0.2 pz = 0.15 pu = 0.02

Page 60: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y v x w z uL:

MFBEExample(e =0.2)

Request Cost Total CostAccess x (and move to before w) 4 4Access v (and move to before x) 5 9

Access y 1 10Access v

s: x v y vProb py = 0.5 pv = 0.03 px = 0.1 pw = 0.2 pz = 0.15 pu = 0.02

Page 61: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

y v x w z uL:

MFBEExample(e =0.2)

Request Cost Total CostAccess x (and move to before w) 4 4Access v (and move to before x) 5 9

Access y 1 10Access v 2 12

s: x v y vProb py = 0.5 pv = 0.03 px = 0.1 pw = 0.2 pz = 0.15 pu = 0.02

Page 62: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

DifficultiesinProvingPropertiesofMFBE• MustcomparewithOPTratherthanSTAT• OPTcanbecomputedbyDynamicprogramming

• Trivialway=O((n!)2m)• Improvement=O((2n)(n!)m)

[Reingold,Westbrook,1996]

• HardtoderiveusefulpropertiesofOPT

Page 63: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Experiments(Pongnumkul ALADDINREU2004)• Motivation:Toseethebehaviorofalgorithmsinourhybridmodel.

• Measurement:Wemeasuretheperformanceofanonlinealgorithmbytheaveragecompetitiveratio.

Page 64: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

OurExperiment

• Variablesinourexperiment• TypeofListUpdateAlgorithm(MTF,STAT,MFBE)

• TypeofProbabilityDistribution• TypeofAdversary

• Epsilon:e

Page 65: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

OurExperiment

• Wegeneratearequestsequenceoflength100,withachosenprobabilitydistribution

• Then,withprobabilitye changetherequestsequence adverserially

Page 66: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

OurExperiment• Recordthecostincurredbytheonlinealgorithm=CostA(s)

• UseDynamicProgrammingtofindoptimumcostofthatrequestsequence=CostOPT(s).

• CompetitiveRatio=CostA(s)/CostOPT(s)

• Repeatthis100timestofindtheaveragecompetitiveratio.

Page 67: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Distribution

• GeometricDistribution:• P[i]/ 1/2i

• UniformDistribution:• P[i]=1/n,n=lengthofthelist

• ZipfianDistribution(Zipf(2)):• P[i]/ 1/i2

Page 68: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

CruelAdversary

• Thisisanadaptiveadversary

• Looksatthecurrentlistandrequestthelastiteminthelist.

y w z x v uL:

Page 69: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

CruelAdversary,GeometricDistribution,n=6

Average Competitive Ratio

1

1.5

2

2.5

3

3.5

4

4.5

5

5.5

6

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

Epsilon

Aver

age

Com

petit

ive

Rat

io

STAT

MFBE

MTF

Page 70: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

CruelAdversary,GeometricDistribution,n=6(zoomedin)

Average Competitive Ratio

1

1.1

1.2

1.3

1.4

1.5

1.6

1.7

1.8

1.9

2

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

Epsilon

Aver

age

Com

petit

ive

Rat

io

STAT

MFBE

MTF

Page 71: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

OtherAdversaries

• Geometricadversarychooseselementsrandomly,accordingtothegeometricdistributiononthereversedSTATorder

• Uniformadversaryrequestselementsfromthelistuniformlyatrandom

• ObliviousAdversarydoesn’tlookatthecurrentlist

Page 72: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

UniformAdversary,Zipfian2Distribution,n=6

Average Competitive Ratio

1

1.05

1.1

1.15

1.2

1.25

1.3

1.35

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

Epsilon

Aver

age

Com

petit

ive

Rat

io

STAT

MFBE

MTF

Page 73: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

ReversedGeometricAdversary,GeometricDistribution,n=6

Average Competitive Ratio

1

1.1

1.2

1.3

1.4

1.5

1.6

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

Epsilon

Aver

age

Com

petit

ive

Rat

io

STAT

MFBE

MTF

Page 74: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Observations

• Theperformanceofanyalgorithminthishybridmodeldependsheavilyonthetypeofadversary.

• MFBEseemsbetterthantheworseofSTATandMTF.

Page 75: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

Conjecture

(Nottheworst)TheaveragecompetitiveratioofMFBEisdominatedbythemaximumoftheaveragecompetitiveratiosofSTATandMTF.

• (Bestofall)Whatwewantedbutprobablynottrue:Avg competitiveratioofMFBEisatmosttheminimumoftheaveragecompetitiveratiosofSTATandMTF.

Page 76: Interpolating Between Stochastic and Worst-case Optimization · 2020. 1. 3. · Possible Responses • Relax pessimism: Add restrictions to worst-case input scenarios to reduce impact

InterpolateModelANDPerformance:Buildhybridinputmodelsinterpolatingstochasticandadversarialinputstoderivenewalgorithmsthatdeterioratesmoothlyinperformance• Prove/disprove“MFBEisnottheworst”• Findasettingwherethehybridmodelinterpolatesstochasticandworst-caseinputs,andthealgorithminterpolatestheperformanceofaveragecaseandworstcasealgorithms

• Aretheremoreeffectiveapproachestotrade-offstochasticoptimismandworst-casepessimism?

Summary