Skip to main content
QUICK REVIEW

[Paper Review] Stable Neural ODE with Lyapunov-Stable Equilibrium Points for Defending Against Adversarial Attacks

Qiyu Kang, Yang Song|arXiv (Cornell University)|Oct 25, 2021
Adversarial Robustness in Machine LearningComputer Science22 citations
TL;DR

This paper proposes SODEF, a stable neural ODE with Lyapunov-stable equilibrium points to defend against adversarial attacks. By constraining the ODE's Jacobian to have eigenvalues with negative real parts via regularized training, SODEF ensures that small input perturbations lead to small output deviations, achieving up to 52.54% higher robust accuracy than TisODE on CIFAR-10 under PGD attacks.

ABSTRACT

Deep neural networks (DNNs) are well-known to be vulnerable to adversarial attacks, where malicious human-imperceptible perturbations are included in the input to the deep network to fool it into making a wrong classification. Recent studies have demonstrated that neural Ordinary Differential Equations (ODEs) are intrinsically more robust against adversarial attacks compared to vanilla DNNs. In this work, we propose a stable neural ODE with Lyapunov-stable equilibrium points for defending against adversarial attacks (SODEF). By ensuring that the equilibrium points of the ODE solution used as part of SODEF is Lyapunov-stable, the ODE solution for an input with a small perturbation converges to the same solution as the unperturbed input. We provide theoretical results that give insights into the stability of SODEF as well as the choice of regularizers to ensure its stability. Our analysis suggests that our proposed regularizers force the extracted feature points to be within a neighborhood of the Lyapunov-stable equilibrium points of the ODE. SODEF is compatible with many defense methods and can be applied to any neural network's final regressor layer to enhance its stability against adversarial attacks.

Motivation & Objective

  • To address the vulnerability of deep neural networks to adversarial attacks, especially in safety-critical applications.
  • To improve robustness by ensuring neural ODE solutions converge to stable equilibrium points under small input perturbations.
  • To develop a training method that implicitly enforces negative real parts in the Jacobian eigenvalues of the ODE vector field.
  • To design a defense compatible with existing neural ODEs and standard network architectures.
  • To provide theoretical guarantees on stability and robustness through Lyapunov analysis.

Proposed method

  • Propose a regularizer that constrains the Jacobian matrix of the ODE to have eigenvalues with negative real parts, ensuring Lyapunov stability.
  • Use a final fully connected layer with unit-norm rows and minimized maximum cosine similarity to promote diversity and stability in feature space.
  • Formulate an optimization objective that forces feature representations to lie within a neighborhood of Lyapunov-stable equilibrium points.
  • Apply a diversity-promoting technique in the final FC layer to enhance stability and robustness of the ODE solution.
  • Use a time-invariant ODE with a vector field designed such that its linearization around equilibrium points has negative-definite real parts in eigenvalues.
  • Train the model using standard backpropagation with added constraints on the Jacobian structure to maintain stability during optimization.

Experimental results

Research questions

  • RQ1Can Lyapunov-stable equilibrium points in neural ODEs improve robustness against adversarial perturbations?
  • RQ2How can the Jacobian of the ODE vector field be constrained to ensure negative real parts in eigenvalues without high computational cost?
  • RQ3What regularizer design effectively enforces that feature points remain near stable equilibria under input perturbations?
  • RQ4How does the proposed method compare in robust accuracy to existing state-of-the-art defenses like TisODE and ODE-Net?
  • RQ5Does the choice of ODE solver affect the robustness of the final model under adversarial attacks?

Key findings

  • SODEF achieves up to 44.02 percentage points higher robust accuracy than TisODE on MNIST under PGD attack.
  • On CIFAR-10, SODEF improves robust accuracy by 52.54 percentage points compared to TisODE under PGD attack.
  • On CIFAR-100, SODEF achieves a 18.91 percentage point improvement in robust accuracy over TisODE under PGD attack.
  • SODEF also improves robust accuracy by up to 43.69, 52.38, and 18.99 percentage points compared to ODE-Net on MNIST, CIFAR-10, and CIFAR-100, respectively.
  • The choice of ODE solver (e.g., Runge-Kutta, Euler, Midpoint) has minimal impact on performance, with all solvers yielding similar robust accuracy.
  • Theoretical analysis confirms that the proposed regularizer ensures feature points remain within a neighborhood of Lyapunov-stable equilibrium points, guaranteeing robustness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.