Reachability Analysis of Deep Neural Networks with Provable Guarantees
Paper · 2018 · Wenjie Ruan, Xiaowei Huang and Marta Kwiatkowska
Summary
A neural network can behave correctly on an image and still change its answer when a small part of that image changes. Testing many altered images may expose such a failure, but unsuccessful testing leaves an important question open: did the search miss a troublesome input, or is the network actually safe throughout the permitted region? This paper approaches that question through reachability analysis. Rather than examining isolated predictions, it asks which values a chosen numerical function of the network’s outputs can attain across a specified set of inputs. The function might select the confidence assigned to a label, measure competition between labels, or support a comparison of how much different networks’ outputs vary.
The central method turns this question into global optimization with an explicit error tolerance. The authors assume that the network and the selected output function are Lipschitz continuous: their changes are bounded relative to changes in their inputs. A valid Lipschitz constant then makes each evaluated input informative about nearby, unevaluated inputs. DeepGO, the authors’ implementation, uses that information to construct lower bounds on the unknown minimum while keeping the best value actually observed as an upper bound. It repeatedly evaluates promising locations until the bounds are sufficiently close. For inputs with several adjustable coordinates, it organizes the calculation as nested optimization problems over individual coordinates.
This formulation connects several questions that are often handled separately. Selecting a confidence coordinate gives output range analysis. Comparing the original label against its competitors gives a safety question about whether any allowed input can change the prediction. Measuring the width of a reachable output interval supplies the paper’s particular notion of robustness. These connections matter because finding an adversarial input and certifying its absence require different kinds of evidence. An observed prediction change is a witness of failure; a safety claim must cover the entire permitted input set. The proposed bounds are intended to provide that coverage, subject to the continuity assumptions, valid constants, and numerical error accounting.
The experiments support the practical usefulness of this approach on the investigated problems. Across six benchmark networks whose functions accept two inputs and return one output, the authors report an average runtime of roughly five seconds, which they describe, with timeouts omitted, as a speedup of 36 times relative to SHERLOCK and almost 100 times relative to Reluplex. A separate MNIST study examines seven convolutional networks, varying selected image regions containing 8 pixels. It shows how the same analysis can identify safe regions, find prediction-changing inputs, and compare confidence variation across networks and regions. The tested network depths reach 19 layers. These results demonstrate a useful verification strategy, but their scope is narrower than unrestricted certification of large networks: the number of coordinates allowed to vary remains important, the comparisons use different computing environments, and several aspects of the mathematical guarantees require careful interpretation.
Interesting ideas
Separate the question from the output score. The paper first defines an input region and then lets a scalar function express what matters about the network’s outputs. This is a reusable design choice because the search machinery need not change whenever the scientific question changes. Confidence variation, competition between labels, and comparisons across networks can share an optimization framework while retaining distinct meanings. Elsewhere, the same separation can help evaluation software distinguish the quantity being measured from the algorithm used to estimate it.
Keep a witness and a certificate together. During minimization, the lowest observed value shows what the network can actually produce, while the lower envelope describes how much better an unseen input could still be. Their gap expresses unresolved uncertainty. This is more informative than returning a candidate extremum without qualification. Any expensive search over a bounded domain can benefit from this pattern when valid structural bounds are available: retain the best concrete observation, but also report the remaining room for improvement.
Spend evaluations where the bound is weakest. DeepGO chooses its next evaluation from the lowest part of its current lower envelope. An interval receives attention because its permitted behavior remains consequential, rather than simply because it has not yet been sampled. This offers a general lesson for search and testing: uncertainty should be prioritized according to its possible effect on the answer. A region that is poorly explored but cannot change the conclusion may deserve less computation than one that could overturn it.
Distinguish system size from perturbation size. A network can contain many internal computations while the verification question changes only a restricted set of input coordinates. The paper makes that distinction central to its approach. It suggests an engineering strategy of defining meaningful, bounded interventions before attempting exhaustive reasoning. The benefit depends on keeping those interventions relevant to the intended claim; proving safety for a selected region does not establish safety for every possible alteration.
Carry approximation error through composition. In the nested calculation, an outer optimization receives values produced by inner optimizations, which are themselves approximate. The authors explicitly analyze how those errors affect the final bounds. That habit transfers beyond verification. Whenever an algorithm calls another approximate algorithm, its uncertainty should become part of the caller’s reasoning. Treating an approximate inner answer as exact can create an appearance of precision that the overall calculation has not earned.
Separate stability from an unchanged decision. The paper examines both label preservation and the width of an output interval. These quantities answer different questions. A confidence score may vary considerably while the winning label remains unchanged, or a modest change may matter when competing labels are close. Keeping both views helps researchers avoid making a continuous stability measure stand in for a discrete correctness property. It also encourages evaluation reports that state exactly what their robustness measure captures.
Deep dive: Reachability Analysis of Deep Neural Networks with Provable Guarantees
How DeepGO uses Lipschitz continuity and nested optimization to bound neural-network outputs, test safety, and compare robustness. · about 35 minutes to read
How Mova uses it
For Mova, the small transparent language system implemented in Rust, the most useful connection is a way of organizing verification questions. No implementation of DeepGO inside Mova is established here. The applications below are possibilities, and they depend on whether a particular Mova component satisfies the mathematical assumptions that make the paper’s bounds meaningful.
A concrete starting point would be a component that receives bounded numerical inputs and returns numerical scores. Mova could define an allowed region around those inputs, select a score of interest, and ask how far that score can move. If the component and score function have a valid Lipschitz bound, an optimizer could combine observed outputs with a conservative envelope over untested inputs. Its result could then include both an attained score and a bound on the remaining uncertainty. That would fit a transparent system because the conclusion would have an explicit scope: a named component, a specified input region, a chosen output quantity, and a stated tolerance.
The important restriction is that language changes do not automatically form the continuous boxes studied in this paper. Replacing a word, changing a grammatical analysis, or choosing another symbolic rule is not justified by the image-pixel formulation. A Mova application would need to identify an actual numerical interface where the continuity assumption applies. If no such interface exists, the transferable idea is the separation of witnesses, bounds, and unresolved cases, rather than a direct use of DeepGO’s theorem.
Another possible use concerns comparisons between scoring components. Suppose alternative implementations serve the same task and expose the same numerical quantity. Mova could compare the ranges of that quantity over a shared perturbation region. The paper’s approach would encourage a careful report: one component’s score varies less under the selected intervention, instead of an unrestricted claim that the component understands language better or is safer in every setting. Correctness and stability would remain separate questions.
The nested error analysis also suggests an implementation discipline. If a verification routine calls subordinate routines that return approximate results, their interfaces could carry intervals or explicit error bounds alongside candidate values. An outer routine would then propagate those bounds instead of silently treating the candidates as exact. Rust does not supply the mathematical guarantee by itself; the useful design choice would be to make uncertainty part of the data passed between components.
Finally, Mova could borrow the paper’s distinction between finding a failure and excluding one. A concrete input that changes a decision is evidence of a vulnerability within the tested scope. Failure to discover such an input is a weaker outcome unless a valid covering argument accompanies the search. Making that distinction visible would support honest diagnostics even before any continuous optimizer were built. The paper offers a vocabulary for those outcomes, but it does not establish a language-system verification procedure or demonstrate an application to Mova.
The problem and its context
Why individual tests leave a gap
The paper addresses a certification problem for neural networks. In a safety-sensitive application, high performance on ordinary test inputs does not on its own establish that the network behaves acceptably throughout a relevant operating region. The authors place this concern in the context of systems whose behavior needs stronger assurance before deployment. Their proposal is to reason about a set of inputs collectively, with a numerical guarantee attached to the answer.
This changes the role of evaluation. A conventional test evaluates the network at selected points and records what happened there. Reachability analysis asks what can happen anywhere in a specified region. Those questions can overlap, because a test may discover an extreme or a prediction change. Nevertheless, the logical burden differs. An observed failure settles an existence question. An absence claim needs a reason why every allowed input has been covered, either directly or through valid mathematical bounds.
Adversarial examples make that distinction concrete. An adversarial example is an allowed alteration that changes the network’s predicted label. A search algorithm may find one quickly, but an unsuccessful search does not establish that none exists. The paper treats this as a reason to connect adversarial search with verification instead of evaluating search success alone.
The authors also want more than a binary safe-or-unsafe answer. A selected output may fluctuate substantially even when the final label remains fixed. Conversely, another output may have a narrow range that still crosses a decision boundary. Numerical ranges therefore provide information that label checks alone omit. They can describe confidence movement, expose especially unstable input regions, and support comparisons between networks performing the same task.
Earlier verification approaches
The related-work discussion groups existing verification methods into constraint-based approaches and searches over discretized spaces. Constraint-based methods translate network behavior into a formal problem for a solver. The paper discusses mixed-integer linear programming, satisfiability, and satisfiability modulo theories as examples of this strategy.
In that account, a major obstacle is the structure and size of the resulting encoding. Linear transformations and certain simple nonlinear operations are suitable for the available techniques, but the paper argues that broader layer support is difficult. It also describes the solver burden as a limitation when the number of hidden neurons grows. This motivates an alternative whose main optimization variables correspond to inputs that can change, rather than an explicit encoding of every internal neuron.
The authors’ characterization should be read with the distinctions they make later in the paper. Their high-level comparison credits Planet, MIP, and BaB with support for ReLU and max pooling, while describing SHERLOCK and Reluplex as working with ReLU. The relevant contrast is therefore not that every earlier method handles exactly the same layers. It is that their supported operations depend on the available encodings, whereas DeepGO seeks to work through a continuity bound.
Search over discretized vector spaces offers another route. The paper describes exhaustive search and Monte Carlo tree search applied to input or hidden-layer spaces. In the cited work, guarantees depend on assumptions about how manipulations or confidence gaps relate to the discretization. DeepGO instead expresses its guarantee through bounds on a continuous objective and an error tolerance. The authors consequently treat some such approaches as difficult to compare directly with their own.
Earlier attacks and output-range methods
For adversarial example generation, the paper describes gradient-based and evolutionary searches, including methods that rank pixels by their influence and then alter selected pixels. Their practical appeal is that they may locate a failure efficiently. Their limitation, for the authors’ purpose, is that unsuccessful search cannot certify nonexistence.
Output range analysis is closer to the paper’s immediate computational objective. Earlier work asks whether a selected output value is attainable or estimates the span of possible outputs over a region. The paper describes an MILP formulation for reachability and SHERLOCK’s combination of local gradient search with global MILP reasoning. DeepGO shares the interest in extrema but replaces that global constraint-solving step with a Lipschitz-based optimization scheme.
The broader setting is machine learning, but this paper analyzes already trained networks. It does not propose a new training objective, a new classification architecture, or a way to improve ordinary test accuracy. Training supplies the functions whose behavior will be investigated. The scientific contribution concerns how those functions can be bounded after training.
Why a scalar objective helps
A network may return a vector of scores, while a verification question often depends on a particular numerical relationship among them. The authors introduce a scalar output function to make that relationship explicit. Selecting a coordinate asks about one label’s score. Taking differences between scores asks whether a competitor can overtake the original winner.
This scalarization simplifies the computational target without making the questions identical. The same optimizer can search for an extremum, but the interpretation depends on the chosen objective. A low value for the original label is not automatically equivalent to a changed prediction. A large interval width is not automatically equivalent to poor classification accuracy. Much of the paper’s usefulness comes from providing a common calculation while preserving these separate interpretations.
The method, step by step
Specify the network, the region, and the question
The method begins with a trained feed-forward network. Its input is a vector of numerical values, and its output contains confidence values for classification labels. The authors usually normalize inputs and confidence outputs to bounded intervals, although the benchmark regression-style functions use a different input box.
f: ℝⁿ → ℝᵐ
Here, f is the network, ℝ is the real-number domain, n is the number of input coordinates, and m is the number of output coordinates. An input x has n entries. The output f(x) has m entries, written as confidence values associated with the labels.
The network is a composition of layer functions. Each layer consumes the preceding layer’s output, together with learned weights and biases where applicable.
f(x) = f_N ∘ f_(N−1) ∘ … ∘ f_1(x)
The symbol N denotes the number of layers, f_i denotes the function computed by layer i, and ∘ denotes function composition. The learned weights W_i and biases b_i are suppressed in this compact notation. They remain relevant when establishing a Lipschitz bound.
Next, the user specifies an input region X′. In the actual optimization procedure, this is a box: each adjustable coordinate has a permitted interval. Coordinates outside the selected perturbation can remain fixed. This matters in the image experiments, where the network receives an entire image but the search changes only a chosen feature region.
A scalar function o expresses the question asked of the output vector. The paper requires this function to be Lipschitz continuous. For the discussion below, F names the composition of the network with that scalar function.
F(x) = o(f(x))
The function o maps the network’s output vector to a real number, and F maps an input directly to that number. This is composition, not multiplication. The optimization seeks the smallest and largest values of F over X′.
From a verification question to bounded extrema
The steps in order.
Establish what continuity buys
Continuity alone says that sufficiently small input changes produce sufficiently small output changes. Lipschitz continuity adds a uniform quantitative limit on that relationship.
d_Y(f(x₁), f(x₂)) ≤ K d_X(x₁, x₂)
The inputs x₁ and x₂ belong to a metric space X. The function d_X measures distance between inputs, while d_Y measures distance between their outputs in a space Y. The non-negative constant K bounds output change relative to input change. The smallest valid constant is denoted K_best in the paper.
A valid constant supplies information at locations that have not been evaluated. If the function has a known value at one input, its value elsewhere cannot fall faster than the allowed slope. This is the source of the lower envelope used in the search. Without a valid bound, that envelope may cut above the real function and cease to support certification.
The authors establish continuity for familiar network operations by bounding derivatives. Their supporting lemma says that a bound on the norm of the Jacobian gives a Lipschitz constant on the relevant box.
‖∂f(x)/∂x‖ ≤ K
The expression ∂f(x)/∂x is the Jacobian, which collects the local derivatives of the outputs with respect to the inputs. The norm ‖·‖ measures its size. The inequality must hold throughout the stated domain, rather than only at sampled points.
For a sigmoid layer, the paper begins with an affine transformation followed by a sigmoid activation.
s(q) = 1/(1 + e^(−q))
The variable q is the activation input, e is the exponential base, and s is the sigmoid function. In a layer, q is obtained from weights W, input x, and bias b through the affine expression Wx+b.
K_sigmoid = (1/2)‖W‖
The quantity K_sigmoid is the layer bound reported by the authors, and ‖W‖ is the relevant norm of its weight operator. The paper derives this through the derivative of the sigmoid and multiplication by the affine transformation’s weight norm. The chosen norms matter when interpreting a numerical constant.
The corresponding hyperbolic tangent activation is written as follows.
t(q) = 2/(1 + e^(−2q)) − 1
Here, t denotes the hyperbolic tangent function, with q again representing the affine layer input. Its derivative is bounded, leading to the paper’s stated weight-dependent constant.
K_tanh = ‖W‖
The symbol K_tanh denotes that layer’s Lipschitz bound. As with the sigmoid expression, the bound concerns a normed transformation, not an empirical slope measured at a few inputs.
The paper also considers softmax, which turns an input vector into normalized output coordinates.
p(x)_j = e^(x_j) / Σ_(k=1)^n e^(x_k)
The symbol p denotes softmax, x_j is its j-th input coordinate, and the summation adds exponentials over all n coordinates. In this setting, the input and output dimensions agree. The authors argue that the derivative is bounded and give a supremum expression for the constant, using bounds from preceding layers and the input box.
The important methodological point is broader layer coverage through continuity. However, the displayed softmax derivative uses notation that is ambiguous about whether its coordinates denote inputs or normalized probabilities. It supports the authors’ intended argument only with that distinction handled correctly. The search guarantee needs a valid constant for the actual composed objective F, not merely a statement that common activations are continuous.
Define reachability and its applications
The paper denotes its approximate reachable interval by R. It associates that interval with the objective, input region, and requested error tolerance.
R(o, X′, ε) = [l, u]
The scalar function o specifies the output quantity, X′ is the allowed input region, ε is the error tolerance, and l and u are the reported interval endpoints. These endpoints should be interpreted alongside the optimization bounds, because an approximate extremum is different from an arbitrary observed value.
The formal definition includes the following endpoint conditions.
l ≥ inf_(x′∈X′) o(f(x′)) − ε
The symbol inf denotes the greatest lower bound of the attainable objective values. The variable x′ ranges over X′. This condition limits how far l may lie below that infimum.
u ≤ sup_(x′∈X′) o(f(x′)) + ε
The symbol sup denotes the least upper bound of the attainable values. This condition limits how far u may lie above it. As discussed under limitations, these displayed conditions alone are weaker than a complete enclosure definition; the algorithm’s maintained bounds provide the more concrete account of certification.
The reachability diameter is the width of the reported interval.
D(o, X′, ε) = u(o, X′, ε) − l(o, X′, ε)
The function D measures variation in the selected scalar output over the selected region, under the stated tolerance. It does not measure classification accuracy or distance to the nearest adversarial input.
For output range analysis, o simply selects an output coordinate.
Π_j(c₁, …, c_m) = c_j
The vector entries c₁ through c_m are the network’s confidence values. The projection Π_j returns the coordinate belonging to label j. Applying the same reasoning before softmax gives a logit range; a logit is the corresponding pre-softmax output.
Safety requires the original winning label to remain the winner everywhere in the allowed region.
∀x′ ∈ X′: argmax_j c_j(x′) = argmax_j c_j(x)
The input x is the reference input, x′ is an allowed alternative, and c_j(x′) is the confidence of label j at that alternative. The argmax operation selects a label with maximal confidence. Ties require a consistent interpretation if this equality is to specify actual decision behavior.
The paper expresses competition with the original winner using a maximum difference.
⊕(c₁, …, c_m) = max_(i∈{1,…,m}) (c_i − c_j)
The label j is the original winner, and i ranges over labels that may compete with it. The function ⊕ records the largest score advantage over j. Because the set includes j itself, this objective is never below zero; a positive value indicates that some label exceeds the original winner.
The authors connect safety to a nonpositive upper bound for this objective and state a decision error bound of 2ε. This is the bridge from optimization to verification. Near the threshold, approximation error and tie handling become important. A clear margin can support a decision more readily than an interval that remains close to the boundary.
For comparisons, the paper calls one network more robust when its selected reachability diameter is smaller.
D(o, X′, ε; f) < D(o, X′, ε; g)
The networks f and g must serve the same classification task. The semicolon identifies which network supplies the outputs. The objective o, region X′, and tolerance ε are shared, so the comparison concerns the same numerical question.
The authors similarly compare different input regions for a fixed network. In both cases, robustness means reduced variation of the chosen output statistic within the chosen scope. It is a deliberately specific definition.
Turn extrema into bounded global search
The computational target is a global minimum over a box.
min_(x∈[a,b]ⁿ) F(x)
The vectors or interval endpoints a and b describe the permitted input bounds, n is the number of adjustable coordinates, and F is the composed scalar objective. Maximization can be handled through a corresponding minimization formulation.
The objective can be non-convex, so reaching a point where a local search stops is insufficient. The paper instead introduces a lower-bounding function that touches the objective at an evaluated point.
h(x, y) ≤ F(x), with h(x, x) = F(x)
The variable y identifies an evaluated input. For any candidate x, h(x,y) supplies a conservative estimate beneath the true value. The equality says the bound agrees with the objective at its own supporting point.
In one dimension, Lipschitz continuity provides the required construction.
h(x, y) = F(y) − K|x − y|
The value F(y) is known from evaluation. The absolute difference |x−y| is the distance from that evaluation point, and K is a valid Lipschitz constant. The downward-sloping sides describe how low the unknown function could fall while respecting the constant.
Using several evaluations gives a tighter envelope.
H(x; Y_i) = max_(y∈Y_i) [F(y) − K|x − y|]
The set Y_i contains the input points evaluated by iteration i. The maximum is used because every supporting function is a lower bound, and the largest available lower bound is the most informative one at x. In one dimension, the resulting envelope has the sawtooth shape illustrated in the paper.
The optimizer obtains a global lower bound by minimizing this envelope.
l_i = inf_(x∈[a,b]) H(x; Y_i)
The quantity l_i is a lower bound on the unknown minimum of F. It describes the lowest value still permitted by the current evaluations and constant.
An upper bound comes from the lowest observed objective value.
u_i = min_(y∈Y_i) F(y)
The quantity u_i is attainable at an evaluated input, so the true minimum cannot exceed it. Together, l_i and u_i bracket the unknown minimum. These bounds concern a minimization run; an analogous calculation is needed to establish the maximum endpoint of the output range.
Choose and refine an interval
The one-dimensional procedure maintains evaluated points in coordinate order. Between adjacent points, the supporting lines meet at a location that identifies the interval’s most optimistic candidate for improvement.
y_i = (y_(k−1) + y_k)/2 − [F(y_k) − F(y_(k−1))]/(2K)
The adjacent points y_(k−1) and y_k bound the selected interval. The new evaluation point is y_i, and K determines the permitted slopes. The correction involving the endpoint values shifts the trial away from a simple midpoint when the observed values differ.
The corresponding interval lower estimate is computed from the endpoint values and interval width.
z = [F(y_k) + F(y_(k−1))]/2 − K(y_k − y_(k−1))/2
The quantity z is the lowest value of the supporting envelope within that interval. The optimizer chooses an interval with the smallest such estimate, because it offers the strongest remaining possibility of a lower objective value.
Evaluating the chosen point splits the interval. The algorithm replaces the old interval estimate with estimates for the resulting subintervals, updates its global envelope minimum, and retains the smallest observed objective value. A strict constant larger than K_best is used in the paper’s analysis of interval improvement.
The stopping condition checks the gap between the current bounds.
|u_i − l_i| ≤ ε
The tolerance ε specifies the acceptable uncertainty in the minimum value. It does not imply that the minimizing input coordinates themselves have been located to the same precision. Different inputs may have similar objective values, and the method’s certificate concerns those values.
This distinction is useful in practice. A returned image or input is a witness for its evaluated score. The bound gap describes what could remain undiscovered elsewhere. Reporting both gives a clearer result than describing the witness alone as the exact global extremum.
Adapt the constant carefully
A conservative Lipschitz constant can make the lower envelope very loose. The paper proposes updating the constant from slopes between previously evaluated neighboring points.
K = η max_(j=1,…,i−1) |[F(y_j) − F(y_(j−1))]/[y_j − y_(j−1)]|
The factor η is greater than 1 and inflates the largest observed slope. The index j ranges over adjacent evaluated locations. This update seeks a constant closer to the function’s actual behavior, improving the usefulness of each evaluation.
The authors give a limiting argument for convergence and say that the update preserves it. A finite-run certificate requires additional care: observed slopes describe observed intervals, and inflation alone does not establish a bound on every unevaluated portion of the function. The practical desire for a tighter constant and the logical requirement for a valid constant must therefore remain separate.
Nest the search across coordinates
For several adjustable inputs, the method rewrites a multidimensional minimum as nested coordinate minima.
min_(x∈∏ᵢ[a_i,b_i]) F(x) = min_(x₁∈[a₁,b₁]) … min_(x_n∈[a_n,b_n]) F(x₁,…,x_n)
Each coordinate x_i has its own interval [a_i,b_i]. The product symbol ∏ describes the resulting box. The right-hand expression eliminates coordinates through a sequence of one-dimensional optimization problems.
The paper defines a family of subproblem functions to express this process.
φ_k(x₁,…,x_k) = min_(x_(k+1)∈[a_(k+1),b_(k+1)]) φ_(k+1)(x₁,…,x_k,x_(k+1))
The function φ_k represents the remaining optimal value after the earlier coordinates have been fixed. The index k identifies the current level of nesting. At the deepest level, the function is simply the original objective.
φ_n(x₁,…,x_n) = F(x₁,…,x_n)
The subscript n marks the level where all coordinates have been specified, allowing a direct network evaluation. Results from inner searches are then passed outward to support optimization at earlier levels.
An outer function evaluation is therefore itself a search. Fixing one coordinate does not immediately produce the correct minimum over all remaining coordinates. The inner optimization must estimate that value with its own bounds. This is why error propagation is essential to the method instead of an incidental numerical detail.
Propagate uncertainty and allocate effort
The convergence argument considers an outer function Φ whose evaluations come from approximate inner minima.
Φ*(x) − ε_y ≤ Φ(x) ≤ Φ*(x) + ε_y
The symbol Φ*(x) denotes the exact inner optimum for a fixed outer coordinate x. The quantity Φ(x) is its computed approximation, and ε_y bounds the error contributed by the remaining coordinates.
The authors show how this uncertainty widens the final enclosure.
l_i − ε_y ≤ φ* ≤ u_i + ε_y
The value φ* is the exact global minimum. The outer search supplies l_i and u_i, while ε_y accounts for uncertainty in its inner evaluations. The analysis describes error accumulation as linear in the component bounds.
Finally, the adaptive nested scheme relaxes a rigid inside-to-outside schedule. Several generated one-dimensional subproblems can remain active, and the procedure selects one using a measure derived from its interval characteristics. The purpose is to concentrate computation where further refinement is most useful. This scheduling changes the order of work, while valid subproblem bounds and propagated error remain the basis for the intended guarantee.
Experiments and results
What was implemented and compared
The authors implemented their method as DeepGO in Matlab 2018a. Their reported machine is a notebook with an i7-7700HQ CPU and 16GB RAM. The implementation analyzes trained networks; it is not presented as a replacement for the learning procedure that produced them.
The first comparison uses Reluplex and SHERLOCK. Reluplex answers constraint queries for ReLU networks, and the authors describe using bisection to obtain an interval at the required tolerance. SHERLOCK targets output ranges by combining local search with MILP reasoning.
These are relevant baselines because they address closely related extrema or reachability questions. However, the comparison does not place every implementation on the same computer. The baseline results come from the earlier SHERLOCK study, using a Linux workstation with 63GB RAM and a 23-Cores CPU. The reported tolerance for that setup is ε=0.01.
The benchmark data describe functions with 2 inputs and 1 output. Following the earlier experimental setup, the authors train six networks with differing layer structures and neuron counts. They search the input region [0,10]^2. This is an important condition: the experiment varies network structure while keeping the optimization domain low-dimensional.
The paper reports that the competing methods become more affected as networks gain neurons and layers, whereas DeepGO is less affected over these benchmarks. DeepGO’s average runtime is described as around 5s. With timeouts omitted, the authors report speedups of 36 times relative to SHERLOCK and almost 100 times relative to Reluplex.
Those are aggregate statements from the paper. Exact per-network runtimes are not available in the written numerical account, so they should not be reconstructed from the comparison figure. Nor should the aggregate speedups be converted into invented baseline times. The evidence supports the reported comparison under its stated conditions, including the different hardware environments.
The MNIST setup
The second study investigates safety and output variation on MNIST. The authors train seven convolutional networks, designated DNN-1 through DNN-7. Their architectures include ReLU, dropout, and normalization operations. Their depths range from 5 to 19 layers, and their reported testing accuracies lie between 95% and 99%.
The images are resized to 14×14. The authors describe this choice as encouraging deeper networks to overfit. That experimental intention matters when interpreting the architecture comparison: the study is not a claim that a particular depth is generally best for safety.
The verification sample contains 20 randomly selected images, with 2 images for each label. The authors manually select 4 image features, each containing 8 pixels. During a feature analysis, those pixels can vary over [0,1]^8 while the rest of the image remains fixed. The tolerance used in this study is ε=0.05.
These regions permit substantial change within a selected feature. The guarantee is local to the chosen coordinates, but it is not limited to a collection of small, hand-generated changes inside that region. The optimizer is intended to cover every permitted setting of those coordinates through its bounds.
The paper aggregates confidence-diameter analyses over networks and features. Its network boxplots use 4×20 analyses for each network, while its feature boxplots use 7×20 analyses for each feature. These counts describe how the reported comparisons are organized; they do not enlarge the underlying image sample.
A confidence range with a safety interpretation
One example examines DNN-1 on an image whose label is 0, varying Feature-4. At the original input, the logit is 11.806 and the confidence for 0 is 99.95%. The reported confidence interval for that label is [74.36%,99.98%], and the corresponding logit interval is [7.007, 13.403].
The example illustrates why output range analysis can be useful even before comparing labels explicitly. If the selected label keeps a sufficiently high lower confidence, normalized competing outputs cannot exceed it. The authors use that relationship to certify the chosen feature region as safe for this image.
The scope of the conclusion is precise. It concerns DNN-1, this image, Feature-4, the specified range of pixel values, and the analysis tolerance. It does not establish that every region of the same image is safe. It also does not imply that DNN-1 is safe on every image carrying that label.
The logit and confidence intervals describe different numerical quantities. Softmax normalization can change the relationship between raw score movement and confidence movement. Keeping both results visible helps avoid treating a confidence interval as though it directly described the pre-softmax output.
Comparing networks on a fixed feature
Another example fixes an image of 9 and Feature-3. The paper reports safety for DNN-4 and DNN-6 in this setting. DNN-7 has a reported interval of [1.8%, 100.0%] for the relevant confidence, while DNN-4 has [94.2%, 100%]. The described unsafe cases change the prediction to 8.
Image 9, Feature-3: lower endpoint of label confidence
DNN-4 retains a higher confidence floor in the reported comparison.
The numbers
| System or setting | confidence % |
|---|---|
| DNN-7 | 1.8 |
| DNN-4 (this paper) | 94.2 |
The chart compares the lower endpoint of the same kind of output quantity under the same illustrated intervention. It does not compare ordinary test accuracy. It also does not imply that a confidence floor, on its own, supplies every detail of the paper’s robustness ordering; that ordering uses the whole interval’s diameter.
For this particular image and feature, the authors identify DNN-4 as the most robust network by their confidence-diameter criterion. In the aggregate feature and image analysis, DNN-6 and DNN-5 are described as the most robust. These statements are compatible because a network’s position can depend on the input region being examined.
Aggregate findings and broader comparisons
The reported safety comparison finds no network safe on every tested image-feature case. DNN-6 has the strongest aggregate safety result, while DNN-1, DNN-2, and DNN-3 perform less well. The paper interprets this as evidence that layer choices matter, while the setup does not isolate a single architectural cause.
The feature comparison also shows a pattern. Feature-1 and Feature-2 are described as less robust than Feature-3 and Feature-4, and their safety behavior is broadly consistent across networks. This indicates that the perturbation region itself contributes to vulnerability; safety is not solely a property of an architecture considered in isolation.
The broader comparison discusses ACAS-Xu and several verification approaches. The authors describe DeepGO’s runtime as similar to BaB and better than the other reported approaches in that comparison, while noting that no SHERLOCK experiment is available there. Exact runtime values are not stated in the written account.
Their larger claim concerns the ability to evaluate networks without encoding every hidden neuron as a solver variable. The tested depths reach 19 layers, compared with up to 6 layers in the other approaches they discuss. The strongest direct evidence remains the particular benchmarks, perturbation dimensions, tolerances, and architectures actually examined.
What the ablations show
The paper does not report a conventional component-removal ablation; it instead offers comparisons across network structures, input features, and verification approaches.
Changing network structure
The six-network benchmark is the closest experiment to a controlled scalability comparison. The networks address functions with the same input and output dimensionality, while their layers and neuron counts vary. This helps distinguish the effect of network structure from the number of adjustable inputs in the search.
The result supports the authors’ claim that their approach can be less sensitive to internal network growth than methods whose encodings expand with that structure. Nonetheless, the experiment does not show that network size has no computational cost. Every objective evaluation must still execute the network, and the usefulness of a continuity bound can depend on the function being analyzed.
The MNIST study provides a different architecture comparison. Its networks vary in depth and layer composition, and the images are deliberately resized under a setup intended to encourage overfitting in deeper networks. The observed safety ordering therefore concerns those complete trained networks. It does not separately measure the effect of depth, normalization, dropout, or another individual design choice.
That distinction matters when borrowing the result. The paper supports examining architectural choices through verification, instead of using test accuracy alone. It does not supply an isolated causal rule saying which layer should be added or removed to improve safety.
Changing the perturbation region
The feature analysis changes which image coordinates the verifier may alter. This is a useful complement to changing the network, because the same classifier can be stable under one intervention and vulnerable under another.
The reported ordering of features suggests that selected image regions differ in how readily they permit confidence movement and prediction changes. Because each feature contains the same stated number of pixels, the comparison is not simply between a small allowed region and a larger one. The locations and image content involved also matter.
However, the features are manually chosen. Their comparison demonstrates that region selection affects the result, but it does not establish a general feature-selection procedure. It also does not quantify the average behavior of every possible region of the same size. The result is evidence about the selected features, interpreted across the sampled images and networks.
This analysis offers a practical lesson for evaluation design. A robustness result should identify the permitted intervention as carefully as it identifies the system. Reporting only the network name would hide an essential part of what was tested.
Comparing safety with confidence stability
The paper presents both safe-image ratios and confidence-diameter distributions. This provides an analysis of related quantities that need not produce identical conclusions.
Safety concerns whether the predicted label changes anywhere in the allowed region. The diameter concerns how much a selected confidence value can vary. A network may preserve its label despite noticeable movement, especially when it begins with a strong advantage. Another may exhibit less movement yet remain close enough to a competitor for the prediction question to be delicate.
The fixed image and feature example makes this distinction concrete. The paper reports safe networks and separately identifies the narrowest confidence interval. That is more informative than compressing every outcome into a single robustness score.
Even so, these comparisons do not determine whether interval width predicts safety across a broader population. The paper uses the quantities together to characterize the investigated cases. It does not fit or validate a general predictive relationship between them.
What is missing about the optimizer itself
The analysis explains why a tighter Lipschitz constant should help: a smaller valid constant restricts how far the unseen function can dip between evaluations. The nested scheme likewise offers a reason for adaptive scheduling, because different active subproblems may have different potential to improve the result.
The experiments do not separately quantify the contribution of these choices. There is no reported comparison of adaptive scheduling against a rigid nesting order, or of dynamic constant estimation against a fixed certified constant. Nor is there a reported study of coordinate ordering or tolerance allocation across nested levels.
As a consequence, the experiments establish the behavior of the assembled DeepGO procedure more directly than the necessity of every component. The mathematical construction explains the intended role of those components, but component-specific empirical attribution remains open.
Limitations
Author-stated extensions and scope
The authors identify several directions beyond their completed work. They propose GPU and parallel computing to improve scalability and discuss applying the approach to large networks trained on ImageNet. They also name recurrent networks and deep reinforcement learning as possible extensions.
These are future directions, not demonstrated outcomes. The implemented method and analysis concern feed-forward networks, and the reported image experiments use MNIST. The conclusion’s broader ambition should therefore be separated from the evidence already established.
The paper also explicitly treats some search-based verification methods as incomparable because their guarantees are expressed differently. That is a useful boundary on the comparative claims. A method that returns a different kind of certificate may require a property-level comparison rather than a direct comparison of a single runtime.
A large network is not an unrestricted input region
A limit visible in the experimental setup is the dimension of the perturbation region. The benchmark functions have 2 inputs, and the MNIST feature searches vary 8 pixels. These are valuable tests of the approach, but they do not show that unrestricted variation over an entire high-dimensional input can be handled at similar cost.
Nested optimization does not remove the difficulty of high-dimensional global search. It organizes that search into coordinate subproblems and can allocate effort adaptively. The number and difficulty of those subproblems can still grow as more coordinates become adjustable.
The authors emphasize that their main complexity variable differs from hidden-neuron count. That is an important distinction, but it should not be read as literal independence from network size. A larger network still has to be evaluated, and its behavior affects the bounds available to the optimizer.
A careful interpretation is therefore that the method can exploit a small perturbation dimension even when the analyzed network is structurally substantial. The results do not establish a universal solution to every reachability query on such a network.
A finite guarantee requires a valid constant
The lower-envelope construction is sound only when its Lipschitz constant is valid over the entire domain being searched. This is a mathematical requirement of the method, rather than a minor tuning preference. If the constant is too small, the purported lower bound can rise above the actual function.
The paper’s dynamic update uses slopes from evaluated points and multiplies their maximum by a factor greater than 1. That is a plausible way to obtain a useful search parameter. It does not, on its own, demonstrate that all unseen slopes are bounded at the point when a finite search terminates.
The authors’ limiting discussion does not fully settle that finite-run issue. A function can have behavior in a region that the current samples have not revealed. An asymptotic statement about increasingly informative evaluations is different from a certificate that the current estimate already bounds the whole domain.
For a certification-oriented implementation, the distinction should be explicit. One route is to retain an independently valid conservative bound. Another would require a justified mechanism for validating or correcting local estimates. The reported heuristic should not silently inherit the authority of a globally certified constant.
Some mathematical statements need qualification
The paper says that intermediate output values are reachable between the extrema because the functions are Lipschitz continuous. A careful reading adds a condition on the input set: connectedness matters. The box domains used by the algorithm satisfy the relevant requirement, but an arbitrary subset of the normalized input space need not.
Its formal reachable-interval definition also gives only one inequality for each endpoint. Taken alone, those conditions do not establish the full enclosure that a reader may expect from the words lower and upper bound. The optimization algorithm’s maintained bracket is the clearer mechanism for understanding what has actually been bounded.
The convergence exposition has related gaps. A monotone lower-bound sequence that is bounded above converges to some limit, but that observation alone does not show that its limit equals the true minimum. A further argument about the refinement process is needed. Likewise, monotonic improvement is generally non-strict when several intervals share the same lowest estimate; refining one need not immediately raise the global lower bound.
These observations do not make Lipschitz lower-envelope optimization unintelligible. The construction has a clear rationale. They do mean that the displayed proof steps should not all be treated as complete just because the intended conclusion is plausible.
The softmax derivative presentation also requires care about notation, and the norms used for the layer constants must be compatible. A bound on a derivative is meaningful only relative to the chosen input, output, and operator norms. Those details affect whether a claimed numerical constant can safely be used.
Safety near ties and tolerance boundaries
The safety reduction compares the original label with every output coordinate, including itself. The resulting maximum difference contains a zero term. As a result, a nonpositive value expresses that no competitor strictly exceeds the original label; it does not independently specify how a tie is resolved.
The original safety definition uses an argmax label, so a complete implementation needs consistent tie handling. Without it, equality of maximal scores and equality of returned labels are not automatically the same property.
Approximation error introduces another boundary issue. A bound close to the decision threshold may leave the existence of a label change unresolved within the chosen tolerance. The paper states an error bound for the reduction, but a practical verification report should still distinguish a clear safety certificate, a concrete counterexample, and a result whose uncertainty overlaps the relevant boundary.
This is especially important when presenting results to someone who does not see the optimization internals. A binary label can conceal whether the conclusion rests on a margin or on a numerical convention at the edge of the allowed error.
The complexity argument is stronger than its justification
The paper claims NP-completeness for its generic reachability problem. Its lower-bound construction represents Boolean variables and clauses using ReLU operations, then applies an output function that reflects clause satisfaction. This illustrates a meaningful connection between logical search and neural-network reachability.
However, the written reduction shifts between the existence of an input with a particular property and statements that a value cannot be reached. Those quantifiers are different. A satisfying assignment can establish the existence of a suitable input; it does not imply that every other input avoids a specified output value.
The upper-bound discussion also depends on how real-valued inputs, error tolerances, and numerical precision are represented. Its argument that dimensions and their order can be guessed does not fully explain why all required nested optimization work has the claimed polynomial bound.
These are limits a careful reader can identify in the presentation. The claimed complexity classification should be reported as the authors’ claim, rather than used as an independently settled justification for practical scalability. The experimental results stand on their own stated conditions and do not require the strongest version of that argument.
The empirical evidence has a narrow sampling scope
The MNIST study uses a small selected image sample and manually chosen features. It demonstrates how the method behaves on those cases, but it does not establish population-wide safety rates. The boxplots summarize repeated analyses across that setup; they should not be confused with a large independent evaluation of all possible perturbation regions.
The runtime comparison also has limits. The authors use baseline measurements from another study and emphasize that their own hardware is less powerful. That context makes the reported result notable, but it remains different from running all implementations under a shared measurement protocol.
The source does not provide every training detail or every numerical plot value in its written account. It therefore supports the reported architectural ranges and aggregate findings more directly than an independent reconstruction of the entire experiment.
Finally, the paper’s robustness definition is objective-dependent. A narrow confidence interval does not establish correct predictions, meaningful language behavior, or safety under a different intervention. Its value lies in making a particular kind of stability measurable. The most defensible conclusions keep the objective, region, network, and tolerance attached to every result.
What came after
The later connection identified here is A Survey of Safety and Trustworthiness of Large Language Models through the Lens of Verification and Validation, published in 2023. It cites this reachability paper and places a later discussion of safety and trustworthiness within a verification-and-validation framing.
That citation establishes a connection in the research literature. It does not establish that the survey implements DeepGO, reuses its nested optimizer, or demonstrates the same guarantees for language systems. No such technical account accompanies the later-work entry, so attributing one would go beyond the available evidence.
The conceptual link is nonetheless clear enough to explain without inventing an implementation history. This paper treats a safety claim as something that needs a specified domain, a measurable property, and a justification covering unevaluated cases. It also distinguishes an observed failure from evidence that failures are absent. Those distinctions are relevant to a verification-and-validation discussion, even when the system being assessed has different inputs and behavior.
Transferring the numerical method would require more than transferring that vocabulary. A later application would need to identify a suitable objective, define the permitted input changes, establish the continuity assumptions, and justify the bounds used during finite computation. The image-feature experiments do not perform that work for language inputs.
The paper’s most reusable contribution is therefore a concrete pattern for asking bounded behavioral questions: define what may change, state which output quantity matters, combine attained values with valid bounds, and preserve uncertainty through the calculation. Its experiments show how that pattern can support safety and stability analysis in the studied feed-forward networks. The later citation records continued relevance to assurance-oriented research, while leaving the details of any direct algorithmic transfer unestablished.
Cite
Cite as Wenjie Ruan, Xiaowei Huang and Marta Kwiatkowska. 2018. Reachability Analysis of Deep Neural Networks with Provable Guarantees. International Joint Conference on Artificial Intelligence.
@inproceedings{ruan2018reachability,
title = {{Reachability Analysis of Deep Neural Networks with Provable Guarantees}},
author = {Wenjie Ruan, Xiaowei Huang and Marta Kwiatkowska},
booktitle = {International Joint Conference on Artificial Intelligence},
year = {2018},
doi = {10.24963/ijcai.2018/368},
eprint = {1805.02242},
archivePrefix = {arXiv},
url = {https://doi.org/10.24963/ijcai.2018/368}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/ruan-2018-reachability-analysis-deep-neural-networks/
References
- W. Ruan, X. Huang, and M. Kwiatkowska, “Reachability analysis of deep neural networks with provable guarantees,” The 27th International Joint Conference on Artificial Intelligence (IJCAI), 2018. OpenAlex ↗ · Scholar ↗
- D. Amodei, C. Olah, J. Steinhardt, P. Christiano, J. Schulman, and D. Mané, “Concrete problems in ai safety,” arXiv preprint arXiv:1606.06565, 2016. [Online]. Available: https://arxiv.org/pdf/1606.06565.pdf our card
- Y. Sun, M. Wu, W. Ruan, X. Huang, M. Kwiatkowska, and D. Kroening, “Concolic testing for deep neural networks,” arXiv preprint arXiv:1805.00089v1, 2018. OpenAlex ↗ · Scholar ↗
- C. Szegedy, W. Zaremba, I. Sutskever, J. Bruna, D. Erhan, I. Goodfellow, and R. Fergus, “Intriguing properties of neural networks,” arXiv:1312.6199v4, 2013. our card
- I. J. Goodfellow, J. Shlens, and C. Szegedy, “Explaining and Harnessing Adversarial Examples,” ArXiv e-prints, Dec. 2014. our card
- X. Huang, M. Kwiatkowska, S. Wang, and M. Wu, “Safety verification of deep neural networks,” in Computer Aided Verification. 1em plus 0.5em minus 0.4em Springer Berlin Heidelberg, 2017, pp. 3–29. OpenAlex ↗ · Scholar ↗
- G. Katz, C. Barrett, D. Dill, K. Julian, and M. Kochenderfer, “Reluplex: An efficient smt solver for verifying deep neural networks,” arXiv preprint arXiv:1702.01135, 2017. OpenAlex ↗ · Scholar ↗
- W. Ruan, M. Wu, Y. Sun, X. Huang, D. Kroening, and M. Kwiatkowska, “Global robustness evaluation of deep neural networks with provable guarantees for L0 norm,” arXiv preprint arXiv:1804.05805v1, 2018. OpenAlex ↗ · Scholar ↗
- A. Lomuscio and L. Maganti, “An approach to reachability analysis for feed-forward relu neural networks,” CoRR, vol. abs/1706.07351, 2017. [Online]. Available: http://arxiv.org/abs/1706.07351 OpenAlex ↗ · Scholar ↗
- S. Dutta, S. Jha, S. Sanakaranarayanan, and A. Tiwari, “Output range analysis for deep neural networks,” arXiv preprint arXiv:1709.09130, 2017. OpenAlex ↗ · Scholar ↗
- C.-H. Cheng, G. Nührenberg, and H. Ruess, “Maximum resilience of artificial neural networks,” in Automated Technology for Verification and Analysis, D. D'Souza and K. Narayan Kumar, Eds. 1em plus 0.5em minus 0.4em Cham: Springer International Publishing, 2017, pp. 251–268. OpenAlex ↗ · Scholar ↗
- R. Bunel, I. Turkaslan, P. H. Torr, P. Kohli, and M. P. Kumar, “Piecewise linear neural network verification: A comparative study,” arXiv preprint arXiv:1711.00455, 2017. OpenAlex ↗ · Scholar ↗
- W. Xiang, H.-D. Tran, and T. T. Johnson, “Output reachable set estimation and verification for multi-layer neural networks,” arXiv preprint arXiv:1708.03322, 2017. OpenAlex ↗ · Scholar ↗
- N. Narodytska, S. P. Kasiviswanathan, L. Ryzhyk, M. Sagiv, and T. Walsh, “Verifying properties of binarized deep neural networks,” CoRR, vol. abs/1709.06662, 2017. [Online]. Available: https://arxiv.org/abs/1709.06662 OpenAlex ↗ · Scholar ↗
- M. Wicker, X. Huang, and M. Kwiatkowska, “Feature-guided black-box safety testing of deep neural networks,” in Proc. 24th International Conference on Tools and Algorithms for the Construction and Analysis of Systems (TACAS'18), 2018, pp. 408–426. OpenAlex ↗ · Scholar ↗
- V. Gergel, V. Grishagin, and A. Gergel, “Adaptive nested optimization scheme for multidimensional global search,” Journal of Global Optimization, vol. 66, no. 1, pp. 35–51, 2016. OpenAlex ↗ · Scholar ↗
- V. Grishagin, R. Israfilov, and Y. Sergeyev, “Convergence conditions and numerical comparison of global optimization methods based on dimensionality reduction schemes,” Applied Mathematics and Computation, vol. 318, pp. 270–280, 2018. OpenAlex ↗ · Scholar ↗
- L. Pulina and A. Tacchella, “An abstraction-refinement approach to verification of artificial neural networks,” in Computer Aided Verification. 1em plus 0.5em minus 0.4em Springer Berlin Heidelberg, 2010, pp. 243–257. OpenAlex ↗ · Scholar ↗
- A. M. Nguyen, J. Yosinski, and J. Clune, “Deep neural networks are easily fooled: High confidence predictions for unrecognizable images,” CoRR, vol. abs/1412.1897, 2014. [Online]. Available: http://arxiv.org/abs/1412.1897 OpenAlex ↗ · Scholar ↗
- S. Moosavi-Dezfooli, A. Fawzi, O. Fawzi, and P. Frossard, “Universal adversarial perturbations,” CoRR, vol. abs/1610.08401, 2016. [Online]. Available: http://arxiv.org/abs/1610.08401 OpenAlex ↗ · Scholar ↗
- N. Carlini and D. A. Wagner, “Towards evaluating the robustness of neural networks,” CoRR, vol. abs/1608.04644, 2016. [Online]. Available: http://arxiv.org/abs/1608.04644 OpenAlex ↗ · Scholar ↗
- N. Papernot, P. D. McDaniel, S. Jha, M. Fredrikson, Z. B. Celik, and A. Swami, “The limitations of deep learning in adversarial settings,” CoRR, vol. abs/1511.07528, 2015. [Online]. Available: http://arxiv.org/abs/1511.07528 OpenAlex ↗ · Scholar ↗
- H. H. Sohrab, Basic real analysis. 1em plus 0.5em minus 0.4em Springer, 2003, vol. 231. OpenAlex ↗ · Scholar ↗
- S. Piyavskii, “An algorithm for finding the absolute extremum of a function,” USSR Computational Mathematics and Mathematical Physics, vol. 12, no. 4, pp. 57–67, 1972. OpenAlex ↗ · Scholar ↗
- A. Torn and A. Zilinskas, Global Optimization. 1em plus 0.5em minus 0.4em New York, NY, USA: Springer-Verlag New York, Inc., 1989. OpenAlex ↗ · Scholar ↗
- R. Ehlers, “Formal verification of piece-wise linear feed-forward neural networks,” in International Symposium on Automated Technology for Verification and Analysis. 1em plus 0.5em minus 0.4em Springer, 2017, pp. 269–286. OpenAlex ↗ · Scholar ↗
- J. Z. Kolter and E. Wong, “Provable defenses against adversarial examples via the convex outer adversarial polytope,” arXiv preprint arXiv:1711.00851, 2017. OpenAlex ↗ · Scholar ↗