Abstract
We study the problem of online convex optimization (OCO) under unknown linear constraints that are either static, or stochastically time-varying. For this problem, we introduce an algorithm that we term Optimistically Safe OCO (OSOCO) and show that it enjoys $\tilde{O}(\sqrt{T})$ regret and no constraint violation. In the case of static linear constraints, this improves on the previous best known $\tilde{O}(T^{2/3})$ regret under the same assumptions. In the case of stochastic time-varying constraints, our work supplements existing results that show $O(\sqrt{T})$ regret and $O(\sqrt{T})$ cumulative violation under more general convex constraints and a different set of assumptions. In addition to our theoretical guarantees, we also give numerical results that further validate the effectiveness of our approach.
Introduction
In Online Convex Optimization (OCO), a decision-maker chooses actions sequentially to minimize costs revealed by an adversary. While standard OCO assumes known constraints, real-world applications like network routing or resource allocation often involve unknown constraints that must be learned during the process.
The fundamental challenge lies in balancing regret (performance relative to the best fixed action), safety (avoiding constraint violations), and information (learning the constraints). Existing "safe" algorithms often rely on a "pure exploration" phase, leading to sub-optimal $O(T^{2/3})$ regret, or use primal-dual methods that allow "cumulative" violations. This paper introduces OSOCO (Optimistically Safe Online Convex Optimization), which achieves the "golden standard" $O(\sqrt{T})$ regret while ensuring zero constraint violations from the outset.
Methods: Optimistic Safety and HedgeDescent
The OSOCO algorithm is built on the principle of Optimistic Safety. It maintains two concurrent estimates of the feasible region:
- Optimistic Action Set: An "outer approximation" used to identify actions with potential for low regret.
- Pessimistic Action Set: An "inner approximation" used to ensure that played actions are verifiably safe.
The algorithm follows a loop of estimation via regularized least-squares, optimistic action selection, and "safe scaling"—shrinking the optimistic action until it fits within the pessimistic set. To address the computational complexity of the exact OSOCO, the authors propose HedgeDescent. This variant replaces complex non-convex optimization with a union of convex sets, making it suitable for real-time applications.
Empirical Evaluation and Results
The algorithm was evaluated using synthetic experiments with 2-dimensional actions within a unit ball under unknown linear constraints (static and stochastic). OSOCO was compared against Drift-Plus-Penalty (DPP) and Safe Online Projected Gradient Descent (SO-PGD).
Key findings include:
- Theoretical Improvement: OSOCO improves the regret bound for unknown static linear constraints from $O(T^{2/3})$ to $O(\sqrt{T})$.
- Strict Safety: Unlike primal-dual methods like DPP, which exhibit significant violations in simulations, OSOCO maintains zero violations in both static and stochastic settings.
- Performance: OSOCO-H (high probability) and OSOCO-E (expectation) consistently outperformed SO-PGD in total regret while remaining safer than DPP.
Conclusion
OSOCO demonstrates that a dedicated exploration phase is unnecessary; by scaling optimistic actions into a pessimistic "safe zone," one can learn constraints while minimizing regret. While currently limited to linear constraints, the "optimistic safety" framework provides a foundation for future extensions to general convex constraints and safe reinforcement learning.
Summary updated