Online Nonstochastic Control with Convex Safety Constraints

Nanfei Jiang, Spencer Hutchinson, Mahnoosh Alizadeh

Introduction

In classical control theory, disturbances are often modeled as stochastic noise (e.g., Gaussian). However, real-world systems like autonomous vehicles or industrial robots frequently encounter nonstochastic, adversarial disturbances that do not follow predictable probability distributions. While recent advances in "Online Nonstochastic Control" address these messy environments, incorporating hard safety constraints—such as avoiding obstacles or staying within operational bounds—remains a significant challenge.

Previous state-of-the-art methods were limited to affine (linear) constraints. This paper introduces OGD-BZC (Online Gradient Descent with Buffer Zone for Convex Constraints), an algorithm designed to handle general convex safety constraints while maintaining sublinear regret in the face of adversarial noise.

The OGD-BZC Framework

The core of the OGD-BZC algorithm is the combination of Disturbance-Action Controllers (DAC) with a novel "buffer zone" approach. Unlike standard controllers that react only to the current state, DAC policies choose actions based on a history of past disturbances, allowing the system to adapt to specific noise patterns.

To guarantee safety, the algorithm employs set shrinkage. Instead of targeting the boundary of the original safety set $\mathcal{X}$, OGD-BZC projects the control policy onto a "shrunken" version of the set using Minkowski subtraction. This creates a margin of error (a buffer zone) that accounts for approximation errors and future disturbances.

Algorithm 1: The OGD-BZC procedure, detailing the control input application and the projected gradient descent update step.

The optimization process uses Online Convex Optimization (OCO) with memory. By selecting a diminishing step size for gradient descent, the authors ensure that the control policy changes slowly enough to keep the system within the safety margin at all times.

Experimental Evaluation

The authors evaluated OGD-BZC using a 2-D Linear Time-Invariant (LTI) system. The state and input were constrained to a unit disk ($\|x\|_2 \leq 1$ and $\|u\|_2 \leq 1$), representing a complex convex safety boundary.

System trajectories under random and assigned (adversarial) disturbances. OGD-BZC successfully maintains the state within the green safety disk, whereas fixed linear policies may struggle.

Two disturbance scenarios were tested:

  1. Random Disturbances: i.i.d. noise generated uniformly.
  2. Assigned (Adversarial) Disturbances: Constant worst-case noise designed to push the system toward the safety boundary.

Key Results and Insights

The theoretical analysis proves a regret bound of $\tilde{O}(\sqrt{T})$, matching the performance of unconstrained nonstochastic control. Crucially, this bound is independent of the number of constraints defining the convex set, making the algorithm scalable to complex geometries.

Empirically, OGD-BZC achieved zero safety violations in all tests. An interesting observation was the occurrence of "negative regret" in some scenarios. This stems from the fact that the DAC policy class is more expressive than the fixed linear policies used as a benchmark, allowing the algorithm to learn and counteract specific disturbance sequences more effectively than any static rule.

Limitations and Future Directions

While OGD-BZC provides robust deterministic safety guarantees, several areas remain for future exploration:

  • Computational Overhead: Projecting onto the safe policy set $\Omega^\epsilon$ can be expensive for high-dimensional or highly complex convex sets.
  • Observability: The current model assumes full state observation ($x_t$) and exact disturbance calculation ($w_t$). Extending this to partially observed systems with noisy sensor data is a critical next step.
  • Dynamic Constraints: Future work could investigate time-varying or unknown constraints where the controller must learn the safety boundary through limited feedback.

Summary updated

Abstract

This paper considers the online nonstochastic control problem of a linear time-invariant system under convex state and input constraints that need to be satisfied at all times. We propose an algorithm called Online Gradient Descent with Buffer Zone for Convex Constraints (OGD-BZC), designed to handle scenarios where the system operates within general convex safety constraints. We demonstrate that OGD-BZC, with appropriate parameter selection, satisfies all the safety constraints under bounded adversarial disturbances. Additionally, to evaluate the performance of OGD-BZC, we define the regret with respect to the best safe linear policy in hindsight. We prove that OGD-BZC achieves $\widetilde {\mathcal{O}}(\sqrt T )$ regret given proper parameter choices. Our numerical results highlight the efficacy and robustness of the proposed algorithm.
BibTeX
@inproceedings{jiang2025online,
  author = {Nanfei Jiang and Spencer Hutchinson and Mahnoosh Alizadeh},
  title = {{Online Nonstochastic Control with Convex Safety Constraints}},
  booktitle = {ACC},
  year = {2025},
  url = {https://openreview.net/forum?id=s2d4TOwSCd},
}
Figure