Online Allocation with Replenishable Budgets: Worst Case and Beyond

Jianyi Yang, Pengfei Li, Mohammad Jaminur Islam, Shaolei Ren

Abstract

This paper addresses the challenge of online resource allocation in environments where budgets are replenishable, such as energy-harvesting systems or restocked inventories. We introduce a suite of algorithms—OACP, OACP+, and LA-OACP—that provide provable worst-case performance guarantees while effectively managing capacity constraints. Furthermore, we present a learning-augmented framework (LA-OACP) that integrates machine learning predictions to enhance average-case performance without compromising theoretical safety bounds. Empirical evaluations on sustainable AI inference tasks demonstrate that our approach achieves superior utility and robustness compared to state-of-the-art methods.

Introduction

Online resource allocation is a fundamental problem where an agent distributes a finite budget across sequential requests with unknown future demands. Traditional models assume a fixed initial budget. However, many modern applications, such as green computing powered by intermittent solar energy or inventory management with periodic restocking, involve replenishable budgets. These scenarios introduce two primary difficulties: adversarial uncertainty regarding replenishment timing and the risk of "overflowing" a finite capacity cap ($B_{max}$), where unused resources are lost once the budget reaches its limit.

Proposed Algorithms

We propose three distinct algorithms to address these challenges, filling critical gaps in existing literature regarding replenishment and budget caps.

  1. OACP (Opportunistic Allocation with Conservative Pricing): This algorithm utilizes dual mirror descent to set internal resource prices. By pricing conservatively (as if no replenishment is coming) but spending opportunistically when resources are available, it prevents the agent from being "tricked" into overspending early in adversarial settings.
  2. OACP+: Designed for scenarios with a known minimum replenishment rate every $T^*$ rounds, this version uses a doubling frame technique to batch replenishment, improving the competitive ratio over standard OACP.
  3. LA-OACP (Learning-Augmented OACP): This framework incorporates ML predictions to optimize average performance. It employs a "safety net" projection, treating ML advice as a target and projecting it onto a mathematically defined safe zone. This ensures that even if ML predictions are inaccurate, the algorithm's performance remains within a guaranteed bound of the worst-case optimal.
Comparison of online allocation algorithms across key features.

Evaluation and Key Results

The algorithms were evaluated using a "Sustainable AI Inference" simulation. Demand was modeled using GPU power traces from the BLOOM Large Language Model (176B parameters), while replenishment was based on real-world hourly solar data from the California Independent System Operator (CAISO).

Theoretical Optimality

OACP is proven to achieve the same asymptotic competitive ratio as the best-known algorithms for fixed budgets. This indicates that replenishment does not inherently degrade worst-case theoretical bounds, provided that resource pricing remains conservative.

Empirical Performance and Robustness

  • Average Utility: In-distribution tests showed LA-OACP achieving a normalized utility of 0.9311, significantly higher than the 0.8715 achieved by standard Dual Mirror Descent (DMD).
  • Safety Net: When tested on "Out-of-Distribution" (OOD) data where ML models typically fail, LA-OACP remained robust. While pure ML performance dropped significantly, LA-OACP maintained the safety guarantees of the OACP baseline while still harvesting benefits from the available predictions.

Conclusion and Future Work

By explicitly accounting for budget replenishment and capacity caps, this work bridges the gap between theoretical worst-case analysis and practical average-case optimization. Future research may extend these frameworks to multi-agent settings or scenarios where replenishment itself is a decision variable, such as strategic grid energy purchasing.

Summary updated

BibTeX
@article{yang2024online,
  author = {Jianyi Yang and Pengfei Li and Mohammad Jaminur Islam and Shaolei Ren},
  title = {{Online Allocation with Replenishable Budgets: Worst Case and Beyond}},
  journal = {Proc. ACM Meas. Anal. Comput. Syst.},
  year = {2024},
  doi = {10.1145/3639030},
}
Figure