Skip to main content
QUICK REVIEW

[Paper Review] Constrained Feedforward Neural Network Training via Reachability Analysis

Long Kiu Chung, Adam Dai|arXiv (Cornell University)|Jul 16, 2021
Adversarial Robustness in Machine LearningComputer Science26 references5 citations
TL;DR

This paper proposes a differentiable, reachability-based method to train feedforward ReLU neural networks while enforcing safety constraints during training. By representing input and output sets as constrained zonotopes, the method computes a reachable set and enforces non-intersection with unsafe output regions via a differentiable collision-check loss, successfully avoiding unsafe regions in a numerical example with guaranteed constraint satisfaction.

ABSTRACT

Neural networks have recently become popular for a wide variety of uses, but have seen limited application in safety-critical domains such as robotics near and around humans. This is because it remains an open challenge to train a neural network to obey safety constraints. Most existing safety-related methods only seek to verify that already-trained networks obey constraints, requiring alternating training and verification. Instead, this work proposes a constrained method to simultaneously train and verify a feedforward neural network with rectified linear unit (ReLU) nonlinearities. Constraints are enforced by computing the network's output-space reachable set and ensuring that it does not intersect with unsafe sets; training is achieved by formulating a novel collision-check loss function between the reachable set and unsafe portions of the output space. The reachable and unsafe sets are represented by constrained zonotopes, a convex polytope representation that enables differentiable collision checking. The proposed method is demonstrated successfully on a network with one nonlinearity layer and approximately 50 parameters.

Motivation & Objective

  • To address the challenge of training neural networks for safety-critical applications where output constraints must be guaranteed during training, not just verified post-training.
  • To eliminate the need for alternating training and verification cycles by embedding constraint enforcement directly into the training objective.
  • To develop a differentiable, set-based reachability framework that enables exact representation of convex polytopes and efficient collision checking between reachable and unsafe output sets.
  • To demonstrate that constraint satisfaction can be achieved upon convergence using a loss function derived from zonotope intersection checks.

Proposed method

  • The method represents the input set and output reachable set using constrained zonotopes, which are closed under linear transformations and allow exact representation of convex polytopes.
  • It computes the network's output-space reachable set layer-by-layer using constrained zonotope arithmetic, preserving set properties through ReLU nonlinearities.
  • A differentiable collision-check loss is formulated by solving a linear program to detect intersection between the reachable set and unsafe output regions.
  • The loss function is integrated into the training objective, enabling backpropagation and gradient-based optimization that simultaneously minimizes prediction error and enforces constraint satisfaction.
  • The approach uses a two-step backward pass per training iteration: first for the objective loss over the dataset, then for the constraint loss based on zonotope intersections.
  • The method leverages analytical operations for Minkowski sums, intersections, and collision checks, enabling efficient and differentiable reachability analysis.

Experimental results

Research questions

  • RQ1Can a neural network be trained to satisfy user-specified safety constraints directly during optimization, rather than through post-training verification?
  • RQ2How can set-based reachability analysis be made differentiable to enable end-to-end training with safety constraints?
  • RQ3What is the impact of using constrained zonotopes for representing reachable sets in terms of computational efficiency and constraint enforcement accuracy?
  • RQ4Can the proposed method guarantee constraint satisfaction upon convergence without requiring iterative verification loops?

Key findings

  • The proposed method successfully trained a small feedforward ReLU network to approximate a nonlinear function while completely avoiding an unsafe region in the output space, as shown in Fig. 4.
  • The constrained training achieved a final constraint loss of 0.0000, indicating no intersection between the reachable set and the unsafe set, whereas unconstrained training violated the constraint with a loss of 0.0575.
  • The objective loss increased from 0.0039 (unconstrained) to 0.0127 (constrained), reflecting a trade-off between accuracy and safety enforcement.
  • The method demonstrated provable constraint satisfaction upon convergence, unlike prior approaches that only penalize violations or require post-hoc verification.
  • Despite the success, constrained training took approximately 5 hours, which is several orders of magnitude slower than unconstrained training (0.5 seconds), due to exponential growth in constrained zonotope representations.
  • GPU utilization remained low (1–5%), indicating significant potential for performance improvement through better parallelization and optimization techniques.

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.