Optimistic Planning for the Stochastic Knapsack Problem

Ciara Pike-Burke, Steffen GrünewälderAISTATS 2017

Abstract

The stochastic knapsack problem is a stochastic resource allocation problem that arises frequently and yet is exceptionally hard to solve. We derive and study an optimistic planning algorithm specifically designed for this problem, providing theoretical guarantees and empirical performance improvements.

Introduction

The Stochastic Knapsack Problem (SKP) is a fundamental challenge in resource allocation under uncertainty. In this setting, an agent must select items with random sizes and rewards to maximize total utility within a fixed capacity. Unlike the deterministic knapsack problem, which is NP-hard, the stochastic version is PSPACE-hard. The difficulty stems from the need for "closed-loop" or adaptive strategies: the optimal next choice depends on the realized sizes of previously selected items.

Existing methods often rely on heuristics or simplified item categorizations (e.g., splitting items into "small" vs. "large" groups). However, these approaches can miss high-performing hybrid strategies and often lack strong theoretical foundations. There is a distinct need for algorithms that provide both theoretical optimality guarantees and practical efficiency.

The OpStoK Algorithm

We introduce OpStoK (Optimistic Stochastic Knapsacks), an anytime planning algorithm that treats the SKP as a tree search. OpStoK incorporates several key innovations:

  1. Resource-Aware Planning: Unlike standard MDP planning that uses discount factors to ensure convergence, OpStoK uses the knapsack's remaining capacity as a natural bound. This makes the algorithm more sensitive to the actual constraints of the problem.
  2. Confidence Bounds via Doob’s Martingale Inequality: To guide the search, OpStoK constructs confidence regions for potential rewards. By applying Doob’s inequality, the algorithm ensures these bounds hold collectively over time, preventing over-sampling of suboptimal policies.
  3. Anytime Architecture: OpStoK prioritizes the most promising decision paths first. This allows it to be stopped at any time to return the best solution found so far, which monotonically improves as computation continues.
  4. Sample Efficiency: The algorithm utilizes a generative model to simulate item outcomes. It shares these samples across different branches of the decision tree, significantly reducing the number of simulations needed to estimate policy values.

Experimental Evaluation

We evaluated OpStoK using a synthetic setup consisting of a knapsack with a budget of 7 and a set of 6 items. Item sizes were discrete, while rewards followed scaled and shifted Beta distributions.

Item characteristics in the experimental setup, showing the stochastic relationship between reward and size for the six items.

This setup captures the essential complexity of stochastic decision-making where item characteristics vary significantly in their mean and variance, requiring an adaptive strategy to maximize rewards.

Key Results

OpStoK demonstrates both theoretical and practical advantages over existing state-of-the-art methods, such as the heuristic algorithm by Dean et al. (2008).

  • Theoretical Optimality: OpStoK is the first algorithm for the SKP to provide a proof that it returns an $\epsilon$-optimal solution with high probability.
  • Computational Efficiency: In empirical tests, OpStoK reached the same solution quality as the benchmark while evaluating fewer than half as many policies.
  • Rapid Convergence: The algorithm exhibits strong "anytime" performance, identifying high-value policies very early in the search process.
Convergence of OpStoK: The algorithm finds near-optimal policies within the first 100 expansions, demonstrating its effectiveness as an anytime tool.

Conclusion and Future Work

OpStoK represents a significant step forward in solving the Stochastic Knapsack Problem by combining optimistic planning with resource-aware bounds. While currently demonstrated on small-scale problems, its efficiency and anytime nature make it a promising candidate for real-world applications. Future work will focus on scaling the algorithm to larger item sets, handling continuous size distributions through discretization, and exploring parallelization to further accelerate the search process.

Summary updated

BibTeX
@inproceedings{pikeburke2017optimistic,
  author = {Ciara Pike-Burke and Steffen Grünewälder},
  title = {{Optimistic Planning for the Stochastic Knapsack Problem}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2017},
  url = {https://openreview.net/forum?id=pSAnZmAZ87-},
}
Figure