Smoothed Online Learning for Prediction in Piecewise Affine Systems

Adam Block, Max Simchowitz, Russ Tedrake

TL;DR

This paper introduces the first oracle-efficient algorithms for online learning in piecewise affine (PWA) systems with provably polynomial regret. By leveraging "directional smoothness"—a realistic assumption where system noise prevents the state from lingering too close to region boundaries—the authors overcome the fundamental impossibility of learning across sharp discontinuities.

What Problem Does This Paper Address?

Piecewise affine (PWA) systems are the "Goldilocks" of dynamical modeling: they are more expressive than simple linear models but more tractable than general nonlinear ones. They are ubiquitous in robotics (modeling contact dynamics) and deep learning (ReLU networks).

However, learning in PWA systems is notoriously difficult due to discontinuities. As a system moves between different "pieces" or regions, its dynamics change abruptly. In a sequential learning setting, a small error in estimating the boundary between two regions can lead to massive prediction errors. In fact, without further assumptions, it is impossible to achieve "no-regret" learning; an adversary can force the learner to oscillate across a boundary, accruing linear error indefinitely.

Existing practical approaches often rely on heuristics, while theoretical work has struggled to provide algorithms that are both computationally efficient and statistically robust in high dimensions.

Methods

The authors bridge this gap by adopting the smoothed online learning framework. Their key innovation is the use of directional smoothness. Unlike standard smoothed analysis, which often suffers from an exponential dependence on dimension, directional smoothness assumes that noise injected into the system (either naturally or artificially) ensures the state is rarely "trapped" on a boundary.

The core of their approach is Algorithm 1 (Main Algorithm), which operates in epochs:

  1. ERM Oracle: At the start of each epoch, the learner calls an Empirical Risk Minimization (ERM) oracle on all past data to find the best-fit PWA model.
  2. Label Consistency: Because black-box oracles might permute labels between calls, a Reorder subroutine ensures that the "pieces" identified in one epoch correspond to the same pieces in the next.
  3. Mode Prediction via OGD: Instead of using the ERM's classifier directly, the algorithm runs Online Gradient Descent (OGD) on a multi-class hinge loss surrogate. This "smooths" the decision-making process, ensuring the predictor remains stable even as new data arrives.
The Main Algorithm (Algorithm 1) uses an epoch-based approach combining ERM oracles with Online Gradient Descent for stable mode prediction.

The authors also develop new technical tools, such as disagreement covers, to handle the complexity of uniform decision boundaries in their analysis.

Datasets

Not discussed in the paper. This work is primarily theoretical, providing mathematical proofs and regret bounds rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • Smoothing as a Canonical Fix: The paper argues that randomized smoothing is not just a trick but a canonical way to mitigate the "threshold-effect" pathologies inherent in discontinuous systems. It ensures the learner spends very little time in the "danger zone" near boundaries.
  • Dimension Independence: By focusing on directional smoothness rather than isotropic smoothness, the authors achieve regret bounds that scale polynomially with dimension. This makes the theory applicable to the high-dimensional state spaces typical of modern robotics.
  • Stability Over Raw Accuracy: A surprising insight is that the learner shouldn't just use the most accurate model from the past. By using a "lazy" OGD update on a hinge loss, the algorithm prioritizes stability across epochs, which is what ultimately allows for sublinear regret.
  • Oracle Efficiency: The algorithm is "oracle-efficient," meaning its complexity is tied to the number of calls to an optimization oracle. While PWA regression is NP-hard, the paper provides a statistical framework that works given any effective heuristic for the underlying optimization problem.

Key Results

  • Polynomial Regret: The authors prove that their algorithm achieves an excess square-loss regret of $O(T^{1-\alpha})$, where the prefactor is polynomial in all relevant parameters, including dimension $d$ and the number of modes $K$.
  • Parameter Recovery: They demonstrate that the algorithm correctly recovers the linear parameters of frequently visited modes at a parametric rate.
  • Simulation Guarantees: The results extend to multi-step simulation. Under a Lyapunov stability assumption, the Wasserstein distance between the simulated and true trajectories grows sublinearly, allowing for reliable long-term forecasting in PWA systems.

Limitations and Future Work

  • Lyapunov Stability: The simulation results currently assume a common Lyapunov function across all modes, which is a strong condition that may not hold for all physical systems.
  • Separation Condition: The analysis requires that the different affine modes are well-separated in parameter space. Removing this "gap" assumption remains a significant technical challenge.
  • Partial Observation: The current framework assumes the learner can observe the full state of the system. Extending this to partially observable systems (like those requiring Kalman filtering) is a promising next step.
  • Continuous PWA Systems: The authors suggest investigating whether PWA systems that are forced to be continuous at their boundaries might allow for no-regret learning even without the smoothing assumption.

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