Online Resource Allocation with Non-Stationary Customers

Xiaoyue Zhang, Hanzhang Qin, Mabel C. Chou · DOI

In the dynamic landscape of online advertising and inventory management, decision-making must account for both unknown customer preferences and unpredictable arrival patterns. A common scenario involves managing ad slots where click-through rates (CTR) are initially unknown, and the mix of users can shift abruptly—from a steady morning routine to a volatile "Black Friday" surge.

A recent paper by Zhang, Qin, and Chou introduces the ULwE (Unified Learning-while-Earning) Algorithm. This framework is designed to navigate these dual uncertainties: learning model parameters on the fly while managing limited resources under non-stationary conditions.

Problem Formulation: Contextual Bandits with Knapsacks

The authors frame online resource allocation as a "Contextual Bandit with Knapsacks" (CBwK) problem. The goal is to maximize total revenue (the bandit objective) while respecting inventory constraints (the knapsack constraints).

Existing approaches typically fall into two categories:

  1. Stochastic Models: These assume independent and identically distributed (IID) arrivals. While efficient in stable environments, they often fail during unexpected shifts in distribution.
  2. Adversarial Models: These assume worst-case scenarios. While robust, they tend to be overly conservative, sacrificing potential revenue when arrivals are actually predictable.

The ULwE algorithm aims for a "best-of-both-worlds" solution, maintaining high performance in stable environments while remaining robust against adversarial shifts.

The ULwE Algorithm

The core of ULwE is a unified framework that integrates learning and resource management through several key mechanisms:

  • Dual-Protocol Switching: The algorithm initially employs ALG_LP, a protocol optimized for stochastic arrivals using Linear Programming. It monitors specific "switching conditions" related to regret growth and inventory depletion. If these conditions suggest the environment is no longer stochastic, it permanently switches to ALG_ADV.
  • Adversarial Robustness: Once switched, the ALG_ADV protocol uses a greedy strategy with "discounted revenue," effectively penalizing the use of scarce resources to ensure they are reserved for high-value opportunities.
  • Confidence-Based Learning: To estimate unknown CTRs, ULwE maintains a confidence set ($\Omega$) of model parameters ($\theta$). As more data is collected, the set is pruned, converging toward the true purchase probabilities.
  • Advice-Driven Optimization: The model utilizes "advice"—prior knowledge of total expected arrivals for each customer type—to avoid the linear regret typically associated with non-stationary environments.

Key Results and Insights

Theoretical Guarantees

The authors provide strong theoretical bounds for ULwE. In near-stationary environments, it achieves sublinear regret, while in adversarial settings, it maintains a constant competitive ratio.

Figure 1: Conceptual relationship between problem classes and the achieved regret bounds.

As illustrated in Figure 1, the algorithm's performance is characterized by an expected regret of $\tilde{O}(\sqrt{n|\Theta|T})$ for near-stationary arrivals, where $n$ is the number of resources, $|\Theta|$ represents the parameter space complexity, and $T$ is the time horizon. Notably, this regret bound is independent of the number of customer types, allowing the model to scale effectively to complex feature spaces.

Empirical Performance

The researchers validated ULwE using simulated datasets reflecting varying degrees of non-stationarity: IID (constant rates), ADV1 (single shift), and ADV2 (rapid fluctuations).

Figure 3: Regret comparison in a non-stationary scenario (ADV1). ULwE (green) successfully adapts, outperforming the static LP approach (blue) as the environment shifts.

Experimental results demonstrate that ULwE effectively bridges the gap between specialized algorithms. In IID settings, it matches the performance of the LP-based approach. In non-stationary scenarios, such as the one shown in Figure 3, ULwE detects the distribution shift and switches to the robust adversarial strategy, significantly reducing cumulative regret compared to a static stochastic model.

Conclusion and Future Directions

The ULwE algorithm represents a significant step toward robust online resource allocation. By combining mathematical "tripwires" with adaptive protocols, it provides a reliable framework for real-world applications where customer behavior is neither perfectly predictable nor entirely hostile.

Future work may focus on reducing the reliance on prior "advice" regarding arrival rates and exploring non-parametric models, such as deep neural networks, for more flexible probability estimation in complex environments.

Summary updated

BibTeX
@inproceedings{zhang2024online,
  author = {Xiaoyue Zhang and Hanzhang Qin and Mabel C. Chou},
  title = {{Online Resource Allocation with Non-Stationary Customers}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=RsIMGYzBcv},
}
Figure