Table of Contents
Fetching ...

On the Surprising Effectiveness of Spectral Clipping in Learning Stable Linear and Latent-Linear Dynamical Systems

Hanyao Guo, Yunhai Han, Harish Ravichandar

TL;DR

This work addresses the tension between predictive accuracy, verifiable stability, and computational efficiency in learning linear dynamical systems. It proposes Spectral Clipping (SC), a simple post-hoc procedure that stabilizes unconstrained LDS estimates by clipping unstable eigenvalues while preserving eigenvectors, and extends naturally to nonlinear dynamics via Koopman lifting. The paper demonstrates that SC delivers stability-by-construction with minimal computation, maintains high predictive accuracy, and scales to high-dimensional settings, outperforming or matching stronger baselines and enabling robust long-horizon predictions. It further extends to controlled systems and robotic manipulation tasks, showing robustness to imperfect demonstrations and offering practical pathways for fast, reliable learning in real-world dynamical applications.

Abstract

When learning stable linear dynamical systems from data, three important properties are desirable: i) predictive accuracy, ii) verifiable stability, and iii) computational efficiency. Unconstrained minimization of prediction errors leads to high accuracy and efficiency but cannot guarantee stability. Existing methods to enforce stability often preserve accuracy, but do so only at the cost of increased computation. In this work, we investigate if a seemingly-naive procedure can simultaneously offer all three desiderata. Specifically, we consider a post-hoc procedure in which we surgically manipulate the spectrum of the linear system after it was learned using unconstrained least squares. We call this approach spectral clipping (SC) as it involves eigen decomposition and subsequent reconstruction of the system matrix after any eigenvalues whose magnitude exceeds one have been clipped to one (without altering the eigenvectors). We also show that SC can be readily combined with Koopman operators to learn nonlinear dynamical systems that can generate stable predictions of nonlinear phenomena, such as those underlying complex dexterous manipulation skills involving multi-fingered robotic hands. Through comprehensive experiments involving two different applications and publicly available benchmark datasets, we show that this simple technique can efficiently learn highly-accurate predictive dynamics that are provably-stable. Notably, we find that SC can match or outperform strong baselines while being orders-of-magnitude faster. Finally, we find that SC can learn stable robot policies even when the training data includes unsuccessful or truncated demonstrations. Our code and datasets can be found at https://github.com/GT-STAR-Lab/spec_clip.

On the Surprising Effectiveness of Spectral Clipping in Learning Stable Linear and Latent-Linear Dynamical Systems

TL;DR

This work addresses the tension between predictive accuracy, verifiable stability, and computational efficiency in learning linear dynamical systems. It proposes Spectral Clipping (SC), a simple post-hoc procedure that stabilizes unconstrained LDS estimates by clipping unstable eigenvalues while preserving eigenvectors, and extends naturally to nonlinear dynamics via Koopman lifting. The paper demonstrates that SC delivers stability-by-construction with minimal computation, maintains high predictive accuracy, and scales to high-dimensional settings, outperforming or matching stronger baselines and enabling robust long-horizon predictions. It further extends to controlled systems and robotic manipulation tasks, showing robustness to imperfect demonstrations and offering practical pathways for fast, reliable learning in real-world dynamical applications.

Abstract

When learning stable linear dynamical systems from data, three important properties are desirable: i) predictive accuracy, ii) verifiable stability, and iii) computational efficiency. Unconstrained minimization of prediction errors leads to high accuracy and efficiency but cannot guarantee stability. Existing methods to enforce stability often preserve accuracy, but do so only at the cost of increased computation. In this work, we investigate if a seemingly-naive procedure can simultaneously offer all three desiderata. Specifically, we consider a post-hoc procedure in which we surgically manipulate the spectrum of the linear system after it was learned using unconstrained least squares. We call this approach spectral clipping (SC) as it involves eigen decomposition and subsequent reconstruction of the system matrix after any eigenvalues whose magnitude exceeds one have been clipped to one (without altering the eigenvectors). We also show that SC can be readily combined with Koopman operators to learn nonlinear dynamical systems that can generate stable predictions of nonlinear phenomena, such as those underlying complex dexterous manipulation skills involving multi-fingered robotic hands. Through comprehensive experiments involving two different applications and publicly available benchmark datasets, we show that this simple technique can efficiently learn highly-accurate predictive dynamics that are provably-stable. Notably, we find that SC can match or outperform strong baselines while being orders-of-magnitude faster. Finally, we find that SC can learn stable robot policies even when the training data includes unsuccessful or truncated demonstrations. Our code and datasets can be found at https://github.com/GT-STAR-Lab/spec_clip.

Paper Structure

This paper contains 18 sections, 2 theorems, 10 equations, 13 figures, 9 tables.

Key Result

Lemma 1

For any $\gamma > 0$ and any non-diagonalizable matrix $\hat{A}_{LS}$, there exists a diagonalizable matrix $\tilde{A}_{LS} \in \mathbb{R}^{n \times n}$ s.t. $||\hat{A}_{LS} - \tilde{A}_{LS}||_1 < \gamma$.

Figures (13)

  • Figure 1: Geometric intuition: Spectral clipping enables stable evolution by clipping the spectral radius of the system matrix without altering its eigenvectors.
  • Figure 2: (a): Computation time on UCSD dataset (solid lines indicate the median); (b): The boxplot of the average computation time on DTDB dataset; (c): Memory usage on UCSD dataset (solid lines indicate the median); (d): The boxplot of the average memory usage on DTDB dataset.
  • Figure 3: Average reconstruction error evaluated on different subspace dimensions of the UCSD dataset.
  • Figure 4: Left figure: average reconstruction error evaluated on different subspace dimensions of the UCSD dataset. Shaded areas indicate quartile values over all sequences. Right figure: average reconstruction error evaluated at each time step percentile of the DTDB dataset. Shaded areas indicate quartile values over all sequences.
  • Figure 5: Average reconstruction error on the Reorient, Door, Tool, Reloc, Tool_short, and Reloc_with_failures datasets. Solid lines represent mean values, and shaded areas indicate quartile values over the rollout trajectories.
  • ...and 8 more figures

Theorems & Definitions (2)

  • Lemma 1
  • Theorem 2