Skip to main content
QUICK REVIEW

[Paper Review] RecurJac: An Efficient Recursive Algorithm for Bounding Jacobian Matrix of Neural Networks and Its Applications

Huan Zhang, Pengchuan Zhang|arXiv (Cornell University)|Oct 28, 2018
Adversarial Robustness in Machine LearningComputer Science29 references3 citations
TL;DR

RecurJac proposes a recursive algorithm to efficiently bound the Jacobian matrix of deep neural networks with respect to input, supporting a wide range of activation functions. By recursively refining bounds using layer-wise uncertainty reduction, it achieves significantly tighter local Lipschitz constants—up to two orders of magnitude better than Fast-Lip—enabling improved robustness verification and landscape analysis in adversarial defense and GAN training.

ABSTRACT

The Jacobian matrix (or the gradient for single-output networks) is directly related to many important properties of neural networks, such as the function landscape, stationary points, (local) Lipschitz constants and robustness to adversarial attacks. In this paper, we propose a recursive algorithm, RecurJac, to compute both upper and lower bounds for each element in the Jacobian matrix of a neural network with respect to network's input, and the network can contain a wide range of activation functions. As a byproduct, we can efficiently obtain a (local) Lipschitz constant, which plays a crucial role in neural network robustness verification, as well as the training stability of GANs. Experiments show that (local) Lipschitz constants produced by our method is of better quality than previous approaches, thus providing better robustness verification results. Our algorithm has polynomial time complexity, and its computation time is reasonable even for relatively large networks. Additionally, we use our bounds of Jacobian matrix to characterize the landscape of the neural network, for example, to determine whether there exist stationary points in a local neighborhood. Source code available at \url{http://github.com/huanzhang12/RecurJac-Jacobian-bounds}.

Motivation & Objective

  • To address the lack of efficient, certified bounds for the Jacobian matrix of deep neural networks, especially for local regions and diverse activation functions.
  • To improve the quality of local and global Lipschitz constant estimation, which is critical for robustness verification and training stability in GANs.
  • To enable certified robustness verification by computing lower bounds on the perturbation radius within which no adversarial examples exist.
  • To characterize the local optimization landscape by detecting the absence of stationary points in a neighborhood via Jacobian bounds.
  • To provide a scalable and generalizable method applicable to ReLU, leaky-ReLU, tanh, and other common activation functions beyond just ReLU networks.

Proposed method

  • RecurJac uses a recursive refinement procedure that propagates Jacobian bounds backward through layers, reducing uncertainty in neuron activations.
  • It identifies and fixes neurons with bounded activation patterns, absorbing them into previous layers’ weight matrices to form a shallower network for tighter bounds.
  • The algorithm maintains element-wise upper and lower bounds for each Jacobian entry using interval arithmetic and activation function properties.
  • Two variants are implemented: RecurJac-B (backward pass) for efficiency and RecurJac-F1 (forward pass with reduced memory) for higher accuracy in some cases.
  • The method computes local Lipschitz constants via induced matrix norms of the bounded Jacobian matrix, with bounds valid over an ℓ∞-ball around a given input.
  • Robustness verification is performed using Theorem 2, which relates the integral of the local Lipschitz constant of the margin function to a certified lower bound on adversarial perturbation radius.

Experimental results

Research questions

  • RQ1Can a recursive algorithm achieve tighter local Jacobian bounds than existing non-recursive methods like Fast-Lip for ReLU networks?
  • RQ2To what extent can the proposed method generalize beyond ReLU networks to include leaky-ReLU, tanh, and other activation functions?
  • RQ3How does the quality of the computed local Lipschitz constant affect the certified robustness radius in adversarial examples verification?
  • RQ4Can the Jacobian bounds be used to certify the absence of stationary points in a local neighborhood, thus characterizing the optimization landscape?
  • RQ5What is the computational cost trade-off between accuracy and efficiency in the backward vs. forward variants of the algorithm?

Key findings

  • RecurJac-B achieves local Lipschitz constants up to two orders of magnitude smaller than Fast-Lip for deeper networks, significantly improving robustness verification bounds.
  • For the largest CIFAR-10 network (10 layers, 2048–128 neurons), RecurJac-B computed a local Lipschitz constant in 10.5 seconds on a single CPU core, outperforming Fast-Lip’s 2.4 seconds but with vastly superior bound quality.
  • On adversarially trained models with ε=0.3 PGD attacks, RecurJac produced certified robustness lower bounds closer to 0.3 than Fast-Lip, indicating better alignment with actual robustness.
  • The method successfully certified the absence of stationary points in local neighborhoods, with the certified region radius decreasing steadily as network depth increased.
  • RecurJac-F1 and RecurJac-F0 achieved better bounds than RecurJac-B in some cases (e.g., Figure 3(a)), though at the cost of higher memory and computation, especially for deep networks.
  • The naive global Lipschitz bound via product of weight norms was consistently looser than RecurJac’s local bounds, with the gap increasing for deeper networks.

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.