Lagrangian Decomposition for Neural Network Verification
Paper · 2020 · Rudy Bunel, Alessandro De Palma, Alban Desmaison et al.
Summary
An image classifier can give the right answer on an image while changing its prediction when the pixels are altered slightly. A robustness certificate asks whether the prediction stays the same throughout a specified region around the image. To obtain such a certificate, a verifier can bound the smallest possible score margin between the original class and a competing class. If the lower bound is positive, the original class wins that comparison everywhere in the region. Bunel and colleagues study how to compute bounds tight enough to settle these questions, quickly enough to use them throughout a verification search.
The authors use a convex relaxation that keeps every genuine network evaluation and admits some extra possibilities. For a rectified linear unit, or ReLU, whose input can cross zero, this replaces the bent activation graph with the triangle enclosing it. The authors group each activation layer with the affine layer that follows it. Neighboring groups receive separate copies of the values they share, and Lagrange multipliers assign a cost to disagreement between those copies. With the multipliers fixed, the groups can be solved independently. For the ReLU networks in the experiments, the resulting calculations use the kinds of forward and backward operations already available for convolutional networks.
The paper develops two ways to improve the multipliers. Supergradient ascent uses the disagreement found by solving the independent groups. The proximal solver adds a quadratic cost for disagreement and uses a line search to choose how far to move at each inner step. Both can return a valid lower bound before optimization converges. The authors also prove a pointwise comparison for ReLU networks. Given the multipliers produced by an earlier dual method, evaluating the new formulation at the corresponding multipliers produces a lower bound at least as high.
In CIFAR-10 experiments, the new solvers combine bound quality close to that of a general-purpose linear programming solver with lower runtimes. They also obtain tighter bounds than the earlier iterative dual method at similar computational budgets. The improvement carries over to complete verification. On the base convolutional network, the reported average solving time is 368.876 seconds with the proximal solver inside branch and bound, compared with 426.554 seconds with the earlier iterative solver and 1588.651 seconds with Gurobi inside the same kind of search. Which solver returns the most verdicts before the time limit depends on the architecture. On the base network, the new supergradient variant has the lowest timeout percentage, while the proximal variant has the lowest average time.
Deep dive: Lagrangian Decomposition for Neural Network Verification
Lagrangian decomposition speeds up neural network verification by computing tight bounds on outputs across a whole region of possible inputs. · about 37 minutes to read
The problem and its context
A guarantee over a region
Suppose a classifier assigns scores to an image, and one class has the highest score. Robustness around that image concerns what happens to the scores when the input moves within a specified set. One way to pose the question is to choose a competing class and subtract its score from the score of the original class. The quantity to minimize is that difference. A guarantee about the minimum covers all inputs in the set simultaneously, including points at which nobody has evaluated the classifier directly. The result is local to the selected image, the input set, and the comparison being made.
The paper motivates this problem with adversarial examples. These are deliberately chosen changes to an input that cause a network to make a different prediction. Previous work had found such changes even for classifiers that performed well by ordinary predictive measures. The authors also discuss defenses whose apparent robustness disappeared under stronger evaluation. A formal certificate changes the nature of the evidence. It rules out a violation in the stated region if the bound is strong enough. The work on adversarial examples discussed in the paper includes Intriguing Properties of Neural Networks and Explaining and Harnessing Adversarial Examples.
The exact minimization is hard because an input simultaneously determines the states of many hidden units. A ReLU outputs zero on its negative side and passes its input through on its positive side. Once the sides are fixed, the relationships in a ReLU network become affine. Over a whole input region, many units can change sides, and the possible changes interact. The objective can therefore behave differently in different parts of the region. Evaluating the network at a candidate input gives its score margin there. Certifying the whole region requires a bound on how low the margin can go anywhere in it.
A lower bound is sufficient for one direction of the decision. If it is positive, the true minimum is positive as well. If it is negative, there may be an input with a negative margin, or the bound may be too loose to settle the question. A feasible input with a negative margin supplies evidence in the other direction. To see why the distinction matters, consider a computation that finds an exceptionally low score margin by combining hidden unit values that cannot arise from the same input. That combination can explain a pessimistic bound. It cannot serve as a witness to a failure of the real network.
Where the bound fits in a verifier
An incomplete verification method can certify a property when its bound clears the required threshold and leave the property unresolved otherwise. This is useful when the aim is to certify as many properties as possible at modest cost. A complete verifier aims to decide each property and can call a bounding method repeatedly. In branch and bound, it splits the problem into smaller domains, computes a bound for each, and discards a domain once its bound shows that the domain cannot improve the best feasible objective found so far. Each bounding call needs to be cheap enough for repeated use. Its result also needs to be strong enough to prevent the search from growing unnecessarily.
The meaning of completeness concerns the procedure when it can run to a decision. A timed experiment can still end with unresolved cases. The authors compare solvers under just such a limit. A stronger bounding routine may make a practical difference by letting the same search reach a verdict before time expires. Its benefit can come from cheaper calls, better pruning, or a combination of the two.
Bounds have a role during training as well. A training objective can use a bound to reward a network for behavior that can be certified within a chosen perturbation region. The paper treats that as motivation for obtaining better bounds. Its solver takes fixed weights and biases as inputs. The experiments compare verification on already trained networks, including one trained specifically to improve resistance to perturbations. The related training literature includes On the Effectiveness of Interval Bound Propagation for Training Verifiably Robust Models.
The trade-off in earlier bounding methods
One family of earlier methods used general-purpose optimization software to solve a fairly tight convex approximation. A central example in the paper is PLANET. It retains the affine transformations that connect the layers and replaces each uncertain ReLU with the convex hull of its bounded activation graph. A convex hull is the smallest convex set containing the graph. For one ReLU with inputs on both sides of zero, the hull is a triangle. Its edges are straight, which makes the resulting relaxation a linear program when the input set also has a linear description. The number of variables and constraints grows linearly with the number of units. Even with that description size, solving the full program can be expensive, particularly when it is called for many different domains.
Other methods take advantage of operations that are easier to apply layer by layer. The paper describes them as propagating a convex description that encloses the set of reachable values. This can be fast, and a sufficiently tight enclosure can settle an easy property. Coarser descriptions leave more room for combinations of activations that the network could never produce together. Those extra possibilities can reduce the lower bound enough to make the verification inconclusive.
The closest predecessor uses a Lagrangian dual. A Lagrangian puts selected constraints into the objective by multiplying their violations by adjustable coefficients. Fixing the coefficients can make the inner problem easier to solve. The coefficients are then adjusted to improve the resulting bound. Dvijotham and colleagues use this idea to loosen the affine and nonlinear relationships and optimize the resulting dual by supergradient ascent. Bunel and colleagues ask which relationships can be kept together while still making the inner computation cheap. Their answer changes the dual function that the solver sees, even though both duals target the same ReLU relaxation when fully optimized.
The authors distinguish PLANET from stronger relaxations that are costlier to express. Their discussion covers a semidefinite approach whose variable count grows quadratically, along with relaxations based on stronger mixed-integer formulations that may need quadratically many variables or as many as exponentially many constraints. Their goal is to make a familiar, compact relaxation practical as a frequent subroutine. The proposed split relies on the structure of that relaxation.
The method, step by step
From a network evaluation to a relaxed problem
The calculation begins with a fixed feedforward network and a convex set of allowed inputs. Convexity means that the line segment joining any allowed pair of inputs is also allowed. The authors assume that minimizing a linear function over the input set is easy. They formulate the lower-bound problem first. An upper bound follows by applying the lower-bound computation to the negative of the quantity of interest and changing the sign of the result.
Computing a bound by layerwise Lagrangian decomposition
The steps in order.
An affine layer applies weights and adds a bias. In the paper’s indexing, the input is the starting vector, and each hidden layer contributes values before and after the activation. The last layer supplies the output used in the objective.
ẑₖ = Wₖzₖ₋₁ + bₖ
Here k is the layer index, ẑₖ is the vector before activation at that layer, Wₖ is the layer’s linear operator, and bₖ is its bias. The vector zₖ₋₁ is the preceding layer’s output after activation, or the original input z₀ at the first layer. A fully connected layer and a convolutional layer both fit this notation. The implementation can apply a convolution directly.
zₖ = σ(ẑₖ)
Here zₖ is the postactivation vector of hidden layer k. The activation function σ acts separately on each coordinate of the preactivation ẑₖ. The exact minimization requires both this equality and the affine equality to hold throughout the network, with the input restricted to the chosen set.
min cᵀẑₙ
Here n is the final layer, ẑₙ is its output vector, and c is a fixed vector defining the scalar objective. The superscript T denotes transpose, so the expression is a dot product. A choice of c can select a single output or specify a score margin. The minimum is over the input and all layer values subject to the network constraints. In most of the derivation, the paper writes the objective directly as a scalar output. Using c makes the same construction applicable to a linear comparison of outputs.
To build the relaxation, the solver needs an interval for every hidden preactivation. Its endpoints are valid bounds over the allowed inputs. An interval completely on one side of zero tells the solver which affine piece of a ReLU applies. When the interval crosses zero, the solver takes the convex hull of the activation restricted to that interval. For a single unit, the input and output of the activation are scalars. The hull contains every pair on the activation graph over the interval, including both endpoints and the bend.
y = max(0, x)
Here x is the scalar input to the ReLU and y is its scalar output. The maximum selects zero when x is negative and x when it is positive. On an interval entirely at or below zero, the hull obeys the equality y = 0. On an interval entirely at or above zero, it obeys y = x. Each of those sets is already a line segment, so convexifying the graph leaves it intact.
l ≤ x ≤ u, y ≥ 0, y ≥ x, y ≤ u(x − l)/(u − l)
Here l and u are the lower and upper limits of x and straddle zero in the ambiguous case. The lower inequalities place y on or above the graph of the ReLU. The last inequality puts y on or below the line joining the two ends of the graph. The denominator u − l is the interval width. The points at x equal to l, zero, and u form the vertices. At an interior x, the allowed y can exceed the true activation. That extra vertical space is the price of obtaining a convex feasible set.
The convexification is local to each unit. Once the hulls are put together, the feasible points include every genuine execution and can include additional combinations of values across units and layers. Minimizing over this enlarged region yields a value at most as large as the exact minimum. This gives a sound lower bound even when the relaxed optimum uses a fictitious combination. The authors keep the affine layers as equalities at this stage, so those equalities still constrain which combinations the relaxed calculation can use.
The quality of the intervals matters for two reasons. An interval that establishes the sign of a unit eliminates its triangular relaxation. For a unit that remains ambiguous, narrowing the interval changes the line above its graph and limits the available pairs. To compute intervals, the paper describes using a prefix of the network and placing the objective on a hidden preactivation instead of the final output. A lower and an upper optimization are needed for each hidden unit. Once the earlier intervals are available, objectives for units in the same layer can be handled together. Later layers depend on the earlier intervals, so this preparation proceeds through the network in order. A cheaper relaxation such as Wong and Kolter’s can also provide the intermediate bounds when the budget for this preparation is limited.
Splitting the constraints into groups
The authors next reorganize the relaxed problem. The first group contains the restriction on the input and the first affine transformation. Each subsequent group starts from a bounded preactivation, allows the pairs admitted by that activation’s convex hull, and applies the following affine transformation. In other words, an internal group takes the value before one activation and produces the value before the next. Its own postactivation vector is internal to the group.
P₀(z₀, ẑ₁) ⇔ z₀ ∈ C and ẑ₁ = W₁z₀ + b₁
Here P₀ denotes the first group of constraints, C is the convex input set, z₀ is the input, and ẑ₁ is the first preactivation. The operator W₁ and bias b₁ define the first affine layer. The double implication indicates that membership in the group is equivalent to satisfying the constraints on the right.
Pₖ(ẑₖ, ẑₖ₊₁) ⇔ lₖ ≤ ẑₖ ≤ uₖ and Hσ(ẑₖ, zₖ; lₖ, uₖ) and ẑₖ₊₁ = Wₖ₊₁zₖ + bₖ₊₁
Here Pₖ denotes the group starting at hidden layer k. The vectors lₖ and uₖ contain its lower and upper preactivation bounds, with the vector inequalities applied coordinate by coordinate. Hσ denotes membership in the convex hull for activation σ on those intervals. The punctuation inside Hσ separates the pair being checked from the bounds that define its hull. Membership in Pₖ means that some postactivation zₖ satisfies the hull and that the next preactivation ẑₖ₊₁ follows from Wₖ₊₁ and bₖ₊₁. For ReLUs, the hull amounts to the cases described above across all coordinates.
Adjacent groups still share a preactivation. The first group, for example, computes the first preactivation from the input, and the next group consumes that preactivation. To split the computation, the authors give each group its own copy of the shared value. Copy A belongs to the group that produces the value. Copy B belongs to the group that consumes it. The final output belongs to the last group and needs only its producing copy. Equalities between the other pairs restore the original relaxed problem.
ẑA,ₖ = ẑB,ₖ
Here ẑA,ₖ and ẑB,ₖ are the two copies of the hidden preactivation at layer k. If this equality holds at every shared layer, the independent groups describe one consistent relaxed execution. The extra variables alone have therefore changed the organization of the problem while preserving its feasible solutions once the equalities are enforced.
The decomposition moves these equalities into the objective and leaves the constraints inside each group in place. For each shared layer, a vector of multipliers prices the difference between the copies. Fixing those multipliers makes the inner minimization separable because each remaining constraint involves variables from just one group.
q(ρ) = min { cᵀẑA,ₙ + Σₖ₌₁ⁿ⁻¹ ρₖᵀ(ẑB,ₖ − ẑA,ₖ) }
Here q is the dual function, ρ collects all the agreement multipliers, and ρₖ is the vector for hidden layer k. The sum runs over the hidden layers shared by adjacent groups. The vector ẑA,ₙ is the final output and c specifies the objective. The minimum ranges over all independently feasible groups, with A and B assigned to the producing and consuming groups respectively. A multiplier contributes with opposite signs in the two groups, since increasing the producing value reduces the discrepancy by the same amount that increasing the consuming value raises it.
This construction explains why the algorithm gives an anytime bound. Take any feasible solution to the coupled relaxation and hand each group its copy of the solution. The two copies agree, so all multiplier costs vanish. The independent inner minimization is free to return a still lower value. Thus q at any fixed multipliers is a lower bound on the coupled relaxation, which itself gives a lower bound on the exact network objective. This is weak duality. Improving ρ by maximizing q can tighten the bound. The validity argument applies before reaching a maximizer and even at a choice of ρ that the solver arrived at by a poor update.
Solving the independent minimizations
In the input group, the variable the multiplier prices is the first preactivation. Substituting the affine equality reduces the problem to linear optimization directly over the input. The bias shifts the objective by a constant. It matters to the bound value, while the minimizing input is determined by the linear coefficients and the geometry of the input set.
a = W₁ᵀρ₁
Here a is the vector of input coefficients obtained by applying the transpose of the first layer operator W₁ to its agreement multipliers ρ₁. The variable part of the input-group objective is the negative dot product of a with z₀. For an input box with lower and upper bounds l₀ and u₀, a positive coefficient in a favors the upper endpoint, and a negative coefficient favors the lower endpoint. A zero coefficient makes all choices for that coordinate equally good. The first preactivation can then be recovered by applying the affine layer to the chosen input.
For a Euclidean ball, the same dot product is minimized by choosing the point in the direction that reduces the linear objective most quickly. With the sign convention for a above, that direction is a itself. The center remains a valid minimizer if the input coefficient vanishes.
z₀* = x̄ + εa/‖a‖₂
Here z₀* is a minimizing input, x̄ is the center of the Euclidean ball, ε is its radius, and ‖a‖₂ is the Euclidean length of the non-zero input coefficient a. This expression states the ball construction in terms of the linear objective after substitution of the first affine layer. The minimizing choice is on the boundary since increasing the distance along this direction continues to decrease the objective until the radius is reached.
In each hidden group, the cost prices both the incoming B copy and the outgoing A copy. The group keeps the hull between the incoming preactivation and the postactivation, and it keeps the affine transformation from the postactivation to the outgoing copy. Substituting that transformation once again gives a linear function of the activation’s input and output, plus a constant from the bias.
ρₖᵀẑB,ₖ − ρₖ₊₁ᵀWₖ₊₁zₖ − ρₖ₊₁ᵀbₖ₊₁
Here k is the index of the hidden group, ẑB,ₖ is the group’s incoming preactivation, and zₖ is its postactivation. The multiplier vectors are ρₖ and ρₖ₊₁. The following affine layer is defined by Wₖ₊₁ and bₖ₊₁. For the last group, the paper’s convention corresponds to using the negative of c as the terminal multiplier, so this expression incorporates the output objective when the outgoing variable is the final output.
Although the affine operator can mix many activations, applying its transpose to the outgoing multiplier supplies a scalar coefficient for each unit. The resulting optimization has a sum of scalar terms and an independent hull for each coordinate. If the coefficient that multiplies the postactivation gives a reward for increasing it, the best y at fixed x is on the upper edge of the hull. If it gives a cost for increasing y, the best y is on the lower edge. An ambiguous unit can be solved by scoring the triangle’s vertices and keeping a minimum. A unit with fixed sign is solved by picking an endpoint of its line segment. Ties can be resolved by selecting any minimizer.
This is the operation that both solvers reuse. The transpose application resembles the backward pass through a network layer. Applying the original operator to the chosen postactivation and adding the bias yields the outgoing A copy, just as in a forward pass. These operations can use the convolutional layer directly. In addition to avoiding a redundant dense representation of the convolution, this makes it possible to batch independent bound objectives and domains using the primitives available for GPU and parallel computing.
The relation to the earlier dual
The previous dual has one multiplier family for the hidden affine equalities and another for the activation equalities. It keeps box bounds on the preactivations and postactivations. The activation graph appears in the objective through the penalty for violating the activation equation. The earlier formulation can minimize over the preactivation and postactivation separately. The decomposition instead solves a linear objective over their joint hull.
d(µ, λ) = min { cᵀ(Wₙzₙ₋₁ + bₙ) + Σₖ₌₁ⁿ⁻¹ µₖᵀ(ẑₖ − Wₖzₖ₋₁ − bₖ) + Σₖ₌₁ⁿ⁻¹ λₖᵀ(zₖ − σ(ẑₖ)) }
Here d is the earlier dual function. The vectors µₖ penalize residuals in the hidden affine equations, and the vectors λₖ penalize residuals in the activation equations. The sums run over hidden layers k, and Wₖ, bₖ, ẑₖ, and zₖ retain their layer meanings. The activation is σ. The first term evaluates the final affine layer using the last hidden postactivation zₙ₋₁ and the objective coefficients c. In the minimization, z₀ must belong to C, ẑₖ lies between lₖ and uₖ, and zₖ lies between the corresponding activated endpoints σ(lₖ) and σ(uₖ).
q(µ) ≥ d(µ, λ)
Here q is evaluated with its copy-agreement multipliers set to the affine multiplier vectors µ from the previous formulation. The term d uses those same µ and any choice of the activation multipliers λ. The inequality is the authors’ theorem for ReLU networks. Both sides are lower bounds on the same kind of objective, so the higher value is tighter.
The proof can be understood by considering a single hidden group. A linear objective on its ReLU hull attains a minimum on the original bounded graph, since each relevant vertex lies on that graph. At any such graph point, the activation residual is zero. Introducing a term with that residual consequently leaves the value at that point unchanged. If the preactivation and postactivation can subsequently be chosen independently, their separately minimized terms can add up to a lower value than the jointly minimized term. Applying this argument across the network and including the input-group contribution yields the inequality. At full optimization for the ReLU relaxation, the paper gives the two formulations the same target value. Their pointwise relationship matters while optimization is still under way.
There is also a route to a useful initial value through the method of Wong and Kolter. It propagates coefficients backward through the layers, using a scaling determined by the ReLU interval. A blocked unit receives a zero scaling, a passing unit retains the coefficient, and an ambiguous unit uses the slope of the upper hull edge. The resulting vectors are the initial agreement multipliers in the decomposition. The paper proves that evaluating q there recovers the bound of the Wong and Kolter method. In particular, the iterative solver can start with a bound whose quality is defined by an existing method, then spend more computation trying to improve it.
Supergradient ascent
The minimizations produce two candidate vectors for every shared preactivation. Their difference is the direction used by the supergradient method. The dual is concave because it is a pointwise minimum of affine functions of the multipliers. It can have corners when the minimizing choices change. A supergradient is a slope that defines a supporting affine upper estimate of a concave function. To see why the disagreement supplies that slope, keep a minimizing set of group values fixed and vary the multipliers. The dual at the new multipliers can only be as high as the objective evaluated at those fixed values. The slope of that objective is the disagreement.
sₖᵗ = ẑB,ₖ* − ẑA,ₖ*
Here t is the iteration, sₖᵗ is the component of the supergradient at hidden layer k, and the starred A and B values minimize the independent inner problem at the current multipliers. If there are several minimizing assignments, their residuals can give different valid supergradients. The safety of the bound follows from evaluating q, independently of the chosen minimizer.
ρᵗ⁺¹ = ρᵗ + αᵗsᵗ
Here ρᵗ and ρᵗ⁺¹ collect the multipliers before and after the ascent step, αᵗ is the step size at that iteration, and sᵗ collects the disagreement vectors. This is the basic ascent rule. The experimental implementation uses adaptive updates with a decaying step-size schedule. The paper applies that style of update to both its decomposition and the earlier dual method, allowing them to be compared with a similar optimization strategy. The adaptive update is Adam.
A supergradient gives a direction for an update, while the useful move size depends on how the minimizing groups change along that direction. For instance, changing the price of one coordinate can switch a ReLU minimizer to another vertex. The paper’s second solver addresses step selection using a smoother inner problem.
Proximal maximization and the inner line search
The proximal method can be viewed from either side of the optimization. In the dual, a proximal update balances improving q against moving too far from the current multipliers. In the corresponding primal calculation, this produces an augmented Lagrangian. The affine price of disagreement is joined by a quadratic penalty. The group constraints stay the same. Groups can still produce inconsistent copies while the inner problem is being solved, but larger disagreements now incur a cost that grows quadratically.
L(ẑ, ρ) = cᵀẑA,ₙ + Σₖ₌₁ⁿ⁻¹ ρₖᵀrₖ + Σₖ₌₁ⁿ⁻¹ ‖rₖ‖₂²/(2ηₖ)
Here L is the augmented Lagrangian, ẑ denotes the collection of split layer values, and rₖ is the discrepancy ẑB,ₖ − ẑA,ₖ. The vector c defines the output objective, ρₖ is the multiplier on rₖ, and ηₖ is a positive parameter. The squared Euclidean norm measures the size of the discrepancy. There is one linear and one quadratic contribution for each shared hidden layer. The quadratic introduces curvature in the disagreement directions. As written, increasing ηₖ reduces the coefficient on the squared discrepancy.
ρₖᵗ⁺¹ = ρₖᵗ + rₖᵗ/ηₖ
Here ρₖᵗ is the multiplier before an outer update and ρₖᵗ⁺¹ is the multiplier afterward. The residual rₖᵗ comes from the approximate minimizer of the augmented problem at iteration t. The parameter ηₖ scales the update. The paper alternates between refining the group values under the augmented objective and performing such updates. The approximate nature of the inner solve affects the quality of the multipliers reached. The reported lower bound is still obtained by evaluating the original dual q.
The quadratic penalty couples neighboring groups through their discrepancies, so a single sweep of independent linear minimizations cannot directly minimize L. The authors use Frank–Wolfe, also called conditional gradient, for this inner problem. It linearizes the augmented objective at the current group values and minimizes the resulting linear function over the independently feasible groups. The derivative with respect to a discrepancy is the current multiplier plus the discrepancy divided by ηₖ. Consequently the linearized problem has the same coefficient structure as the minimization used for the supergradient solver. The method can reuse the input optimization and ReLU vertex calculations.
Once the linear minimization has selected a feasible point, the algorithm moves along the segment from the current point toward that point. Both endpoints satisfy the product of the group constraints. All points on the segment satisfy those constraints as well. This makes the move possible without a separate projection back to the feasible set.
γ* = argmin over γ ∈ [0, 1] of L((1 − γ)ẑ + γx̂, ρ)
Here γ is the fraction of the move toward the new point x̂, and γ* is the fraction that minimizes L along the segment. The current point is ẑ, and ρ stays fixed throughout this inner move. The feasible interval for γ ranges from keeping the current point to taking the new point in full. Since the path is affine in γ and L is quadratic in the discrepancies, the line search reduces to a scalar quadratic.
γ* = clip₍₀,₁₎(−(cᵀΔout + Σₖ gₖᵀΔrₖ)/(Σₖ ‖Δrₖ‖₂²/ηₖ))
Here Δout is the change in the output from the current point to the proposed point. The vector Δrₖ is the change in the discrepancy at shared layer k, and gₖ is ρₖ plus the current discrepancy divided by ηₖ. The sums run over shared layers, c defines the output objective, and ηₖ is the positive proximal parameter. The clip operation restricts the stationary point to the feasible interval from zero to one. The fraction applies when the denominator is positive. With zero curvature along the direction, the objective along the segment is affine and an appropriate endpoint minimizes it. The line search gives the best move along the chosen direction for the current inner objective.
The paper also describes applying these moves one group at a time. A move in an internal group changes its incoming B copy and its outgoing A copy, so it influences the two discrepancies at its boundaries. The block line search includes just those changes. For the input group there is no incoming hidden discrepancy. For the last group, the output objective contributes a linear term, and there is no subsequent agreement penalty. A group later in the sweep uses the updated values left by earlier groups. This is the Gauss–Seidel form of the update.
An optional momentum update adds a decayed contribution from the preceding multiplier step. The paper also describes increasing ηₖ over time to scale down the fresh residual contribution. The complete verification experiments use fixed proximal weights and omit momentum. In either form, the optimal step size of the Frank–Wolfe move is conditional on the direction and the current inner objective. It is distinct from the choice of proximal weight and from the number of inner steps allocated to the approximate solve.
Extending the construction to a sigmoid
The paper develops the group calculation for sigmoid activations as well. The key local operation is still linear minimization over a bounded activation hull. Its geometry changes because the activation is smooth and changes curvature at zero.
σ(x) = 1/(1 + e⁻ˣ)
Here x is the input to the sigmoid, σ(x) is its output, and e is the base of the exponential. The output lies between zero and one, and the function is convex on the negative side and concave on the positive side. Its hull over a finite interval can therefore have curved as well as straight boundaries.
σ′(x) = σ(x)(1 − σ(x))
Here σ′ is the derivative with respect to x. The values on the right are the sigmoid output and its complement. The derivative is used both to build a tangent boundary and to find candidate optima when a linear objective is evaluated on a curved boundary.
The upper hull boundary must be a concave majorant of the graph. Depending on the interval, the paper constructs it from a chord, from the activation itself, or from a chord that meets the activation tangentially and then follows it. The lower boundary is constructed by the corresponding convex-envelope argument. To see the relevance of tangency, imagine joining the lower interval endpoint to a point on the concave side of the curve. At the point where the graph’s slope agrees with the chord, the two pieces meet with the same slope. This permits an upper boundary that follows the true curve over part of the domain while spanning the earlier part with a line.
σ′(t) = (σ(t) − σ(l))/(t − l)
Here l is the lower interval endpoint and t is the point where the chord and sigmoid meet tangentially. The numerator is the change in sigmoid value, and the denominator is the change in input. The paper describes finding the applicable tangent point during problem setup, using numerical root finding, with the option of storing values for reuse. A solver iteration can then use the prepared boundary description.
The group objective selects the upper or lower envelope at each preactivation according to the sign of the coefficient on the postactivation. Each unit can still be optimized independently after applying the transpose of the affine operator. On a straight piece, the cost is linear and can be minimized at an endpoint. On a curved piece, the cost is a linear term in the preactivation plus a multiple of the sigmoid. The authors score the endpoints and any admissible stationary point, obtained by setting the derivative of that scalar objective to zero. The resulting optimum supplies the same kinds of group values used in the ReLU solvers. The construction establishes how the method adapts to this different activation geometry.
Experiments and results
Measuring bound quality and cost on individual images
The first set of experiments concerns incomplete verification. Its immediate question is how closely different methods approach the relaxed optimum, and how much time they spend getting there. The image data are CIFAR-10. The architecture has convolutional layers with 16 and 32 output channels, each using kernel size 4 and stride 2, followed by linear layers with 100 and 10 outputs. ReLUs follow the layers before the final output. The main comparison uses a network trained with the adversarial training method of Madry and colleagues. The supplement uses the same architecture with ordinary stochastic gradient training and a cross-entropy objective. The two settings allow the authors to see whether the ordering of the solvers survives a change in training procedure. The adversarial training method is described in Towards Deep Learning Models Resistant to Adversarial Attacks.
Gurobi solves the relaxation to provide a comparison with its optimum. A time-limited Gurobi variant is also included. The plots display runtime and the gap to the best bound for each image, with smaller values preferred in both cases. The gap measures progress towards the relaxed optimization target. The exact solution of the relaxation can still differ from the optimum of the original non-convex network. The unrestricted Gurobi run is the reference for the gap and has the highest runtime in the distribution plots.
The iterative comparison distinguishes three ways to use the duals. DSG+ optimizes the prior dual and reports its bound. Dec-DSG+ takes the affine multipliers from that same optimization and uses them to evaluate the decomposition’s dual. Supergradient updates multipliers directly on the new dual. Proximal also optimizes the new dual, with the augmented problem and inner line searches. WK, the Wong and Kolter bound, supplies an additional reference point and the initialization described by the authors for incomplete verification.
The iteration budgets differ because one iteration has a different cost in each method. The adversarially trained network plots show DSG+ and Dec-DSG+ at 520 steps and 1040 steps. The corresponding settings for Supergradient are 370 steps and 740 steps, and those for Proximal are 200 steps and 400 steps. In the Dec-DSG+ case, the label refers to the number of steps run on the prior dual before transferring the multipliers. The plotted distributions show runtime and gap across images. The paper also compares the same images point by point, so a reader can see whether improvements hold for most paired cases or arise from particular parts of the distribution.
The reported ordering supports both the reformulation and the new solver. Transferring the multipliers generally improves the bound relative to reporting the preceding dual’s value at those multipliers. Optimizing the decomposition directly is more effective in most paired cases. The proximal solver improves the bounds further in the reported comparisons. Together, these results show near-solver-quality bounds at much lower cost than solving the relaxation to optimality with general-purpose software, and stronger bounds than the earlier iterative dual at similar computing times. The paper provides distributions for these comparisons. The runtime and gap at an individual image depend on the optimization budget and the method.
For the normally trained network, the verification radius is 5/255. The decomposition’s advantage over DSG+ is more pronounced in these results. The authors observe a subset for which the earlier dual still returns loose bounds after 1040 iterations. Proximal again improves the bounds relative to Supergradient in the comparison, though its extra runtime and the broader spread of gaps make the advantage less straightforward to assess from bound quality alone. These are comparisons of the bounding computations on fixed classifiers. The paper supplies an implementation of its methods under the name decomposition-plnn-bounds.
Measuring complete verification
The second set of experiments embeds the solvers in branch and bound. The properties come from the verification dataset used by Lu and Kumar. It selects some CIFAR-10 test images, associates a competing class with each property, and specifies a perturbation radius. The search asks whether inputs in the resulting region can reverse the score comparison. The base, wide, and deep convolutional architectures have 3172, 6244, and 6756 ReLU units respectively. The wide network increases the convolutional channel counts relative to the base network. The deep one adds convolutional stages. These changes probe separate sources of verification cost.
The branch-and-bound experiments compare Gurobi with the iterative bounding methods DSG+, Supergradient, and Proximal. They also include MIPplanet as a separate complete verification baseline. This baseline uses a mixed-integer linear problem in Gurobi to obtain a global lower bound. The iterative branch-and-bound implementations can batch domain bounds on the GPU. The complete search computes bounds for 300 subproblems at once on the base architecture and 200 on the wide and deep architectures. Gurobi’s branch-and-bound configuration solves those domains sequentially. Bounds for hidden units can also be batched, using smaller batches of domains to account for the size of those intermediate layers.
The authors set roughly comparable bounding-time budgets for the iterative methods, allocating 100 iterations to Proximal, 160 to Supergradient, and 260 to DSG+. The ascent step sizes for the latter two decrease linearly. The proximal solver uses a fixed penalty parameter of 10² for all layers and runs without momentum. For each iterative method, the multipliers found for the parent domain initialize the bound calculation at a child domain. A child shares the same objective and much of the same structure, making the parent’s solution a meaningful starting point. Each property is subject to a one-hour limit.
The experiments report average solve time, average solved subproblem counts, and the fraction of properties that timed out. The cactus plots show the percentage solved up to each runtime. Those curves complement the average since they can distinguish an advantage on quick cases from additional verdicts late in the experiment.
CIFAR-10 base network complete verification average solving time
The proximal branch-and-bound solver has the lowest reported average time.
The numbers
| System or setting | seconds |
|---|---|
| Gurobi BaBSR | 1588.651 |
| DSG+ BaBSR | 426.554 |
| Supergradient BaBSR | 377.104 |
| Proximal BaBSR (this paper) | 368.876 |
On the base network, the other complete baseline, MIPplanet, records an average of 2035.565 seconds. Its timeout percentage is 36.37, compared with 10.56 for Gurobi BaBSR. Among the iterative methods, DSG+ times out on 6.54% of base properties, Supergradient on 5.76%, and Proximal on 5.82%. The two new solvers thus have different advantages on this architecture. Proximal has the lower average time, while Supergradient settles a slightly greater fraction of the properties within the time limit. The corresponding average subproblem counts for DSG+, Supergradient, and Proximal are 5312.674, 5079.682, and 4569.414.
CIFAR-10 wide network complete verification timeout percentage
Both decomposition solvers have the lowest timeout percentage among the compared methods.
The numbers
| System or setting | timeout % |
|---|---|
| Gurobi BaBSR | 50.66 |
| DSG+ BaBSR | 20.00 |
| Supergradient BaBSR | 18.00 |
| Proximal BaBSR (this paper) | 18.00 |
On the wide network, MIPplanet reaches the time limit on 80.00% of properties and has an average time of 3118.593 seconds. Gurobi BaBSR averages 2912.246 seconds. The average solving times for the iterative branch-and-bound methods are 1048.594 seconds for DSG+, 920.351 seconds for Supergradient, and 891.163 seconds for Proximal. The last two agree on the reported timeout percentage. Their timing difference shows up in the average and can also be read in the cactus plots. On this architecture the average solved subproblem counts are 4518.116 for DSG+, 4069.894 for Supergradient, and 3343.601 for Proximal.
CIFAR-10 deep network average solved branch-and-bound subproblems
The proximal solver handles the fewest subproblems among the iterative methods.
The numbers
| System or setting | average solved subproblems |
|---|---|
| DSG+ BaBSR | 1992.345 |
| Supergradient BaBSR | 1783.577 |
| Proximal BaBSR (this paper) | 1655.519 |
For the deep network, the average solve time with Proximal is 384.984 seconds, compared with 390.367 for Supergradient and 509.484 for DSG+. The timeout percentages follow the same order, at 6.8 for Proximal, 7.2 for Supergradient, and 9.60 for DSG+. Gurobi BaBSR reports 3007.237 seconds and 54.00% timeouts. MIPplanet reports 2997.115 seconds and 73.60% timeouts. The subproblem chart compares iterative solvers, whose bounding calls use the parallel strategy. A comparison of node counts across different implementations also needs to account for the cost of each call and for the cases a method has time to reach. The average time and timeout columns capture effects that a count of processed subproblems alone would miss.
The architecture comparisons make the result more concrete than a statement about the average gap on a single bound. A useful bound contributes to complete verification by pruning portions of the domain, and the GPU implementation can evaluate many portions in one batch. Supergradient improves on DSG+ in average runtime across the architectures, and Proximal reduces the average time further in each. The paper’s plots indicate that the proximal advantage is especially visible among properties that can be settled relatively quickly. Its effect on the final fraction settled varies with the network.
What the ablations show
What changes when the multipliers stay fixed
The cleanest controlled comparison is DSG+ against Dec-DSG+. Both rely on the same optimization of the prior dual. They differ at the final evaluation. DSG+ reports the bound from its own formulation, while Dec-DSG+ transfers the affine multipliers into the decomposition and reports q. This comparison tests a consequence of changing the dual function with the underlying multiplier search held fixed. The theorem says that the transfer cannot weaken the lower bound. The paired results show a strict improvement for most of the dual solutions examined, so the theorem identifies a difference that occurs in the image problems as well as in the algebra.
That comparison also helps explain why directly optimizing the decomposition is a separate decision. DSG+ spends its steps looking for multipliers that score well on d. The multipliers it finds can yield a better value when reused on q, but they were selected using another objective. Supergradient spends its budget adjusting them using discrepancies from the new groups. The supplementary paired results favor direct optimization in the vast majority of the cases considered. This shows that there is practical value in letting the tighter inner problem guide the updates, over and above reevaluating the old search’s solution.
The Supergradient and DSG+ comparison examines the new formulation with a related optimizer on both sides. They use the same style of adaptive ascent and a linearly decreasing step size, with iteration counts selected for similar computation times. The new method seeks agreement between copies of preactivations. The earlier method has both affine and activation residuals from its looser collection of subproblems. The stronger bounds under similar budgets support the authors’ choice to retain the activation hull inside the local minimization. This comparison includes the practical cost of the different inner calculations, so it is also evidence about the combination of the formulation and its efficient implementation.
What changes when the solver changes
Supergradient and Proximal share the dual function. The principal difference is the route they take to find multipliers. Supergradient uses the current minimizing split solution for a direct ascent update. Proximal first works on a smooth augmented objective with a penalty on the disagreement, and the inner solver chooses steps by a line search. In incomplete verification, the proximal method improves the gaps in the comparisons described by the authors. In complete verification, it has fewer solved subproblems on average than Supergradient on the base, wide, and deep networks. The combination suggests a practical benefit from the proximal optimization at the chosen budgets.
The outcome depends on what is being measured. The ordinary-training experiment shows stronger proximal bounds along with a runtime cost that can make the overall advantage smaller. The complete verification results on the base network illustrate another distinction. Proximal reduces the average solve time and the average subproblem count relative to Supergradient while timing out on a slightly larger share of properties. The average time can improve when properties that are already solvable become quicker, even if the tail comprises a different set of unresolved cases. A comparison limited to average time would miss that distinction.
The paper gives a narrower optimization sensitivity result for DSG+. It tried constant step sizes and an inverse-iteration schedule, and reports that they performed worse than the linearly decreasing schedule used in the experiments. This provides context for the choice of baseline. The paper’s detailed comparisons are about the dual formulation and the two solver strategies as implemented. Separate effects of the proximal line search, blockwise updates, momentum, and the penalty schedule are left undetermined by those comparisons.
What changes across properties and training procedures
The supplement compares WK against interval propagation on the incomplete verification tasks. Interval propagation is a particularly simple way to enclose reachable values as they pass through a network. The image-by-image comparison shows substantially worse bounds for it on most images, which is the authors’ reason for leaving it out of the main comparison. This result concerns the intervals and networks in the experiment. It keeps separate the question of whether interval propagation is useful as a training technique or as a cheap way to produce preliminary bounds.
The authors also separate the base complete-verification properties by how long Gurobi took to solve them. The easy group uses Gurobi times below 800 seconds and the hard group uses times above 2400 seconds, with a medium group between them. The benchmark description gives 467 easy properties, 773 medium properties, and 426 hard properties for this architecture. These groups are defined by the behavior of a specific baseline. They show how the iterative methods compare at several levels of difficulty relative to that baseline.
The supplementary curves preserve the relative pattern among the iterative approaches, while the initial gap between the two decomposition solvers changes with difficulty. The analysis gives more resolution than the base network’s aggregate solving time. Likewise, comparing the adversarially and ordinarily trained networks shows that the decomposition advantage survives the change in training procedure in the tested architecture. The size of the advantage varies. In particular, the ordinarily trained network exposes images on which DSG+ still produces relatively weak bounds at the longer plotted budget.
Limitations
Limits identified by the authors
The authors focus on feedforward networks whose layers can be expressed with affine transformations and elementwise activations. They explain that the broader idea can be extended to more complex architectures and derive a sigmoid version. The choice of which constraints to group depends on the existence of an efficient linear minimization over the group. For a different activation or organization of the network, finding such a grouping is part of adapting the method. The pointwise dominance theorem is stated and proved for ReLUs. The sigmoid derivation establishes how to solve the local hull problem for that activation, while the reported benchmark results concern ReLU networks.
The main results target the compact PLANET relaxation. The authors discuss tighter convex or mixed-integer-based relaxations and explicitly leave them outside the scope of the solver developed here. A bound near the optimum of PLANET therefore answers how effectively a solver handles that relaxation. Its distance from the minimum of the exact network objective is a separate question. Complete verification can address unresolved regions by searching over subdivisions. Incomplete verification can leave the property undecided when the relaxation gives a lower bound below the certificate threshold.
Intermediate bounds consume computation before a final output objective can be optimized. Even with parallel computation of the bounds within a layer, the layers must be visited sequentially. The paper identifies using a cheaper intermediate relaxation as a way to reduce this cost. That choice can influence the final bound because intermediate intervals determine which units have ambiguous ReLUs and how wide their hulls are. The experiments demonstrate gains for the reported setting, with a tradeoff between time spent preparing those intervals and time spent solving the final bound.
The discussion leaves open whether a solver combining supergradient and proximal methods would improve complete verification further. It also raises the possibility of making stronger relaxations computationally practical by related derivations. The suggestion that tighter bounds could ease over-regularization when training robust networks is offered as a direction. The paper’s training choices establish the classifiers on which the verifier is evaluated. They do not measure changes to training that result from inserting the proposed bound into a training objective.
Limits of the experimental evidence
The complete verification problems concern selected CIFAR-10 test images, specified perturbation regions, and comparisons against a chosen class. A per-property result does not establish a classifier’s certified accuracy across the entire test set, and a certificate for one target comparison leaves other comparisons open. Architecture scale is examined through the base, wide, and deep networks. Further changes in size, activation type, or network structure could alter the balance between preparing intermediate bounds, solving local problems, and searching over domains.
The runtime comparisons are comparisons of working systems. Gurobi solves the domains sequentially in the complete verification experiment, while the iterative methods batch many domain bounds on the GPU. That is a practical advantage of the layerwise operations. It also means that the observed end-to-end runtime cannot isolate the mathematical improvement in the relaxation solver from the gain due to batching. The comparison against the GPU-capable DSG+ baseline, and the pointwise multiplier-transfer experiment, provide more direct evidence about what the new formulation contributes.
Anytime stopping guarantees a valid dual bound at a chosen point in the run. Its usefulness still depends on the multipliers reached, the intermediate bounds, and the cost of computing the dual value. The supergradient schedule and the proximal penalty are chosen settings. The Frank–Wolfe line search optimizes the move along a specified direction in the augmented problem, which leaves open how many moves to take and how to schedule the outer updates. The one-hour timeouts document how complete verifiers perform with those choices and that budget. They leave the eventual runtime of unresolved properties open.
Finally, the meaning of a bound changes with its role in the experiment. An incomplete-verification gap compares a returned value with a reference for the relaxation. A branch-and-bound runtime reflects repeated bounds, the splitting strategy, and progress towards a verdict. Smaller gaps can help the search, but the time spent tightening them has to be repaid through quicker pruning. The distinction accounts for cases where different solvers lead on average runtime, solved subproblems, or timeout percentage.
What came after
Later work applying this paper’s decomposition is undocumented here. The paper closes with open directions rather than evidence of follow-up results. One is whether combining the two solvers could improve the tradeoff between time spent on each bound and time saved in the complete search. Another is whether decomposition can preserve enough structure in stronger relaxations to make their additional constraints practical. The proposed application to robust training raises a related question about whether better bounds can serve as a better training signal. The experiments establish a result for verification on fixed networks, leaving those questions for subsequent work.
Cite
Cite as Rudy Bunel, Alessandro De Palma, Alban Desmaison, Krishnamurthy Dvijotham, Pushmeet Kohli, Philip H.S. Torr and M. Pawan Kumar. 2020. Lagrangian Decomposition for Neural Network Verification. arXiv:2002.10410.
@misc{bunel2020lagrangian,
title = {{Lagrangian Decomposition for Neural Network Verification}},
author = {Rudy Bunel, Alessandro {De Palma}, Alban Desmaison, Krishnamurthy Dvijotham, Pushmeet Kohli, Philip H.S. Torr and M. Pawan Kumar},
year = {2020},
doi = {10.48550/arxiv.2002.10410},
eprint = {2002.10410},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2002.10410}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bunel-2020-lagrangian-decomposition-neural-network-verification/