Fast Algorithms for Online Stochastic Convex Programming

Shipra Agrawal, Nikhil R. Devanur

This paper, authored by Shipra Agrawal and Nikhil R. Devanur from Microsoft Research, presents a significant leap in solving complex online optimization problems. It introduces a general framework for Online Stochastic Convex Programming (CP), providing algorithms that are not only theoretically optimal but also fast enough for real-world, millisecond-latency applications like online advertising.

TL;DR

The authors develop fast, primal-dual algorithms for online stochastic convex programs with concave objectives and convex constraints. By leveraging Online Convex Optimization (OCO) to estimate dual variables, they achieve optimal regret bounds in both i.i.d. and random permutation models without needing to solve a complex optimization problem at every step.

What Problem Does This Paper Address?

Many real-world online problems—such as display ad allocation, network routing, and resource management—have traditionally been modeled as "online packing LPs." However, linear models often fail to capture reality. For example, an advertiser might have a concave utility function (where the value of the first 1,000 impressions is higher than the next 1,000) or require "diversity" constraints that are inherently non-linear.

While algorithms existed for these problems, they faced two major hurdles:

  1. Computational Complexity: Previous "fast" algorithms often required solving a full Linear Program (LP) or Convex Program (CP) periodically to estimate the "price" of resources, which is too slow for real-time systems.
  2. Input Model Limitations: Most guarantees only held for the i.i.d. model (where inputs are drawn from a fixed, unknown distribution). They struggled with the Random Permutation (RP) model, where an adversary chooses the set of inputs, but the order in which they arrive is randomized. The RP model is harder because it's like sampling without replacement—the "distribution" changes as you consume the inputs.

Methods

The authors bridge the gap between stochastic programming and online learning using a Primal-Dual approach.

  • Fenchel Duality: They use Fenchel duality to "linearize" the concave objective and convex constraints. This allows them to decompose a complex global problem into simple, per-step decisions.
  • Online Learning as a Black Box: Instead of solving a CP to find the optimal dual variables (the "resource prices"), they use Online Convex Optimization (OCO) algorithms—like Online Mirror Descent or Multiplicative Weights—to iteratively update the dual variables based on past observations.
  • The Z-Parameter: They introduce a trade-off parameter $Z$ that balances the objective value against constraint violations. They provide a method to estimate this $Z$ on the fly by dividing the timeline into doubling phases.
  • Algorithm 5.1: This is their flagship algorithm. At each step, it picks an option that maximizes a combination of the linearized objective and the "cost" of resource consumption (guided by the current dual variables), then updates those variables using a simple gradient-based rule.

Datasets

Not discussed in the paper. As a theoretical contribution, the paper focuses on algorithmic design, regret analysis, and mathematical proofs rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • Duality as a Bridge: The core "aha" moment is that you don't need to know the optimal dual variables upfront. As long as you use a "low-regret" algorithm to learn them over time, the overall performance of the online system will converge to the offline optimum.
  • RP is just IID "Without Replacement": The authors formalize the intuition that the difference between the i.i.d. and Random Permutation models is essentially a second-order error term. They show that the "gap" between these models can be bounded using concentration inequalities for sampling without replacement.
  • Efficiency: Because the per-step update only involves a simple vector calculation (the OCO update) and a greedy choice, the algorithm is extremely fast—a crucial requirement for systems that must make decisions in milliseconds.

Key Results

  • Optimal Regret: The algorithms achieve an average regret of $O(1/\sqrt{T})$ for both the objective value and constraint violations. This matches the best possible theoretical bounds.
  • Competitive Ratio: For the specific case of online packing, they achieve a $1 - O(\epsilon)$ competitive ratio, provided the "bid-to-budget" ratio is sufficiently small.
  • Faster than DJSW: Their algorithm for online packing is even faster than the well-known DJSW algorithm (Devanur et al., 2011) because it avoids solving LPs repeatedly, requiring at most one sample LP solve to estimate the $Z$ parameter.
  • Smooth Functions: For strongly smooth objectives, they demonstrate that even tighter regret bounds ($O(\log T / T)$) are achievable in the i.i.d. setting.

Limitations and Future Work

  • Z-Estimation Complexity: While the authors provide a way to estimate the trade-off parameter $Z$, the "phased" approach adds some implementation complexity.
  • Assumption 2 for Smoothness: The stronger results for smooth functions rely on an assumption that the sets of gradients are convex and easy to project upon. The authors conjecture this assumption might be removable in future work.
  • High Probability vs. Expectation: Most results are presented in expectation. While they provide a path to high-probability bounds, doing so currently introduces an extra $\sqrt{\log T}$ factor in the regret, which they believe might be an artifact of the analysis rather than a fundamental limit.

Summary updated

BibTeX
@inproceedings{agrawal2015fast,
  author = {Shipra Agrawal and Nikhil R. Devanur},
  title = {{Fast Algorithms for Online Stochastic Convex Programming}},
  booktitle = {SODA},
  year = {2015},
  doi = {10.1137/1.9781611973730.93},
}
Figure