Replicable Constrained Bandits

Matteo Bollini, Gianmarco Genalti, Francesco Emanuele Stradi, Matteo Castiglioni, Alberto Marchesi

TL;DR

This paper introduces the first replicable online learning algorithms for multi-armed bandit (MAB) problems with constraints. By abandoning traditional arm-elimination techniques in favor of a novel, dynamic epoch-based Upper Confidence Bound (UCB) approach, the authors achieve optimal regret and constraint violation bounds that match those of non-replicable algorithms. This demonstrates that ensuring reproducible decision-making in complex, multi-objective environments comes at almost no statistical cost.

What Problem Does This Paper Address?

The machine learning community is actively grappling with a replicability crisis. To address this, researchers recently introduced the concept of algorithmic replicability. A replicable online learning algorithm is one that, when given the same internal random seed, will choose the exact same sequence of decisions across different executions in the same environment, even though the environmental feedback (rewards and costs) is stochastic and varies between runs.

While previous work successfully designed replicable algorithms for standard, unconstrained multi-armed bandits (MABs), they relied heavily on arm-elimination strategies. Arm elimination permanently discards underperforming actions. However, this approach fails completely when real-world constraints are introduced (e.g., a bidding algorithm that must maximize clicks without depleting a budget, or a medical trial maximizing efficacy while minimizing side effects).

In constrained MABs, the optimal strategy is rarely a single deterministic action; it is usually a randomized distribution over multiple actions. Furthermore, early noisy estimates might mistakenly flag a high-reward action as unsafe. If an arm-elimination algorithm discards it permanently, it can never recover the true optimal strategy.

Methods

To bypass the limitations of arm elimination, the authors developed a new framework based on the "optimism in the face of uncertainty" principle (UCB), introducing three novel algorithms:

  1. DEBORA (Dynamic Epoch-Based Optimism with ReplicAbility): The first replicable UCB-like algorithm for unconstrained MABs. Instead of updating bounds at every round (which explodes statistical complexity) or using fixed epoch lengths, DEBORA utilizes a dynamic epoch protocol. An epoch only ends when the currently selected action doubles the number of times it has been played. It uses a specialized replicable mean estimator (RepMean) to compute confidence intervals.
  2. DEBORA-S (Soft Constraints): Designed for environments where constraints can be violated occasionally, provided the cumulative positive violation grows sublinearly. At the start of each epoch, it uses replicable cost estimators to construct an optimistic safe decision space (a convex polytope) and selects a randomized strategy that maximizes reward within this safe zone.
  3. DEBORA-H (Hard Constraints): Tailored for safety-critical applications where constraints must be satisfied at every single round with high probability. It builds on DEBORA-S but conservatively mixes the chosen optimistic strategy with a known baseline strictly safe strategy ($x^\diamond$). The mixing factor ($\sigma_h$) is dynamically calculated to perfectly balance exploration with worst-case safety guarantees.

Datasets

Not discussed in the paper. The paper is purely theoretical and focuses on proving mathematical guarantees; it does not include empirical evaluations or benchmark datasets.

Key Insights and Ideas

  • The Failure of Arm Elimination: The core conceptual breakthrough is recognizing that arm elimination is fundamentally incompatible with constrained optimization. Because safety constraints restrict the decision space to complex polytopes, algorithms must optimize over randomized strategies rather than single actions.
  • Dynamic Epochs as a Replicability Enabler: Standard UCB cannot be easily made replicable because minor statistical fluctuations in any round could cause a different action choice in a parallel run. By locking choices into dynamic epochs that trigger updates only upon sample-size doubling, the algorithm stabilizes the decision path across different runs.
  • Replicability is "Free": A major takeaway is that adding the strict requirement of replicability does not degrade the algorithm's performance scaling. The dependence on the time horizon $T$ remains optimal.

Key Results

The paper provides strong theoretical guarantees that hold with high probability:

  • DEBORA (Unconstrained): Achieves regret bounds that match the state-of-the-art replicable algorithms up to constant factors, but does so without resorting to arm elimination.
  • DEBORA-S (Soft Constraints): Both the expected cumulative regret and the cumulative constraint violation scale at an optimal rate of $\tilde{O}(\sqrt{T})$ (specifically, $\tilde{O}(\frac{mK^2}{\rho - 2\delta}\sqrt{KT})$), matching the performance of non-replicable constrained algorithms.
  • DEBORA-H (Hard Constraints): Guarantees zero per-round constraint violations with high probability, while achieving a regret bound of $\tilde{O}(\frac{1}{\lambda_{min}}\sqrt{T})$, where $\lambda_{min}$ represents the safety margin of the baseline safe strategy.

Limitations and Future Work

  • Prior Knowledge for Hard Constraints: For the hard constraints setting (DEBORA-H), the algorithm requires prior knowledge of a strictly safe baseline strategy ($x^\diamond$) and its safety margin ($\lambda_{min}$). In completely unknown environments, finding such a baseline initialization can be challenging.
  • Parameter Dependence: While the scaling with respect to time ($T$) is optimal, the bounds feature a heavy dependence on the replicability parameter ($1/\rho$) and the safety margin ($1/\lambda_{min}$), which can inflate the regret in practice if these parameters are very small.
  • Future Directions: The authors suggest that this UCB-based replicability framework opens the door to solving more complex problems, such as replicable reinforcement learning in constrained Markov Decision Processes (CMDPs) and non-stationary environments.

Summary updated

BibTeX
@inproceedings{bollini2026replicable,
  author = {Matteo Bollini and Gianmarco Genalti and Francesco Emanuele Stradi and Matteo Castiglioni and Alberto Marchesi},
  title = {{Replicable Constrained Bandits}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=bDUTx2VJDq},
}
Figure