Smoothed Online Learning for Prediction in Piecewise Affine Systems

Adam Block, Max Simchowitz, Russ Tedrake

Abstract

Piecewise Affine (PWA) systems are fundamental for modeling complex, non-linear dynamics in robotics and control, yet their inherent discontinuities pose significant challenges for online learning. This paper presents the first algorithms for prediction and simulation in PWA systems that achieve "no-regret" performance with polynomial efficiency. By employing smoothed online learning, the proposed framework overcomes the impossibility of learning across sharp boundaries. We establish sublinear regret bounds and demonstrate that directional smoothness allows for efficient parameter recovery and stable multi-step simulation.

Introduction

Piecewise Affine (PWA) systems partition the state space into distinct regions, each governed by linear dynamics. While powerful for modeling contact-rich robotics and neural network dynamics, these systems are characterized by abrupt changes at boundaries. In an online learning setting, where a model is updated sequentially, even minor errors in boundary identification can lead to catastrophic prediction failures. Standard "no-regret" learning—where a learner's performance matches the best fixed model in hindsight—is typically impossible for such discontinuous systems without further assumptions.

Methodology

The proposed approach bridges robotics-inspired randomized smoothing with theoretical smoothed analysis. The framework relies on four technical pillars:

  1. Directional Smoothness: Instead of global smoothness, the authors assume inputs possess a small amount of noise. This ensures the system state rarely lingers on "knife-edge" boundaries, making the problem learnable in a dimension-independent manner.
  2. Epoch-Based Learning: The algorithm operates over discrete time chunks (epochs). At each epoch's conclusion, an Empirical Risk Minimization (ERM) oracle is invoked to find the optimal PWA model for the accumulated data.
  3. Label Reordering: To maintain consistency across epochs, a reordering subroutine aligns the "pieces" or modes returned by the ERM oracle.
  4. Hinge-Loss Surrogate: Mode prediction is stabilized by reducing classification to Online Gradient Descent (OGD) using a multi-class hinge loss, preventing oscillatory behavior near boundaries.

The Main Algorithm

The core logic of the proposed approach is encapsulated in Algorithm 1, which details the initialization, epoch-based iteration, and the integration of the ERM oracle and OGD for parameter updates.

Algorithm 1: Main Algorithm for smoothed online learning in PWA systems.

Theoretical Results

The primary contribution is the proof of sublinear regret, specifically $O(T^{1-\alpha})$ for $\alpha > 0$. This ensures that the average prediction error vanishes as time $T$ increases. Unlike previous methods that scaled exponentially with dimensionality, this algorithm achieves polynomial efficiency relative to the state dimension $d$ and number of modes $K$.

Furthermore, the authors demonstrate that the learner can recover the underlying linear parameters at a parametric rate, provided those pieces are visited frequently enough. The results extend to multi-step simulation, where error is bounded using the Wasserstein distance, guaranteeing that simulated trajectories remain statistically close to real-world observations.

Discussion and Limitations

While the framework provides strong theoretical guarantees, practical implementation faces the NP-hardness of the ERM problem for PWA systems. The current theory also assumes full state observability, leaving partial observability as a key area for future research. Nevertheless, the transition from prediction to active control in unknown PWA environments represents a significant step forward for robust robotics.

Summary updated

BibTeX
@inproceedings{block2023smoothed,
  author = {Adam Block and Max Simchowitz and Russ Tedrake},
  title = {{Smoothed Online Learning for Prediction in Piecewise Affine Systems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=Izt7rDD7jN},
}
Figure