NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Lyapunov-Stable Deep Equilibrium Models

Haoyu Chu, Shikui Wei, Ting Liu, Yao Zhao, Yuto Miyatake

Abstract

Deep Equilibrium (DEQ) models offer a memory-efficient alternative to traditional deep networks by solving for a single "fixed point" layer. However, these models are notoriously vulnerable to adversarial attacks. We present LyaDEQ, a framework that treats DEQ models as nonlinear dynamical systems and employs Lyapunov stability theory to guarantee that fixed points are mathematically stable. By incorporating a Lyapunov stability module and an orthogonal fully connected layer, LyaDEQ significantly boosts resistance to input perturbations while maintaining high classification performance on complex image datasets.

Introduction

Traditional neural networks are "explicit," relying on a fixed stack of layers through which data flows. Deep Equilibrium (DEQ) models are "implicit," defining an output as the equilibrium (fixed point) of a single nonlinear transformation. While DEQs are powerful and memory-efficient, they lack inherent stability. Small, malicious perturbations to an input—adversarial attacks—can shift these fixed points drastically, leading to incorrect classifications. Previous attempts to mitigate this, such as Interval Bound Propagation (IBP), often struggle with complex image recognition tasks. LyaDEQ bridges the gap between control theory and deep learning to create a DEQ model that is "stable by design."

Methodology

The LyaDEQ framework incorporates three main components to ensure the system always converges to a stable, discriminative state.

The LyaDEQ architecture overview, showing the feature extractor, DEQ module with implicit layers, Lyapunov stability module, and the final orthogonal classification layer.

1. Dynamical System Perspective

The authors reframe the DEQ fixed-point iteration as a discrete-time nonlinear dynamical system. This allows the application of classical stability analysis to the convergence process of the network.

2. Lyapunov Stability Module

To ensure the system always converges to a stable state, LyaDEQ learns a Lyapunov function—a mathematical "energy" function that must decrease as the system approaches the fixed point. This is implemented using an Input-Convex Neural Network (ICNN). By projecting the DEQ's updates onto a space where this energy function is guaranteed to decrease, the model ensures the fixed point is "Lyapunov-stable."

3. Orthogonal FC Layer

A side effect of Lyapunov stability is that fixed points for different classes might end up very close to each other in the feature space, a phenomenon known as "crowding." The authors add a parameterized orthogonal fully connected (FC) layer to "push" these stable neighborhoods apart, improving classification accuracy and separability.

Experimental Results

LyaDEQ was evaluated on standard computer vision benchmarks, including MNIST, SVHN, CIFAR-10, and CIFAR-100. The model consistently outperformed baseline DEQ models and other specialized robust DEQs.

Robustness Gains

On CIFAR-10 under a PGD (Projected Gradient Descent) attack with $\epsilon = 8/255$, LyaDEQ achieved 43.96% accuracy, compared to just 11.12% for the baseline DEQ—a massive 32.84% improvement. When combined with the TRADES defense, LyaDEQ reached an adversarial accuracy of 72.81%.

Accuracy vs. Epsilon under PGD attacks. LyaDEQ and its variants show significantly flatter accuracy curves compared to ResNet and standard DEQ models, indicating superior robustness to varying perturbation magnitudes.

Insensitivity to Attack Radius

As shown in the performance curves, while standard CNNs (like ResNet56) see their accuracy plummet as the attack strength ($\epsilon$) increases, LyaDEQ's accuracy remains remarkably flat. This demonstrates that Lyapunov-stable fixed points effectively confine perturbations within a predictable neighborhood, preventing misclassification even as noise magnitude grows.

Conclusion

LyaDEQ demonstrates that stability-by-design is a potent defense against adversarial perturbations in implicit models. By ensuring fixed points are Lyapunov-stable and well-separated via orthogonality, the framework achieves state-of-the-art robustness for DEQs. Future work includes exploring more sophisticated feature extractors and investigating the application of this stability framework to other implicit models, such as Neural ODEs.

Summary updated

BibTeX
@inproceedings{chu2024lyapunov,
  author = {Haoyu Chu and Shikui Wei and Ting Liu and Yao Zhao and Yuto Miyatake},
  title = {{Lyapunov-Stable Deep Equilibrium Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i10.29044},
}
Figure