Convex Methods for Constrained Linear Bandits

Amirhossein Afsharrad, Ahmadreza Moradipari, Sanjay Lall

In the world of machine learning, "bandits" aren't outlaws—they are algorithms designed to make sequences of decisions under uncertainty. Think of a medical trial choosing treatments or a recommendation engine picking movies. However, in "safety-critical" systems—like a robot interacting with humans or a power grid management system—you can't just maximize rewards; you have to respect strict safety constraints.

While researchers have developed "safe" bandit algorithms with impressive mathematical guarantees, they often hit a wall in the real world: computational complexity. Many of these algorithms require solving non-convex optimization problems at every single step, which is often NP-hard.

A new paper, "Convex Methods for Constrained Linear Bandits," by Afsharrad, Moradipari, and Lall, provides a way out. They introduce a framework that swaps these "computational nightmares" for efficient convex optimization tools.

TL;DR

This paper introduces a computationally efficient pipeline for safe linear bandits by transforming non-convex policy optimization into a series of convex problems. By leveraging $\ell_1$ confidence sets and a novel "Upper Bound Maximization" technique, the authors achieve provable safety and performance guarantees without the NP-hard overhead of traditional methods.

What Problem Does This Paper Address?

In a Linear Bandit (LB) problem, an agent chooses an action (a feature vector $x$) and receives a reward based on an unknown parameter $\theta_*$. In a Constrained version, the agent must also ensure that the "cost" of the action (based on another unknown parameter $\Gamma_*$) stays below a safety threshold.

The standard approach is the Optimistic-Pessimistic Linear Bandit (OPLB). It is optimistic about rewards (to encourage exploration) and pessimistic about costs (to ensure safety). However, OPLB usually requires:

  1. Optimizing over probability distributions on potentially weird, non-convex action sets.
  2. Solving non-convex problems because the standard "confidence regions" used to track uncertainty are ellipsoids ($\ell_2$ norms), which don't play nicely with the objective functions in this context.

The gap the authors fill is making these safe decisions actually runnable on a standard laptop in real-time.

Methods

The authors propose three key innovations to make the math tractable:

  1. Finite Support for Optimal Policies: They prove that the optimal safe policy doesn't need to be a complex distribution over infinite points. It only needs to put probability weights on at most $m+1$ points (where $m$ is the number of constraints). This drastically simplifies the search space.
  2. The $\ell_1$ Confidence Set Trick: Instead of using the standard $\ell_2$ (ellipsoidal) confidence regions to represent uncertainty, they use $\ell_1$ (polytope/diamond-shaped) regions. Because an $\ell_1$ region is a polytope, maximizing a convex function over it is easy—you just check the vertices. This turns one hard problem into $2d$ (where $d$ is the dimension) simple convex problems.
  3. Upper Bound Maximization (UBM): This is a "problem-dependent" shortcut. They solve a simpler convex upper bound of the original problem. If the solution to this simpler problem hits the safety constraint boundary, it is mathematically guaranteed to be the exact solution to the original, harder problem.

Datasets

As is common in theoretical bandit research, the authors evaluate their work using synthetic simulations designed to stress-test specific mathematical properties:

  • Non-Convex Decision Sets: They tested the algorithm on a 2D action set consisting of the union of five separate disks. This is a classic "hard" case because the set isn't one continuous, smooth shape.
  • Linear Constraints: A single linear boundary was used to represent the safety limit.

Key Insights and Ideas

  • Safety doesn't require NP-hardness: The most important takeaway is that we don't have to sacrifice computational speed to get safety guarantees. By slightly changing how we represent uncertainty (from $\ell_2$ to $\ell_1$), we unlock the power of convex solvers.
  • The "Active Constraint" Intuition: The UBM method relies on the idea that in safe optimization, the "best" action is often right on the edge of what is allowed. If your shortcut finds a point on that edge, you've likely found the global optimum.
  • Geometric Efficiency: By focusing on decision sets that are unions of convex sets, the authors provide a framework that handles complex, real-world action spaces (like "either go to Room A or Room B") while keeping the internal math convex.

Key Results

  • Regret Bounds: The authors prove a "Regret Bound" for their modified algorithm. While using $\ell_1$ sets introduces a small penalty (scaling by $\sqrt{d}$), the algorithm still achieves the gold-standard $O(\sqrt{T})$ regret, meaning it learns the optimal behavior efficiently over time.
  • Empirical Performance: In simulations, the UBM OPLB (Algorithm 3) actually outperformed the standard $\ell_1$ version. It showed a "secondary mode" in the regret distribution where it achieved significantly lower regret, suggesting it frequently finds the true optimal policy faster than the theoretical worst-case suggests.
  • Safety Adherence: In all tests, the mean policy trajectory stayed strictly within the safe region, even when the agent was exploring unknown territory.

Limitations and Future Work

  • The $\ell_1$ Penalty: There is a theoretical "price" for computational efficiency. The $\ell_1$ confidence region is larger than the $\ell_2$ region, which leads to a slightly looser regret bound in theory, even if it performs well in practice.
  • Linearity Assumptions: The framework relies on linear rewards and linear constraints. Extending this to "Kernelized" or Deep Bandits (where relationships are non-linear) remains a challenge.
  • Known Safe Action: The algorithm assumes we know at least one "universally safe" action (like "stay still") to start with. Finding this initial safe action in a completely unknown environment is a separate, difficult problem.

Summary updated

BibTeX
@inproceedings{afsharrad2024convex,
  author = {Amirhossein Afsharrad and Ahmadreza Moradipari and Sanjay Lall},
  title = {{Convex Methods for Constrained Linear Bandits}},
  booktitle = {ECC},
  year = {2024},
  doi = {10.23919/ecc64448.2024.10591173},
}
Figure