Wait-Less Offline Tuning and Re-solving for Online Decision Making

Jingruo Sun, Wenzhi Gao, Ellen Vitercik, Yinyu Ye

TL;DR

This paper introduces a hybrid algorithm for Online Linear Programming (OLP) that bridges the gap between slow, high-accuracy Linear Programming (LP) solvers and fast, lower-accuracy first-order methods. By periodically solving LPs in the background and using fast gradient updates for real-time decisions, the framework achieves a "wait-less" system with a highly tunable $\mathcal{O}(\log(T/f) + \sqrt{f})$ regret bound. It delivers a 10x improvement in regret over first-order methods and a 100x speedup over pure LP-based approaches.

The Challenge: Speed vs. Accuracy in OLP

In online resource allocation—such as ad bidding, cloud computing allocation, or inventory management—decisions must be made immediately and irrevocably as customers arrive, without knowing future demand. This scenario is modeled as Online Linear Programming (OLP).

To make optimal decisions, algorithms estimate "dual prices" (essentially the marginal value of a given resource) to decide if a customer's request is worth accepting. Existing algorithms face a harsh trade-off:

  1. LP-based methods re-solve the entire linear program at every time step. They make excellent decisions, achieving a low regret of $\mathcal{O}(\log T)$, but are computationally massive, causing unacceptable delays for real-time systems.
  2. First-order methods update dual prices using quick gradient steps. They are computationally cheap and fast, but their decisions are less accurate, suffering from higher regret (typically $\mathcal{O}(\sqrt{T})$).

The authors tackle a critical question: Can we simultaneously achieve the low regret of LP methods and the computational efficiency of first-order methods without making customers wait?

The Solution: A Parallel Multi-Stage Framework

The authors propose a Parallel Multi-Stage Framework that decouples "learning" (updating dual prices) from "decision-making" (accepting or rejecting orders).

Illustration of the continuous hybrid approach (Algorithm 2), showing the parallel learning and decision paths.
  • Periodic Re-solving (The Learning Path): Instead of solving an LP at every step, the algorithm batches time into intervals of length $f$. It only re-solves the heavy LP at the end of each batch to obtain a highly accurate dual price.
  • Wait-Less Decisions (The Decision Path): While the LP is being solved offline, the system processes incoming customer requests immediately. It uses a first-order (gradient) method to incrementally update the dual prices, using the most recent LP solution as a "warm start."

The paper presents two variations of this framework. Algorithm 1 uses first-order updates only in the first and last batches, while Algorithm 2 (Enhanced Multi-Start) continuously runs first-order updates between every LP resolve to fine-tune prices.

Key Insights

  • The "Spectrum Theorem": The authors prove their algorithm achieves a worst-case regret of $\mathcal{O}(\log(T/f) + \sqrt{f})$. This is a massive theoretical win because it creates a tunable spectrum. If you set $f=1$, you recover pure LP behavior; if $f=T$, you get pure first-order behavior. Practitioners can choose $f$ to perfectly max out their specific compute budget.
  • Decoupling Eliminates Delay: By separating the LP solver into an asynchronous background process, the system never blocks an incoming request waiting for a matrix computation. The online decision loop remains strictly $\mathcal{O}(1)$ time per customer.
  • Warm Starts Supercharge Gradient Methods: First-order methods usually struggle because they drift or adapt too slowly. By periodically snapping the gradient method back to the highly accurate LP solution (a "warm start"), the algorithm stabilizes resource consumption and drastically reduces regret in the final stages of the time horizon.

Empirical Results: The Best of Both Worlds

The paper relies on synthetic datasets (Uniform, Normal, and Student's t-distributions) to validate its theoretical bounds via numerical simulation. The results demonstrate that the hybrid approach successfully captures the strengths of both foundational methods.

Table comparing regret and compute time across different algorithms and time horizons.
  • Regret (Decision Quality): The hybrid algorithms achieved over a 10-fold to 20-fold improvement in regret compared to standard $\mathcal{O}(T^{1/2})$ and $\mathcal{O}(T^{1/3})$ first-order methods.
  • Runtime (Efficiency): The algorithms demonstrated over a 100-fold speedup compared to classic LP-based methods. For example, at a horizon of $T=10^5$, the pure LP method took over 3600 seconds, while the hybrid method (Algorithm 2) took only ~56.8 seconds.
  • The Sweet Spot: The hybrid method's regret was highly comparable to the pure LP method (less than a 2x increase in regret) despite the massive computational savings.

Limitations and Future Work

The primary limitation of this framework is the assumption of a known time horizon $T$ (e.g., the total number of customers), which is required to calculate average resource capacities. If $T$ is completely unknown, the problem becomes ill-posed for this specific setup.

For future work, the authors suggest dynamically adjusting the re-solving frequency $f$ on the fly based on real-time computational constraints, rather than fixing it beforehand. They also propose extending this parallel framework to broader classes of online convex optimization problems beyond linear programming.

Summary updated

BibTeX
@inproceedings{sun2025wait,
  author = {Jingruo Sun and Wenzhi Gao and Ellen Vitercik and Yinyu Ye},
  title = {{Wait-Less Offline Tuning and Re-solving for Online Decision Making}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=BQ4KbrUCC2},
}
Figure