Optimal Hidden-Target Learning for Online Inventory Optimization on General Convex Sets

Anthony Pineci, Yunzong Xu

TL;DR

Unlike standard online optimization where you can freely jump anywhere in your decision space, managing physical inventory comes with memory: you can buy more stock instantly, but you can only lower it when customers buy things. This paper proves that a remarkably simple "hidden-target" strategy—maintaining an idealized stock level in the background and projecting it onto whatever is physically possible today—is mathematically optimal, even under complex, curved warehouse constraints. By looking at the problem through the right geometric lens, the authors collapse a messy multi-product headache into a clean, one-dimensional queue.

What Problem Does This Paper Address?

Imagine running an automated fulfillment center. Every day, an algorithm decides stock levels, observes demand, and pays costs for leftover inventory or lost sales. In machine learning, this looks like Online Convex Optimization (OCO), except for one physical catch: stock carries over. If your gradient step says you should hold 10 widgets today, but 50 are already sitting on the shelf from yesterday, you are stuck with at least 50 until demand drains them.

This setup is called Online Inventory Optimization (OIO). If you naively apply standard Online Gradient Descent (OGD) directly to the currently feasible inventory set, downward updates get blocked and discarded, causing the algorithm to ratchet inventory upward and suffer terrible, linear regret.

Previous algorithms handled arbitrary convex capacity constraints by waiting in "adaptive cycles" until inventory naturally drained enough to allow an update—a sluggish approach when demand is rare. Meanwhile, more nimble "hidden-target" algorithms (which track an idealized target separately from physical reality) were only understood for simple linear warehouse constraints (e.g., total items $\le C$), and their analyses introduced artificial penalties as the number of products $n$ grew. How do we get fast, dimension-free learning on any bounded convex capacity set?

Methods

The authors don't invent a convoluted new algorithm; instead, they prove that the classic Hidden-Target Projection meta-algorithm is already all you need:

  1. Background Learner: Run a standard online learner (like OGD or Smoothed OGD) on the fixed convex capacity set $\mathcal{Y}$ to propose an idealized "hidden target" $z_t$.
  2. Physical Layer: Observe current leftover stock $x_t$, and implement $y_t$—the Euclidean projection of $z_t$ onto the currently feasible set $\mathcal{J}_t$ (points in $\mathcal{Y}$ that are at least $x_t$).
  3. Feedback: Observe the loss subgradient at the implemented point $y_t$, feed that linear approximation back to the background learner, and repeat.

What's new is the analysis. Previous analyses tracked item-by-item sell-out times, which break down when curved capacity constraints couple different products together during projection. Instead, the authors track a single geometric state variable: the Euclidean distance $q_t = \|z_t - y_t\|_2$ between the hidden target and physical reality.

Datasets

Rather than static real-world datasets, the authors evaluate their algorithms on synthetic simulation environments standard in inventory control:

  • Setting 3 from Hihat et al. [1]: A 100-product benchmark with a linear capacity limit ($C = 175$) and independent Poisson demands (rates drawn uniformly from $[1, 2]$).
  • Custom Stress Tests: Synthetic setups testing dimension scaling ($N$ up to 3,000 products under power-law demand $d_{t,i} \propto i^{-1.1}$), strongly convex quadratic losses, and non-stationary blockwise-constant demand to test dynamic regret.

Key Insights and Ideas

  • Geometry as a Scalar Queue: The paper's biggest "aha!" moment is showing that the Euclidean gap $q_t$ between what you want ($z_t$) and what you can do ($y_t$) obeys a simple 1D queue recursion: $q_{t+1} \le [q_t + \|z_{t+1} - z_t\|_2 - d_t^-]^+$. Moving your hidden target acts like "arrivals" into the queue, while the minimum demand across all products ($d_t^-$) acts as "service" draining the queue.
  • Modular Reduction to Switching Costs: Because the gap behaves like a queue, if the learner moves its hidden target slowly enough, periodic demand shocks completely clear the queue. This cleanly reduces physical inventory optimization to standard OCO with a movement (switching) penalty—meaning the base learner never even has to know about products or stockouts!
  • No Extra Dimension Tax: By working purely in Euclidean ($\ell_2$) norms rather than product-wise ($\ell_1$) accounting, the analysis strips away explicit $n^{1/4}$ dimension penalties that plagued prior hidden-target bounds.

Key Results

Under Uniformly Probably Positive Demand (UPPD)—which assumes a probability of at least $\mu$ each round that every product sees at least $\rho$ demand—the authors establish a sweeping set of theoretical improvements over $T$ rounds:

Comparison of adversarial-demand OIO regret guarantees across methods.
  • Minimax Optimal Static Regret: Improves general-convex regret from $\widetilde{O}(\sqrt{T}/\mu)$ (MaxCOSD) to $\widetilde{O}(\sqrt{T/\mu})$, backed by a matching $\Omega(\sqrt{T/\mu})$ lower bound. When $\mu$ is small (intermittent demand), going from $1/\mu$ to $1/\sqrt{\mu}$ is a massive win.
  • First Fast Rates & Dynamic Bounds: Achieves the first polylogarithmic regret $O(\log(T/\delta)\log(T)/\mu)$ for strongly convex losses on general convex sets, and sharpens dynamic regret to $\widetilde{O}(\sqrt{(1 + P_{T,2})T/\mu})$, scaling with smaller $\ell_2$ comparator path variation ($P_{T,2}$) instead of $\ell_1$.
  • Empirical Stability: On the 100-product benchmark ($T = 5,000$), Hidden-Target OGD achieves substantially lower cumulative regret than cycle-based MaxCOSD and stochastic-focused DDM, while being far less sensitive to learning-rate tuning.

Limitations and Future Work

  • The UPPD Bottleneck: UPPD requires every product to receive demand $\ge \rho$ in the same round with probability $\mu$. If you manage thousands of independent, slow-moving items, $\mu$ becomes exponentially tiny. A major open question is whether sublinear regret on general convex sets is possible when demand only hits the specific products currently overstocked.
  • Small-Shock Scaling: While the upper and lower bounds match in $T$ and $\mu$, pinning down the exact minimax dependence on the ratio of set diameter to demand shock size ($D/\rho$) when $\rho$ is very small remains open.

Summary updated

Abstract

Online inventory optimization (OIO) is online convex optimization with physical memory: inventory can be raised immediately, but it can be reduced only by demand. A natural principle, used in stochastic inventory learning and recently in OIO under a single linear capacity constraint, is to maintain a hidden target chosen by an online learner and implement its projection onto the currently feasible order-up-to set. We prove that this simple principle is optimal for OIO on arbitrary bounded convex capacity sets. With online gradient descent as the base learner, the method improves the best known regret guarantee for OIO on general convex sets from inverse to inverse-square-root dependence on the common-demand probability, and we prove a matching lower bound. The analysis identifies the right geometric state variable: the Euclidean distance between the hidden target and the implementable set. This distance evolves pathwise as a scalar queue, with target movement as arrivals and common demand as service, reducing the state-dependent feasibility cost to the control of a one-dimensional queue. The same reduction gives the first polylogarithmic regret guarantee for strongly convex losses and the first dynamic regret guarantee adapting to Euclidean path variation on general convex capacity sets.
BibTeX
@inproceedings{pineci2026optimal,
  author = {Anthony Pineci and Yunzong Xu},
  title = {{Optimal Hidden-Target Learning for Online Inventory Optimization on General Convex Sets}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=veDCFlujwu},
}
Figure