Changing Basis: Multistage Optimization for Matroids and Matchings Anupam Gupta CMU Kunal Talwar Udi Wieder MSR MSR Multi-stage Optimization βͺ Example: A chef needs to buy tomatoes each day, there are π suppliers that post prices every day. Goal: minimize the price paid. βͺ One instance optimization: trivial β buy from the cheapest supplier βͺ Twist: establishing (or breaking) a business relation comes with a fixed cost βͺ Still doable in this case (offline) βͺ More generally, in practice: βͺ As time goes by the optimization problem changes βͺ Change comes with a cost. Either movement cost, setup cost etc. Multi-stage Optimization βͺ Question: If a single instance could be solved efficiently, can we solve/approximate well the multi-stage version? βͺ Answer: NO βͺ 3-dimensional matching could be reduced to three instances of a partition matroid βͺ NP-Hard to approximate βͺ Focus of this work: The underlying optimization problem is same matroid optimization, weight of elements vary in time. βͺ Covers a large class of problem. βͺ Well structured and heavily studied. Matroid Multi-stage Maintanence (MMM) Input: βͺ A fixed Matroid (πΈ, π) of rank π. βͺ Fixed acquisition cost π(π) for acquiring a new item. βͺ Each time step π‘, holding costs ππ‘ (π) for holding an item. Constraint: βͺ Each time step π‘, hold a base π΅π‘ β πΈ. Goal: βͺ Minimize total cost: π‘π π΅π‘ + π π΅π‘ β π΅π‘β1 βͺ Offline version: Both π and π are given in advance βͺ Online version: π is given in advance. ππ‘ is given at the beginning of time π‘. Matroid Multi-stage Maintanence (MMM) βͺ π-Uniform Matroid: Base is any set of cardinality π. βͺ Also known as weighted caching βͺ π pages in the cache, each page has a different fetching cost βͺ Graphical Matroids: Independent sets are forests βͺ Each time step hold a spanning tree. βͺ Greedy algorithm solves any single static instance. How to cope with the acquisition cost? Related but Different Models βͺ Regret minimization: The cost is given at the end of the time step. In our case, at the beginning. βͺ Two step optimization: Takes into account two time steps only. βͺ Dynamic Algorithms: Requires optimal solution each time step. Often limits the amount of change between time steps and aims at minimizing running time. βͺ Example: maintaining a spanning tree with edge inserts and deletions Related Work βͺ [Buchbinder Chen Naor Shamir 2012]: Same problem, uniform acquisition cost βͺ Provide fractional solutions only. βͺ log π approximations βͺ Essentially, an online solution for the Base Polytope LP. βͺ [Bansal Buchbinder Naor 2008] show an integer solution for weighted caching. βͺ Metrical Task Systems β very generic, degenerates to trivial solution in our case β O(n) approximation. Main Result βͺ Online algorithm with competitive ratio π log πΈ log ππ βͺ Matching lower bound Time Universe size Matroid Rank βͺ Hardness of approximation if the underlying problem is maximum matching The Matroid Polytope and the Base Polytope βͺ The Matroid Polytope is the convex hull of incidence vectors of independent sets πΈ βͺ Matroid Polytope is π₯ β ββ₯0 | π₯ π β€ ππππ π , βπ β πΈ Sum of π₯ in the π components βͺ The Base Polytope is the convex hull of all base vectors. πΈ βͺ Base Polytope = Matroid Polytope β© π₯ β ββ₯0 | π₯ πΈ = ππππ πΈ First Attempt β Using an LP βͺ Goal: Minimize total cost: βͺ LP: Minimize: π‘π π‘π π΅π‘ + π π΅π‘ β π΅π‘β1 such that π΅π‘ is a base ππ‘ + ππ‘ β ππ‘β1 1 such that ππ‘ in Base Polytope βͺ The LP could be approximated online [Buchbinder Chen Naor Shamir 2012] βͺ Butβ¦ how to round? Each fractional solution is a convex combination of bases, would randomized rounding work? βͺ Say we have two vectors ππ‘ , ππ‘β1 and matching distributions over bases ππ‘ , ππ‘β1 . βͺ The fractional cost is ππ‘ β ππ‘β1 1, while the integer cost is πΈπ(ππ‘ , ππ‘β1 ). βͺ Examples where β1 distance is small and EM distance is large suggest that it is hard to make this approach work. Key Idea β reduction to spanning sets βͺ A Spanning Set: A set that contains a base = set of full rank βͺ Theorem: Allowing for spanning sets does not reduce the overall cost. βͺ Proof sketch: βͺ We have spanning sets π1 , π2 , β¦ , ππ and want to find bases. Matroid doesnβt change! βͺ Set π΅1 β π1 . βͺ Given π΅π‘β1 and ππ‘ start with π΅π‘β1 β© ππ‘ and extend it to any base π΅π‘ β ππ‘ βͺ An item does not drop from π΅π‘ unless it also drops from ππ‘ βͺ Reduction is online βͺ Projection to bases is correlated across time, sidesteps previous issue Warm-up: Offline Case βͺ Minimize: π‘π ππ‘ + ππ‘ β ππ‘β1 1 such that ππ‘ in Base Polytope βͺ Pick a random threshold π β 0,1 . Round ππ‘ π to 1 iff ππ‘ π β₯ π and to 0 o/w βͺ Same expected total cost. βͺ Expected rank of rounded solution is a constant fraction of the rank at each time step. βͺ If repeated π(log rT) times obtain spanning sets w.h.p. π(log rT) approximation. βͺ May need to augment the outcome of the rounding but this carries little cost. βͺ There are simpler algorithms (Greedy!) for the offline case. Online Case. Step I βͺ W.l.o.g each item π β πΈ has a time interval πΌπ such that the item is available at no cost in πΌπ and unavailable outside πΌπ βͺ Reduction is exact in the offline case and has a constant approximation in the online case. βͺ Minimize: Acquisition Cost ππ π₯π s.t βπ‘, ππΈπ‘ β Spanning Polytope All items available at time π‘ Convex hull of all spanning sets The Spanning Polytope βͺ Spanning Polytope of a matroid β³ is the convex hull of all spanning sets. βͺ Definition: β³ β is the dual matroid of β³. The bases of β³ β are the complements of the bases of β³. βͺ πβ π = π πΈ β π + π β π πΈ βͺ Observation: X in Spanning Polytope of β³ iff 1 β π in Matroid Polytope of β³ β Online Case. Step II βͺ Minimize: ππ π₯π Acquisition Cost βͺ Minimize: ππ π₯π s.t βπ‘, π₯πΈπ‘ β Spanning Polytope All items available at time π‘ Convex hull of all spanning sets s.t βͺ βπ‘, S β πΈπ‘ π₯ π β₯ π πΈ β π(πΈ β π) βͺ π₯π β [0,1] βͺ This is a Covering LP, that (should be) simpler to solve Recap βͺ Reduce to βinterval instanceβ. βͺ π(1) approximation βͺ Solve online: Minimize: ππ π₯π βͺ π log πΈ approximation βͺ βπ‘, S β πΈπ‘ π₯ π β₯ π πΈ β π(πΈ β π) βͺ π₯π β [0,1] βͺ Round using threshold rounding βͺ π log ππ approximation βͺ Turn a Spanning Set into a Base βͺ Exact βͺ π log πΈ log ππ approximation βͺ Hardness: Ξ© log πΈ log π Solving the LP βͺ Minimize: ππ π₯π βͺ βπ‘, S β πΈπ‘ π₯ π β₯ π πΈ β π(πΈ β π) βͺ π₯π β [0,1] βͺ [Buchbinder Naor] provide a method for solving these types of LPβs online βͺ Can we use it in a Black Box way? βͺ Yes butβ¦ we have an exponential number of constraints βͺ Overcome the problem by invoking [BN] on adaptively selected sets of violated constraints. βͺ Show that running time stays polynomial Hardness of Perfect Matching βͺ We are given a graph πΊ = (π, πΈ) and need to maintain a perfect matching each time step. βͺ Theorem: NP-Hard to distinguish between instances with cost π βͺ Even when holding costs are in 0, β βͺ Acquisition costs are uniform for all edges. βͺ Number of time steps is a small constant. π and π 1βπ . Concluding Remarks βͺ Better algorithms for the uniform cost case. βͺ Greedy? βͺ Hardness/upper-bound for intersections of matroids. βͺ Matchings in bipartite graphs.
© Copyright 2026 Paperzz