Skip to main content
QUICK REVIEW

[Paper Review] An efficient algorithm for contextual bandits with knapsacks, and an extension to concave objectives

Shipra Agrawal, Nikhil R. Devanur|arXiv (Cornell University)|Jun 10, 2015
Advanced Bandit Algorithms ResearchDecision Sciences26 references25 citations
TL;DR

This paper presents a computationally efficient algorithm for contextual bandits with knapsacks (CBwK), extending the approach of Agarwal et al. (2014) to handle global resource constraints. It achieves optimal regret bounds with runtime scaling as the square root of the logarithm of the policy space size, resolving an open question from Badanidiyuru et al. (2014). The method also generalizes to concave objective functions over resource consumption vectors.

ABSTRACT

We consider a contextual version of multi-armed bandit problem with global knapsack constraints. In each round, the outcome of pulling an arm is a scalar reward and a resource consumption vector, both dependent on the context, and the global knapsack constraints require the total consumption for each resource to be below some pre-fixed budget. The learning agent competes with an arbitrary set of context-dependent policies. This problem was introduced by Badanidiyuru et al. (2014), who gave a computationally inefficient algorithm with near-optimal regret bounds for it. We give a computationally efficient algorithm for this problem with slightly better regret bounds, by generalizing the approach of Agarwal et al. (2014) for the non-constrained version of the problem. The computational time of our algorithm scales logarithmically in the size of the policy space. This answers the main open question of Badanidiyuru et al. (2014). We also extend our results to a variant where there are no knapsack constraints but the objective is an arbitrary Lipschitz concave function of the sum of outcome vectors.

Motivation & Objective

  • Address the computational inefficiency of prior algorithms for contextual bandits with knapsacks (CBwK), which were theoretically optimal but impractical due to high oracle call complexity.
  • Resolve the open problem posed by Badanidiyuru et al. (2014) on achieving computational efficiency while maintaining near-optimal regret in CBwK.
  • Extend the framework to handle arbitrary concave objective functions over the sum of resource consumption vectors, generalizing beyond linear objectives.
  • Ensure the algorithm remains efficient even when the policy space is large, by relying on an arg-max oracle instead of explicit policy enumeration.
  • Provide theoretical regret bounds that scale favorably with the number of policies and time horizon, under realistic assumptions on smoothness and boundedness.

Proposed method

  • Adapt the smoothed projection and confidence-bound update mechanism from Agarwal et al. (2014) to the constrained CBwK setting with d-dimensional resource consumption.
  • Use a sequence of epochs with increasing confidence intervals, where actions are selected via a smoothed distribution over policies to balance exploration and exploitation.
  • Represent the policy distribution at each epoch as a convex combination of context-dependent policies and a uniform baseline, enabling efficient computation via an arg-max oracle.
  • Apply Azuma-Hoeffding inequality to bound the deviation between empirical and expected resource consumption and reward vectors across time steps.
  • Leverage the Lipschitz continuity and smoothness of the concave objective function to relate the regret in the objective value to deviations in the average resource consumption and reward vectors.
  • Derive regret bounds by combining concentration inequalities with the structure of the epoch-based algorithm, leading to logarithmic dependence on the policy space size.

Experimental results

Research questions

  • RQ1Can a computationally efficient algorithm be designed for contextual bandits with knapsacks that maintains near-optimal regret bounds?
  • RQ2How can the regret scaling be improved when the policy space is large, without explicitly enumerating all policies?
  • RQ3Can the framework be extended beyond linear objectives to handle arbitrary concave functions of the total resource consumption?
  • RQ4What is the impact of resource constraints on the convergence rate and regret in a contextual bandit setting with arbitrary policy sets?
  • RQ5How does the use of an arg-max oracle instead of full policy enumeration affect the computational efficiency and theoretical guarantees?

Key findings

  • The proposed algorithm achieves an average regret bound of $ Oig( olimitsigracevert \mathbf{1}_d \big\rVert L \left(\sqrt{\frac{K}{T}\ln\frac{T|\Pi|}{\delta}} + \sqrt{\frac{1}{T}\ln\frac{d}{\delta}}\right)\big) $, which is optimal up to logarithmic factors.
  • The computational cost scales as $ \sqrt{\log |\Pi|} $, where $ |\Pi| $ is the size of the policy space, making it efficient even for large policy sets.
  • The algorithm maintains near-optimal regret while being computationally tractable, resolving the open problem of Badanidiyuru et al. (2014).
  • The regret bound holds under the assumption that $ T \geq K\ln(T|\Pi|/\delta) $, which ensures the dominant terms are meaningful.
  • The extension to concave objectives is achieved by leveraging the smoothness and concavity of the objective function to bound the deviation in expected performance.
  • The analysis shows that the deviation between empirical and expected outcomes is tightly controlled via concentration inequalities, enabling strong high-probability regret guarantees.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.